atanl: Provide function definition on MSVC.
[gnulib.git] / ChangeLog
1 2012-02-24  Bruno Haible  <bruno@clisp.org>
2
3         atanl: Provide function definition on MSVC.
4         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
5         function pointer.
6         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7
8 2012-02-24  Bruno Haible  <bruno@clisp.org>
9
10         acosl: Provide function definition on MSVC.
11         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
12         function pointer.
13         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
14
15 2012-02-24  Bruno Haible  <bruno@clisp.org>
16
17         asinl: Provide function definition on MSVC.
18         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
19         function pointer.
20         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
21
22 2012-02-24  Bruno Haible  <bruno@clisp.org>
23
24         tanl: Provide function definition on MSVC.
25         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
26         function pointer.
27         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
28
29 2012-02-24  Bruno Haible  <bruno@clisp.org>
30
31         cosl: Provide function definition on MSVC.
32         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
33         function pointer.
34         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
35
36 2012-02-24  Bruno Haible  <bruno@clisp.org>
37
38         sinl: Provide function definition on MSVC.
39         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
40         function pointer.
41         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
42
43 2012-02-24  Bruno Haible  <bruno@clisp.org>
44
45         logl: Provide function definition on MSVC.
46         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
47         function pointer.
48         * lib/math.in.h (logl): Undefine if it does not exist as a function.
49
50 2012-02-24  Bruno Haible  <bruno@clisp.org>
51
52         expl: Provide function definition on MSVC.
53         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
54         function pointer.
55         * lib/math.in.h (expl): Undefine if it does not exist as a function.
56
57 2012-02-24  Bruno Haible  <bruno@clisp.org>
58
59         sqrtl: Provide function definition on MSVC.
60         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
61         a function pointer.
62         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
63
64 2012-02-24  Bruno Haible  <bruno@clisp.org>
65
66         ceill: Provide function definition on MSVC.
67         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
68         used as a function pointer.
69         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
70
71 2012-02-24  Bruno Haible  <bruno@clisp.org>
72
73         floorl: Provide function definition on MSVC.
74         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
75         used as a function pointer.
76         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
77
78 2012-02-24  Bruno Haible  <bruno@clisp.org>
79
80         ceilf: Provide function definition on MSVC.
81         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
82         used as a function pointer.
83         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
84
85 2012-02-24  Bruno Haible  <bruno@clisp.org>
86
87         floorf: Provide function definition on MSVC.
88         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
89         used as a function pointer.
90         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
91
92 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
93
94         stdnoreturn: new module
95         This implements a replacement for C11's <stdnoreturn.h>.
96         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
97         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
98         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
99         * tests/test-stdnoreturn.c: New files.
100
101 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
102
103         regex: fix false multibyte matches in some regular expressions
104         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
105         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
106         * lib/regex_internal.c (re_string_skip_chars):
107         Fix miscomputation of remain_len that may cause incomplete
108         multi-byte character and false match.
109
110 2012-02-24  Jim Meyering  <meyering@redhat.com>
111
112         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
113         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
114         uses with "==" *before* the call, e.g., 0 == strcmp (...)
115         Remove now-unnecessary str''cmp obfuscation.
116         Suggested by Akim Demaille.
117
118 2012-02-24  Bruno Haible  <bruno@clisp.org>
119
120         streq: Rename macro.
121         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
122         * NEWS: Mention the change.
123         * lib/mbrtowc.c (mbrtowc): Update.
124         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
125         * lib/wcwidth.c (wcwidth): Update.
126         Suggested by Akim Demaille and Jim Meyering.
127
128 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
129
130         regex: fix typo in definition of MIN
131         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
132         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
133
134 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
135             Bruno Haible  <bruno@clisp.org>
136
137         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
138         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
139         entries into a stack-allocated buffer directly.
140         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
141
142 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
143             Bruno Haible  <bruno@clisp.org>
144
145         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
146
147          - There were several instances of this pattern:
148
149              for (;;) {
150                n = acl (f, GETACLCNT, 0, NULL);
151                [ allocate an array A of size N ]
152                if (acl (f, GETACL, n, a) == n)
153                  break;
154              }
155
156            This loop might never terminate if some other process is constantly
157            manipulating the file's ACL.  The loop should be rewritten to
158            terminate.
159
160          - The acl (... GETACLNT ...) call is merely an optimization; its value
161            is merely a hint as to how big to make the array.  A better
162            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
163            and just guess a reasonably-big size, growing the size and trying
164            again if it's not large enough.  This guarantees termination, and
165            saves a system call.
166
167         * lib/acl-internal.h: Include <limits.h>.
168         (MIN, SIZE_MAX): New macros.
169         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
170         a stack-allocated buffer, and use malloc if it does not fit. Don't
171         use GETACLCNT.
172         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
173
174 2012-02-19  Bruno Haible  <bruno@clisp.org>
175
176         acl: Fix endless loop on Solaris with vxfs.
177         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
178         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
179         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
180         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
181         * tests/test-sameacls.c (main)[Solaris]: Likewise.
182         Reported by Bill Jones in
183         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
184
185 2012-02-19  Bruno Haible  <bruno@clisp.org>
186
187         acl: Fix copy-acl test failure on Solaris 11 2011-11.
188         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
189         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
190         that this function returns 0 in some more cases.
191
192 2012-02-19  Bruno Haible  <bruno@clisp.org>
193
194         acl: Update doc references.
195         * doc/acl-resources.txt: Update links to Solaris documentation.
196
197 2012-02-19  Bruno Haible  <bruno@clisp.org>
198
199         Fix test failure in many locales on Solaris 11.
200         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
201         'tr' arguments.
202         * tests/test-pipe-filter-ii1.c (main): Likewise.
203         * build-aux/bootstrap (check_versions): Run 'tr' command with range
204         expressions in the C locale.
205         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
206         * m4/host-os.m4 (gl_HOST_OS): Likewise.
207
208 2012-02-19  Bruno Haible  <bruno@clisp.org>
209
210         gnulib-tool: Improve usage message.
211         * gnulib-tool (func_usage): Move doc of --help and --version to the
212         section "Operation modes".
213
214 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
215
216         README-release: make it easier to execute commands
217         * top/README-release: break commands out on to separate lines.
218
219 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
220
221         GNUmakefile: simplify detection of unconfigured trees
222         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
223         whether the tree make is being run from is already configured or
224         not.  Related simplifications.
225
226 2012-02-13  Simon Josefsson  <simon@josefsson.org>
227
228         * gnulib-tool (func_usage): Document --help and --version.
229
230 2012-02-11  Jim Meyering  <meyering@redhat.com>
231
232         bootstrap: don't exit 0 upon gnulib-tool failure
233         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
234         its exit status, not 0.
235
236 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
237
238         README-release: various improvements
239         * top/README-release: Give a command to push changes for the
240         release.  Add "distcheck" to list of other pre-release checks.
241         Fix instance of "make stable" which should be "make TYPE".
242
243 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
244
245         maint: replace FSF snail-mail addresses with URLs
246         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
247         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
248         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
249         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
250         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
251         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
252         * lib/check-version.c, lib/check-version.h, lib/config.charset:
253         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
254         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
255         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
256         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
257         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
258         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
259         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
260         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
261         * lib/glthread/thread.c, lib/glthread/thread.h:
262         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
263         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
264         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
265         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
266         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
267         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
268         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
269         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
270         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
271         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
272         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
273         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
274         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
275         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
276         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
277         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
278         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
279         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
280         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
281         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
282         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
283         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
284         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
285         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
286         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
287         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
288         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
289         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
290         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
291         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
292         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
293         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
294         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
295         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
296         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
297         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
298         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
299         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
300         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
301         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
302         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
303         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
304         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
305         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
306         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
307         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
308         * tests/test-poll.c, tests/test-quotearg-simple.c:
309         * tests/test-quotearg.c, tests/test-quotearg.h:
310         * tests/test-round-ieee.c, tests/test-round1.c:
311         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
312         * tests/test-roundl-ieee.c, tests/test-roundl.c:
313         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
314         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
315         * tests/test-strerror.c, tests/test-strerror_r.c:
316         * tests/test-strsignal.c, tests/test-strverscmp.c:
317         * tests/test-xmemdup0.c:
318         Replace FSF snail mail addresses with URLs, as per GNU coding
319         standards.  See glibc bug
320         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
321
322 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
323
324         README-release: capitalize a word and split a line
325         * top/README-release: Fix punctuation and spacing.
326
327 2012-02-08  Akim Demaille  <demaille@gostai.com>
328
329         fatal-signal: use C prototypes (with explicit void).
330         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
331         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
332
333 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
334
335         regex: spelling fix
336         * lib/regexec.c: spelling fix
337
338         regex: rely on stdint.h for SIZE_MAX
339         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
340
341 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
342
343         regex: merge glibc changes
344
345         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
346         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
347         (init_word_char): Work even if bitset words are not exactly 32 or
348         64 bits wide.  Don't assume there are no padding bits.
349         * lib/regex.c [_LIBC]: Do not include <config.h>.
350         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
351         and -Wtype-limits.
352         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
353         needless disagreement with glibc.  All uses changed.  Define it to
354         1 only if _GNU_SOURCE, to match glibc.
355         (_REG_RM_NAME): Remove; no longer needed, since the names in
356         question are now all protected by __USE_GNU.
357         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
358         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
359         * lib/regex_internal.h (MIN): New macro.
360
361         2012-01-03 Ulrich Drepper <drepper@gmail.com>
362         * lib/regcomp.c (init_word_char): Optimize regex a bit.
363
364         2011-12-30 Jakub Jelinek <jakub@redhat.com>
365         * lib/regex_internal.c (re_string_fetch_byte_case):
366         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
367         is miscompiled, and it turns out it is because of an incorrect
368         attribute on re_string_fetch_byte_case.  Unlike
369         re_string_peek_byte_case, this one is really not pure, it modifies
370         memory (increments pstr->cur_idx), and with the pure attribute GCC
371         assumed it doesn't and it cached the presumed value of
372         regexp->cur_idx in a variable across the
373          for (;; ++i)
374            {
375              if (i >= BRACKET_NAME_BUF_SIZE)
376                return REG_EBRACK;
377              if (token->type == OP_OPEN_CHAR_CLASS)
378                ch = re_string_fetch_byte_case (regexp);
379              else
380                ch = re_string_fetch_byte (regexp);
381              if (re_string_eoi(regexp))
382                return REG_EBRACK;
383              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
384                break;
385              elem->opr.name[i] = ch;
386            }
387
388         2011-11-29 Andreas Schwab <schwab@redhat.com>
389         * lib/regcomp.c (build_equiv_class):
390         Fix access after end of search string in regex matcher.
391
392         2011-11-12 Ulrich Drepper <drepper@redhat.com>
393         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
394
395         2011-10-12 Ulrich Drepper <drepper@redhat.com>
396         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
397
398         2011-10-11 Ulrich Drepper <drepper@redhat.com>
399         * lib/regcomp.c (parse_branch, parse_sub_exp):
400         More regex memory leak fixes and tests.
401         (parse_sub_exp, parse_bracket_exp):
402         Fix memory leak for some invalid regular expressions.
403
404         2011-05-28 Ulrich Drepper <drepper@gmail.com>
405         * lib/regex_internal.c, lib/regexec.c:
406         Fix unnecessary overallocation due to incomplete character.  When
407         incomplete characters are found at the end of a string the code
408         ran amok and allocated lots of memory.  Stricter limits are now in
409         place.
410
411         2011-05-20 Reuben Thomas <rrt@sc3d.org>
412         * lib/regex.h: Update documentation.
413
414         2011-05-16 Aharon Robbins <arnold@skeeve.com>
415         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
416
417         2010-05-05 Andreas Schwab <schwab@redhat.com>
418         * lib/regexec.c (find_collation_sequence_value):
419         Fix lookup of collation sequence value during regexp matching.
420
421         2010-01-22 Ulrich Drepper <drepper@redhat.com>
422         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
423
424         2008-01-16 Ulrich Drepper <drepper@redhat.com>
425         * lib/regex.h: Cleanup namespace.
426
427         2007-11-26 Ulrich Drepper <drepper@redhat.com>
428         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
429
430         2007-08-26 Ulrich Drepper <drepper@redhat.com>
431         * lib/regex_internal.h: Prevent some declarations and definitions
432         to be seen when used in tests.
433
434         2005-05-06 Ulrich Drepper <drepper@redhat.com>
435         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
436         __libc_lock_* macros if not _LIBC.
437         (struct re_dfa_t): Add lock.
438
439 2012-02-07  Eric Blake  <eblake@redhat.com>
440
441         maint.mk: also prohibit lower-case @var@
442         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
443         lower case, like @top_srcdir@.
444
445 2012-02-04  Eric Blake  <eblake@redhat.com>
446
447         canonicalize: avoid uninitialized memory use
448         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
449         random '/' left in dest.
450         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
451
452 2012-02-04  Bruno Haible  <bruno@clisp.org>
453
454         isatty: Fix test failure of ptsname_r on native Windows.
455         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
456         and don't set errno.
457         (isatty): Test first whether fd is valid. Set errno when returning 0.
458
459 2012-02-04  Bruno Haible  <bruno@clisp.org>
460
461         spawn-pipe tests: Fix a NULL program name in a diagnostic.
462         * tests/test-spawn-pipe-main.c: Include progname.h.
463         (main): Invoke set_program_name.
464         * modules/spawn-pipe-tests (Depends-on): Add progname.
465
466         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
467         * tests/test-nonblocking-socket-main.c: Include progname.h.
468         (main): Invoke set_program_name.
469         * modules/nonblocking-socket-tests (Depends-on): Add progname.
470
471         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
472         * tests/test-nonblocking-pipe-main.c: Include progname.h.
473         (main): Invoke set_program_name.
474         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
475
476 2012-02-04  Eric Blake  <eblake@redhat.com>
477
478         canonicalize-lgpl: fix // handling
479         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
480
481         canonicalize: fix // handling
482         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
483         /// to //, since only // is special.
484
485 2012-02-04  Bruno Haible  <bruno@clisp.org>
486
487         ioctl: Fix test failure on native Windows.
488         * lib/ioctl.c: Include msvc-nothrow.h.
489         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
490
491 2012-02-04  Bruno Haible  <bruno@clisp.org>
492
493         fsync: Avoid test failure on native Windows.
494         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
495         read-only.
496
497 2012-02-04  Bruno Haible  <bruno@clisp.org>
498
499         sys_select: Avoid syntax error on OpenBSD 5.0.
500         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
501         currently being included, just include the system's <sys/select.h>.
502
503 2012-02-04  Bruno Haible  <bruno@clisp.org>
504
505         sys_select: Avoid syntax error on OpenBSD 5.0.
506         * lib/sys_select.in.h: Include <signal.h> only after the include_next
507         <sys/select.h>, not before.
508         Reported by Jiri B <jirib@devio.us>.
509
510 2012-02-04  Bruno Haible  <bruno@clisp.org>
511
512         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
513         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
514         global variables.
515         * tests/test-get-rusage-data.c (main): Likewise.
516         Reported by Jim Meyering.
517
518 2012-02-04  Bruno Haible  <bruno@clisp.org>
519
520         stdioext: Fix last commit.
521         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
522
523 2012-02-03  Bruno Haible  <bruno@clisp.org>
524
525         stdioext: Add tentative support for Plan9.
526         * lib/stdio-impl.h: Include <errno.h>.
527         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
528         * lib/freadable.c (freadable): Likewise.
529         * lib/fwritable.c (fwritable): Likewise.
530         * lib/fbufmode.c (fbufmode): Likewise.
531         * lib/freading.c (freading): Likewise.
532         * lib/fwriting.c (fwriting): Likewise.
533         * lib/freadptr.c (freadptr): Likewise.
534         * lib/freadseek.c (freadptrinc): Likewise.
535         * lib/freadahead.c (freadahead): Likewise.
536         * lib/fpurge.c (fpurge): Likewise.
537         * lib/fseeko.c (rpl_fseeko): Likewise.
538         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
539         Reported by Jens Staal <staal1978@gmail.com>.
540
541 2012-02-02  Jim Meyering  <meyering@redhat.com>
542
543         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
544         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
545         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
546         not even to try to add the attribute.  Instead, add a pragma to suppress
547         the suggestion/warning.
548
549 2012-01-31  Karl Berry  <karl@gnu.org>
550
551         setstate doc: typo.
552         * doc/posix-functions/setstate.texi (setstate): { not (.
553
554 2012-01-31  Bruno Haible  <bruno@clisp.org>
555
556         popen: Make more robust on Windows.
557         * lib/popen.c: On native Windows, use the _popen based code even if
558         HAVE_POPEN is set.
559         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
560         environment variable on native Windows.
561
562 2012-01-30  Bruno Haible  <bruno@clisp.org>
563
564         pclose: Fix typo.
565         * lib/stdio.in.h (pclose): Fix typo in warning message.
566
567 2012-01-30  Bruno Haible  <bruno@clisp.org>
568
569         doc about getlogin_r, setstate.
570         * doc/posix-functions/getlogin_r.texi: List the incompatible
571         declaration problem under "not fixed by gnulib".
572         * doc/posix-functions/setstate.texi: Mention incompatible declaration
573         problem on Solaris 11 and other platforms.
574
575 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
576             Bruno Haible  <bruno@clisp.org>
577
578         poll tests: Make test more robust.
579         * tests/test-poll.c: Include macros.h.
580         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
581         return value of various I/O operations.
582         * modules/poll-tests (Files): Add tests/macros.h.
583
584 2012-01-30  Bruno Haible  <bruno@clisp.org>
585
586         sys_stat: Fix support for mingw64 and MSVC.
587         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
588         header files already do it.
589         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
590         stat itself.
591         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
592
593 2012-01-30  Bruno Haible  <bruno@clisp.org>
594
595         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
597         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
598
599 2012-01-29  Bruno Haible  <bruno@clisp.org>
600
601         quotearg: Fix test failure on MacOS X 10.5.
602         * tests/test-quotearg-simple.c: Include localcharset.h.
603         (main): If the locale encoding is not ASCII, bypass the tests of
604         locale_quoting_style and clocale_quoting_style.
605         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
606
607 2012-01-29  Jim Meyering  <meyering@redhat.com>
608
609         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
610         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
611         detect uses of canonicalize_file_name.
612
613 2012-01-28  Bruno Haible  <bruno@clisp.org>
614
615         test-framework-sh: Fix test failure with AIX 7.1 diff.
616         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
617         in column 1, like 'diff -c' does.
618         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
619         whether 'diff -u' is used. Instead, test whether the output contains
620         some '@' character.
621
622 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
623
624         strtoimax: eliminate need for stdint.h, inttypes.h checks
625         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
626         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
627         the prerequisites for a recently-introduced strtoimax test.
628         I guess this might cause strtoimax to be replaced when not
629         strictly necessary on older hosts, but this shouldn't introduce
630         any bugs and it should make Emacs 'configure' faster on typical
631         modern hosts.  Problem discovered when importing the latest gnulib
632         to an Emacs test version.
633         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
634
635 2012-01-28  Bruno Haible  <bruno@clisp.org>
636
637         sys_time: Override 'struct timeval' on some native Windows platforms.
638         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
639         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
640         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
641         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
642         needs to be overridden.
643         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
644         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
645         * tests/test-sys_select.c: Check that the tv_sec member has the same
646         size as a 'time_t'.
647         * tests/test-sys_time.c: Likewise.
648         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
649         is set, set also REPLACE_GETTIMEOFDAY.
650         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
651         convert the resulting 'struct timeval' before returning.
652         * lib/select.c: Include <sys/time.h>.
653         (select, timeval): Undefine at the right place.
654         * modules/select (Depends-on): Add sys_time.
655         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
656         some Windows platforms.
657         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
658
659 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
660
661         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
662         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
663         an integer.
664         * lib/fcntl.c (dupfd): Likewise.
665         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
666
667 2012-01-28  Bruno Haible  <bruno@clisp.org>
668
669         fcntl: Avoid compilation error on native Windows.
670         * modules/fcntl (Depends-on): Add 'close'.
671
672 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
673
674         select, poll, isatty: Avoid warnings on x86_64 mingw64.
675         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
676         pointer to an integer.
677         * lib/poll.c (IsConsoleHandle): Likewise.
678         * lib/isatty.c (IsConsoleHandle): Likewise.
679
680 2012-01-28  Jim Meyering  <meyering@redhat.com>
681
682         doc: clarify README-release
683         * top/README-release: Clarify: you should make a point to have
684         the latest stable versions of build tools in your PATH, and the
685         reference to buildreq is solely for its list of tool names, not
686         for its minimal-functional version numbers.
687         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
688
689         maint.mk: use more readable (yet functionally equivalent) quoting
690         It is common to quote a single quote in a single quoted string like
691         this:  '...'\''...'.  Unless you know the idiom, that looks like
692         gibberish, so prefer to double-quote the string when possible.
693         Then you can use a more readable, lone single quote: "...'..."
694         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
695         "don't" is more readable than the equivalent 'don'\''t'.
696         (sc_cast_of_x_alloc_return_value): Likewise.
697         (sc_cast_of_alloca_return_value): Likewise.
698         (sc_makefile_path_separator_check): Similar: use ":" in '...',
699         rather than '\'':'\''.
700
701 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
702
703         stdalign: relax _Alignof and tighten _Alignas test
704         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
705         as it was too strict: alignof must divide offsetof, but it need
706         not equal offsetof.  Inspired by Joseph S. Myers's comment
707         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
708         Conversely, tighten the _Alignas test a bit, as the resulting
709         alignment must be exactly 8.
710
711 2012-01-27  Bruno Haible  <bruno@clisp.org>
712
713         stdalign: Document the last change.
714         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
715
716 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
717
718         stdalign: check that alignof and offsetof are consistent
719         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
720         Problem reported for gnulib by Richard W.M. Jones in
721         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
722
723 2012-01-27  Jim Meyering  <meyering@redhat.com>
724
725         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
726         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
727         convert a sequence with gaps to the minimal containing range.
728         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
729         * tests/test-update-copyright.sh: Test for this.
730         The FSF confirmed it is ok to do this, assuming there is at
731         least one significant change per year in the affected range:
732         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
733
734 2012-01-26  Bruno Haible  <bruno@clisp.org>
735
736         pipe2: refine doc about thread-safety
737         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
738         multithread-safety problem.
739         * doc/glibc-functions/accept4.texi: Likewise.
740
741 2012-01-26  Bruno Haible  <bruno@clisp.org>
742
743         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
744         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
745         In the test program, include <fcntl.h>, for O_RDONLY.
746
747 2012-01-26  Eric Blake  <eblake@redhat.com>
748
749         pipe2: document lack of thread-safety in replacement
750         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
751         issue in replacement.
752         * doc/glibc-functions/accept4.texi (accept4): Likewise.
753         Based on a report by Eric Wong.
754
755 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
756             Bruno Haible  <bruno@clisp.org>
757
758         malloca: Avoid warnings on x86_64 mingw64.
759         * lib/malloca.c: Include <stdint.h>.
760         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
761         * modules/malloca (Depends-on): Add stdint.
762         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
763
764 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
765
766         obstack: remove __STDC__ conditionals
767         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
768         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
769         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
770         m4/include_next.m4 as the only gnulib-maintained places that still
771         refer to __STDC__.
772
773 2012-01-24  Bruno Haible  <bruno@clisp.org>
774
775         havelib: Modern quoting.
776         * build-aux/config.rpath: Quote 'like this', not `like this', as per
777         the recent change to the GNU coding standards.
778
779 2012-01-24  Bruno Haible  <bruno@clisp.org>
780
781         stdint: Improve support for Android.
782         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
783         Reported by Simon Josefsson <simon@josefsson.org>.
784
785 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
786
787         doc: omit trailing empty lines from INSTALL etc.
788         * doc/Makefile (INSTALL): Omit trailing empty lines.
789         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
790         omit trailing empty lines.  This simplifies the build procedure.
791
792 2012-01-23  Jim Meyering  <meyering@redhat.com>
793
794         tests: avoid spurious warnings about gl_sockets_startup
795         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
796         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
797         reporting a "statement with no effect".
798         * tests/test-accept.c (main): Mark as "(void)".
799         * tests/test-accept4.c (main): Likewise.
800         * tests/test-bind.c (main): Likewise.
801         * tests/test-connect.c (main): Likewise.
802         * tests/test-getpeername.c (main): Likewise.
803         * tests/test-getsockname.c (main): Likewise.
804         * tests/test-getsockopt.c (main): Likewise.
805         * tests/test-listen.c (main): Likewise.
806         * tests/test-recv.c (main): Likewise.
807         * tests/test-recvfrom.c (main): Likewise.
808         * tests/test-send.c (main): Likewise.
809         * tests/test-sendto.c (main): Likewise.
810         * tests/test-setsockopt.c (main): Likewise.
811         * tests/test-shutdown.c (main): Likewise.
812
813 2012-01-21  Bruno Haible  <bruno@clisp.org>
814
815         locale-fr.m4: Fix for Android.
816         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
817         failure of the test program on Bionic libc.
818
819 2012-01-21  Jim Meyering  <meyering@redhat.com>
820
821         bootstrap: fail when bootstrap_post_import_hook fails
822         Otherwise, it's far too easy to miss diagnostics emitted
823         between gnulib-tool's output and that of running configure.
824         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
825
826 2012-01-17  Jim Meyering  <meyering@redhat.com>
827
828         maint: enable sc_trailing_blank
829         * build-aux/pmccabe.css: Remove trailing blanks.
830         * doc/acl-cygwin.txt: Likewise.
831         * doc/gnu-oids.texi: Likewise
832         * cfg.mk: Enable sc_trailing_blank.
833         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
834
835 2012-01-17  Jim Meyering  <meyering@redhat.com>
836
837         maint: enable sc_prohibit_openat_without_use
838         * cfg.mk: Enable sc_prohibit_openat_without_use.
839         Exempt lib/selinux-at.c.
840
841 2012-01-17  Jim Meyering  <meyering@redhat.com>
842
843         maint: enable sc_prohibit_cloexec_without_use
844         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
845         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
846
847 2012-01-17  Jim Meyering  <meyering@redhat.com>
848
849         maint: enable sc_prohibit_intprops_without_use
850         * cfg.mk: Enable sc_prohibit_intprops_without_use
851         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
852
853 2012-01-17  Jim Meyering  <meyering@redhat.com>
854
855         maint: enable sc_prohibit_hash_pjw_without_use
856         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
857         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
858         to match any use of \<hash_pjw\>, i.e., not necessarily with a
859         following " (".
860
861 2012-01-17  Jim Meyering  <meyering@redhat.com>
862
863         maint: enable double-word-prohibiting rule
864         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
865         Exempt three files.
866
867 2012-01-17  Jim Meyering  <meyering@redhat.com>
868
869         maint: remove empty lines at EOF, but excluding modules/*
870         Apply syntax rules at home as well as abroad.  Most changes
871         were induced by running this:
872           make srcdir=. _build-aux=build-aux -f top/maint.mk \
873             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
874             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
875         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
876         Exempt modules/* and two binary files.
877         Also exempt doc/INSTALL*, per request from Bruno Haible.
878         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
879         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
880         * doc/Copyright/request-assign.future: Likewise.
881         * doc/Copyright/request-disclaim.changes: Likewise.
882         * doc/INSTALL: Likewise.
883         * doc/INSTALL.ISO: Likewise.
884         * doc/INSTALL.UTF-8: Likewise.
885         * doc/acl-cygwin.txt: Likewise.
886         * doc/acl-resources.txt: Likewise.
887         * doc/fdl-1.2.texi: Likewise.
888         * doc/fdl-1.3.texi: Likewise.
889         * doc/fdl.texi: Likewise.
890         * lib/argp-pin.c: Likewise.
891         * lib/round.c: Likewise.
892         * lib/unicase/u16-totitle.c: Likewise.
893         * lib/unictype/block_test.c: Likewise.
894         * lib/uninorm/canonical-decomposition.c: Likewise.
895         * m4/README: Likewise.
896         * m4/relocatable-lib.m4: Likewise.
897         * tests/test-isnand-nolibm.c: Likewise.
898         * tests/test-isnand.c: Likewise.
899         * tests/uninorm/NormalizationTest.txt: Likewise.
900
901 2012-01-17  Jim Meyering  <meyering@redhat.com>
902
903         maint: add framework to run syntax-check rules against gnulib sources
904         * cfg.mk: New file, to disable all currently-failing tests.
905         We'll enable them one by one, as they are made to pass.
906         * Makefile (sc_maint): New rule.
907
908 2012-01-21  Bruno Haible  <bruno@clisp.org>
909
910         stdint: Add support for Android.
911         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
912         include the system's <stdint.h>.
913         Reported by Simon Josefsson <simon@josefsson.org>.
914
915 2012-01-19  Jim Meyering  <meyering@redhat.com>
916
917         bootstrap: add bootstrap_post_import_hook
918         Bison does still need something like the gnulib_mk_hook whose
919         invocation I had to remove along with slurp in commit 767ccd40.
920         Technically, we could get along without it, but doing so would
921         have required living with a warning and a mandatory post-bootstrap
922         automake rerun.
923         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
924         (bootstrap_post_import_hook): New function.
925         Invoke it after gnulib-tool --import and before autoreconf.
926
927 2012-01-18  Jim Meyering  <meyering@redhat.com>
928
929         gitlog-to-changelog: don't use "no_"-prefixed variable name
930         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
931         to enable both --cluster and --no-cluster.  Change variable name,
932         s/\$no_cluster/$cluster/, and reverse usage to match.
933
934         gitlog-to-changelog: use "||", not "or" in expressions
935         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
936         expressions.
937
938 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
939
940         gitlog-to-changelog: new option --no-cluster
941         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
942         clustering of adjacent commit messages.
943
944 2012-01-17  Jim Meyering  <meyering@redhat.com>
945
946         maint: spell file systems with two words, not one
947         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
948         two words, not one.
949
950 2012-01-16  Jim Meyering  <meyering@redhat.com>
951
952         bootstrap: add a FIXME comment to ensure we eventually remove the hack
953         * build-aux/bootstrap (gnulib_tool_options): Add comment.
954
955 2012-01-16  Eric Blake  <eblake@redhat.com>
956
957         bootstrap: cater to autoconf 2.59
958         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
959         is not available.
960
961         bootstrap: properly check for libtool
962         * build-aux/bootstrap (libtoolize): Also run libtool when older
963         usage is detected.
964
965 2012-01-15  Bruno Haible  <bruno@clisp.org>
966
967         Improve support for MSVC 9.
968         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
969         clashes on MSVC.
970         * lib/fcntl.in.h: Likewise.
971         * lib/stdlib.in.h: Likewise.
972         * lib/sys_stat.in.h: Likewise.
973
974 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
975
976         gnupload: we hold the master copy of this script now
977         For motivation and more information, see:
978         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
979         * build-aux/gnupload: Make it clear in the heading comments that the
980         master copy of this file is maintained by gnulib.  Since we are at
981         it, bump its copyright year and ...
982         ($scriptversion): ... the date in its version.
983         ($usage): Patches and bug reports should be sent to the gnulib list,
984         not the automake one.
985         * config/srclist.txt: Don't try to sync 'gnupload' from automake
986         anymore.
987
988 2012-01-15  Bruno Haible  <bruno@clisp.org>
989
990         Fix module 'random'.
991         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
992         initstate, setstate are declared.
993
994 2012-01-14  Bruno Haible  <bruno@clisp.org>
995
996         Tests for module 'random'.
997         * modules/random-tests: New file.
998         * tests/test-random.c: New file, based on tests/test-random_r.c.
999
1000         New module 'random'.
1001         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1002         declarations.
1003         * lib/random.c: New file, based on glibc/stdlib/random.c.
1004         * m4/random.m4: New file.
1005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1006         HAVE_RANDOM.
1007         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1008         * modules/random: New file.
1009         * config/srclist.txt: Add an entry for random.c.
1010         * doc/posix-functions/random.texi: Mention the 'random' module.
1011         * doc/posix-functions/initstate.texi: Likewise.
1012         * doc/posix-functions/setstate.texi: Likewise.
1013         * doc/posix-functions/srandom.texi: Likewise.
1014
1015 2012-01-12  Bruno Haible  <bruno@clisp.org>
1016
1017         random_r: Use common idioms.
1018         * lib/random_r.c: Include <stdlib.h> first.
1019
1020         random_r: Override incompatible API on AIX, OSF/1.
1021         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1022         Override the system function if REPLACE_RANDOM_R is 1.
1023         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1024         and OSF/1, set REPLACE_RANDOM_R.
1025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1026         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1027         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1028         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1029         * doc/glibc-functions/random_r.texi: Likewise.
1030         * doc/glibc-functions/setstate_r.texi: Likewise.
1031
1032         random_r: Support for MSVC 9.
1033         * lib/random_r.c: Include stdint.h, not inttypes.h.
1034
1035 2012-01-12  Eric Blake  <eblake@redhat.com>
1036
1037         inet_ntop: guard extra work by IF_LINT
1038         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1039         better code generation when not checking for warnings.
1040         Suggested by Paul Eggert and Jim Meyering.
1041
1042         strptime: fix regression on mingw
1043         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1044         Fix regression.  Reported by Bruno Haible.
1045
1046 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1047             Bruno Haible  <bruno@clisp.org>
1048
1049         copy-file: add error-code-returning variant.
1050         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1051         (qcopy_file_preserving): New declaration.
1052         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1053         copy_file_preserving. Change return type to 'int'. Don't emit an error
1054         message here.
1055         (copy_file_preserving): New function.
1056         * tests/test-copy-file.c: Include <stdlib.h>.
1057         (main): Test qcopy_file_preserving if the environment variable
1058         NO_STDERR_OUTPUT is set.
1059         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1060         with NO_STDERR_OUTPUT
1061         * tests/test-copy-file-2.sh: Likewise.
1062
1063 2012-01-10  Bruno Haible  <bruno@clisp.org>
1064
1065         copy-file: Use 'quote' module consistently.
1066         * lib/copy-file.c (copy_file_preserving): Use quote().
1067
1068         copy-file: Refactor.
1069         * lib/copy-file.c: Include quote.h.
1070         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1071         message here.
1072         * modules/copy-file (Depends-on): Add quote.
1073
1074         acl: Export qcopy_acl.
1075         * lib/acl.h (qcopy_acl): New declaration.
1076         * lib/copy-acl.c (qcopy_acl): Make non-static.
1077
1078         acl: Rename a local variable.
1079         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1080
1081         acl: Align return values of copy_acl and qcopy_acl.
1082         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1083         maybe < -1.
1084
1085 2012-01-11  Eric Blake  <eblake@redhat.com>
1086
1087         strptime: silence gcc warnings
1088         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1089         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1090         Reported by Daniel P. Berrange.
1091
1092         inet_ntop: silence gcc warning
1093         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1094         Reported by Daniel P. Berrange.
1095
1096 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1097
1098         getloadavg test: skip the test on GNU/Linux without /proc mounted
1099         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1100         file.  When /proc is not mounted, it always fails with ENOENT.
1101         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1102         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1103
1104 2012-01-10  Bruno Haible  <bruno@clisp.org>
1105
1106         regex: Avoid link error on MSVC 9.
1107         * modules/regex (Depends-on): Add wctype.
1108
1109 2012-01-10  Bruno Haible  <bruno@clisp.org>
1110
1111         doc: Mention --with-tests option.
1112         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1113         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1114         --with-tests.
1115         Reported by Reuben Thomas.
1116
1117 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1118
1119         users.txt: order package names lexicographically.
1120         * users.txt: Order package names lexicographically.
1121
1122 2012-01-10  Jim Meyering  <meyering@redhat.com>
1123
1124         maint.mk: fix description in comment
1125         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1126
1127         ignore-value: remove deprecated ignore_ptr function
1128         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1129         * NEWS: Note this.
1130
1131 2012-01-09  Jim Meyering  <meyering@redhat.com>
1132
1133         test-init.sh: avoid a subshell
1134         * tests/test-init.sh: Remove protective subshell.
1135         Suggested by Bernhard Voelker.  While a subshell is normally
1136         required to protect against older shells (Solaris, FreeBSD) that
1137         warn about a missing program before performing redirection, the
1138         shell-selection tests performed by init.sh probably exclude any
1139         offending shell.
1140
1141 2012-01-08  Bruno Haible  <bruno@clisp.org>
1142
1143         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1144         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1145         variable.
1146
1147 2012-01-08  Bruno Haible  <bruno@clisp.org>
1148
1149         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1150         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1151         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1152         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1153         macro.
1154         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1155         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1156         * lib/spawn_faction_addopen.c: Add workaround implementation if
1157         HAVE_WORKING_POSIX_SPAWN.
1158         * modules/spawn (Makefile): Substitute
1159         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1160         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1161         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1162         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1163         (Depends-on): Update conditions.
1164         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1165         the Solaris 11 bug.
1166
1167 2012-01-08  Bruno Haible  <bruno@clisp.org>
1168
1169         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1170         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1171         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1172         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1173         macro.
1174         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1175         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1176         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1177         HAVE_WORKING_POSIX_SPAWN.
1178         * modules/spawn (Makefile): Substitute
1179         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1180         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1181         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1182         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1183         (Depends-on): Update conditions.
1184         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1185         the Solaris 11 bug.
1186
1187 2012-01-08  Bruno Haible  <bruno@clisp.org>
1188
1189         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1190         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1191         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1192         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1193         HAVE_WORKING_POSIX_SPAWN.
1194         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1195         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1196         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1197         * lib/spawn_faction_addclose.c: Add workaround implementation if
1198         HAVE_WORKING_POSIX_SPAWN.
1199         * modules/spawn (Makefile): Substitute
1200         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1201         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1202         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1203         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1204         (Depends-on): Update conditions.
1205         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1206         the Solaris 11 bug.
1207
1208 2012-01-08  Bruno Haible  <bruno@clisp.org>
1209
1210         doc: Update for Solaris 11 2011-11.
1211         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1212         * m4/printf.m4: Update comments.
1213
1214 2012-01-08  Bruno Haible  <bruno@clisp.org>
1215
1216         mktime: Avoid compilation error on Solaris 11.
1217         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1218
1219 2012-01-08  Bruno Haible  <bruno@clisp.org>
1220
1221         doc: Small fix.
1222         * doc/posix-headers/nl_types.texi: Correct platforms list.
1223
1224 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1225
1226         Add lgpl-3.0 module.
1227         * MODULES.html.sh (Support for building documentation): Add
1228         lgpl-3.0.
1229         * modules/lgpl-3.0: New file.
1230
1231 2012-01-08  Jim Meyering  <meyering@redhat.com>
1232
1233         select.c: indent with spaces, not TABs
1234         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1235
1236 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1237
1238         quotearg: do not use grave accent for left quote
1239         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1240         locale_quoting_style.
1241         (quotearg_buffer_restyled): Fix example.
1242         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1243
1244 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1245
1246         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1247         Most programs do not have translation catalogs for English and much
1248         less separate catalogs for British and American English.  Drop the
1249         suggestion to translators about these two, and provide it
1250         automatically for Unicode locales.  Like most programs, even those
1251         using American English, we use single quotation marks.  This conflicts
1252         with the American typographic convention, but works better when you
1253         cite the entire error message within double quotes.  It also tries not
1254         to clash with established practice and with what non-gnulib programs
1255         will usually do.
1256         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1257         using an UTF-8 or GB-18030 locale.  The list of other locales with
1258         quotes was provided by Bruno Haible.
1259         (quotearg_buffer_restyled): Adjust instructions to translators.
1260         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1261         text, since this would be wrong when using Unicode.
1262         * modules/quotearg: Depend on c-strcaseeq.
1263
1264 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1265
1266         quotearg: fix Wikipedia link
1267         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1268
1269 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1270
1271         Fix for mingw with MSVC9.
1272         * m4/ld-version-script.m4: Check that compiler rejects version
1273         scripts with syntax errors.  Reported by Bruno Haible
1274         <bruno@clisp.org>.
1275
1276 2012-01-06  Bruno Haible  <bruno@clisp.org>
1277
1278         Talk about "native Windows API", not "Woe32".
1279         * lib/accept4.c: Update comments to mention native Windows.
1280         * lib/execute.c: Likewise.
1281         * lib/fatal-signal.c: Likewise.
1282         * lib/localcharset.c: Likewise.
1283         * lib/nanosleep.c: Likewise.
1284         * lib/nl_langinfo.c: Likewise.
1285         * lib/pclose.c: Likewise.
1286         * lib/pipe-filter-gi.c: Likewise.
1287         * lib/pipe-filter-ii.c: Likewise.
1288         * lib/pipe.c: Likewise.
1289         * lib/pipe2.c: Likewise.
1290         * lib/popen.c: Likewise.
1291         * lib/progreloc.c: Likewise.
1292         * lib/relocatable.c: Likewise.
1293         * lib/sigaction.c: Likewise.
1294         * lib/sigprocmask.c: Likewise.
1295         * lib/spawn-pipe.h: Likewise.
1296         * lib/spawn-pipe.c: Likewise.
1297         * lib/spawni.c: Likewise.
1298         * lib/stat-time.h: Likewise.
1299         * lib/w32spawn.h: Likewise.
1300         * tests/test-isatty.c: Likewise.
1301         * lib/config.charset: More comments.
1302         * doc/gnulib-intro.texi: Mention native Windows.
1303         * doc/posix-functions/_Exit_C99.texi: Likewise.
1304         * doc/posix-headers/fcntl.texi: Likewise.
1305
1306 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1307
1308         argp: Avoid crash if translator uses % characters in a translation.
1309         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1310         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1311
1312 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1313
1314         doc: C11 and C++11 are now official
1315         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1316         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1317         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1318         * modules/stdalign:
1319         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1320
1321 2012-01-06  Bruno Haible  <bruno@clisp.org>
1322
1323         uc-is-grapheme-break tests: Tweak.
1324         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1325         message.
1326
1327 2012-01-06  Bruno Haible  <bruno@clisp.org>
1328
1329         test-init.sh: correct the test for diff -u
1330         * tests/test-init.sh: Also redirect stdout to /dev/null.
1331
1332 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1333
1334         Use ', not `, for quoting output.
1335         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1336         (print_changelog_deltas, get_tool_versions, main program):
1337         * build-aux/git-version-gen:
1338         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1339         * build-aux/move-if-change (help):
1340         * build-aux/useless-if-before-free (usage, main program):
1341         * check-module (parse_module_file, usage)
1342         (find_included_lib_files, check_module):
1343         * lib/argmatch.c (main) [TEST]:
1344         * lib/argp-help.c (_help):
1345         * lib/getopt1.c (main) [TEST]:
1346         * lib/git-merge-changelog.c (usage):
1347         * lib/xstrtol-error.c (xstrtol_error):
1348         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1349         * m4/argz.m4 (gl_FUNC_ARGZ):
1350         * m4/bison.m4 (gl_BISON):
1351         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1352         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1353         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1354         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1355         * m4/gc-random.m4 (gl_GC_RANDOM):
1356         * m4/intl.m4 (gt_CHECK_DECL):
1357         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1358         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1359         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1360         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1361         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1362         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1363         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1364         * tests/test-dirname.c (main):
1365         * tests/test-getpass.c (main):
1366         * tests/test-iconvme.c (main):
1367         * tests/test-parse-datetime.c (LOG):
1368         * tests/test-xstrtoimax.sh:
1369         * tests/test-xstrtol.sh:
1370         * tests/test-xstrtoll.sh:
1371         * tests/test-xstrtoumax.sh:
1372         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1373         * top/GNUmakefile (abort-due-to-no-makefile):
1374         Quote 'like this', not `like this', as per the recent change to
1375         the GNU coding standards.
1376
1377 2012-01-05  Bruno Haible  <bruno@clisp.org>
1378
1379         strtoimax: Don't force a replacement on systems where intmax_t is int.
1380         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1381         'intmax_t' is not larger than 'int'.
1382         Reported by Pádraig Brady <P@draigBrady.com>.
1383
1384 2012-01-05  Bruno Haible  <bruno@clisp.org>
1385
1386         doc: Mention NetBSD bugs.
1387         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1388         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1389
1390 2012-01-05  Bruno Haible  <bruno@clisp.org>
1391
1392         strtoumax tests: Enhance tests.
1393         * tests/test-strtoumax.c (main): Add tests for large values.
1394
1395 2012-01-05  Bruno Haible  <bruno@clisp.org>
1396
1397         strtoimax: Work around AIX 5.1 bug.
1398         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1399         definition.
1400         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1401         Set HAVE_STRTOIMAX.
1402         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1403         REPLACE_STRTOIMAX.
1404         * modules/inttypes-incomplete (Makefile.am): Substitute
1405         REPLACE_STRTOIMAX.
1406         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1407         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1408         (Depends-on): Update conditions.
1409         * tests/test-strtoimax.c (main): Add tests for large values.
1410         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1411
1412 2012-01-05  Bruno Haible  <bruno@clisp.org>
1413
1414         inttypes: Modernize.
1415         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1416         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1417         (Makefile.am): Update inttypes.h rule.
1418
1419 2012-01-05  Jim Meyering  <meyering@redhat.com>
1420
1421         init.sh: don't waste a subshell just to redirect stderr
1422         * tests/init.sh: In testing for diff -u and diff -c, use a
1423         stderr-redirecting exec inside `...` rather than a subshell.
1424
1425         test-init.sh: avoid failure on HP-UX 11.00
1426         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1427         resolves to diff -c or cmp.  Reported by Bruno Haible.
1428
1429 2012-01-05  Bruno Haible  <bruno@clisp.org>
1430
1431         Tests for module 'strtoull'.
1432         * modules/strtoull-tests: New file.
1433         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1434
1435 2012-01-05  Bruno Haible  <bruno@clisp.org>
1436
1437         Tests for module 'strtoll'.
1438         * modules/strtoll-tests: New file.
1439         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1440
1441 2012-01-05  Bruno Haible  <bruno@clisp.org>
1442
1443         Tests for module 'strtoul'.
1444         * modules/strtoul-tests: New file.
1445         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1446
1447 2012-01-05  Bruno Haible  <bruno@clisp.org>
1448
1449         Tests for module 'strtol'.
1450         * modules/strtol-tests: New file.
1451         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1452
1453 2012-01-04  Jim Meyering  <meyering@redhat.com>
1454
1455         test-init.sh: accommodate Solaris 5.10's different diff -u output
1456         * tests/test-init.sh: Also exempt @@ lines from the comparison
1457         of diff output, since Solaris 5.10 and GNU diff formats differ.
1458         Reported by Stefano Lattarini.
1459
1460 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1461
1462         test-posixtm: don't assume signed integer wraparound
1463         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1464         after signed integer overflow.  Inspired by (though it may not
1465         fix) Bruno Haible's bug report in
1466         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1467
1468         Spell out "Windows 9x" and "Windows XP".
1469         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1470         "Windows 9x" and "WinXP" with "Windows XP".
1471
1472 2012-01-04  Jim Meyering  <meyering@redhat.com>
1473
1474         test-vc-list-files-cvs.sh: remove obsolete comment
1475         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1476         double exit.  Now that's all encapsulated via skip_ and Exit.
1477
1478 2012-01-04  Bruno Haible  <bruno@clisp.org>
1479
1480         Talk about "native Windows API", not "Win32".
1481         * lib/classpath.c: Update comments to mention native Windows.
1482         * lib/csharpexec.c: Likewise.
1483         * lib/dup2.c: Likewise.
1484         * lib/error.c: Likewise.
1485         * lib/fcntl.c: Likewise.
1486         * lib/filename.h: Likewise.
1487         * lib/findprog.c: Likewise.
1488         * lib/get-rusage-as.c: Likewise.
1489         * lib/get-rusage-data.c: Likewise.
1490         * lib/getpagesize.c: Likewise.
1491         * lib/javaexec.c: Likewise.
1492         * lib/msvc-inval.c: Likewise.
1493         * lib/msvc-nothrow.c: Likewise.
1494         * lib/nanosleep.c: Likewise.
1495         * lib/nonblocking.c: Likewise.
1496         * lib/printf-parse.c: Likewise.
1497         * lib/setlocale.c: Likewise.
1498         * lib/sigaction.c: Likewise.
1499         * lib/strerror_r.c: Likewise.
1500         * lib/tmpdir.c: Likewise.
1501         * lib/vasnprintf.c: Likewise.
1502         * lib/w32spawn.h: Likewise.
1503         * lib/waitpid.c: Likewise.
1504         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1505         * m4/locale-ar.m4: Likewise.
1506         * m4/locale-fr.m4: Likewise.
1507         * m4/locale-ja.m4: Likewise.
1508         * m4/locale-tr.m4: Likewise.
1509         * m4/locale-zh.m4: Likewise.
1510         * m4/printf.m4: Likewise.
1511         * tests/test-cloexec.c: Likewise.
1512         * tests/test-copy-acl.sh: Likewise.
1513         * tests/test-copy-file.sh: Likewise.
1514         * tests/test-file-has-acl.sh: Likewise.
1515         * tests/test-set-mode-acl.sh: Likewise.
1516         * tests/test-dup-safer.c: Likewise.
1517         * tests/test-dup2.c: Likewise.
1518         * tests/test-dup3.c: Likewise.
1519         * tests/test-fcntl.c: Likewise.
1520         * tests/test-nonblocking-pipe.h: Likewise.
1521         * tests/test-nonblocking-socket.h: Likewise.
1522         * tests/test-pipe.c: Likewise.
1523         * tests/test-pipe2.c: Likewise.
1524         * tests/test-spawn-pipe-child.c: Likewise.
1525         * doc/acl-resources.txt: Likewise.
1526         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1527         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1528         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1529         * lib/localcharset.c: Update comments to mention native Windows.
1530         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1531         * lib/localename.c: Likewise.
1532         * lib/progreloc.c: Likewise.
1533         * lib/relocatable.c: Likewise.
1534         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1535         (windows_compute_revents): Renamed from win32_compute_revents.
1536         (windows_compute_revents_socket): Renamed from
1537         win32_compute_revents_socket.
1538         * lib/select.c: Update comments to mention native Windows.
1539         (windows_poll_handle): Renamed from win32_poll_handle.
1540         * m4/threadlib.m4: Update comments to mention native Windows.
1541         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1542         --enable-threads=windows instead of --enable-threads=win32. Set
1543         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1544         * lib/glthread/lock.h: Update comments to mention native Windows.
1545         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1546         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1547         USE_WIN32_THREADS.
1548         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1549         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1550         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1551         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1552         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1553         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1554         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1555         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1556         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1557         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1558         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1559         * tests/test-tls.c: Likewise.
1560         Rationale:
1561         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1562         on both 32-bit and 64-bit Windows systems.
1563         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1564         line of distinction is between "native Windows" on one side and Unix/
1565         POSIX systems on the other side. More details in
1566         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1567         Suggested by Paul Eggert.
1568
1569 2012-01-03  Bruno Haible  <bruno@clisp.org>
1570
1571         isatty: Support for MSVC 9.
1572         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1573         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1574         (_isatty_nothrow): New function.
1575         (isatty): Use it instead of _isatty.
1576         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1577         * lib/poll.c (IsConsoleHandle): Likewise.
1578         * lib/select.c (IsConsoleHandle): Likewise.
1579         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1580         (gl_PREREQ_ISATTY): New macro.
1581         * modules/isatty (Depends-on): Add msvc-inval.
1582         (configure.ac): Invoke gl_PREREQ_ISATTY.
1583
1584 2012-01-03  Jim Meyering  <meyering@redhat.com>
1585
1586         maint.mk: remove temporary transition aid from over 1.5 years ago
1587         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1588         purpose was to aid in the transition (avoiding silent malfunction)
1589         from that old name to the new _sc_search_regexp.  This shim was
1590         added by commit 219c504b.
1591
1592         init.sh: do not try to accommodate compare arguments starting with "-"
1593         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1594         compare arguments that start with "-".  Besides, we do not worry
1595         about this when invoking diff or cmp; why start now with sed?
1596         Using "--" to separate options from argument would trigger sed
1597         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1598         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1599
1600 2012-01-02  Bruno Haible  <bruno@clisp.org>
1601
1602         Enhance tests for module 'isatty'.
1603         * modules/isatty-tests (Depends-on): Add pipe-posix.
1604         * tests/test-isatty.c: Include <fcntl.h>.
1605         (DEV_NULL): New macro.
1606         (main): Test the resut of isatty() also on regular files, pipes, and
1607         /dev/null.
1608
1609         New module 'isatty'.
1610         * lib/unistd.in.h (isatty): New declaration.
1611         * lib/isatty.c: New file, based on an idea of
1612         Bastien Roucariès <roucaries.bastien@gmail.com>.
1613         * m4/isatty.m4: New file.
1614         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1615         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1616         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1617         REPLACE_ISATTY.
1618         * modules/isatty: New file.
1619         * doc/posix-functions/isatty.texi: Mention the new module.
1620         Suggested by Paolo Bonzini.
1621
1622 2012-01-02  Bruno Haible  <bruno@clisp.org>
1623
1624         canonicalize: Tweak 2011-12-29 commit.
1625         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1626         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1627
1628 2012-01-02  Jim Meyering  <meyering@redhat.com>
1629
1630         gitlog-to-changelog: describe input syntax in --help output
1631         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1632
1633         gitlog-to-changelog: fix typo in --help: show backslash before email @
1634         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1635         in sources, but not in actual output.
1636
1637 2011-12-30  Jim Meyering  <meyering@redhat.com>
1638
1639         gitlog-to-changelog: don't malfunction when name contains %-directive
1640         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1641         in a name string cause trouble.  E.g., with a user name of "%s",
1642         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1643
1644 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1645
1646         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1647         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1648         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1649         the "  (tiny change)" notation that is appended to the standard
1650         ChangeLog "date  name  email" header line.
1651
1652 2012-01-01  Jim Meyering  <meyering@redhat.com>
1653
1654         test-framework-sh: init.sh: fix "make dist" failure
1655         When using gnulib-tool's --with-tests option and any module that
1656         depends on test-framework-sh, "make dist" would fail due to the
1657         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1658         in the gltests directory, and not in the gllib/ directory.
1659         One way to work around that is to move the EXTRA_DIST += init.sh
1660         from the primary module to the -tests one:
1661         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1662         * modules/test-framework-sh (Makefile.am): ...not here.
1663         Reported by Tom G. Christensen in
1664         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1665
1666         version-etc: update copyright year reported by --version
1667         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1668
1669 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1670
1671         canonicalize: only stat() if required
1672         * lib/canonicalize.c (canonicalize_filename_mode):
1673         Avoid calling l?stat() when both CAN_MISSING,
1674         and CAN_NOLINKS are set, as we neither need
1675         to resolve symlinks or test component existence.
1676
1677 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1678
1679         doc: cover st_ino issues once; add OpenVMS etc.
1680         * doc/posix-functions/stat.texi (stat):
1681         * doc/posix-functions/lstat.texi (lstat):
1682         * doc/posix-functions/fstatat.texi (fstatat):
1683         * doc/posix-functions/fstat.texi (fstat):
1684         Move general 'struct stat' stuff to sys_stat.texi,
1685         leaving behind a pointer.
1686         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1687         Merge duplicate info about 'struct stat' problems into here.
1688         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1689         and suggest partial workarounds.
1690
1691         same-inode: port to OpenVMS
1692         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1693         three st_ino values.
1694
1695 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1696
1697         canonicalize: fix references to stat() and lstat()
1698         * lib/canonicalize.c (canonicalize_filename_mode):
1699         Ensure references always resolve to a replacement
1700         function if required (even via a macro).
1701
1702 2011-12-30  Jim Meyering  <meyering@redhat.com>
1703
1704         gitlog-to-changelog: remove a little duplication
1705         * build-aux/gitlog-to-changelog (main): Grep @lines once,
1706         rather than twice.
1707
1708 2011-12-29  Pádraig Brady  <P@draigBrady.com>
1709
1710         canonicalize: add support for not resolving symlinks
1711         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
1712         indicate we don't want to follow symlinks.  Also
1713         provide CAN_MODE_MASK to aid setting these existing
1714         mutually exclusive values.
1715         * lib/canonicalize.c (canonicalize_filename_mode):
1716         Extract the flags from can_mode parameter, which
1717         are currently just used to select between stat()
1718         and lstat().  Also ensure that mutually exclusive
1719         values are flagged immediately as invalid.
1720         * tests/test-canonicalize.c: Verify symlinks are
1721         not followed, and that invalid flag combinations
1722         are diagnosed.
1723
1724 2011-12-25  Jim Meyering  <meyering@redhat.com>
1725
1726         gitlog-to-changelog: do not clump multi-paragraph entries
1727         Identical header lines (date,name,email+coauthors) are suppressed,
1728         thus putting all entries with those same characteristics under
1729         a single header.  However, when a log entry consists of two or
1730         more paragraphs, it may not be clear where it starts and ends.
1731         This change makes it so that such an entry is always separated
1732         from others by a header line, even when that header would
1733         otherwise be suppressed.
1734         * build-aux/gitlog-to-changelog: Implement the above.
1735         Inspired by a related request from Stefano Lattarini in
1736         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
1737
1738 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1739
1740         announce-gen: fix `cmd' typo in diagnostic
1741         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
1742         diagnostic: a missing '$' meant that the command was not output.
1743
1744 2011-12-23  Jim Meyering  <meyering@redhat.com>
1745
1746         test-framework-sh: distribute init.sh
1747         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
1748         Otherwise, "make -C gnulib-tests check" (at least in grep) would
1749         fail due to the lack of init.sh.
1750
1751         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
1752         * modules/atexit-tests: Rather than listing tests/init.sh,
1753         now that there's a module for it, simply depend on that new module.
1754         * modules/closein-tests: Likewise.
1755         * modules/exclude-tests: Likewise.
1756         * modules/getcwd-tests: Likewise.
1757         * modules/perror-tests: Likewise.
1758         * modules/pread-tests: Likewise.
1759         * modules/pwrite-tests: Likewise.
1760         * modules/vc-list-files-tests: Likewise.
1761         * modules/verify-tests: Likewise.
1762         * modules/xalloc-die-tests: Likewise.
1763         * modules/xstrtoimax-tests: Likewise.
1764         * modules/xstrtol-tests: Likewise.
1765         * modules/xstrtoll-tests: Likewise.
1766         * modules/xstrtoumax-tests: Likewise.
1767         * modules/yesno-tests: Likewise.
1768
1769 2011-12-22  Jim Meyering  <meyering@redhat.com>
1770
1771         test-framework-sh: add minimal tests of init.sh's compare function
1772         * modules/test-framework-sh-tests: New file.
1773         * tests/test-init.sh: New file.
1774
1775         test-framework-sh: new module
1776         * modules/test-framework-sh: New file.
1777         * MODULES.html.sh (Support for maintaining and releasing projects):
1778         List it.
1779
1780         init.sh: do not emit simulated diff output to stderr
1781         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1782
1783 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1784
1785         .gitignore: ignore gnulib.dvi and regex.info
1786         * doc/.gitignore:add gnulib.dvi and regex.info
1787
1788 2011-12-22  Jim Meyering  <meyering@redhat.com>
1789
1790         init.sh: correct previous change
1791         * tests/init.sh (compare): My previous change was wrong.
1792         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
1793
1794         init.sh: avoid unwarranted test failure when using "set -e"
1795         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1796         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1797         a use like "compare exp out" would get evoke an unconditional failure.
1798
1799 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1800
1801         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1802         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1803         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1804         autoreconf that did not.
1805         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1806         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1807
1808 2011-12-17  Jim Meyering  <meyering@redhat.com>
1809
1810         bootstrap: remove some now-unneeded code
1811         This script arose back when gnulib-tool was young.
1812         Since then, it has seen improvements that render much of this
1813         script unnecessary.  In particular, it can now make symlinks
1814         to the files it uses.  Also, I no longer see as much value in
1815         marking files as read-only via comments.
1816         If you relied on the symlink-creation feature of the preceding
1817         version of this script, you can get most of that functionality
1818         by adding the --symlink option to the definition of
1819         gnulib_tool_option_extras in your bootstrap.conf file.
1820         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1821         Run autopoint and libtoolize *before* gnulib-tool.
1822         After it, run an abbreviated autoreconf, rather than a loop around
1823         all tools.
1824         (slirp, bt_mark_as_generated): Remove functions.
1825
1826 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1827
1828         ftoastr: fix typo
1829         * lib/ftoastr.h: Fix misspelling in comment.
1830
1831 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1832
1833         * top/README-release: fix punctuation.
1834
1835 2011-12-17  Jim Meyering  <meyering@redhat.com>
1836
1837         bootstrap: correct the recent buildreq change
1838         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1839         had no effect.
1840         * build-aux/bootstrap (buildreq): Bracket each search term with
1841         "*...*", so that the shell "case" statement works as intended.
1842         Add comments.
1843
1844 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1845
1846         build: let bootstrap resort to wget when downloading .po files
1847         * build-aux/bootstrap (download_po_files): Fallback to wget when
1848         downloading the .po files via rsync fails.  This is necessary to
1849         bootstrap from behind a strict firewall.
1850
1851 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1852
1853         stdint: don't assume C++11 when compiling with g++
1854         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1856         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1857         work also in C++ before C++11, as that improperly inhibits
1858         generating a substitute stdint.h for that case.
1859
1860 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1861
1862         alloca: protect comment from gnulib-tool
1863         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1864         that gnulib-tool doesn't think it's a license, and munge it to
1865         say "GCC version 3".
1866
1867 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1868
1869         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1870         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1871         $(abs_top_builddir) instead of $(top_builddir).
1872
1873 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1874
1875         strftime-tests: also test nanoseconds
1876         * tests/test-strftime.c (T): Add a test of %N.
1877
1878 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1879
1880         inttypes, stdint: add C++11 support
1881         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1882         when including inttypes.h and stdint.h.  Support this change to
1883         the standard.
1884         * doc/posix-headers/inttypes.texi (inttypes.h):
1885         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1886         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1887         Define if not defined already, for the benefit of pre-C++11 hosts.
1888         Define the standard format macros (e.g., PRId8) always.
1889         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1890         Likewise, if __cpluspus.  Define the standard constant and limit
1891         macros (e.g., INT8_C, INT8_MAX) always.
1892         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1893         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1894         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1895         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1896         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1897         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1898         Likewise.
1899
1900 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1901
1902         nonblocking tests: Fix test failure on Linux/PPC.
1903         Suggested by Prerna Saxena in
1904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1905         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1906         Set to 1100000.
1907
1908 2011-12-12  Jim Meyering  <meyering@redhat.com>
1909
1910         argmatch: don't hard-code `' when listing valid option arguments
1911         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1912         use the quote function to add quotes.  Use fputs rather than
1913         fprintf for the format string with no format directive.
1914
1915 2011-12-07  Eric Blake  <eblake@redhat.com>
1916
1917         bootstrap: detect tools required by gnulib-tool
1918         * build-aux/bootstrap (buildreq): Provide minimum implicit
1919         dependencies.
1920         * DEPENDENCIES: Mention patch as a prereq.
1921
1922 2011-12-04  Bruno Haible  <bruno@clisp.org>
1923
1924         sethostname: Port to Windows platforms.
1925         * lib/sethostname.c: Provide an alternate implementation for Windows
1926         platforms.
1927         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1928         (main): Skip the test if sethostname() fails with EPERM. On Windows
1929         platforms, don't check the result of gethostname().
1930
1931 2011-12-04  Bruno Haible  <bruno@clisp.org>
1932             Jim Meyering  <meyering@redhat.com>
1933
1934         tests: Avoid spurious error message on platforms without mktemp program.
1935         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1936
1937 2011-12-04  Bruno Haible  <bruno@clisp.org>
1938
1939         sethostname: Fix documentation.
1940         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1941         "not fixed" section.
1942
1943 2011-12-03  Bruno Haible  <bruno@clisp.org>
1944
1945         gnulib-tool: Verify that the License field is present and non-empty.
1946         * gnulib-tool (func_get_license_raw): New function, extracted from
1947         func_get_license.
1948         (func_get_license): Use it. Warn if the module is not a test module and
1949         has no license.
1950         Suggested by Jim Meyering.
1951
1952 2011-12-03  Bruno Haible  <bruno@clisp.org>
1953
1954         sethostname tests: Fix link error on mingw.
1955         * tests/test-sethostname1.c: New file, extracted from
1956         tests/test-sethostname.c.
1957         * tests/test-sethostname2.c: New file, extracted from
1958         tests/test-sethostname.c.
1959         * tests/test-sethostname.c: Remove file.
1960         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1961         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1962         (Depends-on): Add gethostname.
1963         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1964         Link the latter with $(GETHOSTNAME_LIB).
1965
1966         sethostname tests: Fix compilation error on mingw.
1967         * tests/test-sethostname.c: Don't include <sys/types.h>.
1968         (geteuid): Use a dummy value without uid_t.
1969         * modules/sethostname-tests (Depends-on): Remove sys_types.
1970
1971         sethostname tests: Avoid a gcc warning.
1972         * tests/test-sethostname.c (main): Remove an unused variable.
1973
1974         Tweak last commit.
1975         * modules/sethostname-tests (Files): Sort by decreasing importance.
1976         (configure.ac): Check for geteuid.
1977         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1978         the test when there's nothing to test. Drop an unnecessary cast.
1979         Improve an error message. Verify that the final sethostname() call
1980         succeeds.
1981
1982 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1983
1984         Add a test suite for the sethostname module.
1985         * modules/sethostname-tests: New file.  A test program
1986         for the sethostname module.
1987         * tests/test-sethostname.c: Likewise.
1988
1989 2011-12-03  Bruno Haible  <bruno@clisp.org>
1990
1991         Tweak last commit.
1992         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1993         Fix preprocessor directives indentation. Fix typos.
1994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1995         * modules/unistd (Makefile): Likewise.
1996
1997 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1998
1999         Integrate the sethostname module into unistd.
2000         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2001         into the unistd.h header.
2002         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2003         preprocessor directives.
2004         * modules/unistd: Setup the Makefile substitutions of the
2005         SETHOSTNAME preprocessor directives.
2006
2007 2011-12-03  Bruno Haible  <bruno@clisp.org>
2008
2009         Tweak last commit.
2010         * lib/sethostname.c: Don't include <string.h>.
2011         (sethostname): No need to copy the argument string to the stack. Don't
2012         call clearerr. Preserve errno when fprintf failed.
2013         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2014         Don't invoke AC_REPLACE_FUNCS.
2015         * modules/sethostname (Link): Remove empty section.
2016         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2017         failure problem.
2018
2019 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2020
2021         New module 'sethostname'.
2022         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2023         for systems that lack it.
2024         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2025         sethostname declaration and function.
2026         * modules/sethostname: New file.  Define the sethostname module.
2027
2028 2011-12-03  Bruno Haible  <bruno@clisp.org>
2029
2030         Tweak last commit.
2031         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2032
2033 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2034
2035         Split the HOST_NAME_MAX detection into a separate m4 macro.
2036         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2037         macro so it can be used by the pending sethostname module.
2038
2039 2011-12-03  Bruno Haible  <bruno@clisp.org>
2040
2041         Fix module descriptions syntax.
2042         * modules/argv-iter (License): Fix syntax.
2043         * modules/di-set (License): Likewise.
2044         * modules/ino-map (License): Likewise.
2045         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2046
2047 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2048
2049         stdalign: port to Clang 3.0
2050         Problem reported by Simon Josefsson in
2051         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2052         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2053         which has <stdalign.h> but which does not define alignof.
2054         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2055
2056 2011-12-01  Eric Blake  <eblake@redhat.com>
2057
2058         mktempd: silence dd usage
2059         * build-aux/mktempd (rand_bytes): Silence dd.
2060
2061 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2062
2063         manywarnings: Don't mention gcc version in docstring.
2064         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2065         Jim Meyering <meyering@redhat.com>.
2066
2067 2011-11-30  Jim Meyering  <meyering@redhat.com>
2068
2069         hash: mark a few floating point constants with "f" suffix
2070         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2071         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2072         floating point constants with "f", since they're destined to be
2073         saved/used as "float"s.
2074
2075 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2076
2077         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2078         * tests/test-float.c (test_long_double): Correct and re-enable the
2079         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2080
2081 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2082
2083         Avoid subtracting two pointers that don't point into the same block.
2084         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2085         only pointers into the same memory block are subtracted. We cannot
2086         assume that sizeof (ptrdiff_t) == sizeof (void *).
2087
2088 2011-11-29  Eric Blake  <eblake@redhat.com>
2089
2090         maint.mk: add syntax check for use of compare from init.sh
2091         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2092         moved here from coreutils.
2093
2094         manywarnings: drop -Wunsuffixed-float-constants
2095         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2096         '1.0D', which is the only way to silence this warning for 'double'.
2097
2098 2011-11-29  Jim Meyering  <meyering@redhat.com>
2099
2100         hash: mark compute_bucket_size with the pure attribute
2101         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2102
2103         quotearg, propername: correct pragma guard expression
2104         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2105         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2106
2107 2011-11-28  Jim Meyering  <meyering@redhat.com>
2108
2109         propername: do not mark proper_name with the const attribute
2110         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2111         since it examines data pointed to by its parameter.
2112         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2113         the suggestion from -Wsuggest-attribute=const.
2114
2115         propername: mark one more function as const
2116         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2117
2118 2011-11-27  Jim Meyering  <meyering@redhat.com>
2119
2120         mark functions with const and pure attributes
2121
2122         Mark functions per suggestions from gcc-4.6 when using these options:
2123         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2124         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2125         Follow these guidelines: when possible, apply the attribute to
2126         an extern declaration, not to its definition.  Apply it to the
2127         definition only when the definition is static.
2128         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2129         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2130         * lib/base64.h (isbase64): Likewise.
2131         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2132         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2133         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2134         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2135         (c_tolower, c_toupper): Likewise.
2136         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2137         * lib/chdir-long.c (find_non_slash): Likewise.
2138         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2139         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2140         * lib/file-type.h (file_type): Likewise.
2141         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2142         * lib/filevercmp.c (verrevcmp): Likewise.
2143         * lib/freadahead.h (freadahead): Likewise.
2144         * lib/fts.c (fts_maxarglen): Likewise.
2145         * lib/hash-pjw.h (hash_pjw): Likewise.
2146         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2147         * lib/hash.c (is_prime, next_prime): Likewise.
2148         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2149         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2150         (hash_table_ok, hash_get_first, hash_string): Likewise.
2151         (compute_bucket_size): Likewise.
2152         * lib/i-ring.h (i_ring_empty): Likewise.
2153         * lib/isnan.c (isnanl): Likewise.
2154         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2155         * lib/memcasecmp.h (memcasecmp): Likewise.
2156         * lib/memchr2.h (memchr2): Likewise.
2157         * lib/memcmp2.h (memcmp2): Likewise.
2158         * lib/parse-datetime.y (lookup_zone): Likewise.
2159         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2160         [!WINDOWS_SOCKETS]: Likewise.
2161         * lib/strnlen1.h (strnlen1): Likewise.
2162         * lib/uniwidth.in.h (uc_width): Likewise.
2163         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2164         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2165         (quoting_options_from_style): Add a comment.
2166         * lib/propername.h (proper_name): Add a comment.
2167
2168 2011-11-27  Bruno Haible  <bruno@clisp.org>
2169
2170         Remove unused macros from !_LIBC code in glibc-borrowed files.
2171         * lib/fnmatch.c (STRCOLL): Remove macro.
2172         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2173         * lib/glob.c (__stat, __readdir64): Remove macros.
2174         * lib/tempname.c (__open64, __xstat64): Remove macros.
2175         Suggested by Paul Eggert.
2176
2177 2011-11-27  Bruno Haible  <bruno@clisp.org>
2178
2179         getcwd: Fix link error on MSVC 9.
2180         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2181
2182 2011-11-27  Bruno Haible  <bruno@clisp.org>
2183
2184         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2185         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2186         HAVE_OPENDIR is 0.
2187         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2188         HAVE_CLOSEDIR is 0.
2189         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2190         is 0.
2191         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2192
2193 2011-11-27  Bruno Haible  <bruno@clisp.org>
2194
2195         getcwd: Fix bug from 2011-08-17.
2196         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2197         platforms that need it.
2198         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2199         code of 4 to be a failure, not a success. This ensures that
2200         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2201
2202 2011-11-27  Bruno Haible  <bruno@clisp.org>
2203
2204         binary-io tests: Avoid test failure on mingw when libtool is used.
2205         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2206         Don't verify the size of t-bin-out1.tmp here.
2207         * tests/test-binary-io.sh: Verify it here.
2208         Reported by Simon Josefsson.
2209
2210 2011-11-26  Bruno Haible  <bruno@clisp.org>
2211
2212         Fix conflict between two instantiations of module 'unistd'.
2213         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2214         ${include_guard_prefix} also in the autoconf snippet.
2215         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2217         GNULIB_UNISTD_H_GETOPT.
2218         * modules/getopt-posix (configure.ac): Set the
2219         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2220         * modules/getopt-gnu (configure.ac): Likewise.
2221         * modules/unistd (Makefile.am): Change the substitution value of
2222         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2223         Reported by Simon Josefsson.
2224
2225 2011-11-25  Bruno Haible  <bruno@clisp.org>
2226
2227         pagealign_alloc: Doc and comments.
2228         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2229         module.
2230         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2231
2232 2011-11-25  Jim Meyering  <meyering@redhat.com>
2233
2234         test-update-copyright.sh: avoid false-positive failure
2235         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2236         around false positive failure on Cygwin/Windows.  The latter was
2237         matching erroneously-created files with names like
2238         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2239
2240 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2241
2242         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2243         * m4/valgrind-tests.m4: Check that the parameters that will be
2244         used works, not just a subset of them.  Reported by Bruno Haible
2245         <bruno@clisp.org>.
2246
2247 2011-11-24  Jim Meyering  <meyering@redhat.com>
2248
2249         test-stdalign.c: comment out long double tests
2250         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2251         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2252         error: '_Alignas' specifiers cannot reduce alignment of \
2253         'static_longdouble_alignas'.
2254
2255 2011-11-22  Jim Meyering  <meyering@redhat.com>
2256
2257         init.sh: make "compare /dev/null FILE" output more readable
2258         * tests/init.sh (compare_): Document the preferred order of arguments.
2259         (emit_diff_u_header_): New function.
2260         (compare_dev_null_): Emit a simulated diff, rather than just the
2261         contents of the unexpected file.  Suggestion from Bruno Haible.
2262
2263 2011-11-21  Jim Meyering  <meyering@redhat.com>
2264             Eric Blake  <eblake@redhat.com>
2265
2266         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2267         * tests/init.sh: Make our compare function slightly more portable.
2268         Reported by Bruno Haible in
2269         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2270
2271 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2272
2273         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2274         before using it, in code that ends up in config.h.
2275
2276 2011-11-20  Bruno Haible  <bruno@clisp.org>
2277
2278         getcwd: Work around getcwd bug on AIX 5..7.
2279         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2280         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2281         Use a different value for gl_cv_func_getcwd_path_max. Move the
2282         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2283         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2284         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2285         Define HAVE_MINIMALLY_WORKING_GETCWD.
2286         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2287         where it is not even minimally working, that is, on AIX.
2288         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2289         m4/getcwd-path-max.m4.
2290         (main): Update exit code computation.
2291         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2292         getcwd does not handle long file names.
2293
2294 2011-11-20  Bruno Haible  <bruno@clisp.org>
2295
2296         getcwd: Fix bug from 2009-09-10.
2297         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2298         like "no".
2299
2300 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2301
2302         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2303
2304 2011-11-20  Bruno Haible  <bruno@clisp.org>
2305
2306         fma tests: Avoid shadowing local variables.
2307         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2308         expected.
2309
2310 2011-11-20  Bruno Haible  <bruno@clisp.org>
2311
2312         copysignf tests: Fix.
2313         * tests/test-copysignf.c: Fix signature check.
2314
2315 2011-11-20  Bruno Haible  <bruno@clisp.org>
2316
2317         fma: Remove unused code.
2318         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2319         unused macros.
2320
2321 2011-11-20  Bruno Haible  <bruno@clisp.org>
2322
2323         sethostname: Fix doc about AIX.
2324         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2325         sethostname; it has it.
2326
2327         sethostname: Mention more portability problems.
2328         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2329         problem.
2330         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2331
2332 2011-11-19  Bruno Haible  <bruno@clisp.org>
2333
2334         Depend on module fcntl-h when AT_FDCWD is used.
2335         * modules/utimens (Depends-on): Add fcntl-h.
2336         * modules/areadlinkat (Depends-on): Likewise.
2337         * modules/areadlinkat-with-size (Depends-on): Likewise.
2338         * modules/faccessat (Depends-on): Likewise.
2339         * modules/fchmodat (Depends-on): Likewise.
2340         * modules/fchownat (Depends-on): Likewise.
2341         * modules/getcwd (Depends-on): Likewise.
2342         * modules/mkdirat (Depends-on): Likewise.
2343         * modules/mkfifoat (Depends-on): Likewise.
2344         * modules/readlinkat (Depends-on): Likewise.
2345         * modules/symlinkat (Depends-on): Likewise.
2346         * modules/dup2-tests (Depends-on): Likewise.
2347         * modules/fdutimensat-tests (Depends-on): Likewise.
2348         * modules/futimens-tests (Depends-on): Likewise.
2349
2350 2011-11-19  Bruno Haible  <bruno@clisp.org>
2351
2352         euidaccess: Update a comment.
2353         * lib/euidaccess.c: Update comment about platforms with faccessat.
2354
2355 2011-11-19  Bruno Haible  <bruno@clisp.org>
2356
2357         openat: Fix file list.
2358         * modules/openat (Files): Remove lib/at-func.c.
2359
2360 2011-11-19  Bruno Haible  <bruno@clisp.org>
2361
2362         fstatat: Simplify.
2363         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2364         gnulib should define rpl_fstatat, there is a
2365         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2366
2367 2011-11-19  Bruno Haible  <bruno@clisp.org>
2368
2369         Ensure 'inline' can be used in tests/test-utimens-common.h.
2370         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2371         * modules/futimens-tests (configure.ac): Likewise.
2372         * modules/utimens-tests (configure.ac): Likewise.
2373         * modules/utimensat-tests (configure.ac): Likewise.
2374
2375 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2376
2377         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2378         not hash_insert0.
2379         (hash_insert_if_absent): Doc fix.
2380
2381 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2382
2383         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2384
2385 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2386
2387         test-getcwd: disambiguate exit status
2388         * tests/test-getcwd.c (test_long_name): Return 0..7.
2389         (main): Exit with an unambiguous exit status.  The old
2390         code yielded a mysterious mixture of two failure codes.
2391
2392         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2393         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2394         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2395         rpl_fstatat or fstatat.  This should fix the other problem
2396         reported by Kai Habel in
2397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2398         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2400         and I reproduced it on a Solaris 8 host we still have in production.
2401
2402 2011-11-18  Jim Meyering  <meyering@redhat.com>
2403
2404         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2405         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2406         Add a sentence to the comment.
2407         (hash_insert0): New function that simply calls hash_insert_if_absent.
2408         * lib/hash.h (hash_insert_if_absent): Declare it.
2409         (hash_insert0): Add deprecation attribute.
2410         (_GL_ATTRIBUTE_DEPRECATED): Define.
2411         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2412         not hash_insert0.
2413         * NEWS: Mention it, even though it's not really an incompatible change.
2414
2415 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2416
2417         openat: avoid compilation failure due to lack of <errno.h> inclusion
2418         * lib/openat.c: Include <errno.h>.
2419
2420 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2421
2422         * modules/getcwd (Depends-on): Add fdopendir.
2423         This fixes one of the two problems reported by Kai Habel in
2424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2425
2426         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2427         stdalign problem reported by Ian Beckwith in
2428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2429         * modules/crypto/gc-arcfour (Depends-on):
2430         Depend conditionally on crypto/arcfour.
2431         * modules/crypto/gc-arctwo (Depends-on):
2432         Depend conditionally on crypto/arctwo.
2433         * modules/crypto/gc-des (Depends-on):
2434         Depend conditionally on crypto/des.
2435         * modules/crypto/gc-hmac-md5 (Depends-on):
2436         Depend conditionally on crypto/hmac-md5.
2437         * modules/crypto/gc-hmac-sha1 (Depends-on):
2438         Depend conditionally on crypto/hmac-sha1.
2439         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2440         * modules/crypto/gc-md4 (Depends-on):
2441         Depend conditionally on crypto/md4.
2442         * modules/crypto/gc-md5 (Depends-on):
2443         Depend conditionally on crypto/md5.
2444         * modules/crypto/gc-rijndael (Depends-on):
2445         Depend conditionally on crypto/rijndael.
2446         * modules/crypto/gc-sha1 (Depends-on):
2447         Depend conditionally on crypto/sha1.
2448         * modules/crypto/gc-arcfour:
2449         * modules/crypto/gc-arctwo:
2450         * modules/crypto/gc-des:
2451         * modules/crypto/gc-hmac-md5:
2452         * modules/crypto/gc-hmac-sha1:
2453         * modules/crypto/gc-md2:
2454         * modules/crypto/gc-md4:
2455         * modules/crypto/gc-md5:
2456         * modules/crypto/gc-rijndael:
2457         * modules/crypto/gc-sha1:
2458         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2459         now that the conditional dependencies do the work for us.
2460
2461 2011-11-17  Jim Meyering  <meyering@redhat.com>
2462
2463         tests: factor st_ctime-comparison out of two headers
2464         * tests/test-utimens-common.h (ctime_compare): Define.
2465         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2466         * tests/test-lutimens.h (test_lutimens): Likewise.
2467         * tests/test-utimens.h (test_utimens): Likewise.
2468
2469         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2470         Invoke the test program via an init.sh-using wrapper.
2471         * tests/test-getcwd.sh: New file.
2472         * modules/getcwd-tests (Files): Add it.
2473         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2474
2475 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2476
2477         gitlog-to-changelog: support multi-author commits.
2478         The FSF cares about keeping track of all authors of patches to its
2479         projects, but Git doesn't provide obvious support for multi-author
2480         changesets. Consensus seems to be forming around the use of extra
2481         Signed-off-by inspired lines in the log message formatted as
2482         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2483         multi-author commits between version control systems.
2484         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2485         log message and output in standard ChangeLog multi-author format.
2486         Reported by Peter Rosin <peda@lysator.liu.se>
2487
2488 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2489             Bruno Haible  <bruno@clisp.org>
2490
2491         Fix some modules' file list.
2492         * modules/fstatat (Files): Add m4/lstat.m4.
2493         * modules/openat (Files): Likewise.
2494         * modules/unlinkat (Files): Likewise.
2495
2496 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2497
2498         maint.mk: fix tight-scope.mk generation in VPATH builds.
2499         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2500         reference with $(srcdir) so that the file is found correctly even
2501         when running `make syntax-check' in a VPATH build.
2502
2503 2011-11-13  Bruno Haible  <bruno@clisp.org>
2504             Jim Meyering  <meyering@redhat.com>
2505
2506         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2507         * tests/init.sh (compare): Remove "No differences encountered" or
2508         synonymous output from the 'diff' program.
2509
2510 2011-11-13  Bruno Haible  <bruno@clisp.org>
2511
2512         Makefile: Tweak indentation.
2513         * Makefile: Use tab as first character in every line that contains rule
2514         commands.
2515
2516 2011-11-13  Bruno Haible  <bruno@clisp.org>
2517
2518         Syntax check for copyright statements.
2519         * check-copyright: New file.
2520         * Makefile (sc_check_copyright): New rule.
2521
2522 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2523
2524         * build-aux/git-version-gen: Add --prefix to configure the tag
2525         match string.
2526
2527 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2528
2529         * build-aux/git-version-gen: Add --help and --version.
2530
2531 2011-11-12  Jim Meyering  <meyering@redhat.com>
2532
2533         revamp the other test-exclude?.sh scripts to use init.sh, too
2534         * tests/test-exclude1.sh: Use init.sh.
2535         * tests/test-exclude2.sh: Likewise.
2536         * tests/test-exclude3.sh: Likewise.
2537         * tests/test-exclude4.sh: Likewise.
2538         * tests/test-exclude5.sh: Likewise.
2539         * tests/test-exclude6.sh: Likewise.
2540         * tests/test-exclude7.sh: Likewise.
2541         * tests/test-exclude8.sh: Likewise.
2542         * modules/exclude-tests (Files): List init.sh.
2543
2544         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2545         These shell scripts ignored failure of the binary test-exclude,
2546         so making the latter return 77 didn't cause them to be skipped.
2547         * tests/test-exclude5.sh: Exit with test-exclude's error status
2548         when that program fails.  Revamp to use init.sh.
2549         * tests/test-exclude2.sh: Likewise.
2550
2551         test-exclude: fix a typo
2552         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2553
2554 2011-11-11  Bruno Haible  <bruno@clisp.org>
2555
2556         obstack: Fix compilation error on MSVC 9.
2557         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2558
2559 2011-11-11  Jim Meyering  <meyering@redhat.com>
2560
2561         test-exclude: skip tests rather than failing on deficient systems
2562         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2563         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2564         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2565         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2566
2567 2011-11-10  Bruno Haible  <bruno@clisp.org>
2568
2569         ptsname_r test: Avoid gcc warning on glibc systems.
2570         * tests/test-ptsname_r.c (null_ptr): New function.
2571         (test_errors): Use it.
2572
2573 2011-11-10  Bruno Haible  <bruno@clisp.org>
2574
2575         ptsname_r: Avoid compilation error on OSF/1 5.1.
2576         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2578         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2579         function is not declared or incompatibly declared.
2580         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2581         * modules/ptsname_r (Depends-on, configure.ac): Update.
2582         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2583
2584 2011-11-10  Bruno Haible  <bruno@clisp.org>
2585
2586         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2587         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2588         When cross-compiling, guess yes on all platforms except AIX.
2589         Reported by Ludovic Courtès <ludo@gnu.org>.
2590
2591 2011-11-09  Bruno Haible  <bruno@clisp.org>
2592
2593         ptsname_r tests: Fix bugs.
2594         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2595         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2596
2597 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2598
2599         fstatat: work with cross-compilation
2600         Problem reported by Ludovic Courtès in
2601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2602         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2603         "cross-compiling" and assume the bug is present.  Replace
2604         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2605         an inverted sense, to be more conservative about our assumptions.
2606         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2607
2608 2011-11-09  Bruno Haible  <bruno@clisp.org>
2609
2610         Improve MODULES.html output.
2611         * modules/mkfifoat (Description): Use the word "function".
2612         * modules/readlinkat (Description): Likewise.
2613         * modules/symlinkat (Description): Likewise.
2614
2615 2011-11-09  Eric Blake  <eblake@redhat.com>
2616
2617         ptsname_r-tests: new test module
2618         * modules/ptsname_r-tests: New module.
2619         * tests/test-ptsname_r.c: New file.
2620
2621         ptsname_r: new module
2622         * modules/ptsname_r: New module.
2623         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2624         * lib/ptsname.c (__ptsname_r): Split...
2625         * lib/ptsname_r.c: ...into new file.
2626         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2627         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2628         * modules/stdlib (Makefile.am): Substitute witnesses.
2629         * lib/stdlib.in.h (ptsname_r): Declare it.
2630         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2631         * MODULES.html.sh (Misc): Likewise.
2632         * modules/ptsname (Depends-on): Alter dependency.
2633         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2634
2635 2011-11-09  Jim Meyering  <meyering@redhat.com>
2636
2637         announce-gen: be more concise when there's only one URL+tarball
2638         * build-aux/announce-gen (get_tool_versions): When you distribute
2639         only one type of tarball, combine the first two "Here are..."
2640         sections and make the key-checking grammar independent of
2641         how many tarballs there are.
2642
2643 2011-11-09  Eric Blake  <eblake@redhat.com>
2644
2645         openpty: provide a stub on mingw
2646         * lib/pty.in.h (includes): Provide forward declarations.
2647         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2648
2649         raise: fix mingw handling of SIGPIPE
2650         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2651
2652 2011-11-08  Bruno Haible  <bruno@clisp.org>
2653
2654         More conditional dependencies.
2655         * modules/faccessat (Depends-on): Add conditions.
2656         * modules/fchmodat (Depends-on): Likewise.
2657         * modules/fchownat (Depends-on): Likewise.
2658         * modules/fstatat (Depends-on): Likewise.
2659         * modules/mkfifoat (Depends-on): Likewise.
2660         * modules/readlinkat (Depends-on): Likewise.
2661         * modules/symlinkat (Depends-on): Likewise.
2662         * modules/unlinkat (Depends-on): Likewise.
2663         * modules/utimensat (Depends-on): Likewise.
2664         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2665         * modules/linkat (Depends-on): Refine the conditions.
2666         * modules/renameat (Depends-on): Likewise.
2667
2668 2011-11-08  Bruno Haible  <bruno@clisp.org>
2669
2670         faccessat: Move AC_LIBOBJ invocation to module description.
2671         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2672         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2673         invocation from here...
2674         * modules/faccessat (configure.ac): ... to here. Invoke
2675         gl_PREREQ_FACCESSAT.
2676
2677 2011-11-08  Bruno Haible  <bruno@clisp.org>
2678
2679         faccessat: Simplify autoconf macro.
2680         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2681         gl_FUNC_EUIDACCESS.
2682
2683 2011-11-08  Bruno Haible  <bruno@clisp.org>
2684
2685         renameat: Fix dependencies.
2686         * modules/renameat (Depends-on): Add stdbool.
2687
2688 2011-11-08  Bruno Haible  <bruno@clisp.org>
2689
2690         mkfifoat: Fix module description.
2691         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2692         not gl_UNISTD_MODULE_INDICATOR.
2693
2694 2011-11-08  Bruno Haible  <bruno@clisp.org>
2695
2696         fstatat: Remove unused dependency.
2697         * modules/fstatat (Depends-on): Remove fstat.
2698
2699 2011-11-08  Simon Josefsson  <simon@josefsson.org>
2700
2701         GNUmakefile: behave when Makefile is missing.
2702         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
2703
2704 2011-11-08  Bruno Haible  <bruno@clisp.org>
2705
2706         openat: Conditionalize dependencies.
2707         * lib/openat.c: Reduce the scope of some #includes.
2708         * modules/openat (Depends-on): Add conditions.
2709
2710 2011-11-07  Jim Meyering  <meyering@redhat.com>
2711
2712         maint.mk: extract GPG key ID without using a temporary file
2713         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
2714         without using a temporary file.  Based on a suggestion from Werner Koch
2715         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
2716
2717 2011-11-07  Eric Blake  <eblake@redhat.com>
2718
2719         grantpt: fix typo
2720         * lib/stdlib.in.h (grantpt): Check correct function.
2721
2722         maint.mk: silence new syntax check
2723         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
2724
2725 2011-11-06  Bruno Haible  <bruno@clisp.org>
2726
2727         Doc about floating-point and math API.
2728         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
2729         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
2730
2731 2011-11-06  Bruno Haible  <bruno@clisp.org>
2732
2733         stdalign tests: Skip the test when compiled by Sun C.
2734         * tests/test-stdalign.c (main): Skip the test on Sun C.
2735
2736 2011-11-06  Bruno Haible  <bruno@clisp.org>
2737
2738         ansi-c++-opt: Complete the 2011-06-05 change.
2739         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
2740         does not support namespaces, set the variable to "no", not to ":".
2741
2742 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2743
2744         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
2745
2746 2011-11-06  Bruno Haible  <bruno@clisp.org>
2747
2748         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
2749         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
2750         (minus_zerol) [HP-UX]: New macro.
2751         (unary_minus) [HP-UX]: New function.
2752         (copysignl) [HP-UX]: Use unary_minus function.
2753
2754 2011-11-06  Bruno Haible  <bruno@clisp.org>
2755
2756         ldexp, ldexpf, ldexpl: Enhance tests.
2757         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2758         and tests/test-ldexpl.c.
2759         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2760         LDEXP, MIN_EXP, MAX_EXP): New macros.
2761         Include test-ldexp.h.
2762         (main): Just call test_function.
2763         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2764         infinity.h, nan.h.
2765         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2766         MAX_EXP): New macros.
2767         Include test-ldexp.h.
2768         (x, y): Remove variables.
2769         (main): Just call test_function.
2770         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
2771         infinity.h, nan.h.
2772         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2773         MAX_EXP): New macros.
2774         Include test-ldexp.h.
2775         (x, y): Remove variables.
2776         (main): Just call test_function.
2777         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2778         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2779         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2780         (Depends-on): Add isnand-nolibm, signbit, float.
2781         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2782         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2783         (Depends-on): Add isnanf-nolibm, signbit, float.
2784
2785 2011-11-06  Bruno Haible  <bruno@clisp.org>
2786
2787         math tests: Cosmetics.
2788         * tests/test-math-c++.cc: Reorder declarations.
2789
2790 2011-11-05  Bruno Haible  <bruno@clisp.org>
2791
2792         fma*: Simplify test.
2793         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2794         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2795
2796         Tests for module 'fmal'.
2797         * modules/fmal-tests: New file.
2798         * tests/test-fmal1.c: New file.
2799         * tests/test-fmal2.c: New file.
2800
2801         New module 'fmal'.
2802         * lib/math.in.h (fmal): New declaration.
2803         * lib/fmal.c: New file.
2804         * m4/fmal.m4: New file.
2805         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2807         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2808         REPLACE_FMAL.
2809         * modules/fmal: New file.
2810         * doc/posix-functions/fmal.texi: Mention the new module and the various
2811         bugs.
2812
2813         Tests for module 'fmaf'.
2814         * modules/fmaf-tests: New file.
2815         * tests/test-fmaf1.c: New file.
2816         * tests/test-fmaf2.c: New file.
2817
2818         New module 'fmaf'.
2819         * lib/math.in.h (fmaf): New declaration.
2820         * lib/fmaf.c: New file.
2821         * m4/fmaf.m4: New file.
2822         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2824         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2825         REPLACE_FMAF.
2826         * modules/fmaf: New file.
2827         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2828         bugs.
2829
2830         Tests for module 'fma'.
2831         * modules/fma-tests: New file.
2832         * tests/test-fma1.c: New file.
2833         * tests/test-fma1.h: New file.
2834         * tests/test-fma2.c: New file.
2835         * tests/test-fma2.h: New file.
2836
2837         New module 'fma'.
2838         * lib/math.in.h (fma): New declaration.
2839         * lib/fma.c: New file.
2840         * m4/fma.m4: New file.
2841         * m4/fegetround.m4: New file.
2842         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2844         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2845         REPLACE_FMA.
2846         * modules/fma: New file.
2847         * doc/posix-functions/fma.texi: Mention the new module and the various
2848         bugs.
2849
2850         Extend gl_MATHFUNC.
2851         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2852         Support 'void' as argument type.
2853         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2854
2855 2011-11-05  Jim Meyering  <meyering@redhat.com>
2856
2857         maint.mk: also prohibit inclusion of dirent.h without use
2858         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2859
2860 2011-11-05  Bruno Haible  <bruno@clisp.org>
2861
2862         ldexpl tests: Avoid test failure on MSVC 9.
2863         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2864         value. Needed in order to enforce the conversion from a value greater
2865         than LDBL_MAX to Infinity.
2866
2867 2011-11-05  Bruno Haible  <bruno@clisp.org>
2868
2869         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2870         * modules/at-internal: New file, extracted from modules/openat.
2871         * modules/openat-h: New file.
2872         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2873         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2874         * modules/openat (Description): Add reference to POSIX function.
2875         (Files): Remove lib/openat.h, lib/openat-proc.c.
2876         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2877         intprops, unistd.
2878         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2879         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2880         gl_FCNTL_MODULE_INDICATOR.
2881         (Include): Remove unistd.h, openat.h.
2882         * modules/areadlinkat (Files): Add lib/at-func.c.
2883         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2884         openat-die, openat-h, save-cwd.
2885         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2886         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2887         openat-die, openat-h, save-cwd, unistd.
2888         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2889         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2890         openat-h, save-cwd. Remove fcntl-h, openat.
2891         * modules/fchmodat (Files): Remove lib/openat.h.
2892         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2893         openat, stdbool, unistd.
2894         * modules/fchownat (Files): Remove lib/openat.h.
2895         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2896         openat, stdbool, sys_stat.
2897         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2898         lib/openat-proc.c.
2899         (Depends-on): Add at-internal.
2900         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2901         * modules/fstatat (Files): Remove lib/openat.h.
2902         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2903         stdbool, unistd.
2904         * modules/fts (Depends-on): Add openat-h.
2905         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2906         openat.
2907         * modules/mkdirat (Files): Remove lib/openat.h.
2908         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2909         openat, stdbool, sys_stat.
2910         * modules/mkfifoat (Files): Add lib/at-func.c.
2911         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2912         openat-h, save-cwd. Remove fcntl-h, openat.
2913         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2914         * modules/readlinkat (Files): Add lib/at-func.c.
2915         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2916         openat-h, save-cwd. Remove fcntl-h, openat.
2917         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2918         openat.
2919         * modules/selinux-at (Files): Add lib/at-func.c.
2920         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2921         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2922         * modules/symlinkat (Files): Add lib/at-func.c.
2923         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2924         openat-h, save-cwd. Remove fcntl-h, openat.
2925         * modules/unlinkat (Files): Remove lib/openat.h.
2926         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2927         stdbool.
2928         * modules/utimensat (Files): Add lib/at-func.c.
2929         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2930         openat-die, openat-h, save-cwd.
2931         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2932         * modules/fdutimensat-tests (Depends-on): Add openat.
2933         * modules/fstatat-tests (Depends-on): Add openat-h.
2934         * modules/readlinkat-tests (Depends-on): Add openat.
2935         * modules/symlinkat-tests (Depends-on): Add openat.
2936
2937 2011-11-05  Bruno Haible  <bruno@clisp.org>
2938
2939         openat: Include <stdbool.h>.
2940         * lib/openat.c: Include <stdbool.h>.
2941
2942 2011-11-04  Bruno Haible  <bruno@clisp.org>
2943
2944         fchownat, renameat, unlinkat: Fix dependencies.
2945         * modules/fchownat (Depends-on): Add fstatat.
2946         * modules/renameat (Depends-on): Likewise.
2947         * modules/unlinkat (Depends-on): Likewise.
2948
2949 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2950
2951         openat: remove direct dependency on dirent
2952         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2953         and hasn't been needed ever since fdopendir was split into its own
2954         module on 2009-08-31.
2955         * modules/openat (Depends-on): Remove dirent.
2956
2957 2011-11-04  Bruno Haible  <bruno@clisp.org>
2958
2959         renameat: Optimize code size.
2960         * modules/renameat (configure.ac): Don't compile at-func2.c if
2961         REPLACE_RENAMEAT is 1.
2962
2963 2011-11-04  Bruno Haible  <bruno@clisp.org>
2964
2965         openat tests: Fix file list.
2966         * modules/openat-tests (Files): Add tests/test-open.h.
2967
2968 2011-11-04  Bruno Haible  <bruno@clisp.org>
2969
2970         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2971         * modules/fchmodat (Depends-on): Add openat-die.
2972         * modules/fchownat (Depends-on): Likewise.
2973         * modules/linkat (Depends-on): Likewise.
2974         * modules/renameat (Depends-on): Likewise.
2975         * modules/openat (Depends-on): Add dirent.
2976
2977 2011-11-04  Jim Meyering  <meyering@redhat.com>
2978
2979         at-func*.c: fix comments
2980         * lib/at-func2.c: Correct/improve first-line comment.
2981         * lib/at-func.c: Correct grammar in first-line comment.
2982
2983 2011-11-04  Bruno Haible  <bruno@clisp.org>
2984
2985         New module 'mkdirat', split off from module 'openat'.
2986         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2987         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2988         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2989         * modules/mkdirat: New file, extracted from modules/openat.
2990         * modules/openat (Files): Remove lib/mkdirat.c.
2991         (Depends-on): Remove mkdir.
2992         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2993         (Include): Remove <sys/stat.h>.
2994         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2995         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2996         tests/test-mkdir.h.
2997         (Depends-on): Remove ignore-value.
2998         (Makefile.am): Remove rules for test-mkdirat.
2999         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3000         of module 'openat'.
3001         * NEWS: Mention the change.
3002
3003 2011-11-04  Bruno Haible  <bruno@clisp.org>
3004
3005         closedir: Avoid warning on mingw.
3006         * lib/closedir.c: Include <unistd.h>.
3007
3008 2011-11-04  Bruno Haible  <bruno@clisp.org>
3009
3010         New module 'fstatat', split off from module 'openat'.
3011         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3012         defined.
3013         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3014         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3015         gl_FUNC_FSTATAT.
3016         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3017         * modules/fstatat: New file, extracted from modules/openat.
3018         * modules/openat (Files): Remove lib/fstatat.c.
3019         (Depends-on): Remove lstat.
3020         (configure.ac): Remove AC_LIBOBJ of fstatat.
3021         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3022         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3023         tests/test-lstat.h, tests/test-stat.h.
3024         (Depends-on): Remove getcwd-lgpl.
3025         (Makefile.am): Remove rules for test-fstatat.
3026         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3027         of module 'openat'.
3028         * NEWS: Mention the change.
3029         * modules/getcwd (Depends-on): Add fstatat.
3030         * modules/linkat (Depends-on): Likewise.
3031         * modules/mkfifoat-tests (Depends-on): Likewise.
3032         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3033
3034 2011-11-03  Bruno Haible  <bruno@clisp.org>
3035
3036         New module 'unlinkat', split off from module 'openat'.
3037         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3038         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3039         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3040         * modules/unlinkat: New file, extracted from modules/openat. Correct
3041         the dependency conditions.
3042         * modules/openat (Files): Remove lib/unlinkat.c.
3043         (Depends-on): Remove rmdir, unlink.
3044         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3045         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3046         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3047         tests/test-rmdir.h, tests/test-unlink.h.
3048         (Depends-on): Remove unlinkdir.
3049         (Makefile.am): Remove rules for test-unlinkat.
3050         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3051         of module 'openat'.
3052         * NEWS: Mention the change.
3053         * modules/linkat-tests (Depends-on): Add unlinkat.
3054         * modules/mkfifoat-tests (Depends-on): Likewise.
3055         * modules/readlinkat-tests (Depends-on): Likewise.
3056
3057 2011-11-02  Bruno Haible  <bruno@clisp.org>
3058
3059         New module 'fchmodat', split off from module 'openat'.
3060         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3061         defined.
3062         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3063         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3064         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3065         * modules/fchmodat: New file, extracted from modules/openat.
3066         * modules/openat (Files): Remove lib/fchmodat.c.
3067         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3068         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3069         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3070         (Makefile.am): Remove rules for test-fchmodat.
3071         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3072         of module 'openat'.
3073         * NEWS: Mention the change.
3074
3075 2011-11-02  Jim Meyering  <meyering@redhat.com>
3076
3077         putenv: indent #definition of "environ" to placate cppi
3078         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3079
3080         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3081         Git logs are often treated as immutable, because editing them
3082         changes the SHA1 checksums of all descendants.  Thus, errors in
3083         git logs tend to stay there forever.  However, when we generate
3084         a ChangeLog file -- typically for distribution -- from that git log,
3085         we can actually make corrections in the generated file.  The key
3086         lies in recording in machine-readable/applicable form the desired
3087         corrections.  See --help for description and an example.
3088         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3089         (usage): Describe it; alphabetize option descriptions.
3090         (main): Honor the new option, carefully.
3091
3092 2011-11-01  Jim Meyering  <meyering@redhat.com>
3093
3094         gitlog-to-changelog: avoid an infloop
3095         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3096         that ends up being empty.
3097
3098 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3099
3100         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3101         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3102         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3103         contains (possibly-quoted) backslashes.  This should avoid
3104         all-too-common shell bugs if COMPLICATED contains backslashes in
3105         the "wrong" places.  Reported by David Evans in
3106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3107         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3108         because we want ASCII ranges.  Is there some reason we don't use
3109         the C locale everywhere in this script?
3110         (func_module, top level): Avoid unwanted pathname expansion when
3111         $repo_url_prefix or $repo_url_suffix_repl contain shell
3112         metacharacters like '?' and '*'.
3113
3114 2011-11-01  Bruno Haible  <bruno@clisp.org>
3115
3116         fchownat: Improve description.
3117         * modules/fchownat (Description): Add link to function.
3118
3119 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3120
3121         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3122         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3124         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3125
3126 2011-11-01  Bruno Haible  <bruno@clisp.org>
3127
3128         alignof: Avoid collision with stdalign module.
3129         * lib/alignof.h (alignof): Remove macro.
3130         * NEWS: Mention the change.
3131         Reported by Paul Eggert.
3132
3133 2011-11-01  Bruno Haible  <bruno@clisp.org>
3134
3135         New module 'fchownat', split off from module 'openat'.
3136         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3137         defined.
3138         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3139         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3140         invoke gl_FUNC_FCHOWNAT.
3141         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3142         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3143         * modules/fchownat: New file, extracted from modules/openat.
3144         * modules/openat (Files): Remove lib/fchownat.c.
3145         (Depends-on): Remove lchown.
3146         (configure.ac): Remove AC_LIBOBJ of fchownat.
3147         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3148         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3149         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3150         (Depends-on): Remove mgetgroups, usleep, stat-time.
3151         (configure.ac): Remove test for getegid.
3152         (Makefile.am): Remove rules for test-fchownat.
3153         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3154         of module 'openat'.
3155         * NEWS: Mention the change.
3156
3157 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3158
3159         stdalign: port better to MSVC and to Sun C 5.11
3160         This fixes some of the problems reported by Bruno Haible in
3161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3162         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3163         shortcomings of MSVC and of Sun C 5.11.
3164         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3165         around __declspec arg.
3166         * modules/stdalign-tests (Files): Add tests/macros.h.
3167         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3168         Include macros.h, for ASSERT.
3169         (DECLARE_ALIGNED): Remove.
3170         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3171         to catch bug), and to 1 if not (simplifies the rest of the code).
3172         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3173         (CHECK_AUTO): Remove.
3174         (CHECK_ALIGNED): Check only the alignment of the static vars,
3175         since auto var alignment isn't supported by Sun C 5.11.
3176         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3177         ASSERT failures are easier to diagnose.
3178
3179 2011-10-31  Bruno Haible  <bruno@clisp.org>
3180
3181         doc about some IRIX 5.3 problems.
3182         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3183         on IRIX 5.3.
3184         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3185         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3186         5.3.
3187         * doc/posix-functions/grantpt.texi: Likewise.
3188         * doc/posix-functions/unlockpt.texi: Likewise.
3189         * doc/posix-functions/lgamma.texi: Likewise.
3190         * doc/posix-functions/nextafter.texi: Likewise.
3191         * doc/posix-functions/remainder.texi: Likewise.
3192         * doc/posix-functions/select.texi: Mention misplaced declaration on
3193         IRIX 5.3.
3194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3195
3196 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3197
3198         gitlog-to-changelog: fix git-log invocation.
3199         git-log mishandles date strings before 1970-01-01 UTC, and there is
3200         no use to specify --since=1970-01-01 by default anyway.
3201         * build-aux/gitlog-to-changelog: By default, when no --since option
3202         was given, do not specify explicit --since option to git-log.
3203
3204 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3205
3206         gitlog-to-changelog: new option --append-dot.
3207         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3208         first non-blank line of each commit message terminated with a dot.
3209
3210 2011-10-30  Bruno Haible  <bruno@clisp.org>
3211
3212         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3213         * lib/ffsl.h: Include <config.h>.
3214         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3215
3216 2011-10-30  Jim Meyering  <meyering@redhat.com>
3217
3218         GNUmakefile: reenable "make syntax-check" for most projects
3219         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3220         build-aux variable", "syntax-check" would do nothing but succeed with
3221         the "No version control files detected..." diagnostic (unless you
3222         happened to override _build-aux via cfg.mk).
3223         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3224         to precede inclusion of maint.mk.  Otherwise, these variables would
3225         be used undefined in any project that does not override the default.
3226
3227 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3228
3229         gitlog-to-changelog: treat a message with only blank lines as empty.
3230         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3231         trailing blank lines before the code that issues a warning about an
3232         empty commit message.
3233
3234 2011-10-30  Jim Meyering  <meyering@redhat.com>
3235
3236         test-parse-datetime.c: avoid new DST-related false positive test failure
3237         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3238         based on the time/date we'll convert, not the current time.
3239         Otherwise, the moment we cross a DST boundary like today's in
3240         Europe, (CEST to CET), that offset ends up being one hour off.
3241
3242 2011-10-27  Bruno Haible  <bruno@clisp.org>
3243
3244         fstat: Tweak documentation.
3245         * modules/fstat (Description): More precise description.
3246
3247 2011-10-27  Bruno Haible  <bruno@clisp.org>
3248
3249         Update documentation regarding 'largefile' module.
3250         * doc/posix-functions/fstat.texi: Tweak wording.
3251         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3252         problems with huge directories and/or small ino_t types.
3253         * doc/posix-functions/readdir.texi: Likewise.
3254         * doc/posix-functions/rewinddir.texi: Likewise.
3255
3256 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3257
3258         maint.mk: don't maintain a second build-aux variable.
3259         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3260         depends on GNUmakefile, which already maintains a cfg.mk
3261         overridable $(_build-aux) for projects with a non-standard
3262         build-aux directory location, although without the $(srcdir)
3263         prefix.  Use that variable consistently instead of introducing a
3264         second one.  Adjust all call sites.
3265
3266 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3267
3268         Add stdalign module and use it in other modules.
3269         This is based on a previous proposal by Bruno Haible
3270         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3271
3272         stdalign: new module
3273         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3274         * modules/stdalign: New files.
3275         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3276         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3277
3278         stdalign-tests: new module
3279         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3280
3281         argp: use stdalign
3282         * lib/argp-parse.c: Include <stdalign.h>.
3283         (alignof): Remove.
3284         * modules/argp (Depends-on): Add stdalign.
3285
3286         crypto libraries: use stdalign
3287         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3288         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3289         Do not include <stdlib.h> twice, in md4.c.
3290         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3291         because we are accessing a pointer's bit-pattern, not a size.
3292         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3293         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3294         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3295         * modules/crypto/sha512: Likewise.
3296
3297         sys_socket: use stdalign, not alignof
3298         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3299         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3300
3301 2011-10-27  Bruno Haible  <bruno@clisp.org>
3302
3303         raise test: Avoid a test failure on Linux/MIPS.
3304         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3305         because 99 is a valid signal on Linux/MIPS.
3306
3307 2011-10-27  Bruno Haible  <bruno@clisp.org>
3308
3309         nonblocking tests: Fix test failure on Linux/MIPS.
3310         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3311         Set to 270000.
3312
3313 2011-10-27  Bruno Haible  <bruno@clisp.org>
3314
3315         utimensat: Work around problem on Linux/hppa.
3316         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3317         values.
3318         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3319
3320 2011-10-25  Jim Meyering  <meyering@redhat.com>
3321
3322         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3323         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3324         after symbols like NULL, size_t, etc.
3325         Reported by Alfred M. Szmidt.
3326
3327         maint.mk: exempt ENODATA from a syntax-check rule
3328         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3329         from the sc_prohibit_always-defined_macros syntax-check rule.
3330         Add a comment.  See this for more details:
3331         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3332
3333 2011-10-23  Jim Meyering  <meyering@redhat.com>
3334
3335         fts: close parent dir FD before returning from post-traversal fts_read
3336         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3337         unlink A, even though an FD open on A remained.  This is suboptimal
3338         (holding a file descriptor open longer than needed), but otherwise not
3339         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3340         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3341         that represents a real problem: it causes the removal of A to fail
3342         with e.g., "rm: cannot remove `A': Device or resource busy"
3343
3344         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3345         directory file descriptors.  After completing the final, FTS_DP,
3346         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3347         cache, but then proceeded to add a new FD to it via the subsequent
3348         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3349         final file descriptor would be closed only via fts_close's call to
3350         fd_ring_clear.  Now, it is usually closed earlier, via the final
3351         FTS_DP-returning fts_read call.
3352         * lib/fts.c (restore_initial_cwd): New function, converted from
3353         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3354         Update callers.
3355         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3356         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3357
3358 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3359             Bruno Haible  <bruno@clisp.org>
3360             Jim Meyering  <jim@meyering.net>
3361
3362         readme-release: improve safety of release prep instructions.
3363         * README-release: Don't git pull all branches when only master
3364         is needed for the release process.
3365         Run make maintainer-clean before changing trees and merging.
3366         Don't try to run ./configure right after git pull in case files
3367         that influence the bootstrap process have changed, move the
3368         ./configure step to after running ./bootstrap.
3369         Don't bootstrap "one last time"... it's the first time!
3370
3371 2011-10-22  Bruno Haible  <bruno@clisp.org>
3372
3373         errno, strerror-override: Support for MSVC 10.
3374         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3375         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3376         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3377         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3378         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3379         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3380         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3381         Assign values compatible with MSVC 10.
3382         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3383         New macros.
3384         (GNULIB_defined_EWINSOCK): New macro.
3385         * lib/strerror-override.c (strerror_override): Update accordingly.
3386         * lib/strerror-override.h: Likewise.
3387         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3388         longer equal to the corresponding errno value.
3389         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3390
3391 2011-10-22  Bruno Haible  <bruno@clisp.org>
3392
3393         perror: Recognize when test program crashes.
3394         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3395         strerror, set gl_cv_func_perror_works to no.
3396         Reported by Daniel Richard G. <skunk@iskunk.org>.
3397
3398         perror: Fix indentation.
3399         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3400
3401 2011-10-22  Bruno Haible  <bruno@clisp.org>
3402
3403         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3404         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3405         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3406         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3407         functions, not as a macro.
3408         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3409         macros.
3410         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3411         absence of macro.
3412         Suggested by Eric Blake.
3413         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3414
3415 2011-10-21  Bruno Haible  <bruno@clisp.org>
3416
3417         relocatable-prog-wrapper: Don't leave object files behind.
3418         * build-aux/install-reloc: Re-synchronize list of .o files to be
3419         removed with list of compilation units.
3420
3421 2011-10-20  Bruno Haible  <bruno@clisp.org>
3422
3423         openpty, posix_openpt: Remove code duplication.
3424         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3425         * lib/openpty.c: Include <stdlib.h>.
3426         (openpty): Use posix_openpt on all platforms except IRIX.
3427         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3428
3429 2011-10-20  Bruno Haible  <bruno@clisp.org>
3430
3431         unlockpt: Detect invalid argument.
3432         * lib/unlockpt.c: Include <fcntl.h>.
3433         (unlockpt): Check whether fd is valid, using fcntl().
3434         * modules/unlockpt (Depends-on): Add fcntl-h.
3435
3436 2011-10-20  Bruno Haible  <bruno@clisp.org>
3437
3438         openpty: Avoid compilation error on AIX 6.1.
3439         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3440
3441 2011-10-20  Bruno Haible  <bruno@clisp.org>
3442
3443         posix_openpt: Support for OpenBSD.
3444         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3445         (posix_openpt) [OpenBSD]: New code.
3446         * lib/grantpt.c: Include <fcntl.h>.
3447         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3448         * modules/grantpt (Depends-on): Add fcntl-h.
3449
3450 2011-10-20  Bruno Haible  <bruno@clisp.org>
3451
3452         posix_openpt test: Coding style.
3453         * tests/test-posix_openpt.c: Use GNU coding style.
3454
3455 2011-10-20  Bruno Haible  <bruno@clisp.org>
3456
3457         grantpt: Support --avoid=pt_chown.
3458         * modules/grantpt (Files): Add lib/pty-private.h.
3459
3460 2011-10-20  Bruno Haible  <bruno@clisp.org>
3461
3462         posix_openpt: Fix autoconf macro.
3463         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3464         unneeded check for _getpty.
3465
3466 2011-10-20  Bruno Haible  <bruno@clisp.org>
3467
3468         openpty: Update comments.
3469         * lib/openpty.c: Add comments about Minix.
3470
3471 2011-10-19  Eric Blake  <eblake@redhat.com>
3472
3473         openpty: relax license
3474         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3475
3476         pt_chown: use configmake to simplify build
3477         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3478
3479         ptsname and others: relax license
3480         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3481         * modules/unlockpt (License): Likewise.
3482         * modules/pt_chown (License): Likewise.
3483         * modules/ptsname (License): Likewise.
3484         * modules/ttyname_r (License): Likewise.
3485
3486 2011-10-19  Jim Meyering  <meyering@redhat.com>
3487
3488         posix_openpt: remove spurious #endif
3489         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3490
3491 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3492
3493         maint.mk: Respect $(build_aux) in web-manual rule.
3494         * top/maint.mk (web-manual): Find gen-announce script in user's
3495         $(build_aux) directory instead of hard-coding 'build-aux'.
3496
3497 2011-10-19  Bruno Haible  <bruno@clisp.org>
3498
3499         posix_openpt: Fix compilation error.
3500         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3501         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3502         Mention the openpty module as an alternative.
3503
3504 2011-10-19  Bruno Haible  <bruno@clisp.org>
3505
3506         Support for old NeXTstep 3.3 frexp().
3507         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3508         execution time of the test to 5 seconds.
3509         Reported by Daniel Richard G. <skunk@iskunk.org>.
3510
3511 2011-10-19  Bruno Haible  <bruno@clisp.org>
3512
3513         Support for old NeXTstep 3.3 sed.
3514         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3515         part, use /.../, not \|...|. Escape periods in the header file name.
3516         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3517         Reported by Daniel Richard G. <skunk@iskunk.org>.
3518
3519 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3520
3521         Support for old NeXTstep 3.3 gcc.
3522         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3523         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3524         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3525         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3526         * lib/regex.h (_Restrict_arr_): Likewise.
3527         * lib/regex_internal.h (re_token_t): Likewise.
3528         * lib/regexec.c (check_node_accept_bytes): Likewise.
3529         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3530
3531 2011-10-18  Eric Blake  <eblake@redhat.com>
3532
3533         posix_openpt: new module
3534         * modules/posix_openpt: New module.
3535         * m4/posix_openpt.m4: New file.
3536         * lib/posix_openpt.c: Likewise.
3537         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3538         (gl_STDLIB_H_DEFAULTS): Set defaults.
3539         * modules/stdlib (Makefile.am): Substitute macros.
3540         * lib/stdlib.in.h (posix_openpt): Declare.
3541         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3542         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3543         * modules/posix_openpt-tests: New test module.
3544         * tests/test-posix_openpt.c: New test.
3545
3546 2011-10-15  Bruno Haible  <bruno@clisp.org>
3547
3548         xstrtoll: Fix compilation failure.
3549         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3550         from lib/strtol.c.
3551         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3552         some platforms.
3553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3554
3555 2011-10-15  Bruno Haible  <bruno@clisp.org>
3556
3557         vasnprintf: Optimize bit search operation.
3558         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3560         gl_DOUBLE_EXPONENT_LOCATION.
3561         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3562         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3563         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3564         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3565         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3566         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3567         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3568         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3569         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3570
3571 2011-10-15  Bruno Haible  <bruno@clisp.org>
3572
3573         vasnprintf: Fix comments.
3574         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3575
3576 2011-10-14  Bruno Haible  <bruno@clisp.org>
3577
3578         Tests for module 'integer_length_ll'.
3579         * modules/integer_length_ll-tests: New file.
3580         * tests/test-integer_length_ll.c: New file.
3581
3582         New module 'integer_length_ll'.
3583         * lib/integer_length_ll.c: New file.
3584         * modules/integer_length_ll: New file.
3585
3586 2011-10-14  Bruno Haible  <bruno@clisp.org>
3587
3588         Tests for module 'integer_length_l'.
3589         * modules/integer_length_l-tests: New file.
3590         * tests/test-integer_length_l.c: New file.
3591
3592         New module 'integer_length_l'.
3593         * lib/integer_length_l.c: New file.
3594         * modules/integer_length_l: New file.
3595
3596 2011-10-14  Bruno Haible  <bruno@clisp.org>
3597
3598         Tests for module 'integer_length'.
3599         * modules/integer_length-tests: New file.
3600         * tests/test-integer_length.c: New file.
3601
3602         New module 'integer_length'.
3603         * lib/integer_length.h: New file.
3604         * lib/integer_length.c: New file.
3605         * modules/integer_length: New file.
3606
3607 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3608
3609         popen: Fix dependency conditions.
3610         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3611
3612 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3613
3614         perror: Fix autoconf test.
3615         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3616         <stdlib.h> and <string.h>.
3617
3618 2011-10-14  Bruno Haible  <bruno@clisp.org>
3619
3620         ffsl: Optimize on 64-bit platforms.
3621         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3622         unrolling.
3623
3624 2011-10-13  Bruno Haible  <bruno@clisp.org>
3625
3626         ffsl: Optimize on 32-bit platforms.
3627         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3628         use ffs() without a loop.
3629
3630         ffsl, ffsll: Optimize for GCC.
3631         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3632         * lib/ffsl.c (GCC_BUILTIN): New macro.
3633         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3634
3635 2011-10-13  Bruno Haible  <bruno@clisp.org>
3636
3637         ffs, bcopy, memset: Support symbol renaming via config.h.
3638         * lib/ffs.c: Include <config.h>.
3639         * lib/bcopy.c: Likewise.
3640         * lib/memset.c: Likewise.
3641
3642 2011-10-10  Bruno Haible  <bruno@clisp.org>
3643
3644         atanl: Simplify for platforms where 'long double' == 'double'.
3645         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3646         alternative implementation.
3647         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3648         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3649         * modules/atanl (Depends-on): Add atan. Update conditions.
3650
3651 2011-10-10  Bruno Haible  <bruno@clisp.org>
3652
3653         acosl: Simplify for platforms where 'long double' == 'double'.
3654         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3655         alternative implementation.
3656         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3657         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3658         * modules/acosl (Depends-on): Add acos. Update conditions.
3659
3660 2011-10-10  Bruno Haible  <bruno@clisp.org>
3661
3662         asinl: Simplify for platforms where 'long double' == 'double'.
3663         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3664         alternative implementation.
3665         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3666         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3667         * modules/asinl (Depends-on): Add asin. Update conditions.
3668
3669 2011-10-10  Bruno Haible  <bruno@clisp.org>
3670
3671         tanl: Simplify for platforms where 'long double' == 'double'.
3672         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3673         implementation.
3674         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3675         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3676         * modules/tanl (Depends-on): Add tan. Update conditions.
3677         (configure.ac): Don't compile trigl.c if
3678         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3679
3680 2011-10-10  Bruno Haible  <bruno@clisp.org>
3681
3682         cosl: Simplify for platforms where 'long double' == 'double'.
3683         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3684         implementation.
3685         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3686         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3687         * modules/cosl (Depends-on): Add cos. Update conditions.
3688         (configure.ac): Don't compile sincosl.c and trigl.c if
3689         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3690
3691 2011-10-10  Bruno Haible  <bruno@clisp.org>
3692
3693         sinl: Simplify for platforms where 'long double' == 'double'.
3694         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3695         implementation.
3696         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3697         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3698         * modules/sinl (Depends-on): Add sin. Update conditions.
3699         (configure.ac): Don't compile sincosl.c and trigl.c if
3700         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3701
3702 2011-10-10  Bruno Haible  <bruno@clisp.org>
3703
3704         logl: Simplify for platforms where 'long double' == 'double'.
3705         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3706         implementation.
3707         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3708         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3709         * modules/logl (Depends-on): Add log. Update conditions.
3710
3711 2011-10-10  Bruno Haible  <bruno@clisp.org>
3712
3713         expl: Simplify for platforms where 'long double' == 'double'.
3714         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3715         implementation.
3716         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3717         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3718         * modules/expl (Depends-on): Add exp. Update conditions.
3719
3720 2011-10-10  Bruno Haible  <bruno@clisp.org>
3721
3722         sqrtl: Simplify for platforms where 'long double' == 'double'.
3723         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3724         alternative implementation.
3725         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3726         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3727         * modules/sqrtl (Depends-on): Update conditions.
3728
3729 2011-10-10  Bruno Haible  <bruno@clisp.org>
3730
3731         ldexpl: Simplify for platforms where 'long double' == 'double'.
3732         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3733         alternative implementation.
3734         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3735         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3736         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
3737
3738 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
3739
3740         ffsll: set correct witness
3741         * modules/ffsll (configure.ac): Fix typo.
3742
3743 2011-10-10  Bruno Haible  <bruno@clisp.org>
3744
3745         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
3746         * lib/printf-frexpl.c: Include <config.h>.
3747         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3748         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
3749         second time.
3750         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
3751         gl_LONG_DOUBLE_VS_DOUBLE.
3752         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
3753         conditions.
3754
3755 2011-10-10  Bruno Haible  <bruno@clisp.org>
3756
3757         frexpl: Simplify for platforms where 'long double' == 'double'.
3758         * lib/frexpl.c: Include <config.h>.
3759         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3760         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3761         time.
3762         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3763         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3764         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3765         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3766         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3767         conditions.
3768
3769 2011-10-10  Jim Meyering  <meyering@redhat.com>
3770
3771         test-renameat: don't leave behind a temporary file
3772         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
3773           ERROR: files left in build directory after distclean:
3774           ./gltests/test-renameat.too
3775           make[1]: *** [distcleancheck] Error 1
3776         Reported by Tom G. Christensen.
3777
3778 2011-10-09  Bruno Haible  <bruno@clisp.org>
3779
3780         rint: Determine RINT_LIBM correctly on AIX 7.
3781         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3782         directly, not only through a function pointer. Also accept an optional
3783         4th argument with extra code.
3784         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3785         rintf() call by gcc when optimizing.
3786
3787         mathfunc.m4: Refactor.
3788         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3789         m4 variable.
3790
3791 2011-10-09  Bruno Haible  <bruno@clisp.org>
3792
3793         rintl: Simplify for platforms where 'long double' == 'double'.
3794         * lib/rintl.c: Include <config.h>.
3795         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3796         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3797         time.
3798         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3799         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3800         * modules/rintl (Depends-on): Add rint. Update conditions.
3801
3802 2011-10-09  Bruno Haible  <bruno@clisp.org>
3803
3804         roundl: Simplify for platforms where 'long double' == 'double'.
3805         * lib/roundl.c: Include <config.h>.
3806         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3807         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3808         time.
3809         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3810         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3811         * modules/roundl (Depends-on): Add round. Update conditions.
3812
3813 2011-10-09  Bruno Haible  <bruno@clisp.org>
3814
3815         truncl: Simplify for platforms where 'long double' == 'double'.
3816         * lib/truncl.c: Include <config.h>.
3817         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3818         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3819         time.
3820         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3821         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3822         * modules/truncl (Depends-on): Add trunc. Update conditions.
3823
3824 2011-10-09  Bruno Haible  <bruno@clisp.org>
3825
3826         ceill: Simplify for platforms where 'long double' == 'double'.
3827         * lib/ceill.c: Include <config.h>.
3828         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3829         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3830         time.
3831         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3832         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3833         * modules/ceill (Depends-on): Add ceil. Update conditions.
3834
3835 2011-10-09  Bruno Haible  <bruno@clisp.org>
3836
3837         floorl: Simplify for platforms where 'long double' == 'double'.
3838         * lib/floorl.c: Include <config.h>.
3839         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3840         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3841         time.
3842         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3843         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3844         * modules/floorl (Depends-on): Add floor. Update conditions.
3845
3846 2011-10-09  Bruno Haible  <bruno@clisp.org>
3847
3848         rint: Fix ordering constraints.
3849         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3850         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3851         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3852
3853 2011-10-09  Bruno Haible  <bruno@clisp.org>
3854
3855         copysignl: Simplify for platforms where 'long double' == 'double'.
3856         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3857         alternative.
3858         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3859         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3860         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3861
3862 2011-10-09  Bruno Haible  <bruno@clisp.org>
3863
3864         Tests for module 'rintl'.
3865         * modules/rintl-tests: New file.
3866         * tests/test-rintl.c: New file.
3867
3868         New module 'rintl'.
3869         * lib/math.in.h (rintl): New declaration.
3870         * lib/rintl.c: New file.
3871         * m4/rintl.m4: New file.
3872         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3874         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3875         * modules/rintl: New file.
3876         * tests/test-math-c++.cc: Check the declaration of rintl.
3877         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3878         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3879         * doc/posix-functions/rintl.texi: Mention the new module.
3880
3881 2011-10-09  Bruno Haible  <bruno@clisp.org>
3882
3883         Tests for module 'rintf'.
3884         * modules/rintf-tests: New file.
3885         * tests/test-rintf.c: New file.
3886
3887         New module 'rintf'.
3888         * lib/math.in.h (rintf): New declaration.
3889         * lib/rintf.c: New file.
3890         * m4/rintf.m4: New file.
3891         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3893         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3894         * modules/rintf: New file.
3895         * tests/test-math-c++.cc: Check the declaration of rintf.
3896         * doc/posix-functions/rintf.texi: Mention the new module.
3897
3898 2011-10-09  Bruno Haible  <bruno@clisp.org>
3899
3900         rint: Support for MSVC.
3901         * lib/math.in.h (rint): New declaration.
3902         * lib/rint.c: New file.
3903         * m4/rint.m4: New file.
3904         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3906         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3907         * modules/rint (Description): Fix.
3908         (Files): Add lib/rint.c, m4/rint.m4.
3909         (Depends-on): Add math.
3910         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3911         gl_MATH_MODULE_INDICATOR.
3912         * tests/test-math-c++.cc: Check the declaration of rint.
3913         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3914         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3915         * doc/posix-functions/rint.texi: Mention the replacement provided by
3916         the module.
3917
3918         rint tests: More tests.
3919         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3920         minus-zero.h, infinity.h, nan.h.
3921         (main): Skip the test if the current rounding mode is not standard. Add
3922         tests for negative numbers, minus zero, infinity, NaN.
3923         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3924         tests/nan.h.
3925         (Depends-on): Add isnand-nolibm.
3926
3927 2011-10-09  Bruno Haible  <bruno@clisp.org>
3928
3929         Tests for module 'copysignl'.
3930         * modules/copysignl-tests: New file.
3931         * tests/test-copysignl.c: New file.
3932
3933         New module 'copysignl'.
3934         * lib/math.in.h (copysignl): New declaration.
3935         * lib/copysignl.c: New file.
3936         * m4/copysignl.m4: New file.
3937         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3939         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3940         HAVE_COPYSIGNL.
3941         * modules/copysignl: New file.
3942         * tests/test-math-c++.cc: Check the declaration of copysignl.
3943         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3944         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3945         * doc/posix-functions/copysignl.texi: Mention the new module.
3946
3947 2011-10-09  Bruno Haible  <bruno@clisp.org>
3948
3949         Tests for module 'copysignf'.
3950         * modules/copysignf-tests: New file.
3951         * tests/test-copysignf.c: New file.
3952
3953         New module 'copysignf'.
3954         * lib/math.in.h (copysignf): New declaration.
3955         * lib/copysignf.c: New file.
3956         * m4/copysignf.m4: New file.
3957         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3959         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3960         HAVE_COPYSIGNF.
3961         * modules/copysignf: New file.
3962         * tests/test-math-c++.cc: Check the declaration of copysignf.
3963         * doc/posix-functions/copysignf.texi: Mention the new module.
3964
3965 2011-10-09  Bruno Haible  <bruno@clisp.org>
3966
3967         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3968         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3969         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3970         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3971         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3972         gl_SIGNAL_H_DEFAULTS.
3973
3974 2011-10-09  Bruno Haible  <bruno@clisp.org>
3975
3976         poll: Make macro safer.
3977         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3978         ac_cv_header_poll_h is not set.
3979
3980 2011-10-09  Bruno Haible  <bruno@clisp.org>
3981
3982         copysign: Provide replacement.
3983         * lib/math.in.h (copysign): New declaration.
3984         * lib/copysign.c: New file.
3985         * m4/copysign.m4: New file.
3986         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3988         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3989         HAVE_COPYSIGN.
3990         * modules/copysign (Description): Clarify.
3991         (Files): Add lib/copysign.c, m4/copysign.m4.
3992         (Depends-on): Add math, signbit.
3993         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3994         gl_MATH_MODULE_INDICATOR.
3995         * tests/test-math-c++.cc: Check the declaration of copysign.
3996         * doc/posix-functions/copysign.texi: Mention the effects of the module
3997         on Minix and MSVC.
3998
3999 2011-10-09  Bruno Haible  <bruno@clisp.org>
4000
4001         isinf: Ensure macro on AIX 5.1.
4002         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4003         macro.
4004         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4005
4006 2011-10-09  Bruno Haible  <bruno@clisp.org>
4007
4008         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4009         * modules/snprintf-posix-tests (configure.ac): Require
4010         gl_LONG_DOUBLE_VS_DOUBLE.
4011         * modules/sprintf-posix-tests (configure.ac): Likewise.
4012         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4013         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4014         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4015         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4016         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4017         tests on platforms where 'long double' is the same as 'double'.
4018         * tests/test-sprintf-posix.h (test_function): Likewise.
4019         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4020         * tests/test-vasprintf-posix.c (test_function): Likewise.
4021
4022         *printf: Fix for platforms where 'long double' == 'double'.
4023         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4024         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4025         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4026         * modules/fprintf-posix (Files): Likewise.
4027         * modules/obstack-printf-posix (Files): Likewise.
4028         * modules/snprintf-posix (Files): Likewise.
4029         * modules/sprintf-posix (Files): Likewise.
4030         * modules/vasnprintf (Files): Likewise.
4031         * modules/vasnprintf-posix (Files): Likewise.
4032         * modules/vasprintf-posix (Files): Likewise.
4033         * modules/vdprintf-posix (Files): Likewise.
4034         * modules/vfprintf-posix (Files): Likewise.
4035         * modules/vsnprintf-posix (Files): Likewise.
4036         * modules/vsprintf-posix (Files): Likewise.
4037         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4038         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4039         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4040         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4041         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4042         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4043         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4044
4045         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4046         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4047         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4048         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4049         'long double'.
4050         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4051
4052         isinf: Fix for platforms where 'long double' == 'double'.
4053         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4054         Don't blindly assume 80-bit 'long double'.
4055
4056         isfinite: Fix for platforms where 'long double' == 'double'.
4057         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4058         Don't blindly assume 80-bit 'long double'.
4059
4060         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4061         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4062         * modules/isfinite-tests (configure.ac): Require
4063         gl_LONG_DOUBLE_VS_DOUBLE.
4064         * modules/isinf-tests (configure.ac): Likewise.
4065         * modules/isnan-tests (configure.ac): Likewise.
4066         * modules/isnanl-tests (configure.ac): Likewise.
4067         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4068         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4069         tests on platforms where 'long double' is the same as 'double'.
4070         * tests/test-isinf.c (test_isinfl): Likewise.
4071         * tests/test-isnan.c (test_long_double): Likewise.
4072         * tests/test-isnanl.h (main): Likewise.
4073
4074 2011-10-08  Bruno Haible  <bruno@clisp.org>
4075
4076         Tests for module 'tanhf'.
4077         * modules/tanhf-tests: New file.
4078         * tests/test-tanhf.c: New file.
4079
4080         New module 'tanhf'.
4081         * lib/math.in.h (tanhf): New declaration.
4082         * lib/tanhf.c: New file.
4083         * m4/tanhf.m4: New file.
4084         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4086         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4087         * modules/tanhf: New file.
4088         * tests/test-math-c++.cc: Check the declaration of tanhf.
4089         * doc/posix-functions/tanhf.texi: Mention the new module.
4090
4091         tanh: Use a .m4 file.
4092         * m4/tanh.m4: New file.
4093         * modules/tanh (Files): Add it.
4094         (configure.ac): Just invoke gl_FUNC_TANH.
4095
4096 2011-10-08  Bruno Haible  <bruno@clisp.org>
4097
4098         Tests for module 'coshf'.
4099         * modules/coshf-tests: New file.
4100         * tests/test-coshf.c: New file.
4101
4102         New module 'coshf'.
4103         * lib/math.in.h (coshf): New declaration.
4104         * lib/coshf.c: New file.
4105         * m4/coshf.m4: New file.
4106         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4108         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4109         * modules/coshf: New file.
4110         * tests/test-math-c++.cc: Check the declaration of coshf.
4111         * doc/posix-functions/coshf.texi: Mention the new module.
4112
4113         cosh: Use a .m4 file.
4114         * m4/cosh.m4: New file.
4115         * modules/cosh (Files): Add it.
4116         (configure.ac): Just invoke gl_FUNC_COSH.
4117
4118 2011-10-08  Bruno Haible  <bruno@clisp.org>
4119
4120         Tests for module 'sinhf'.
4121         * modules/sinhf-tests: New file.
4122         * tests/test-sinhf.c: New file.
4123
4124         New module 'sinhf'.
4125         * lib/math.in.h (sinhf): New declaration.
4126         * lib/sinhf.c: New file.
4127         * m4/sinhf.m4: New file.
4128         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4130         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4131         * modules/sinhf: New file.
4132         * tests/test-math-c++.cc: Check the declaration of sinhf.
4133         * doc/posix-functions/sinhf.texi: Mention the new module.
4134
4135         sinh: Use a .m4 file.
4136         * m4/sinh.m4: New file.
4137         * modules/sinh (Files): Add it.
4138         (configure.ac): Just invoke gl_FUNC_SINH.
4139
4140 2011-10-08  Bruno Haible  <bruno@clisp.org>
4141
4142         Tests for module 'atan2f'.
4143         * modules/atan2f-tests: New file.
4144         * tests/test-atan2f.c: New file.
4145
4146         New module 'atan2f'.
4147         * lib/math.in.h (atan2f): New declaration.
4148         * lib/atan2f.c: New file.
4149         * m4/atan2f.m4: New file.
4150         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4152         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4153         * modules/atan2f: New file.
4154         * tests/test-math-c++.cc: Check the declaration of atan2f.
4155         * doc/posix-functions/atan2f.texi: Mention the new module.
4156
4157         atan2: Use a .m4 file.
4158         * m4/atan2.m4: New file.
4159         * modules/atan2 (Files): Add it.
4160         (configure.ac): Just invoke gl_FUNC_ATAN2.
4161
4162 2011-10-08  Bruno Haible  <bruno@clisp.org>
4163
4164         Tests for module 'atanf'.
4165         * modules/atanf-tests: New file.
4166         * tests/test-atanf.c: New file.
4167
4168         New module 'atanf'.
4169         * lib/math.in.h (atanf): New declaration.
4170         * lib/atanf.c: New file.
4171         * m4/atanf.m4: New file.
4172         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4174         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4175         * modules/atanf: New file.
4176         * tests/test-math-c++.cc: Check the declaration of atanf.
4177         * doc/posix-functions/atanf.texi: Mention the new module.
4178
4179         atan: Use a .m4 file.
4180         * m4/atan.m4: New file.
4181         * modules/atan (Files): Add it.
4182         (configure.ac): Just invoke gl_FUNC_ATAN.
4183
4184 2011-10-08  Bruno Haible  <bruno@clisp.org>
4185
4186         Tests for module 'acosf'.
4187         * modules/acosf-tests: New file.
4188         * tests/test-acosf.c: New file.
4189
4190         New module 'acosf'.
4191         * lib/math.in.h (acosf): New declaration.
4192         * lib/acosf.c: New file.
4193         * m4/acosf.m4: New file.
4194         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4196         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4197         * modules/acosf: New file.
4198         * tests/test-math-c++.cc: Check the declaration of acosf.
4199         * doc/posix-functions/acosf.texi: Mention the new module.
4200
4201         acos: Use a .m4 file.
4202         * m4/acos.m4: New file.
4203         * modules/acos (Files): Add it.
4204         (configure.ac): Just invoke gl_FUNC_ACOS.
4205
4206 2011-10-08  Bruno Haible  <bruno@clisp.org>
4207
4208         Tests for module 'asinf'.
4209         * modules/asinf-tests: New file.
4210         * tests/test-asinf.c: New file.
4211
4212         New module 'asinf'.
4213         * lib/math.in.h (asinf): New declaration.
4214         * lib/asinf.c: New file.
4215         * m4/asinf.m4: New file.
4216         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4218         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4219         * modules/asinf: New file.
4220         * tests/test-math-c++.cc: Check the declaration of asinf.
4221         * doc/posix-functions/asinf.texi: Mention the new module.
4222
4223         asin: Use a .m4 file.
4224         * m4/asin.m4: New file.
4225         * modules/asin (Files): Add it.
4226         (configure.ac): Just invoke gl_FUNC_ASIN.
4227
4228 2011-10-08  Bruno Haible  <bruno@clisp.org>
4229
4230         Tests for module 'tanf'.
4231         * modules/tanf-tests: New file.
4232         * tests/test-tanf.c: New file.
4233
4234         New module 'tanf'.
4235         * lib/math.in.h (tanf): New declaration.
4236         * lib/tanf.c: New file.
4237         * m4/tanf.m4: New file.
4238         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4240         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4241         * modules/tanf: New file.
4242         * tests/test-math-c++.cc: Check the declaration of tanf.
4243         * doc/posix-functions/tanf.texi: Mention the new module.
4244
4245         tan: Use a .m4 file.
4246         * m4/tan.m4: New file.
4247         * modules/tan (Files): Add it.
4248         (configure.ac): Just invoke gl_FUNC_TAN.
4249
4250 2011-10-08  Bruno Haible  <bruno@clisp.org>
4251
4252         Tests for module 'cosf'.
4253         * modules/cosf-tests: New file.
4254         * tests/test-cosf.c: New file.
4255
4256         New module 'cosf'.
4257         * lib/math.in.h (cosf): New declaration.
4258         * lib/cosf.c: New file.
4259         * m4/cosf.m4: New file.
4260         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4262         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4263         * modules/cosf: New file.
4264         * tests/test-math-c++.cc: Check the declaration of cosf.
4265         * doc/posix-functions/cosf.texi: Mention the new module.
4266
4267         cos: Use a .m4 file.
4268         * m4/cos.m4: New file.
4269         * modules/cos (Files): Add it.
4270         (configure.ac): Just invoke gl_FUNC_COS.
4271
4272 2011-10-08  Bruno Haible  <bruno@clisp.org>
4273
4274         Tests for module 'sinf'.
4275         * modules/sinf-tests: New file.
4276         * tests/test-sinf.c: New file.
4277
4278         New module 'sinf'.
4279         * lib/math.in.h (sinf): New declaration.
4280         * lib/sinf.c: New file.
4281         * m4/sinf.m4: New file.
4282         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4284         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4285         * modules/sinf: New file.
4286         * tests/test-math-c++.cc: Check the declaration of sinf.
4287         * doc/posix-functions/sinf.texi: Mention the new module.
4288
4289         sin: Use a .m4 file.
4290         * m4/sin.m4: New file.
4291         * modules/sin (Files): Add it.
4292         (configure.ac): Just invoke gl_FUNC_SIN.
4293
4294 2011-10-08  Bruno Haible  <bruno@clisp.org>
4295
4296         Tests for module 'powf'.
4297         * modules/powf-tests: New file.
4298         * tests/test-powf.c: New file.
4299
4300         New module 'powf'.
4301         * lib/math.in.h (powf): New declaration.
4302         * lib/powf.c: New file.
4303         * m4/powf.m4: New file.
4304         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4306         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4307         * modules/powf: New file.
4308         * tests/test-math-c++.cc: Check the declaration of powf.
4309         * doc/posix-functions/powf.texi: Mention the new module.
4310
4311         pow: Use a .m4 file.
4312         * m4/pow.m4: New file.
4313         * modules/pow (Files): Add it.
4314         (configure.ac): Just invoke gl_FUNC_POW.
4315
4316 2011-10-08  Bruno Haible  <bruno@clisp.org>
4317
4318         Tests for module 'log10f'.
4319         * modules/log10f-tests: New file.
4320         * tests/test-log10f.c: New file.
4321
4322         New module 'log10f'.
4323         * lib/math.in.h (log10f): New declaration.
4324         * lib/log10f.c: New file.
4325         * m4/log10f.m4: New file.
4326         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4328         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4329         * modules/log10f: New file.
4330         * tests/test-math-c++.cc: Check the declaration of log10f.
4331         * doc/posix-functions/log10f.texi: Mention the new module.
4332
4333         log10: Use a .m4 file.
4334         * m4/log10.m4: New file.
4335         * modules/log10 (Files): Add it.
4336         (configure.ac): Just invoke gl_FUNC_LOG10.
4337
4338 2011-10-08  Bruno Haible  <bruno@clisp.org>
4339
4340         Tests for module 'logf'.
4341         * modules/logf-tests: New file.
4342         * tests/test-logf.c: New file.
4343
4344         New module 'logf'.
4345         * lib/math.in.h (logf): New declaration.
4346         * lib/logf.c: New file.
4347         * m4/logf.m4: New file.
4348         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4350         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4351         * modules/logf: New file.
4352         * tests/test-math-c++.cc: Check the declaration of logf.
4353         * doc/posix-functions/logf.texi: Mention the new module.
4354
4355         log: Use a .m4 file.
4356         * m4/log.m4: New file.
4357         * modules/log (Files): Add it.
4358         (configure.ac): Just invoke gl_FUNC_LOG.
4359
4360 2011-10-08  Bruno Haible  <bruno@clisp.org>
4361
4362         Tests for module 'expf'.
4363         * modules/expf-tests: New file.
4364         * tests/test-expf.c: New file.
4365
4366         New module 'expf'.
4367         * lib/math.in.h (expf): New declaration.
4368         * lib/expf.c: New file.
4369         * m4/expf.m4: New file.
4370         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4372         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4373         * modules/expf: New file.
4374         * tests/test-math-c++.cc: Check the declaration of expf.
4375         * doc/posix-functions/expf.texi: Mention the new module.
4376
4377         exp: Use a .m4 file.
4378         * m4/exp.m4: New file.
4379         * modules/exp (Files): Add it.
4380         (configure.ac): Just invoke gl_FUNC_EXP.
4381
4382 2011-10-08  Bruno Haible  <bruno@clisp.org>
4383
4384         Tests for module 'sqrtf'.
4385         * modules/sqrtf-tests: New file.
4386         * tests/test-sqrtf.c: New file.
4387
4388         New module 'sqrtf'.
4389         * lib/math.in.h (sqrtf): New declaration.
4390         * lib/sqrtf.c: New file.
4391         * m4/sqrtf.m4: New file.
4392         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4393         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4394         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4395         * modules/sqrtf: New file.
4396         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4397         * doc/posix-functions/sqrtf.texi: Mention the new module.
4398
4399 2011-10-08  Bruno Haible  <bruno@clisp.org>
4400
4401         Tests: Avoid link failures w.r.t. libintl.
4402         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4403         $(LIBINTL).
4404         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4405         $(LIBINTL).
4406         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4407         against $(LIBINTL).
4408         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4409         $(LIBINTL).
4410         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4411         $(LIBINTL).
4412         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4413
4414 2011-10-08  Bruno Haible  <bruno@clisp.org>
4415
4416         pow tests: Defeat compiler optimizations.
4417         * tests/test-pow.c (main): Assign arguments to x and y before use.
4418
4419 2011-10-08  Bruno Haible  <bruno@clisp.org>
4420
4421         gnulib-tool: Improve last commit.
4422         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4423         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4424         ignore dependencies that are not among the modules list.
4425
4426 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4427
4428         gnulib-tool: don't follow dependencies to avoided modules
4429         This fixes a bug that is related to the previous one.
4430         * gnulib-tool (func_modules_transitive_closure)
4431         (func_emit_autoconf_snippets):
4432         Check whether a dependency is acceptable before using it.
4433         (--extract-dependencies): Report an error if --avoid is also used,
4434         since this combination of options is not yet supported.
4435
4436         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4437         Problem reported by Peter Dyballa in
4438         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4439         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4440         when echoing "$condition".
4441
4442 2011-10-07  Bruno Haible  <bruno@clisp.org>
4443
4444         Fix documentation about math functions on MacOS X.
4445         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4446         MacOS X 10.5.
4447         * doc/posix-functions/fdim.texi: Likewise.
4448         * doc/posix-functions/feclearexcept.texi: Likewise.
4449         * doc/posix-functions/fegetenv.texi: Likewise.
4450         * doc/posix-functions/fegetround.texi: Likewise.
4451         * doc/posix-functions/feholdexcept.texi: Likewise.
4452         * doc/posix-functions/feraiseexcept.texi: Likewise.
4453         * doc/posix-functions/fesetenv.texi: Likewise.
4454         * doc/posix-functions/fesetround.texi: Likewise.
4455         * doc/posix-functions/fetestexcept.texi: Likewise.
4456         * doc/posix-functions/feupdateenv.texi: Likewise.
4457         * doc/posix-functions/fmax.texi: Likewise.
4458         * doc/posix-functions/fmin.texi: Likewise.
4459         * doc/posix-functions/log2.texi: Likewise.
4460         * doc/posix-functions/modff.texi: Likewise.
4461         * doc/posix-functions/nan.texi: Likewise.
4462         * doc/posix-functions/nanf.texi: Likewise.
4463         * doc/posix-functions/nextafterf.texi: Likewise.
4464         * doc/posix-functions/remquo.texi: Likewise.
4465
4466 2011-10-07  Bruno Haible  <bruno@clisp.org>
4467
4468         modff: Drop assumption about library that defines modff.
4469         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4470         AC_CHECK_FUNCS.
4471         * modules/modff (Files): Add m4/mathfunc.m4.
4472
4473 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4474
4475         raise tests: Avoid a GCC warning.
4476         * tests/test-raise.c (handler): Use _Noreturn.
4477
4478 2011-10-07  Bruno Haible  <bruno@clisp.org>
4479
4480         Tests for module 'ldexpf'.
4481         * modules/ldexpf-tests: New file.
4482         * tests/test-ldexpf.c: New file.
4483
4484         New module 'ldexpf'.
4485         * lib/math.in.h (ldexpf): New declaration.
4486         * lib/ldexpf.c: New file.
4487         * m4/ldexpf.m4: New file.
4488         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4490         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4491         * modules/ldexpf: New file.
4492         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4493         * doc/posix-functions/ldexpf.texi: Mention the new module.
4494
4495 2011-10-06  Bruno Haible  <bruno@clisp.org>
4496
4497         frexpf: Work around problems on IRIX and mingw.
4498         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4500         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4501         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4502         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4503         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4504         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4505
4506 2011-10-06  Bruno Haible  <bruno@clisp.org>
4507
4508         fabsf: Drop assumption about library that defines fabsf.
4509         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4510         AC_CHECK_FUNCS.
4511         * modules/fabsf (Files): Add m4/mathfunc.m4.
4512
4513 2011-10-06  Bruno Haible  <bruno@clisp.org>
4514
4515         frexpf: Drop assumption about library that defines frexpf.
4516         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4517         'int *', 'float *', 'long double *', 'float', 'long double'.
4518         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4519         AC_CHECK_FUNCS.
4520         * modules/frexpf (Files): Add m4/mathfunc.m4.
4521
4522         Tests for module 'frexpf'.
4523         * modules/frexpf-tests: New file.
4524         * tests/test-frexpf.c: New file.
4525
4526         New module 'frexpf'.
4527         * lib/math.in.h (frexpf): New declaration.
4528         * lib/frexpf.c: New file.
4529         * m4/frexpf.m4: New file.
4530         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4532         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4533         * modules/frexpf: New file.
4534         * tests/test-math-c++.cc: Check the declaration of frexpf.
4535         * doc/posix-functions/frexpf.texi: Mention the new module.
4536
4537 2011-10-06  Bruno Haible  <bruno@clisp.org>
4538
4539         math: Sort function declarations of math.in.h.
4540         * lib/math.in.h (frexp, logb): Move declarations.
4541
4542 2011-10-05  Bruno Haible  <bruno@clisp.org>
4543
4544         Tests for module 'modff'.
4545         * modules/modff-tests: New file.
4546         * tests/test-modff.c: New file.
4547
4548         New module 'modff'.
4549         * lib/math.in.h (modff): New declaration.
4550         * lib/modff.c: New file.
4551         * m4/modff.m4: New file.
4552         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4554         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4555         * modules/modff: New file.
4556         * tests/test-math-c++.cc: Check the declaration of modff.
4557         * doc/posix-functions/modff.texi: Mention the new module.
4558
4559         modf tests: Make test sharper.
4560         * tests/test-modf.c (main): Strengthen upper bound.
4561
4562         modf: Use a .m4 file.
4563         * m4/modf.m4: New file.
4564         * modules/modf (Files): Add it.
4565         (configure.ac): Just invoke gl_FUNC_MODF.
4566
4567 2011-10-05  Bruno Haible  <bruno@clisp.org>
4568
4569         Tests for module 'fmodf'.
4570         * modules/fmodf-tests: New file.
4571         * tests/test-fmodf.c: New file.
4572
4573         New module 'fmodf'.
4574         * lib/math.in.h (fmodf): New declaration.
4575         * lib/fmodf.c: New file.
4576         * m4/fmodf.m4: New file.
4577         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4579         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4580         * modules/fmodf: New file.
4581         * tests/test-math-c++.cc: Check the declaration of fmodf.
4582         * doc/posix-functions/fmodf.texi: Mention the new module.
4583
4584         fmod: Use a .m4 file.
4585         * m4/fmod.m4: New file.
4586         * modules/fmod (Files): Add it.
4587         (configure.ac): Just invoke gl_FUNC_FMOD.
4588
4589 2011-10-05  Bruno Haible  <bruno@clisp.org>
4590
4591         Tests for module 'fabsf'.
4592         * modules/fabsf-tests: New file.
4593         * tests/test-fabsf.c: New file.
4594
4595         New module 'fabsf'.
4596         * lib/math.in.h (fabsf): New declaration.
4597         * lib/fabsf.c: New file.
4598         * m4/fabsf.m4: New file.
4599         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4601         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4602         * modules/fabsf: New file.
4603         * tests/test-math-c++.cc: Check the declaration of fabsf.
4604         * doc/posix-functions/fabsf.texi: Mention the new module.
4605
4606         fabs: Use a .m4 file.
4607         * m4/fabs.m4: New file.
4608         * modules/fabs (Files): Add it.
4609         (configure.ac): Just invoke gl_FUNC_FABS.
4610
4611 2011-10-05  Jim Meyering  <meyering@redhat.com>
4612
4613         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4614         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4615         ls -lL regression introduced in coreutils-8.12, it does so at the
4616         cost of an additional stat call in the common case.  Besides, now
4617         that the kernel change that prompted commit 95f7c57f has been reverted
4618         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4619         we have no use for commit 95f7c57f, "file-has-acl: use
4620         acl_extended_file_nofollow if available".
4621
4622 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4623
4624         file-has-acl: revert unintended change in behavior of ls -L
4625         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4626         derived from...
4627         (file_has_acl): ...code here.  Call it.
4628         This problem was introduced with 2011-07-22 commit 95f7c57f,
4629         "file-has-acl: use acl_extended_file_nofollow if available".
4630         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4631
4632 2011-10-03  Bruno Haible  <bruno@clisp.org>
4633
4634         poll: Avoid link errors on MSVC.
4635         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4636         * modules/poll (Depends-on): Add sockets.
4637         (Link): New section.
4638         * NEWS: Mention the change.
4639         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4640         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4641         $(LIB_POLL) instead of $(LIBSOCKET).
4642
4643 2011-10-03  Bruno Haible  <bruno@clisp.org>
4644
4645         sys_select tests: Fix link error on MSVC 9.
4646         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4647         with $(LIB_SELECT) instead of $(LIBSOCKET).
4648
4649 2011-10-03  Bruno Haible  <bruno@clisp.org>
4650
4651         sys_select: Fix compilation error on mingw.
4652         * lib/sys_select.in.h: On native Windows, include <io.h>.
4653
4654 2011-10-03  Bruno Haible  <bruno@clisp.org>
4655
4656         wmemset: Support for MSVC.
4657         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4658         whether wmemset() exists.
4659
4660 2011-10-03  Bruno Haible  <bruno@clisp.org>
4661
4662         wmemmove: Support for MSVC.
4663         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4664         whether wmemmove() exists.
4665
4666 2011-10-03  Bruno Haible  <bruno@clisp.org>
4667
4668         wmemcpy: Support for MSVC.
4669         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4670         whether wmemcpy() exists.
4671
4672 2011-10-03  Bruno Haible  <bruno@clisp.org>
4673
4674         wmemcmp: Support for MSVC.
4675         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4676         whether wmemcmp() exists.
4677
4678 2011-10-03  Bruno Haible  <bruno@clisp.org>
4679
4680         wmemchr: Support for MSVC.
4681         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4682         whether wmemchr() exists.
4683
4684 2011-10-03  Bruno Haible  <bruno@clisp.org>
4685
4686         glthread/*, strsignal: Support for MSVC.
4687         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4688         including <winsock.h> on MSVC 9.
4689         * lib/glthread/lock.h: Likewise.
4690         * lib/glthread/thread.h: Likewise.
4691         * lib/glthread/tls.h: Likewise.
4692         * lib/glthread/yield.h: Likewise.
4693         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4694         if HAVE_UNISTD_H is false.
4695         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4696
4697 2011-10-03  Bruno Haible  <bruno@clisp.org>
4698
4699         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
4700         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
4701         Set to 100000.
4702
4703 2011-10-03  Bruno Haible  <bruno@clisp.org>
4704
4705         acl: Fix specification.
4706         * lib/file-has-acl.c (file_has_acl): Fix specification.
4707
4708 2011-10-03  Bruno Haible  <bruno@clisp.org>
4709
4710         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
4711         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
4712         (compute_curr_prefix, shared_library_fullname,
4713         find_shared_library_fullname, get_shared_library_fullname, relocate):
4714         Use it together with PIC && INSTALLDIR.
4715         Reported by <jojelino@gmail.com>
4716         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
4717
4718 2011-10-01  Jim Meyering  <meyering@redhat.com>
4719
4720         maint.mk: adjust a release-related rule not to require use of gzip
4721         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
4722         Instead, check each file in $(DIST_ARCHIVES).  This is better for
4723         projects that build only .tar.xz files.  Also fix an erroneous test.
4724
4725         test-linkat: don't leave behind a temporary file
4726         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
4727         Otherwise, coreutils' "make distcheck" would fail with this:
4728           Only in /c/cu/tests/torture/coreutils/test/\
4729             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
4730           make[2]: *** [my-distcheck] Error 1
4731
4732         float, math: add omitted file
4733         * lib/itold.c: Add file, required for yesterday's float change.
4734
4735 2011-10-01  Bruno Haible  <bruno@clisp.org>
4736
4737         isinf: Fix for OpenBSD/x86.
4738         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
4739         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
4740         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
4741
4742 2011-10-01  Bruno Haible  <bruno@clisp.org>
4743
4744         isfinite: Fix syntax error in configure test.
4745         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
4746
4747         isfinite: Fix typo.
4748         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
4749         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
4750
4751 2011-10-01  Bruno Haible  <bruno@clisp.org>
4752
4753         nonblocking tests: Fix test failure on Linux/IA-64.
4754         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4755         Set to 270000.
4756
4757 2011-10-01  Bruno Haible  <bruno@clisp.org>
4758
4759         mkfifoat tests: Fix a test failure on mingw.
4760         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4761         with error ENOSYS.
4762
4763 2011-09-30  Bruno Haible  <bruno@clisp.org>
4764
4765         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4766         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4767         'long double'. Set REPLACE_ITOLD.
4768         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4769         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
4770         * lib/itold.c: New file.
4771         * modules/float (Files): Add lib/itold.c.
4772         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
4773         (Makefile.am): Substitute REPLACE_ITOLD.
4774         * modules/math (Depends-on): Add float.
4775         (Makefile.am): Substitute REPLACE_ITOLD.
4776         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
4777         * doc/posix-headers/math.texi: Likewise.
4778         * doc/posix-functions/logl.texi: Likewise.
4779
4780 2011-09-30  Bruno Haible  <bruno@clisp.org>
4781
4782         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4783         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4784         Set to 140000.
4785
4786 2011-09-30  Bruno Haible  <bruno@clisp.org>
4787
4788         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4789         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4790         invocation, say "right after AC_PROG_CC_STDC", not "right after
4791         AC_PROG_CC".
4792         Reported by Gary V. Vaughan <gary@gnu.org>.
4793
4794 2011-09-30  Bruno Haible  <bruno@clisp.org>
4795
4796         Centralize C99 requirement.
4797         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4798         * modules/stdarg (configure.ac-early): Invoke it instead of
4799         AC_PROG_CC_STDC.
4800         Reported by Gary V. Vaughan and Paul Eggert.
4801
4802 2011-09-29  Bruno Haible  <bruno@clisp.org>
4803
4804         float: Fix LDBL_MAX value on Linux/PowerPC.
4805         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4806         on Linux/PowerPC.
4807         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4808         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4809         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4810         platform.
4811         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4812
4813 2011-09-29  Bruno Haible  <bruno@clisp.org>
4814
4815         doc: Improve doc about gl_EARLY.
4816         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4817         AC_PROG_CC_STDC invocation.
4818         Reported by Gary V. Vaughan <gary@gnu.org>.
4819
4820 2011-09-28  Bruno Haible  <bruno@clisp.org>
4821
4822         fgetc, fputc, fread, fwrite tests: Fix link error.
4823         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4824         on non-MSVC platforms.
4825         * tests/test-fputc.c (main): Likewise.
4826         * tests/test-fread.c (main): Likewise.
4827         * tests/test-fwrite.c (main): Likewise.
4828         Reported by Jim Meyering.
4829
4830 2011-09-27  Bruno Haible  <bruno@clisp.org>
4831
4832         fputc, fwrite tests: Avoid test failure on MSVC.
4833         * tests/test-fgetc.c: Include msvc-inval.h.
4834         (main): Invoke gl_msvc_inval_ensure_handler.
4835         * tests/test-fputc.c: Include msvc-inval.h.
4836         (main): Invoke gl_msvc_inval_ensure_handler.
4837         * tests/test-fread.c: Include msvc-inval.h.
4838         (main): Invoke gl_msvc_inval_ensure_handler.
4839         * tests/test-fwrite.c: Include msvc-inval.h.
4840         (main): Invoke gl_msvc_inval_ensure_handler.
4841         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4842         * modules/fputc-tests (Depends-on): Likewise.
4843         * modules/fread-tests (Depends-on): Likewise.
4844         * modules/fwrite-tests (Depends-on): Likewise.
4845
4846 2011-09-27  Bruno Haible  <bruno@clisp.org>
4847
4848         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4849         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4850         (raise): Remove older, duplicated declaration.
4851         (_gl_raise_SIGPIPE): New declaration.
4852         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4853         (rpl_raise): Remove function.
4854         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4855         a gnulib-defined SIGPIPE here.
4856         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4857         'sigprocmask' has detected missing signal-blocking and the module
4858         'sigpipe' is enabled.
4859         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4860
4861 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4862
4863         base64-tests: avoid memory leak
4864         * tests/test-base64.c (main): Plug memory leak.
4865
4866         base32: new module
4867         * modules/base32: New module.
4868         * lib/base32.c: New file.
4869         * lib/base32.h: Likewise.
4870         * m4/base32.m4: Likewise.
4871         * modules/base32-tests: New test.
4872         * tests/test-base32.c: Likewise.
4873         * MODULES.html.sh (Misc): Mention it.
4874
4875 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4876
4877         gnulib: use more-standard license notice wording
4878         * gnulib-tool (func_emit_copyright_notice): When emitting a
4879         license notice into a file, use the standard wording as suggested
4880         by the current information for GNU maintainers, except say "file"
4881         rather than "program".  The new wording gives a license version
4882         number, which addresses an issue raised by Glenn Morris in
4883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4884         * m4/onceonly.m4: Use that same wording here, too.
4885
4886         dup2: minor simplification
4887         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4888         as lib/dup2.c no longer uses 'inline'.
4889
4890 2011-09-25  Bruno Haible  <bruno@clisp.org>
4891
4892         strings: Fix compilation error on MSVC.
4893         * lib/strings.in.h: Include <stddef.h> for size_t.
4894
4895 2011-09-25  Bruno Haible  <bruno@clisp.org>
4896
4897         fflush et al.: Document limitation on MSVC.
4898         * doc/posix-functions/fflush.texi: Document possible crash in handling
4899         mode other than DEFAULT_HANDLING.
4900         * doc/posix-functions/fgetc.texi: Likewise.
4901         * doc/posix-functions/fputc.texi: Likewise.
4902         * doc/posix-functions/fread.texi: Likewise.
4903         * doc/posix-functions/fwrite.texi: Likewise.
4904
4905 2011-09-25  Bruno Haible  <bruno@clisp.org>
4906
4907         msvc-inval: Allow three invalid parameter handling modes.
4908         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4909         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4910         macros.
4911         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4912         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4913         SANE_LIBRARY_HANDLING as a no-op.
4914         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4915         <stdlib.h>.
4916         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4917
4918 2011-09-25  Bruno Haible  <bruno@clisp.org>
4919
4920         msvc-inval: Make handler multithread-safe.
4921         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4922         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4923         declarations.
4924         (gl_msvc_inval_current): New declaration.
4925         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4926         Operate on the structure returned by gl_msvc_inval_current().
4927         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4928         Remove varaiables.
4929         (tls_index, tls_initialized): New variables.
4930         (not_per_thread): New variable.
4931         (gl_msvc_inval_current): New function.
4932         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4933         returned by gl_msvc_inval_current().
4934
4935 2011-09-25  Bruno Haible  <bruno@clisp.org>
4936
4937         msvc-inval: Install handler globally.
4938         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4939         !_MSC_VER.
4940         (gl_msvc_invalid_parameter_handler): Remove declaration.
4941         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4942         declarations.
4943         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4944         Install the handler globally, don't uninstall it.
4945         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4946         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4947         currently valid, call RaiseException instead.
4948         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4949         for !_MSC_VER.
4950
4951 2011-09-25  Bruno Haible  <bruno@clisp.org>
4952
4953         strerror_r-posix: Fix for MSVC 9.
4954         * lib/strerror_r.c (local_snprintf): New function.
4955         (snprintf): Define to local_snprintf, not to _snprintf.
4956
4957 2011-09-25  Bruno Haible  <bruno@clisp.org>
4958
4959         ftruncate: Support for MSVC 9.
4960         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4961         (chsize_nothrow): New function.
4962         (chsize): Redefine as a macro.
4963         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4964         * modules/ftruncate (Depends-on): Add msvc-inval.
4965
4966 2011-09-25  Bruno Haible  <bruno@clisp.org>
4967
4968         New module 'fstat'.
4969         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4970         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4971         * lib/fchdir.c (rpl_fstat): Remove function.
4972         * m4/fstat.m4: New file.
4973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4974         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4975         declared.
4976         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4977         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4978         * modules/fstat: New file.
4979         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4980         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4981         is set.
4982         * doc/posix-functions/fstat.texi: Mention the new module and the
4983         problem on MSVC.
4984         * NEWS: Mention the change.
4985         * modules/acl (Depends-on): Add fstat.
4986         * modules/chdir-safer (Depends-on): Likewise.
4987         * modules/chown (Depends-on): Likewise.
4988         * modules/copy-file (Depends-on): Likewise.
4989         * modules/fchdir (Depends-on): Likewise.
4990         * modules/fdopendir (Depends-on): Likewise.
4991         * modules/fopen (Depends-on): Likewise.
4992         * modules/fts (Depends-on): Likewise.
4993         * modules/getcwd (Depends-on): Likewise.
4994         * modules/isapipe (Depends-on): Likewise.
4995         * modules/linkat (Depends-on): Likewise.
4996         * modules/lseek (Depends-on): Likewise.
4997         * modules/mkdir-p (Depends-on): Likewise.
4998         * modules/open (Depends-on): Likewise.
4999         * modules/openat (Depends-on): Likewise.
5000         * modules/read-file (Depends-on): Likewise.
5001         * modules/renameat (Depends-on): Likewise.
5002         * modules/utimens (Depends-on): Likewise.
5003
5004 2011-09-25  Bruno Haible  <bruno@clisp.org>
5005
5006         linkat: Fix compilation on MSVC 9.
5007         * lib/linkat.c: Don't include <stdint.h>.
5008
5009 2011-09-25  Bruno Haible  <bruno@clisp.org>
5010
5011         fclose: Support for MSVC 9.
5012         * lib/fclose.c: Include msvc-inval.h.
5013         (fclose_nothrow): New function.
5014         (rpl_fclose): Use it.
5015         * modules/fclose (Depends-on): Add msvc-inval.
5016         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5017
5018 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5019
5020         dup2: minor simplifications
5021         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5022         that it's a performance win.
5023         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5024         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5025
5026 2011-09-24  Jim Meyering  <meyering@redhat.com>
5027
5028         test-futimens: avoid a warning from gcc -Wshadow
5029         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5030         to avoid a shadowing warning.
5031
5032 2011-09-24  Bruno Haible  <bruno@clisp.org>
5033
5034         fdopen: Support for MSVC 9.
5035         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5036         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5037         * lib/fdopen.c: Include msvc-inval.h.
5038         (fdopen_nothrow): New function.
5039         (rpl_fdopen): Use it.
5040         * modules/fdopen (Depends-on): Add msvc-inval.
5041         * modules/fclose-tests (Depends-on): Add fdopen.
5042         * modules/fflush-tests (Depends-on): Likewise.
5043         * modules/fgetc-tests (Depends-on): Likewise.
5044         * modules/fputc-tests (Depends-on): Likewise.
5045         * modules/fread-tests (Depends-on): Likewise.
5046         * modules/freopen-tests (Depends-on): Likewise.
5047         * modules/fseeko-tests (Depends-on): Likewise.
5048         * modules/ftello-tests (Depends-on): Likewise.
5049         * modules/fwrite-tests  (Depends-on): Likewise.
5050         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5051
5052 2011-09-24  Bruno Haible  <bruno@clisp.org>
5053
5054         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5055         * modules/fgetc-tests (Depends-on): Add unistd.
5056         * modules/fputc-tests (Depends-on): Likewise.
5057         * modules/fread-tests (Depends-on): Likewise.
5058         * modules/fwrite-tests (Depends-on): Likewise.
5059
5060 2011-09-24  Bruno Haible  <bruno@clisp.org>
5061
5062         dup: Simplify autoconf test.
5063         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5064         on gl_MSVC_INVAL's result.
5065
5066 2011-09-24  Bruno Haible  <bruno@clisp.org>
5067
5068         Tests for function fwrite().
5069         * modules/fwrite-tests: New file.
5070         * tests/test-fwrite.c: New file.
5071         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5072
5073         Tests for function fread().
5074         * modules/fread-tests: New file.
5075         * tests/test-fread.c: New file.
5076         * modules/stdio-tests (Depends-on): Add fread-tests.
5077
5078         Activate fputc tests.
5079         * modules/stdio-tests (Depends-on): Add fputc-tests.
5080
5081         Enhance fgetc, fputc tests.
5082         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5083         * tests/test-fputc.c (main): Likewise.
5084
5085 2011-09-24  Bruno Haible  <bruno@clisp.org>
5086
5087         write: Support for MSVC 9.
5088         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5089         is not 1.
5090         * lib/write.c (write_nothrow): New function.
5091         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5092         not 1. Use write_nothrow.
5093         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5094         invalid parameter handler.
5095         (gl_PREREQ_WRITE): New macro.
5096         * modules/write (Depends-on): Add msvc-inval.
5097         (configure.ac): Invoke gl_PREREQ_WRITE.
5098         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5099
5100 2011-09-24  Bruno Haible  <bruno@clisp.org>
5101
5102         read: Fix last commit.
5103         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5104
5105 2011-09-24  Bruno Haible  <bruno@clisp.org>
5106
5107         dup2: Fix last commit.
5108         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5109         (rpl_dup2): Disable fcntl workaround on native Windows.
5110
5111         sigprocmask: Make code safer.
5112         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5113         section that changes macro definitions for this compilation unit.
5114
5115 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5116
5117         dup2: clarify by coalescing Windows-specific material
5118         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5119         "msvc-nothrow.h"' to the Windows-specific section, so that the
5120         Emacs source need not contain these include files.
5121         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5122         Windows-specific fixes into this function rather than just the
5123         nothrow fix, as this shortens and clarifies the code.  Always
5124         define as a function, as that's a bit cleaner than having it be
5125         sometimes a function and sometimes a macro.
5126         (rpl_dup2): Move the Windows-specific stuff out of here and into
5127         ms_windows_dup2.  Don't protect the Haiku-related fix with
5128         "#if !defined __linux__", as the same code also works around
5129         a Linux kernel bug, and it doesn't add any system calls on any
5130         platform.  Add comment about FreeBSD 6.1.
5131
5132         sigprocmask: move #include directive
5133         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5134         Windows-specific section, so that the Emacs source need not
5135         contain msvc-inval.h.
5136
5137 2011-09-23  Bruno Haible  <bruno@clisp.org>
5138
5139         read: Support for MSVC 9.
5140         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5141         is not 1.
5142         * lib/read.c (read_nothrow): New function.
5143         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5144         read_nothrow.
5145         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5146         invalid parameter handler.
5147         (gl_PREREQ_READ): New macro.
5148         * modules/read (Depends-on): Add msvc-inval.
5149         (configure.ac): Invoke gl_PREREQ_READ.
5150         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5151
5152 2011-09-23  Bruno Haible  <bruno@clisp.org>
5153
5154         close: Support for MSVC 9.
5155         * lib/close.c: Include <errno.h>, msvc-inval.h.
5156         (close_nothrow): New function.
5157         (rpl_close): Use it.
5158         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5159         invalid parameter handler.
5160         * modules/close (Depends-on): Add msvc-inval.
5161         * modules/dup2-tests (Depends-on): Add close.
5162         * modules/dup3-tests (Depends-on): Likewise.
5163         * modules/fcntl-tests (Depends-on): Likewise.
5164         * modules/spawn-pipe-tests (Depends-on): Likewise.
5165         * modules/unistd-safer-tests (Depends-on): Likewise.
5166         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5167
5168 2011-09-23  Bruno Haible  <bruno@clisp.org>
5169
5170         New module 'dup'.
5171         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5172         Allow replacement.
5173         * lib/dup.c: New file.
5174         * lib/fchdir.c (rpl_dup): Remove function.
5175         * m4/dup.m4: New file.
5176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5177         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5178         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5179         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5180         * modules/dup: New file.
5181         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5182         'dup' module is in use.
5183         * modules/fdopendir (Depends-on): Add dup.
5184         * modules/fdutimensat-tests (Depends-on): Likewise.
5185         * modules/fts (Depends-on): Likewise.
5186         * modules/futimens-tests (Depends-on): Likewise.
5187         * modules/posix_spawnp-tests (Depends-on): Likewise.
5188         * modules/unistd-safer-tests (Depends-on): Likewise.
5189         * modules/utimens-tests (Depends-on): Likewise.
5190         * doc/posix-functions/dup.texi: Mention the new module and the problem
5191         on MSVC.
5192
5193 2011-09-23  Bruno Haible  <bruno@clisp.org>
5194
5195         getdtablesize: Support for MSVC 9.
5196         * lib/getdtablesize.c: Include msvc-inval.h.
5197         (_setmaxstdio_nothrow): New function.
5198         (_setmaxstdio): Redefine it.
5199         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5200         * modules/getdtablesize (Depends-on): Add msvc-inval.
5201         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5202
5203 2011-09-23  Bruno Haible  <bruno@clisp.org>
5204
5205         signal-h: Rename from signal.
5206         * modules/signal-h: Renamed from modules/signal.
5207         * modules/pthread_sigmask (Depends-on): Update.
5208         * modules/raise (Depends-on): Likewise.
5209         * modules/sigaction (Depends-on): Likewise.
5210         * modules/sigpipe (Depends-on): Likewise.
5211         * modules/sigprocmask (Depends-on): Likewise.
5212         * modules/sys_select (Depends-on): Likewise.
5213         * modules/signal-h-tests: Renamed from modules/signal-tests.
5214         (Files, Depends-on, Makefile.am): Update.
5215         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5216         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5217         (Files, Makefile.am): Update.
5218         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5219         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5220         * modules/signal: New placeholder file.
5221         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5222         * doc/posix-headers/signal.texi: Update.
5223         * NEWS: Mention the change.
5224
5225 2011-09-23  Bruno Haible  <bruno@clisp.org>
5226
5227         sigprocmask: Avoid crashes through signal() on MSVC 9.
5228         * lib/sigprocmask.c: Include msvc-inval.h.
5229         (signal_nothrow): New function.
5230         (signal): Redefine it.
5231         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5232         * modules/sigprocmask (Depends-on): Add msvc-inval.
5233         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5234
5235 2011-09-23  Bruno Haible  <bruno@clisp.org>
5236
5237         Tests for module 'raise'.
5238         * modules/raise-tests: New file.
5239         * tests/test-raise.c: New file.
5240
5241         raise: Support for MSVC.
5242         * lib/signal.in.h (raise): New declaration.
5243         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5244         for native Windows platforms.
5245         * m4/raise.m4: New file.
5246         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5247         HAVE_RAISE, REPLACE_RAISE.
5248         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5249         REPLACE_RAISE.
5250         * modules/raise (Status, Notice): Remove fields.
5251         (Files): Add m4/raise.m4.
5252         (Depends-on): Add signal, msvc-inval.
5253         (configure.ac): Use the common idioms.
5254         (Maintainer): Add me.
5255         * tests/test-signal-c++.cc: Check the signature of raise.
5256         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5257
5258 2011-09-23  Bruno Haible  <bruno@clisp.org>
5259
5260         pipe2: Fix compilation on pre-C99 compilers.
5261         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5262
5263 2011-09-23  Bruno Haible  <bruno@clisp.org>
5264
5265         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5266         * lib/msvc-nothrow.h: New file.
5267         * lib/msvc-nothrow.c: New file.
5268         * m4/msvc-nothrow.m4: New file.
5269         * modules/msvc-nothrow: New file.
5270         * lib/dup2.c: Include msvc-nothrow.h.
5271         (rpl_dup2): No need to protect _get_osfhandle call here.
5272         * lib/accept4.c: Include msvc-nothrow.h.
5273         * lib/error.c: Likewise.
5274         * lib/fcntl.c: Likewise.
5275         * lib/lseek.c: Likewise.
5276         * lib/nonblocking.c: Likewise.
5277         * lib/poll.c: Likewise.
5278         * lib/read.c: Likewise.
5279         * lib/select.c: Likewise.
5280         * lib/sockets.h: Likewise.
5281         * lib/sockets.c: Likewise.
5282         * lib/stdio-read.c: Likewise.
5283         * lib/stdio-write.c: Likewise.
5284         * lib/write.c: Likewise.
5285         * lib/w32sock.h: Likewise.
5286         * lib/w32spawn.h: Likewise.
5287         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5288         * lib/fsync.c: Likewise.
5289         * lib/isapipe.c: Likewise.
5290         * modules/dup2 (Depends-on): Add msvc-nothrow.
5291         * modules/accept4 (Depends-on): Likewise.
5292         * modules/error (Depends-on): Likewise.
5293         * modules/fcntl (Depends-on): Likewise.
5294         * modules/lseek (Depends-on): Likewise.
5295         * modules/nonblocking (Depends-on): Likewise.
5296         * modules/poll (Depends-on): Likewise.
5297         * modules/read (Depends-on): Likewise.
5298         * modules/select (Depends-on): Likewise.
5299         * modules/sockets (Depends-on): Likewise.
5300         * modules/sigpipe (Depends-on): Likewise.
5301         * modules/write (Depends-on): Likewise.
5302         * modules/accept (Depends-on): Likewise.
5303         * modules/bind (Depends-on): Likewise.
5304         * modules/connect (Depends-on): Likewise.
5305         * modules/gethostname (Depends-on): Likewise.
5306         * modules/getpeername (Depends-on): Likewise.
5307         * modules/getsockname (Depends-on): Likewise.
5308         * modules/getsockopt (Depends-on): Likewise.
5309         * modules/ioctl (Depends-on): Likewise.
5310         * modules/listen (Depends-on): Likewise.
5311         * modules/recv (Depends-on): Likewise.
5312         * modules/recvfrom (Depends-on): Likewise.
5313         * modules/send (Depends-on): Likewise.
5314         * modules/sendto (Depends-on): Likewise.
5315         * modules/setsockopt (Depends-on): Likewise.
5316         * modules/shutdown (Depends-on): Likewise.
5317         * modules/socket (Depends-on): Likewise.
5318         * modules/execute (Depends-on): Likewise.
5319         * modules/spawn-pipe (Depends-on): Likewise.
5320         * modules/flock (Depends-on): Likewise.
5321         * modules/fsync (Depends-on): Likewise.
5322         * modules/isapipe (Depends-on): Likewise.
5323         * tests/test-cloexec.c: Include msvc-nothrow.h.
5324         * tests/test-dup-safer.c: Likewise.
5325         * tests/test-dup2.c: Likewise.
5326         * tests/test-dup3.c: Likewise.
5327         * tests/test-fcntl.c: Likewise.
5328         * tests/test-pipe.c: Likewise.
5329         * tests/test-pipe2.c: Likewise.
5330         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5331         * modules/unistd-safer-tests (Depends-on): Likewise.
5332         * modules/dup2-tests (Depends-on): Likewise.
5333         * modules/dup3-tests (Depends-on): Likewise.
5334         * modules/fcntl-tests (Depends-on): Likewise.
5335         * modules/pipe-posix-tests (Depends-on): Likewise.
5336         * modules/pipe2-tests (Depends-on): Likewise.
5337
5338 2011-09-23  Bruno Haible  <bruno@clisp.org>
5339
5340         dup2: Make code more maintainable.
5341         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5342         (rpl_dup2): Use it.
5343         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5344         * modules/dup2 (configure.ac): Invoke it.
5345         Reported by Paul Eggert.
5346
5347 2011-09-23  Bruno Haible  <bruno@clisp.org>
5348
5349         msvc-inval: Fix compilation error.
5350         * lib/msvc-inval.h: Include <excpt.h>.
5351
5352 2011-09-23  Bruno Haible  <bruno@clisp.org>
5353
5354         mkdir: Tweak for MSVC 9.
5355         * lib/sys_stat.in.h: Update comments.
5356         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5357
5358         Tests for module 'chdir'.
5359         * modules/chdir-tests: New file.
5360         * tests/test-chdir.c: New file.
5361
5362         New module 'chdir'.
5363         * modules/chdir: New file.
5364         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5365         (chdir): New declaration.
5366         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5367         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5368         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5369         * tests/test-unistd-c++.cc: Check signature of chdir.
5370         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5371         * modules/chdir-long (Depends-on): Add chdir.
5372         * modules/fchdir (Depends-on): Likewise.
5373         * modules/rename (Depends-on): Likewise.
5374         * modules/savewd (Depends-on): Likewise.
5375
5376         rmdir: Support for mingw, MSVC 9.
5377         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5378         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5379
5380         getcwd: Tweak for MSVC 9.
5381         * lib/unistd.in.h: Update comments.
5382         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5383
5384 2011-09-22  Bruno Haible  <bruno@clisp.org>
5385
5386         strerror_r-posix: Avoid a link error on MSVC.
5387         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5388         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5389
5390 2011-09-22  Bruno Haible  <bruno@clisp.org>
5391
5392         select: Avoid link errors on MSVC.
5393         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5394         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5395         * modules/pselect (Link): Likewise.
5396         * NEWS: Mention the change.
5397         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5398         test-select-stdin against $(LIB_SELECT).
5399         * modules/pselect-tests (Makefile.am): Link test-pselect against
5400         $(LIB_SELECT).
5401
5402 2011-09-22  Bruno Haible  <bruno@clisp.org>
5403
5404         select: Avoid compilation error on MSVC.
5405         * lib/select.c: Don't include <stdbool.h>.
5406
5407 2011-09-21  Bruno Haible  <bruno@clisp.org>
5408
5409         Consolidate all uses of PATH_MAX in *.m4 files.
5410         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5411         macros.
5412         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5413         and gl_PATHMAX_SNIPPET.
5414         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5415         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5416         * modules/chdir-long (Files): Add m4/pathmax.m4.
5417         * modules/getcwd (Files): Likewise.
5418
5419 2011-09-21  Bruno Haible  <bruno@clisp.org>
5420
5421         ftruncate: Un-deprecate, concentrate on Win32 support.
5422         * modules/ftruncate (Status, Notice): Remove sections.
5423         (Depends-on): Add largefile.
5424         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5425         non-mingw platforms.
5426         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5427         include <io.h>.
5428         * modules/perror-tests (Depends-on): Add ftruncate.
5429         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5430         'ftruncate' module.
5431
5432 2011-09-21  Bruno Haible  <bruno@clisp.org>
5433
5434         Add dependencies to new dirent related modules.
5435         * modules/opendir (Depends-on): Add closedir.
5436         * modules/getcwd (Depends-on): Add opendir, closedir.
5437         * modules/dirent-safer-tests (Depends-on): Likewise.
5438         * modules/fdopendir-tests (Depends-on): Likewise.
5439         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5440         * modules/renameat-tests (Depends-on): Likewise.
5441
5442 2011-09-21  Bruno Haible  <bruno@clisp.org>
5443
5444         opendir: Avoid compilation error on mingw.
5445         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5446         * modules/opendir (Depends-on): Add unistd.
5447
5448 2011-09-21  Bruno Haible  <bruno@clisp.org>
5449
5450         ftruncate tests: Avoid a test failure on mingw.
5451         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5452
5453 2011-09-21  Bruno Haible  <bruno@clisp.org>
5454
5455         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5456         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5457         native Windows.
5458
5459 2011-09-21  Bruno Haible  <bruno@clisp.org>
5460
5461         New module 'fdopen'.
5462         * lib/stdio.in.h (fdopen): New declaration.
5463         * lib/fdopen.c: New file.
5464         * m4/fdopen.m4: New file.
5465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5466         REPLACE_FDOPEN.
5467         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5468         REPLACE_FDOPEN.
5469         * modules/fdopen: New file.
5470         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5471         * tests/test-stdio-c++.cc: Check signature of fdopen.
5472         * doc/posix-functions/fdopen.texi: Mention the new module.
5473
5474 2011-09-21  Bruno Haible  <bruno@clisp.org>
5475
5476         unlockpt tests: Avoid test failure on NetBSD 5.1.
5477         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5478         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5479
5480 2011-09-21  Bruno Haible  <bruno@clisp.org>
5481
5482         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5483         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5484         * tests/test-getlogin_r.c (main): Likewise.
5485
5486 2011-09-20  Bruno Haible  <bruno@clisp.org>
5487
5488         time tests: Don't require pid_t.
5489         * doc/posix-headers/time.texi: Revert last change.
5490         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5491         * tests/test-time.c: Comment out the check for pid_t.
5492
5493 2011-09-20  Bruno Haible  <bruno@clisp.org>
5494
5495         fsync tests: Avoid a test failure on mingw.
5496         * tests/test-fsync.c (main): Allow a failure with EIO.
5497
5498 2011-09-20  Bruno Haible  <bruno@clisp.org>
5499
5500         euidaccess: Update comments.
5501         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5502
5503 2011-09-20  Bruno Haible  <bruno@clisp.org>
5504
5505         Ensure EBADF returns for socket functions on mingw.
5506         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5507         descriptor is invalid.
5508         * lib/bind.c (rpl_bind): Likewise.
5509         * lib/connect.c (rpl_connect): Likewise.
5510         * lib/getpeername.c (rpl_getpeername): Likewise.
5511         * lib/getsockname.c (rpl_getsockname): Likewise.
5512         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5513         * lib/listen.c (rpl_listen): Likewise.
5514         * lib/recv.c (rpl_recv): Likewise.
5515         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5516         * lib/send.c (rpl_send): Likewise.
5517         * lib/sendto.c (rpl_sendto): Likewise.
5518         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5519         * lib/shutdown.c (rpl_shutdown): Likewise.
5520
5521 2011-09-20  Bruno Haible  <bruno@clisp.org>
5522
5523         select tests: EBADF tests.
5524         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5525         test_bad_fd): New functions.
5526         (test_function): Invoke also test_bad_fd.
5527
5528 2011-09-20  Bruno Haible  <bruno@clisp.org>
5529
5530         Tests for module 'posix_spawn_file_actions_addopen.
5531         * modules/posix_spawn_file_actions_addopen-tests: New file.
5532         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5533
5534         Tests for module 'posix_spawn_file_actions_adddup2'.
5535         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5536         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5537
5538         Tests for module 'posix_spawn_file_actions_addclose'.
5539         * modules/posix_spawn_file_actions_addclose-tests: New file.
5540         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5541
5542 2011-09-20  Bruno Haible  <bruno@clisp.org>
5543
5544         Tests for module 'unlockpt'.
5545         * modules/unlockpt-tests: New file.
5546         * tests/test-unlockpt.c: New file.
5547         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5548
5549         Tests for module 'grantpt'.
5550         * modules/grantpt-tests: New file.
5551         * tests/test-grantpt.c: New file.
5552         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5553
5554 2011-09-20  Bruno Haible  <bruno@clisp.org>
5555
5556         freopen tests: EBADF tests.
5557         * tests/test-freopen.c: Include errno.h, unistd.h.
5558         (main): Add tests for EBADF, commented out for the moment.
5559
5560         fclose tests: EBADF tests.
5561         * tests/test-fclose.c (main): Add tests for EBADF.
5562
5563         fflush tests: EBADF tests.
5564         * tests/test-fflush.c: Include errno.h, macros.h.
5565         (main): Add tests for EBADF.
5566
5567         ftello tests: EBADF tests.
5568         * tests/test-ftello4.sh: New file.
5569         * tests/test-ftello4.c: New file.
5570         * modules/ftello-tests (Files): Add them.
5571         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5572
5573         fseeko tests: EBADF tests.
5574         * tests/test-fseeko4.sh: New file.
5575         * tests/test-fseeko4.c: New file.
5576         * modules/fseeko-tests (Files): Add them.
5577         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5578
5579         Tests for function fputc().
5580         * modules/fputc-tests: New file.
5581         * tests/test-fputc.c: New file.
5582         * modules/stdio-tests (Depends-on): Add fputc-tests.
5583
5584         Tests for function fgetc().
5585         * modules/fgetc-tests: New file.
5586         * tests/test-fgetc.c: New file.
5587         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5588
5589         Tests for function fdopen().
5590         * modules/fdopen-tests: New file.
5591         * tests/test-fdopen.c: New file.
5592         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5593
5594         Tests for module 'vdprintf'.
5595         * modules/vdprintf-tests: New file.
5596         * tests/test-vdprintf.c: New file.
5597
5598         Tests for module 'dprintf'.
5599         * modules/dprintf-tests: New file.
5600         * tests/test-dprintf.c: New file.
5601
5602 2011-09-20  Bruno Haible  <bruno@clisp.org>
5603
5604         Tests for module 'ioctl'.
5605         * modules/ioctl-tests: New file.
5606         * tests/test-ioctl.c: New file.
5607
5608 2011-09-20  Bruno Haible  <bruno@clisp.org>
5609
5610         fcntl tests: EBADF tests.
5611         * tests/test-fcntl.c (main): Add more tests for EBADF.
5612
5613 2011-09-20  Bruno Haible  <bruno@clisp.org>
5614
5615         utimensat tests: EBADF tests.
5616         * tests/test-utimensat.c (main): Add tests for EBADF.
5617
5618         renameat tests: EBADF tests.
5619         * tests/test-renameat.c (main): Add tests for EBADF.
5620
5621         mkfifoat tests: EBADF tests.
5622         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5623
5624         readlinkat tests: EBADF tests.
5625         * tests/test-readlinkat.c (main): Add tests for EBADF.
5626
5627         symlinkat tests: EBADF tests.
5628         * tests/test-symlinkat.c (main): Add tests for EBADF.
5629
5630         linkat tests: EBADF tests.
5631         * tests/test-linkat.c (main): Add tests for EBADF.
5632
5633         Tests for module 'faccessat'.
5634         * modules/faccessat-tests: New file.
5635         * tests/test-faccessat.c: New file.
5636
5637         fdopendir tests: EBADF tests.
5638         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5639
5640         openat tests: EBADF tests.
5641         * tests/test-fchownat.c (main): Add tests for EBADF.
5642         * tests/test-fstatat.c (main): Likewise.
5643         * tests/test-mkdirat.c (main): Likewise.
5644         * tests/test-openat.c (main): Likewise.
5645         * tests/test-unlinkat.c (main): Likewise.
5646         * tests/test-fchmodat.c: New file.
5647         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5648         (Makefile.am): Also run 'test-fchmodat'.
5649
5650 2011-09-20  Bruno Haible  <bruno@clisp.org>
5651
5652         utimens, futimens, fdutimensat tests: EBADF tests.
5653         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5654
5655         Tests for function fstat().
5656         * modules/fstat-tests: New file.
5657         * tests/test-fstat.c: New file.
5658         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5659
5660 2011-09-20  Bruno Haible  <bruno@clisp.org>
5661
5662         test-ttyname_r tests: EBADF tests.
5663         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5664
5665         Tests for module 'isatty'.
5666         * modules/isatty-tests: New file.
5667         * tests/test-isatty.c: New file.
5668
5669         Tests for module 'write'.
5670         * modules/write-tests: New file.
5671         * tests/test-write.c: New file.
5672
5673         Tests for module 'read'.
5674         * modules/read-tests: New file.
5675         * tests/test-read.c: New file.
5676
5677         pwrite tests: EBADF tests.
5678         * tests/test-pwrite.c (main): Add tests for EBADF.
5679
5680         pread tests: EBADF tests.
5681         * tests/test-pread.c (main): Add tests for EBADF.
5682
5683         lseek tests: EBADF tests.
5684         * tests/test-lseek.c (main): Add more tests for EBADF.
5685
5686         Tests for module 'ftruncate'.
5687         * modules/ftruncate-tests: New file.
5688         * tests/test-ftruncate.sh: New file.
5689         * tests/test-ftruncate.c: New file.
5690
5691         fsync tests: EBADF tests.
5692         * tests/test-fsync.c (main): Add more tests for EBADF.
5693
5694         fdatasync tests: EBADF tests.
5695         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5696
5697         Tests for module 'fchown'.
5698         * modules/fchown-tests: New file.
5699         * tests/test-fchown.c: New file.
5700
5701         Tests for module 'fchmod'.
5702         * modules/fchmod-tests: New file.
5703         * tests/test-fchmod.c: New file.
5704
5705         fchdir tests: EBADF tests.
5706         * tests/test-fchdir.c (main): Add more tests for EBADF.
5707
5708         dup2 tests: EBADF tests.
5709         * tests/test-dup2.c (main): Add more tests for EBADF.
5710
5711         Tests for module 'dup'.
5712         * modules/dup-tests: New file.
5713         * tests/test-dup.c: New file.
5714
5715         Tests for module 'close'.
5716         * modules/close-tests: New file.
5717         * tests/test-close.c: New file.
5718
5719 2011-09-20  Bruno Haible  <bruno@clisp.org>
5720
5721         Tests for module 'shutdown'.
5722         * modules/shutdown-tests: New file.
5723         * tests/test-shutdown.c: New file.
5724
5725         Tests for module 'setsockopt'.
5726         * modules/setsockopt-tests: New file.
5727         * tests/test-setsockopt.c: New file.
5728
5729         Tests for module 'sendto'.
5730         * modules/sendto-tests: New file.
5731         * tests/test-sendto.c: New file.
5732
5733         Tests for module 'send'.
5734         * modules/send-tests: New file.
5735         * tests/test-send.c: New file.
5736
5737         Tests for module 'recvfrom'.
5738         * modules/recvfrom-tests: New file.
5739         * tests/test-recvfrom.c: New file.
5740
5741         Tests for module 'recv'.
5742         * modules/recv-tests: New file.
5743         * tests/test-recv.c: New file.
5744
5745         Tests for module 'listen'.
5746         * modules/listen-tests: New file.
5747         * tests/test-listen.c: New file.
5748
5749         Tests for module 'getsockopt'.
5750         * modules/getsockopt-tests: New file.
5751         * tests/test-getsockopt.c: New file.
5752
5753         Tests for module 'getsockname'.
5754         * modules/getsockname-tests: New file.
5755         * tests/test-getsockname.c: New file.
5756
5757         Tests for module 'getpeername'.
5758         * modules/getpeername-tests: New file.
5759         * tests/test-getpeername.c: New file.
5760
5761         Tests for module 'connect'.
5762         * modules/connect-tests: New file.
5763         * tests/test-connect.c: New file.
5764
5765         Tests for module 'bind'.
5766         * modules/bind-tests: New file.
5767         * tests/test-bind.c: New file.
5768
5769         accept4 tests: Fix for native Windows.
5770         * tests/test-accept4.c: Include sockets.h.
5771         (main): Invoke gl_sockets_startup.
5772         * modules/accept4-tests (Depends-on): Add sockets.
5773
5774         accept tests: Fix for native Windows.
5775         * tests/test-accept.c: Include sockets.h.
5776         (main): Invoke gl_sockets_startup.
5777         * modules/accept-tests (Depends-on): Add sockets.
5778
5779 2011-09-19  Bruno Haible  <bruno@clisp.org>
5780
5781         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5782         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5783         do...while(0).
5784         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5785         Suggested by Paul Eggert.
5786
5787 2011-09-19  Bruno Haible  <bruno@clisp.org>
5788
5789         sched: Ensure pid_t is defined.
5790         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5791         not define pid_t.
5792         * lib/sched.in.h: Include <sys/types.h>.
5793         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5795
5796 2011-09-19  Bruno Haible  <bruno@clisp.org>
5797
5798         msvc-inval: Ensure the entire expansion is a single statement.
5799         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5800         of braces.
5801
5802 2011-09-19  Jim Meyering  <meyering@redhat.com>
5803
5804         tests: use printf, not echo in init.sh's warn_ function
5805         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5806         misbehave when given strings containing a backslash or starting
5807         with e.g., -n.  James Youngman suggested setting IFS.
5808
5809 2011-09-19  Eric Blake  <eblake@redhat.com>
5810
5811         futimens: enhance test
5812         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5813         closed non-negative fd.
5814
5815         date: accept 'hence' as opposite of 'ago'
5816         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5817         * tests/test-parse-datetime.c (main): Enhance test.
5818         Suggested by Jesse Wilson.
5819
5820 2011-09-19  Jim Meyering  <meyering@redhat.com>
5821
5822         getcwd: don't fail in a deep directory on a system without openat
5823         Before this change, getcwd would fail when called from a directory
5824         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5825         the non-openat implementation used "..", "../..", "../../..", etc.
5826         to access ancestor directories.  With too many, that string would
5827         be longer than PATH_MAX.
5828         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5829         using gnulib's openat replacement.
5830         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5831         we're using the replacement function.
5832
5833 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5834
5835         maint.mk: avoid warnings from perl about missing files
5836         * top/maint.mk (def_sym_regex): Ignore files listed in
5837         $(gl_other_headers_) that do not exist, say because a project
5838         does not use a corresponding module.
5839
5840 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5841
5842         stat: use pathmax.h only if needed
5843         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5844         This is better for Emacs, which does not have a mingw port and
5845         therefore can avoid the pathmax module.
5846
5847         utimens: remove dependency on dup2
5848         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5849         to work around the Linux kernel bug.
5850         * modules/utimens (Depends-on): Remove dup2.
5851
5852 2011-09-18  Bruno Haible  <bruno@clisp.org>
5853
5854         inet_ntop, inet_pton: Look for it also in libresolv.
5855         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5856         libnsl, search for it in libresolv.
5857         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5858         Needed on Solaris 7.
5859
5860 2011-09-18  Bruno Haible  <bruno@clisp.org>
5861
5862         accept, accept4 tests: Avoid link error on Solaris.
5863         * modules/accept-tests (Makefile.am): Link test-accept against
5864         $(LIBSOCKET).
5865         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5866         $(LIBSOCKET).
5867
5868         accept4: Avoid link error on Solaris.
5869         * modules/accept4 (Link): New section.
5870
5871         socket functions: Avoid link errors on Solaris.
5872         * modules/accept (Depends-on): Add socketlib.
5873         (Link): New section.
5874         * modules/bind (Depends-on): Add socketlib.
5875         (Link): New section.
5876         * modules/connect (Depends-on): Add socketlib.
5877         (Link): New section.
5878         * modules/getpeername (Depends-on): Add socketlib.
5879         (Link): New section.
5880         * modules/getsockname (Depends-on): Add socketlib.
5881         (Link): New section.
5882         * modules/getsockopt (Depends-on): Add socketlib.
5883         (Link): New section.
5884         * modules/listen (Depends-on): Add socketlib.
5885         (Link): New section.
5886         * modules/recv (Depends-on): Add socketlib.
5887         (Link): New section.
5888         * modules/recvfrom (Depends-on): Add socketlib.
5889         (Link): New section.
5890         * modules/send (Depends-on): Add socketlib.
5891         (Link): New section.
5892         * modules/sendto (Depends-on): Add socketlib.
5893         (Link): New section.
5894         * modules/setsockopt (Depends-on): Add socketlib.
5895         (Link): New section.
5896         * modules/shutdown (Depends-on): Add socketlib.
5897         (Link): New section.
5898         * modules/socket (Depends-on): Add socketlib.
5899         (Link): New section.
5900
5901 2011-09-18  Bruno Haible  <bruno@clisp.org>
5902
5903         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5904         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5905         than 5 seconds.
5906         * modules/ptsname-tests (configure.ac): Test for alarm.
5907
5908 2011-09-18  Bruno Haible  <bruno@clisp.org>
5909
5910         posix_spawn_file_actions_add*: Fix module dependencies.
5911         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5912         posix_spawn_file_actions_init.
5913         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5914         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5915
5916 2011-09-18  Bruno Haible  <bruno@clisp.org>
5917
5918         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5919         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5920         * tests/test-renameat.c (main): Likewise.
5921
5922 2011-09-18  Bruno Haible  <bruno@clisp.org>
5923
5924         Tests for module 'accept4'.
5925         * modules/accept4-tests: New file.
5926         * tests/test-accept4.c: New file.
5927
5928 2011-09-18  Bruno Haible  <bruno@clisp.org>
5929
5930         Tests for module 'accept'.
5931         * modules/accept-tests: New file.
5932         * tests/test-accept.c: New file.
5933
5934 2011-09-18  Bruno Haible  <bruno@clisp.org>
5935
5936         dup2: Support for MSVC.
5937         * lib/dup2.c: Include msvc-inval.h.
5938         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5939         _get_osfhandle calls.
5940         * modules/dup2 (Depends-on): Add msvc-inval.
5941         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5942
5943         New module 'msvc-inval'.
5944         * lib/msvc-inval.h: New file.
5945         * lib/msvc-inval.c: New file.
5946         * m4/msvc-inval.m4: New file.
5947         * modules/msvc-inval: New file.
5948
5949 2011-09-17  Bruno Haible  <bruno@clisp.org>
5950
5951         Tests for module 'pclose'.
5952         * modules/pclose-tests: New file.
5953
5954         New module 'pclose'.
5955         * lib/stdio.in.h (pclose): New declaration.
5956         * lib/pclose.c: New file.
5957         * m4/pclose.m4: New file.
5958         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5959         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5960         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5961         * modules/pclose: New file.
5962         * modules/popen-tests (Depends-on): Add pclose.
5963         * modules/popen-safer-tests (Depends-on): Likewise.
5964         * doc/posix-functions/pclose.texi: Mention the new module.
5965
5966 2011-09-17  Bruno Haible  <bruno@clisp.org>
5967
5968         popen: Support for MSVC.
5969         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5970         * lib/popen.c (popen): Provide alternate definition for native Windows.
5971         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5973         * modules/popen (Depends-on, configure.ac): Update condition.
5974         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5975         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5976         fixed.
5977
5978 2011-09-17  Bruno Haible  <bruno@clisp.org>
5979
5980         isnanl, isnand, isnanf: Work around MSVC bug.
5981         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5982
5983 2011-09-17  Bruno Haible  <bruno@clisp.org>
5984
5985         sys_socket tests: Fix recent mistake.
5986         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5987
5988 2011-09-17  Bruno Haible  <bruno@clisp.org>
5989
5990         putenv: Support for MSVC.
5991         * modules/putenv (Depends-on): Add environ.
5992         * lib/putenv.c (environ): Disable declaration.
5993         * lib/unistd.in.h: Update comment.
5994
5995 2011-09-17  Bruno Haible  <bruno@clisp.org>
5996
5997         math: Avoid macro redefinition warnings on MSVC.
5998         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5999         Undefine before redefining.
6000
6001 2011-09-17  Bruno Haible  <bruno@clisp.org>
6002
6003         doc: Mention functions which are declared as macros.
6004         * doc/posix-functions/*[fl].texi: Mention that some functions are
6005         defined as macros with arguments only.
6006
6007 2011-09-17  Bruno Haible  <bruno@clisp.org>
6008
6009         Add dependencies to new dirent related modules.
6010         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6011         * modules/fts (Depends-on): Likewise.
6012         * modules/glob (Depends-on): Likewise.
6013         * modules/savedir (Depends-on): Likewise.
6014         * modules/scandir (Depends-on): Likewise.
6015         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6016         * modules/fdopendir (Depends-on): Add opendir.
6017
6018 2011-09-17  Bruno Haible  <bruno@clisp.org>
6019
6020         inet_pton: Support for MSVC on Windows Vista or newer.
6021         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6022         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6023         HAVE_DECL_INET_PTON is defined.
6024         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6025         On platforms with <winsock2.h>, test whether inet_pton is declared in
6026         <ws2tcpip.h>. If so, arrange to replace it.
6027         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6028         REPLACE_INET_PTON.
6029         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6030         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6031         (Depends-on, configure.ac): Update condition.
6032         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6033
6034 2011-09-17  Bruno Haible  <bruno@clisp.org>
6035
6036         inet_ntop: Support for MSVC on Windows Vista or newer.
6037         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6038         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6039         HAVE_DECL_INET_NTOP is defined.
6040         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6041         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6042         <ws2tcpip.h>. If so, arrange to replace it.
6043         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6044         REPLACE_INET_NTOP.
6045         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6046         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6047         (Depends-on, configure.ac): Update condition.
6048         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6049
6050 2011-09-16  Eric Blake  <eblake@redhat.com>
6051
6052         test-fsync: yet another enhancement
6053         * tests/test-fsync.c (main): Also test behavior on read-only text
6054         file.
6055
6056 2011-09-16  Bruno Haible  <bruno@clisp.org>
6057
6058         Enhance fsync, fdatasync tests.
6059         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6060         * tests/test-fdatasync.c (main): Likewise.
6061
6062 2011-09-16  Bruno Haible  <bruno@clisp.org>
6063
6064         Support for MSVC compiler: Ensure mode_t gets defined.
6065         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6066         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6067         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6068         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6069         * tests/test-fcntl-h.c: Check that mode_t is defined.
6070         * tests/test-sys_stat.c: Likewise.
6071         * tests/test-sys_types.c: Likewise.
6072         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6073         * doc/posix-headers/sys_stat.texi: Likewise.
6074         * doc/posix-headers/sys_types.texi: Likewise.
6075
6076 2011-09-16  Bruno Haible  <bruno@clisp.org>
6077
6078         sys_stat: Support for MSVC.
6079         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6080         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6081         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6082         MSVC.
6083
6084 2011-09-16  Bruno Haible  <bruno@clisp.org>
6085
6086         Support for MSVC compiler: Ensure off_t gets defined.
6087         * lib/unistd.in.h: Include <sys/types.h>.
6088         * tests/test-fcntl-h.c: Check that off_t is defined.
6089         * tests/test-sys_stat.c: Likewise.
6090         * tests/test-sys_types.c: Likewise.
6091
6092 2011-09-16  Eric Blake  <eblake@redhat.com>
6093
6094         fdatasync: port to Solaris
6095         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6096         * modules/fdatasync (Link): Document it.
6097         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6098
6099         fdatasync: port to MacOS X 10.7
6100         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6101         declared.
6102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6103         * modules/unistd (Makefile.am): Substitute it.
6104         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6105         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6106
6107         fdatasync: minor improvements
6108         * modules/fdatasync (Depends-on): Add condition for fsync.
6109         * lib/fdatasync.c (fdatasync): Add comment.
6110         * tests/test-unistd-c++.cc: Test fdatasync.
6111
6112         unistd: update refs to newer POSIX
6113         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6114         Suggested by Bruno Haible.
6115
6116         fdatasync: new module
6117         * modules/fsync (Description): Document difference to fdatasync.
6118         * modules/fdatasync: New module.
6119         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6120         * lib/fdatasync.c (fdatasync): Likewise.
6121         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6122         defaults.
6123         * modules/unistd (Makefile.am): Set witnesses.
6124         * lib/unistd.in.h (fdatasync): Declare.
6125         * MODULES.html.sh: Document it.
6126         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6127         * modules/fdatasync-tests: New test.
6128         * tests/test-fdatasync.c: Likewise.
6129
6130 2011-09-16  Eric Blake  <eblake@redhat.com>
6131
6132         test-fsync: enhance tests
6133         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6134         * tests/test-fsync.c (main): Enhance test.
6135
6136 2011-09-15  Bruno Haible  <bruno@clisp.org>
6137
6138         Support for MSVC compiler: Ensure ssize_t gets defined.
6139         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6140         * doc/posix-headers/stdio.texi: Likewise.
6141         * modules/stdio (Depends-on): Add ssize_t.
6142         * modules/sys_socket (Depends-on): Likewise.
6143         * modules/sys_types (Depends-on): Likewise.
6144         * modules/sys_uio (Depends-on): Likewise.
6145         * modules/unistd (Depends-on): Likewise.
6146         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6147         * tests/test-sys_types.c: Check that ssize_t is defined.
6148
6149 2011-09-14  Bruno Haible  <bruno@clisp.org>
6150
6151         Avoid using #, the m4 comment starter character, near brackets.
6152         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6153         delimiter character in sed expressions.
6154         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6155         Suggested by Eric Blake.
6156
6157         Properly quote AC_CHECK_DECLS' 4th argument.
6158         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6159         argument.
6160         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6161         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6162         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6163         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6164         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6165         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6166         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6167         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6168         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6169         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6170         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6171         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6172         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6173         * m4/isinf.m4 (gl_ISINF): Likewise.
6174         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6175         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6176         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6177         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6178         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6179         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6180         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6181         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6182         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6183         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6184         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6185         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6186         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6187         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6189         Reported by Eric Blake.
6190
6191         Properly quote AC_CHECK_DECL's 4th argument.
6192         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6193         argument.
6194         * m4/argp.m4 (gl_ARGP): Likewise.
6195         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6196         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6197         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6198         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6199         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6200         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6201         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6202         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6203         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6204         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6205         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6206         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6207         Reported by Eric Blake.
6208
6209 2011-09-14  Eric Blake  <eblake@redhat.com>
6210
6211         opendir: avoid compile warning
6212         * lib/opendir.c (includes): Always include errno.h.
6213         Reported by Tatsuro MATSUOKA.
6214
6215 2011-09-14  Jim Meyering  <meyering@redhat.com>
6216
6217         maint.mk: sc_tight_scope: propagate failure from sub-make
6218         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6219         Reported by Martin von Gagern.
6220
6221 2011-09-13  Bruno Haible  <bruno@clisp.org>
6222
6223         tempname: Support for MSVC.
6224         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6225         MSVC.
6226         * modules/tempname (Depends-on): Add fcntl-h.
6227
6228 2011-09-13  Bruno Haible  <bruno@clisp.org>
6229
6230         sys_time: Support for MSVC.
6231         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6232         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6233         include <winsock2.h>.
6234         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6235         function declarations that collide with POSIX.
6236         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6237         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6238
6239 2011-09-13  Bruno Haible  <bruno@clisp.org>
6240
6241         stat: Support for MSVC.
6242         * lib/stat.c: Include pathmax.h.
6243         * modules/stat (Depends-on): Add pathmax.
6244
6245         pathmax: Support for native Windows.
6246         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6247
6248 2011-09-12  Bruno Haible  <bruno@clisp.org>
6249
6250         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6251         * lib/dirent.in.h (struct dirent): New type.
6252         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6253         DT_WHT): New macros.
6254         (DIR): New type.
6255         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6256         (readdir, rewinddir): New declarations.
6257         * lib/dirent-private.h: New file.
6258         * lib/opendir.c: New file.
6259         * lib/readdir.c: New file.
6260         * lib/rewinddir.c: New file.
6261         * lib/closedir.c: New file.
6262         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6263         * m4/opendir.m4: New file.
6264         * m4/readdir.m4: New file.
6265         * m4/rewinddir.m4: New file.
6266         * m4/closedir.m4: New file.
6267         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6268         REPLACE_CLOSEDIR here.
6269         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6270         readdir, rewinddir are declared.
6271         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6272         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6273         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6274         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6275         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6276         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6277         * modules/opendir: New file.
6278         * modules/readdir: New file.
6279         * modules/rewinddir: New file.
6280         * modules/closedir: New file.
6281         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6282         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6283         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6284         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6285         * NEWS: Mention the 'fchdir' change.
6286
6287 2011-09-11  Bruno Haible  <bruno@clisp.org>
6288
6289         asm-underscore.m4: Support for MSVC.
6290         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6291         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6292
6293 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6294
6295         Doc about crypt functions.
6296         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6297         needing for _GNU_SOURCE to get crypt.
6298         * doc/posix-functions/encrypt.texi: Likewise.
6299         * doc/posix-functions/setkey.texi: Likewise.
6300
6301 2011-09-11  Bruno Haible  <bruno@clisp.org>
6302
6303         doc: Update regarding MSVC 9.
6304         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6305         tested".
6306         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6307         * doc/posix-headers/*.texi: Likewise.
6308         * doc/pastposix-functions/*.texi: Likewise.
6309         * doc/glibc-functions/*.texi: Likewise.
6310         * doc/glibc-headers/*.texi: Likewise.
6311
6312 2011-09-11  Bruno Haible  <bruno@clisp.org>
6313
6314         unistd et al.: Don't assume <unistd.h> exists.
6315         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6316         does not exist.
6317         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6318         exist. But include <stdlib.h>.
6319         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6320         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6321         symlink() does not exist.
6322         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6323         include <io.h> instead.
6324         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6325         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6326         include <direct.h> instead.
6327         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6328         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6329         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6330         <io.h> instead.
6331         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6332         correctly if the system does not have hard links.
6333         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6334         <direct.h> instead.
6335         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6336         it when looking for function declarations.
6337         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6338         <direct.h> and <io.h> instead.
6339         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6340
6341 2011-09-11  Bruno Haible  <bruno@clisp.org>
6342
6343         strcase: Support for MSVC.
6344         * modules/strcase (Status, Notice): Remove obsoletion mark.
6345         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6346         * doc/posix-functions/strncasecmp.texi: Likewise.
6347
6348         strings: Don't assume <strings.h> exists.
6349         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6350         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6351         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6352         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6353
6354 2011-09-11  Bruno Haible  <bruno@clisp.org>
6355
6356         dirent: Don't assume <dirent.h> exists.
6357         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6358         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6359         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6360         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6361
6362 2011-09-11  Bruno Haible  <bruno@clisp.org>
6363
6364         Fix wint_t on MSVC.
6365         * lib/wchar.in.h (wint_t): On MSVC, override it.
6366         * lib/wctype.in.h (wint_t): Likewise.
6367         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6368         MSVC.
6369         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6370         * doc/posix-headers/wctype.texi: Likewise.
6371
6372 2011-09-11  Bruno Haible  <bruno@clisp.org>
6373
6374         sys_types: Fix typo.
6375         * lib/sys_types.in.h: Fix typo in comment.
6376         Reported by Paul Eggert.
6377
6378         Support for MSVC compiler: Ensure size_t gets defined.
6379         * modules/strings (Depends-on): Add 'sys_types'.
6380         * modules/sys_uio (Depends-on): Likewise.
6381         * lib/sys_uio.in.h: Update comment.
6382
6383         C++ tests for module 'sys_types'.
6384         * modules/sys_types-c++-tests: New file.
6385         * tests/test-sys_types-c++.cc: New file.
6386
6387         Tests for module 'sys_types'.
6388         * modules/sys_types-tests: New file.
6389         * tests/test-sys_types.c: New file.
6390
6391         New module 'sys_types'.
6392         * lib/sys_types.in.h: New file.
6393         * m4/sys_types_h.m4: New file.
6394         * modules/sys_types: New file.
6395         * doc/posix-headers/sys_types.texi: Mention the new module and the
6396         size_t problem on MSVC 9.
6397
6398 2011-09-11  Bruno Haible  <bruno@clisp.org>
6399
6400         Support for MSVC compiler: Avoid division by a literal 0.
6401         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6402         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6403         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6404         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6405         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6406         * tests/infinity.h: New file.
6407         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6408         on MSVC.
6409         * tests/test-ceilf1.c: Include infinity.h.
6410         (main): Use Infinityf.
6411         * tests/test-ceil1.c: Include infinity.h.
6412         (main): Use Infinityd.
6413         * tests/test-ceill.c: Include infinity.h.
6414         (main): Use Infinityl.
6415         * tests/test-dprintf-posix.c: Include infinity.h.
6416         (test_function): Use Infinityd.
6417         * tests/test-floorf1.c: Include infinity.h.
6418         (main): Use Infinityf.
6419         * tests/test-floor1.c: Include infinity.h.
6420         (main): Use Infinityd.
6421         * tests/test-floorl.c: Include infinity.h.
6422         (main): Use Infinityl.
6423         * tests/test-fprintf-posix.c: Include infinity.h.
6424         (test_function): Use Infinityd.
6425         * tests/test-frexp.c: Include infinity.h.
6426         (main): Use Infinityd.
6427         * tests/test-frexpl.c: Include infinity.h.
6428         (main): Use Infinityl.
6429         * tests/test-isfinite.c: Include infinity.h.
6430         (test_isfinitef): Use Infinityf.
6431         (test_isfinited): Use Infinityd.
6432         (test_isfinitel): Use Infinityl.
6433         * tests/test-isinf.c: Include infinity.h.
6434         (test_isinff): Use Infinityf.
6435         (test_isinfd): Use Infinityd.
6436         (test_isinfl): Use Infinityl.
6437         * tests/test-isnan.c: Include infinity.h.
6438         (test_float): Use Infinityf.
6439         (test_double): Use Infinityd.
6440         (test_long_double): Use Infinityl.
6441         * tests/test-isnanf.h: Include infinity.h.
6442         (main): Use Infinityf.
6443         * tests/test-isnand.h: Include infinity.h.
6444         (main): Use Infinityd.
6445         * tests/test-isnanl.h: Include infinity.h.
6446         (main): Use Infinityl.
6447         * tests/test-ldexpl.c: Include infinity.h.
6448         (main): Use Infinityl.
6449         * tests/test-printf-posix.h: Include infinity.h.
6450         (test_function): Use Infinityd.
6451         * tests/test-roundf1.c: Include infinity.h.
6452         (main): Use Infinityf.
6453         * tests/test-round1.c: Include infinity.h.
6454         (main): Use Infinityd.
6455         * tests/test-roundl.c: Include infinity.h.
6456         (main): Use Infinityl.
6457         * tests/test-signbit.c: Include infinity.h.
6458         (test_signbitf): Use Infinityf.
6459         (test_signbitd): Use Infinityd.
6460         (test_signbitl): Use Infinityl.
6461         * tests/test-snprintf-posix.h: Include infinity.h.
6462         (test_function): Use Infinityd, Infinityl.
6463         * tests/test-sprintf-posix.h: Include infinity.h.
6464         (test_function): Use Infinityd, Infinityl.
6465         * tests/test-truncf1.c: Include infinity.h.
6466         (main): Use Infinityf.
6467         * tests/test-trunc1.c: Include infinity.h.
6468         (main): Use Infinityd.
6469         * tests/test-truncl.c: Include infinity.h.
6470         (main): Use Infinityl.
6471         * tests/test-vasnprintf-posix.c: Include infinity.h.
6472         (test_function): Use Infinityd, Infinityl.
6473         * tests/test-vasprintf-posix.c: Include infinity.h.
6474         (test_function): Use Infinityd, Infinityl.
6475         * modules/ceilf-tests (Files): Add tests/infinity.h.
6476         * modules/ceil-tests (Files): Likewise.
6477         * modules/ceill-tests (Files): Likewise.
6478         * modules/dprintf-posix-tests (Files): Likewise.
6479         * modules/floorf-tests (Files): Likewise.
6480         * modules/floor-tests (Files): Likewise.
6481         * modules/floorl-tests (Files): Likewise.
6482         * modules/fprintf-posix-tests (Files): Likewise.
6483         * modules/frexp-tests (Files): Likewise.
6484         * modules/frexp-nolibm-tests (Files): Likewise.
6485         * modules/frexpl-tests (Files): Likewise.
6486         * modules/frexpl-nolibm-tests (Files): Likewise.
6487         * modules/isfinite-tests (Files): Likewise.
6488         * modules/isinf-tests (Files): Likewise.
6489         * modules/isnan-tests (Files): Likewise.
6490         * modules/isnanf-tests (Files): Likewise.
6491         * modules/isnanf-nolibm-tests (Files): Likewise.
6492         * modules/isnand-tests (Files): Likewise.
6493         * modules/isnand-nolibm-tests (Files): Likewise.
6494         * modules/isnanl-tests (Files): Likewise.
6495         * modules/isnanl-nolibm-tests (Files): Likewise.
6496         * modules/ldexpl-tests (Files): Likewise.
6497         * modules/printf-posix-tests (Files): Likewise.
6498         * modules/roundf-tests (Files): Likewise.
6499         * modules/round-tests (Files): Likewise.
6500         * modules/roundl-tests (Files): Likewise.
6501         * modules/signbit-tests (Files): Likewise.
6502         * modules/snprintf-posix-tests (Files): Likewise.
6503         * modules/sprintf-posix-tests (Files): Likewise.
6504         * modules/truncf-tests (Files): Likewise.
6505         * modules/trunc-tests (Files): Likewise.
6506         * modules/truncl-tests (Files): Likewise.
6507         * modules/vasnprintf-posix-tests (Files): Likewise.
6508         * modules/vasprintf-posix-tests (Files): Likewise.
6509         * modules/vdprintf-posix-tests (Files): Likewise.
6510         * modules/vfprintf-posix-tests (Files): Likewise.
6511         * modules/vprintf-posix-tests (Files): Likewise.
6512         * modules/vsnprintf-posix-tests (Files): Likewise.
6513         * modules/vsprintf-posix-tests (Files): Likewise.
6514         * modules/xprintf-posix-tests (Files): Likewise.
6515
6516 2011-09-11  Bruno Haible  <bruno@clisp.org>
6517
6518         Ensure pid_t gets defined.
6519         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6520         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6521         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6522         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6523         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6524         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6525         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6526         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6527         * tests/test-fcntl-h.c: Check that pid_t is defined.
6528         * tests/test-sched.c: Likewise.
6529         * tests/test-termios.c: Likewise.
6530         * tests/test-time.c: Likewise.
6531         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6532         * doc/posix-headers/signal.texi: Likewise.
6533         * doc/posix-headers/sys_types.texi: Likewise.
6534         * doc/posix-headers/time.texi: Likewise.
6535
6536 2011-09-11  Bruno Haible  <bruno@clisp.org>
6537
6538         acl: Fix compilation on Solaris 10 (older version).
6539         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6540         of ACE_EVERYONE.
6541         * lib/set-mode-acl.c (qset_acl): Likewise.
6542         Reported by Christian Jullien <eligis@orange.fr>.
6543
6544 2011-09-10  Bruno Haible  <bruno@clisp.org>
6545
6546         iconv, unsetenv: Add support for MSVC compiler.
6547         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6548         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6549
6550 2011-09-10  Bruno Haible  <bruno@clisp.org>
6551
6552         *printf: Add support for MSVC compiler.
6553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6554         handles the exception caused by the %n directive. When cross-compiling,
6555         guess no on native Windows.
6556         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6557         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6558         emulate it through vsnprintf.
6559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6560         * doc/posix-functions/dprintf.texi: Update documentation regarding
6561         MSVC 9.
6562         * doc/posix-functions/fprintf.texi: Likewise.
6563         * doc/posix-functions/printf.texi: Likewise.
6564         * doc/posix-functions/snprintf.texi: Likewise.
6565         * doc/posix-functions/sprintf.texi: Likewise.
6566         * doc/posix-functions/swprintf.texi: Likewise.
6567         * doc/posix-functions/vdprintf.texi: Likewise.
6568         * doc/posix-functions/vfprintf.texi: Likewise.
6569         * doc/posix-functions/vprintf.texi: Likewise.
6570         * doc/posix-functions/vsnprintf.texi: Likewise.
6571         * doc/posix-functions/vsprintf.texi: Likewise.
6572         * doc/glibc-functions/asprintf.texi: Likewise.
6573         * doc/glibc-functions/obstack_printf.texi: Likewise.
6574         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6575         * doc/glibc-functions/vasprintf.texi: Likewise.
6576
6577 2011-09-10  Bruno Haible  <bruno@clisp.org>
6578
6579         nocrash: Add support for native Windows.
6580         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6581
6582 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6583             Bruno Haible  <bruno@clisp.org>
6584
6585         absolute-header, include-next: Add support for MSVC compiler.
6586         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6587         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6588         directory separator in #line directives.
6589         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6590         recognize also backslash as directory separator in #line directives.
6591
6592 2011-09-08  Jim Meyering  <meyering@redhat.com>
6593
6594         maint.mk: mark the post-release commit log with "maint: " prefix
6595         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6596         one-line commit-log summary.
6597
6598 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6599             Bruno Haible  <bruno@clisp.org>
6600
6601         Doc about crypt functions.
6602         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6603         systems.
6604         * doc/posix-functions/encrypt.texi: Likewise.
6605         * doc/posix-functions/setkey.texi: Likewise.
6606
6607 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6608
6609         * lib/gc.h: Fix copyright header.
6610
6611 2011-09-07  Bruno Haible  <bruno@clisp.org>
6612
6613         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6614         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6615         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6616
6617 2011-09-07  Bruno Haible  <bruno@clisp.org>
6618
6619         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6620         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6621         * lib/freopen.c: Likewise.
6622         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6623         * lib/lstat.c: Likewise.
6624         * lib/stat.c: Likewise.
6625         * lib/open.c: Use different syntax for include of <fcntl.h>.
6626         * lib/openat.c: Include fcntl.h again, explicitly.
6627
6628 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6629
6630         parse-datetime: document the newly accepted format
6631         * doc/parse-datetime.texi (Combined date and time of day items):
6632         New section.
6633
6634 2011-09-06  Bruno Haible  <bruno@clisp.org>
6635
6636         acl: Fix a test failure on newer Solaris 10 with ZFS.
6637         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6638         ENOSYS as no ACL.
6639         Reported by Jim Meyering.
6640
6641 2011-09-06  Bruno Haible  <bruno@clisp.org>
6642
6643         acl: Update for AIX >= 5.3 with NFS.
6644         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6645         ENOSYS as no ACL.
6646
6647         acl: Fix a test failure on AIX >= 5.3 with NFS.
6648         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6649         as no ACL.
6650
6651 2011-09-06  Bruno Haible  <bruno@clisp.org>
6652
6653         acl: Fix a test failure on IRIX 6.5 with NFS.
6654         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6655         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6656         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6657         * lib/copy-acl.c (qcopy_acl): Likewise.
6658
6659 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6660
6661         openat: port to AIX 7.1 with large files
6662         AIX 7.1 does a "#define openat open64at" if large files are in use,
6663         so we can't simply #undef openat.  Use the orig_openat trick (similar
6664         to orig_open in lib/open.c) to work around the problem.  Problem
6665         reported by Kevin Brott for GNU tar, in the thread containing
6666         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6667         * lib/openat.c (__need_system_fcntl_h): Define first.
6668         Include <fcntl.h> and <sys/types.h> before undefining.
6669         (orig_openat) [HAVE_OPENAT]: New inline function.
6670         (openat) [HAVE_OPENAT]: Do not undef.
6671         (rpl_openat): Use orig_openat, not openat.
6672
6673 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6674             Bruno Haible  <bruno@clisp.org>
6675
6676         acl: Avoid errors on NonStop Kernel.
6677         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6678         ENOTSUP errors.
6679
6680 2011-09-05  Bruno Haible  <bruno@clisp.org>
6681
6682         acl: Clean up Solaris code.
6683         * lib/acl-internal.h: Remove no-op #if.
6684         * lib/file-has-acl.c: Likewise.
6685         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6686         * lib/copy-acl.c (qcopy_acl): Likewise.
6687
6688 2011-09-05  Bruno Haible  <bruno@clisp.org>
6689
6690         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6691         binaries built on the original Solaris 10.
6692         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6693         trivial.
6694
6695 2011-09-05  Bruno Haible  <bruno@clisp.org>
6696
6697         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6698         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
6699         10.
6700         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
6701         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
6702         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
6703         instead of acl_get, facl_get, acl_set, facl_set.
6704
6705 2011-09-05  Bruno Haible  <bruno@clisp.org>
6706
6707         copy-file: Try unit tests on more file systems.
6708         * tests/test-copy-file-1.sh: New file.
6709         * tests/test-copy-file-2.sh: New file.
6710         * modules/copy-file-tests (Files): Add them.
6711         (Makefile.am): Add them to TESTS.
6712
6713         acl: Try unit tests on more file systems.
6714         * tests/test-file-has-acl-1.sh: New file.
6715         * tests/test-file-has-acl-2.sh: New file.
6716         * tests/test-set-mode-acl-1.sh: New file.
6717         * tests/test-set-mode-acl-2.sh: New file.
6718         * tests/test-copy-acl-1.sh: New file.
6719         * tests/test-copy-acl-2.sh: New file.
6720         * modules/acl-tests (Files): Add them.
6721         (Makefile.am): Add them to TESTS.
6722
6723 2011-09-04  Bruno Haible  <bruno@clisp.org>
6724
6725         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6726         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
6727         10.
6728         (OLD_ALLOW, OLD_DENY): New macros.
6729         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
6730         ACE_ACCESS_ALLOWED_ACE_TYPE.
6731         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
6732         ACE_ACCESS_DENIED_ACE_TYPE.
6733         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
6734         (NEW_ACE_EXECUTE): Fix value.
6735         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
6736         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
6737         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
6738         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
6739         NEW_ACE_SYNCHRONIZE): New macros.
6740         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
6741         instead of acl_fromtext, acl_set, facl_set.
6742         Fixes a coreutils/tests/cp/perm failure.
6743
6744 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6745
6746         openat: test for fstatat (..., 0) bug
6747         Further testing with tar suggests that fstatat (..., 0)
6748         does not work in general, on AIX 7.1; see
6749         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
6750         So, give up entirely on AIX 7.1's fstatat, and fall back on our
6751         replacement fstatat (which is what older AIX releases were using
6752         anyway).
6753         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6754         use is now changed to orig_fstatat.  This was probably the right
6755         thing to do anyway.
6756         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6757         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6758         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6759         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6760         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6761         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6762         if the bug is found.
6763
6764         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6765         This tests for another fstatat bug on AIX 7.1:
6766         fstatat (AT_FDCWD, ..., 0) does not work.  See
6767         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6768         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6769         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
6770         (rpl_fstatat): Adjust so that it works around either (or both)
6771         bugs if present.
6772         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
6773
6774 2011-09-03  Karl Berry  <karl@gnu.org>
6775
6776         * doc/regex.texi (Character Class Operators): Avoid literal ":"
6777         in index entries.
6778
6779 2011-09-02  Bruno Haible  <bruno@clisp.org>
6780
6781         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6782         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6783         values of AR, ARFLAGS, RANLIB.
6784         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6785
6786 2011-09-02  Bruno Haible  <bruno@clisp.org>
6787
6788         Find 'ar' program that fits with --host argument.
6789         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6790
6791 2011-09-02  Bruno Haible  <bruno@clisp.org>
6792
6793         tests: init.sh: Support any non-GNU diff.
6794         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6795         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6796         Solaris 8.
6797
6798 2011-09-02  Bruno Haible  <bruno@clisp.org>
6799
6800         tests: init.sh: work also with any non-GNU diff that supports -u
6801         * tests/init.sh: Relax check for diff -u support.
6802         Rather than checking for GNU diff via --version, simply check
6803         for support for -u itself.  Useful at least on OpenBSD 4.9,
6804         AIX 7.1, IRIX 6.5, and Solaris 10.
6805
6806 2011-09-01  Bruno Haible  <bruno@clisp.org>
6807
6808         strtoimax, strtoumax: Document problem on HP-UX 11.
6809         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6810         * doc/posix-functions/strtoumax.texi: Likewise.
6811
6812 2011-09-01  Bruno Haible  <bruno@clisp.org>
6813
6814         strtoumax: Avoid link error on OSF/1 with DTK cc.
6815         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6816         defined as a function.
6817         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6818         strtoumax is defined, not whether it is declared.
6819
6820 2011-09-01  Bruno Haible  <bruno@clisp.org>
6821
6822         strtoimax: Avoid link error on OSF/1 with DTK cc.
6823         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6824         defined as a function.
6825         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6826         strtoimax is defined, not whether it is declared.
6827
6828 2011-09-01  Bruno Haible  <bruno@clisp.org>
6829
6830         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6831         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6832         as a function.
6833         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6834         whether it is declared.
6835
6836 2011-09-01  Bruno Haible  <bruno@clisp.org>
6837
6838         imaxabs: Avoid link error on OSF/1 with DTK cc.
6839         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6840         as a function.
6841         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6842         whether it is declared.
6843
6844 2011-09-01  Bruno Haible  <bruno@clisp.org>
6845
6846         Tests for module 'strtoumax'.
6847         * modules/strtoumax-tests: New file.
6848         * tests/test-strtoumax.c: New file.
6849
6850         Tests for module 'strtoimax'.
6851         * modules/strtoimax-tests: New file.
6852         * tests/test-strtoimax.c: New file.
6853
6854         Tests for module 'imaxdiv'.
6855         * modules/imaxdiv-tests: New file.
6856         * tests/test-imaxdiv.c: New file.
6857
6858         Tests for module 'imaxabs'.
6859         * modules/imaxabs-tests: New file.
6860         * tests/test-imaxabs.c: New file.
6861
6862 2011-09-01  Bruno Haible  <bruno@clisp.org>
6863
6864         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6865         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6866         pthread_create.
6867
6868 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6869
6870         openat: work around AIX 7.1 fstatat issue
6871         This should fix the problem that was not properly fixed
6872         in the previous change, dated 2011-08-30.
6873         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6874         __need_system_stat_h defined.
6875         (orig_fstatat) [HAVE_FSTATAT]: New function.
6876         (rpl_fstatat): Go back to the old way of doing things,
6877         except call orig_fstatat instead of fstatat.
6878         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6879         Remove unnecessary check whether fstatat fills in st_size etc.
6880
6881 2011-09-01  Bruno Haible  <bruno@clisp.org>
6882
6883         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6884         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6885         just include the system's header.
6886
6887 2011-08-31  Jim Meyering  <meyering@redhat.com>
6888
6889         tests: avoid spurious assertion failure in test-float.c on ppc64
6890         * tests/test-float.c (test_long_double): Comment out an assertion,
6891         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6892         with gcc-4.4.4.
6893
6894         maint: indent with spaces, not TABs
6895         I need to get in the habit of running gnulib's "make check".
6896         Both of these would have been caught.
6897         * m4/largefile.m4: Indent with spaces, not TABs.
6898         * lib/parse-datetime.y (iso_8601_time): Likewise.
6899         Spotted by Pádraig Brady.
6900
6901         test-parse-datetime.c: accommodate a relatively strict gcc warning
6902         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6903         to avoid a warning from gcc's -Werror=missing-declarations.
6904         Insert a few spaces-before-funcall-parenthesis.
6905
6906 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6907
6908         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6909         The parser now accepts ISO 8601 date-time strings with "T" as the
6910         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6911         with a space between the date and time strings.  Now it also parses
6912         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6913         variants like "2004-02-29T16:21:42.333-07:00"
6914         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6915         of day representation using the 'T' separator character.
6916         * doc/parse-datetime.texi (General date syntax): replace use of
6917         deprecated --iso-8601 option with --rfc-3339 in example of date
6918         command output formats that can be parsed.
6919         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6920         lib/parse-datetime.y.
6921         (gmt_offset): New function.
6922         (main): Add additional test cases to validate ISO8601 extended
6923         date and time of day parsing.
6924
6925 2011-08-31  Bruno Haible  <bruno@clisp.org>
6926
6927         freopen: Documentation.
6928         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6929         name.
6930         Reported by Claudio Bley <claudio.bley@gmail.com>.
6931
6932 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6933
6934         freopen: Don't crash if the filename argument is NULL.
6935         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6936         NULL.
6937
6938 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6939
6940         openat: work around AIX 7.1 fstatat bug
6941         Problem reported by Kevin Brott for GNU tar, in the thread containing
6942         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6943         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6944         FSTATAT_ST_SIZE_ETC_BROKEN.
6945         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6946         rpl_fstatat.
6947         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6948         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6949         AC_CHECK_FUNCS_ONCE for fstatat.
6950         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6951         fchmodat, mkdirat, openat and unlinkat.
6952
6953 2011-08-30  Bruno Haible  <bruno@clisp.org>
6954
6955         Avoid endless recursions if config.h includes some header files.
6956         * lib/fopen.c (__need_FILE): Define already before including config.h.
6957         * lib/freopen.c (__need_FILE): Likewise.
6958         * lib/open.c (__need_system_fcntl_h): Likewise.
6959         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6960         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6961         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6962
6963 2011-08-25  Karl Berry  <karl@gnu.org>
6964
6965         * config/srclist.txt (ylwrap): new try.
6966         * build-aux/ylwrap: new file.
6967
6968 2011-08-23  Bruno Haible  <bruno@clisp.org>
6969
6970         tmpdir: Use a good default directory on native Windows.
6971         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6972         (P_tmpdir): Default to _P_tmpdir on native Windows.
6973         (path_search): On native Windows, try the value returned by GetTempPath
6974         before trying P_tmpdir.
6975         * modules/tmpdir (Depends-on): Add pathmax.
6976         Suggested by John Darrington <john@darrington.wattle.id.au>.
6977
6978 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6979
6980         doc: fix typo in README-release
6981         * top/README-release: Capitalize first word of a sentence.
6982
6983 2011-08-19  Jim Meyering  <meyering@redhat.com>
6984
6985         fts: do not exhaust memory when processing million-entry directories
6986         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6987         directory would require about 256*N bytes of memory.  Thus, it was
6988         easy to construct a directory too large to be processed by any of
6989         those tools.  With this change, fts' maximum memory utilization is
6990         now limited to around 30MB.
6991         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6992         (fts_read): When we've processed the final entry (i.e., when
6993         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6994         using the parent entry to read any remaining entries.  Dispatch
6995         depending on what fts_build returns:
6996         - NULL+stop, aka failure: stop
6997         - NULL otherwise: move up in the dir hierarchy
6998         - non-NULL: handle this new entry
6999         (fts_build): Declare and use new local, continue_readdir.
7000         Prepare to be called from fts_read, when the entries
7001         from a partially-read directory have just been exhausted.
7002         In that case, we'll skip the opendir and instead use the parent's
7003         fts_dirp and derive dir_fd from that.
7004         Finally, in the readdir loop, if we read max_entries entries,
7005         exit the loop ensuring *not* to call closedir.  This is required
7006         so that fts_dirp can be reused on a subsequent call.
7007         Prompted by Ben England's report of memory exhaustion in find
7008         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7009
7010         maint: fts: move decl of `dp' down into while loop; split a long line
7011         * lib/fts.c (fts_build): No semantic change.
7012
7013         fts: add/use new struct member, fts_dirp
7014         We are about to use this to manage any directory with
7015         too many entries to read all of them into memory at once.
7016         To do that, we'll need to save the DIR* pointer in each
7017         affected FTSENT struct.
7018         * lib/fts_.h: Include <dirent.h>.
7019         (struct FTSENT) [fts_dirp]: New member.
7020         * lib/fts.c (closedir_and_clear): Define.
7021         Use it in place of closedir so that we are sure to
7022         clear the new fts_dirp member when done with it.
7023         (fts_alloc): Initialize the new member.
7024         (fts_lfree): Free, if needed.
7025
7026         maint: fts: give __opendir2 a new parameter and rename
7027         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7028         than surreptitiously using sole caller's "dir_fd".
7029         (fts_opendir): Rename from __opendir2.
7030
7031         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7032         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7033
7034         maint: fts.c: correct off-by-one indentation
7035         * lib/fts.c (fts_build): Correct indentation, change style
7036         of a couple of block comments, and bracing style.
7037
7038         maint: fts.c: move __opendir2 #define "up" out of function body
7039         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7040
7041         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7042         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7043         out for a long time and besides was useful only on BSD systems.
7044
7045 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7046
7047         regex: port to Stratus OpenVOS
7048         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7049         define to empty, rather than attempting nonportable optimizations.
7050         Problem reported by Paul Green in:
7051         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7052         and fix suggested by Eric Blake in:
7053         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7054
7055 2011-08-17  Eric Blake  <eblake@redhat.com>
7056
7057         getcwd: fix test failures on mingw
7058         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7059         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7060         test if long directory cannot be created, and allow mingw errno.
7061
7062         getcwd-lgpl: fix m4 to match relaxed test for BSD
7063         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7064         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7065         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7066         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7067         signature problem.
7068
7069         getcwd: fix compilation on mingw64
7070         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7071         getcwd.
7072         Reported by Marc-André Lureau.
7073
7074         pipe2: silence compiler warning
7075         * lib/pipe2.c (pipe2): Hide label if it is not used.
7076
7077 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7078
7079         relocatable-prog: fix link error
7080         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7081         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7082         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7083         into modules/relocatable-lib without noticing that
7084         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7085         also needs to build relocatable.c.
7086
7087 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7088
7089         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7090         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7091         shell code: it contained a 'break' that was not in a loop.
7092         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7093         via a shell-language loop; this may have been true in old Autoconf
7094         versions, but it's not true in Autoconf 2.68.  I found this bug
7095         when testing coreutils git on Solaris 8, whose shell complains
7096         about the syntax error.
7097
7098 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7099
7100         * lib/base64.c: Fix comment to reference RFC 4648.
7101         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7102         <gvtulder@gmail.com>.
7103
7104 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7105
7106         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7107
7108         po/Makefile.in.in: fix make -q problem
7109         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7110         rule, since there's no file named 'check-macro-version' and its
7111         use as a file breaks make -q.
7112         (all): Don't depend on check-macro-version.
7113         (CHECK_MACRO_VERSION): New macro.
7114         (stamp-po): Use it.
7115
7116         configmake: fix make -q problem
7117         * modules/configmake (configmake.h): Update configmake.h's time stamp
7118         even if the file does not change.  Otherwise, 'make -q' fails.
7119         Problem reported by Simon Josefsson in
7120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7121
7122 2011-08-11  Jim Meyering  <meyering@redhat.com>
7123
7124         git-version-gen: correct the advice in a comment
7125         * build-aux/git-version-gen: Correct comment.
7126         Don't recommend to list .tarball-version in .gitignore.
7127
7128 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7129
7130         base64: fix off-by-one buffer size bug
7131         Problem and (trivial) fix reported by Gijs van Tulder in
7132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7133         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7134         * tests/test-base64.c (main): Catch the bug.
7135
7136 2011-08-10  Eric Blake  <eblake@redhat.com>
7137
7138         closein: correct comments
7139         * lib/closein.c (close_stdin): Improve comments.
7140
7141 2011-08-09  Bruno Haible  <bruno@clisp.org>
7142
7143         More tests for 'fseeko'.
7144         * tests/test-fseeko3.c: New file, from Eric Blake.
7145         * tests/test-fseeko3.sh: New file.
7146         * modules/fseeko-tests (Files): Add them.
7147         (TESTS): Add test-fseeko3.sh.
7148         (check_PROGRAMS): Add test-fseeko3.
7149
7150 2011-08-09  Eric Blake  <eblake@redhat.com>
7151
7152         fseeko: remove unneeded hack
7153         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7154
7155         fseeko: fix bug on glibc
7156         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7157         Reported by John W. Eaton.
7158
7159 2011-08-08  Bruno Haible  <bruno@clisp.org>
7160
7161         unictype/base: Fix interoperability with preinstalled libunistring.
7162         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7163         Reported by Simon Josefsson.
7164
7165 2011-08-08  Bruno Haible  <bruno@clisp.org>
7166
7167         iswblank: Detect declaration correctly.
7168         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7169         AC_CHECK_DECLS invocation.
7170
7171 2011-08-08  Bruno Haible  <bruno@clisp.org>
7172
7173         tcgetsid: Detect declaration correctly.
7174         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7175         AC_CHECK_DECLS invocation.
7176         Reported by Simon Josefsson.
7177
7178 2011-08-08  Eric Blake  <eblake@redhat.com>
7179
7180         largefile: fix typo that regressed large file support
7181         * modules/largefile (configure.ac-early): Fix section name.
7182
7183 2011-08-06  Karl Berry  <karl@gnu.org>
7184
7185         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7186         a separate module.
7187
7188 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7189
7190         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7191         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7192         get prototype for free.
7193
7194 2011-08-04  Bruno Haible  <bruno@clisp.org>
7195
7196         Tests for module 'pathmax'.
7197         * modules/pathmax-tests: New file.
7198         * tests/test-pathmax.c: New file.
7199
7200         canonicalize-lgpl: Support larger filenames on the Hurd.
7201         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7202         Reported by Paul Eggert.
7203
7204         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7205         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7206         * lib/chdir-long.h: Include pathmax.h.
7207         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7208         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7209         (PATH_MAX): Remove code that is done by pathmax.h.
7210         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7211         * lib/tmpfile.c: Add a comment.
7212         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7213         * modules/chdir-long (Depends-on): Add pathmax.
7214         * modules/getcwd (Depends-on): Add pathmax.
7215         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7216         is not defined.
7217         * doc/posix-headers/limits.texi: Mention the pathmax module.
7218         * NEWS: Mention the change.
7219
7220 2011-08-02  Bruno Haible  <bruno@clisp.org>
7221
7222         pthread_sigmask: Actually use results of gl_THREADLIB.
7223         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7224         gl_THREADLIB, not gl_[]THREADLIB.
7225         Reported by Eric Blake.
7226
7227 2011-08-02  Jim Meyering  <meyering@redhat.com>
7228
7229         maint.mk: relax the default _gl_TS_function_match regexp
7230         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7231         space between function name and "(" in an "extern" declaration.
7232         That would fail to match a decl with no space there: extern void foo();
7233
7234 2011-07-31  Iain Nicol  <iain@thenicols.net>
7235
7236         git-version-gen: document that EXTRA_DIST must include .version
7237         * build-aux/git-version-gen: In the how-to-use comment, document
7238         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7239         will fail when run from an unpacked distribution tarball.
7240
7241 2011-08-01  Bruno Haible  <bruno@clisp.org>
7242
7243         wctype-h: Fix last change.
7244         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7245         REPLACE_TOWLOWER to 0.
7246         Reported by Sam Steingold <sds@gnu.org>.
7247
7248 2011-07-31  Bruno Haible  <bruno@clisp.org>
7249
7250         frexpl: Update autoconf test.
7251         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7252         according to changes of 2011-06-20.
7253
7254 2011-07-31  Bruno Haible  <bruno@clisp.org>
7255
7256         sys_utsname: Add support for Minix.
7257         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7258         <sys/utsname.h>.
7259         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7260         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7261
7262 2011-07-31  Bruno Haible  <bruno@clisp.org>
7263
7264         strings: Add support for Minix.
7265         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7266         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7267         * doc/posix-headers/strings.texi: Document the Minix problem.
7268
7269 2011-07-31  Bruno Haible  <bruno@clisp.org>
7270
7271         wctype-h: Add support for Minix.
7272         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7273         REPLACE_TOWLOWER.
7274         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7275         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7276         REPLACE_ISWCNTRL.
7277
7278 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7279
7280         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7281         This is a performance improvement for 64-bit hosts: it causes the
7282         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7283
7284 2011-07-31  Bruno Haible  <bruno@clisp.org>
7285
7286         stdioext: Add support for Minix.
7287         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7288         * lib/fpurge.c (fpurge): Likewise.
7289         * lib/freadahead.c (freadahead): Likewise.
7290         * lib/freadable.c (freadable): Likewise.
7291         * lib/freading.c (freading): Likewise.
7292         * lib/freadptr.c (freadptr): Likewise.
7293         * lib/freadseek.c (freadptrinc): Likewise.
7294         * lib/fseeko.c (rpl_fseeko): Likewise.
7295         * lib/fseterr.c (fseterr): Likewise.
7296         * lib/fwritable.c (fwritable): Likewise.
7297         * lib/fwriting.c (fwriting): Likewise.
7298         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7299         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7300
7301 2011-07-31  Bruno Haible  <bruno@clisp.org>
7302
7303         errno: Port to Minix.
7304         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7305         ECONNABORTED are defined.
7306         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7307         GNULIB_defined_ECONNABORTED): New macros.
7308         * lib/strerror-override.h (strerror_override): Test also
7309         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7310         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7311         ECONNABORTED.
7312         * doc/posix-headers/errno.texi: Mention the Minix problem.
7313
7314 2011-07-31  Bruno Haible  <bruno@clisp.org>
7315
7316         Work around declaration collisions on Minix.
7317         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7318         defined, set REPLACE_MBSINIT.
7319         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7320         defined, set REPLACE_MBRTOWC.
7321         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7322         set REPLACE_MBRLEN.
7323         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7324         defined, set REPLACE_MBSRTOWCS.
7325         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7326         defined, set REPLACE_WCRTOMB.
7327         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7328         defined, set REPLACE_WCSRTOMBS.
7329
7330 2011-07-31  Bruno Haible  <bruno@clisp.org>
7331
7332         Add support for Minix with ACK compiler.
7333         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7334         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7335         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7336
7337 2011-07-31  Bruno Haible  <bruno@clisp.org>
7338
7339         Documentation about Minix.
7340         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7341         * doc/glibc-headers/*.texi: Likewise.
7342         * doc/posix-functions/*.texi: Likewise.
7343         * doc/glibc-functions/*.texi: Likewise.
7344
7345 2011-07-31  Bruno Haible  <bruno@clisp.org>
7346
7347         snippet/warn-on-use: Fix indentation.
7348         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7349
7350 2011-07-25  Jim Meyering  <meyering@redhat.com>
7351
7352         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7353         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7354         commands.
7355
7356 2011-07-27  Jim Meyering  <meyering@redhat.com>
7357
7358         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7359         * top/maint.mk (gl_extract_significant_defines_): Now that
7360         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7361         gnulib/lib/signal.in.h, and now that we recommend to
7362         define-if-undefined those two symbols in application code,
7363         we must filter them out of the "significant" list.
7364         This avoids a "make syntax-check" failure in coreutils.
7365
7366 2011-07-26  Eric Blake  <eblake@redhat.com>
7367
7368         warnings: add comments about previous patch
7369         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7370         * m4/include_next.m4: Likewise.
7371         * m4/warn-on-use.m4: Likewise.
7372         * m4/warnings.m4: Likewise, and simplify use.
7373         Suggested by Stefano Lattarini.
7374
7375         include-next, warnings: support older autoconf
7376         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7377         AS_VAR_PUSHDEF in a way that works with older autoconf.
7378         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7379         Reported by Daniel P. Berrange.
7380
7381 2011-07-25  Bruno Haible  <bruno@clisp.org>
7382
7383         fseek, ftell: Fix doc.
7384         * doc/posix-functions/fseek.texi: Reword statement about
7385         AC_SYS_LARGEFILE.
7386         * doc/posix-functions/ftell.texi: Likewise.
7387
7388 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7389             Bruno Haible  <bruno@clisp.org>
7390
7391         Add dependencies to the 'largefile' module.
7392         * modules/fopen (Depends-on): Add 'largefile'.
7393         * modules/freopen (Depends-on): Likewise.
7394         * modules/fseeko (Depends-on): Likewise.
7395         * modules/ftello (Depends-on): Likewise.
7396         * modules/glob (Depends-on): Likewise.
7397         * modules/lseek (Depends-on): Likewise.
7398         * modules/lstat (Depends-on): Likewise.
7399         * modules/mkostemp (Depends-on): Likewise.
7400         * modules/mkostemps (Depends-on): Likewise.
7401         * modules/mkstemp (Depends-on): Likewise.
7402         * modules/mkstemps (Depends-on): Likewise.
7403         * modules/open (Depends-on): Likewise.
7404         * modules/openat (Depends-on): Likewise.
7405         * modules/pread (Depends-on): Likewise.
7406         * modules/pwrite (Depends-on): Likewise.
7407         * modules/scandir (Depends-on): Likewise.
7408         * modules/stat (Depends-on): Likewise.
7409         * modules/tmpfile (Depends-on): Likewise.
7410         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7411         since the containing module now depends on the largefile module.
7412         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7413         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7414         off_t is fixed by gnulib.
7415         * doc/posix-functions/freopen.texi: Likewise.
7416         * doc/posix-functions/fseeko.texi: Likewise.
7417         * doc/posix-functions/fstatat.texi: Likewise.
7418         * doc/posix-functions/ftello.texi: Likewise.
7419         * doc/posix-functions/glob.texi: Likewise.
7420         * doc/posix-functions/lseek.texi: Likewise.
7421         * doc/posix-functions/lstat.texi: Likewise.
7422         * doc/posix-functions/mkstemp.texi: Likewise.
7423         * doc/posix-functions/open.texi: Likewise.
7424         * doc/posix-functions/openat.texi: Likewise.
7425         * doc/posix-functions/pread.texi: Likewise.
7426         * doc/posix-functions/pwrite.texi: Likewise.
7427         * doc/posix-functions/scandir.texi: Likewise.
7428         * doc/posix-functions/stat.texi: Likewise.
7429         * doc/posix-functions/tmpfile.texi: Likewise.
7430         * doc/glibc-functions/mkostemp.texi: Likewise.
7431         * doc/glibc-functions/mkostemps.texi: Likewise.
7432         * doc/glibc-functions/mkstemps.texi: Likewise.
7433
7434 2011-07-25  Bruno Haible  <bruno@clisp.org>
7435
7436         fcntl: Move AC_LIBOBJ invocation to module description.
7437         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7438         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7439
7440         fcntl: Remove call-in from fchdir.m4.
7441         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7442         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7443
7444         dup3: Remove potential call-in from fchdir.m4.
7445         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7446         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7447
7448         dup2: Move AC_LIBOBJ invocation to module description.
7449         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7450         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7451         Don't invoke AC_LIBOBJ.
7452         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7453
7454         dup2: Remove call-in from fchdir.m4.
7455         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7457
7458         fclose: Move AC_LIBOBJ invocation to module description.
7459         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7460         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7461         to 1.
7462         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7463
7464         fclose: Remove call-in from close.m4.
7465         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7466         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7467
7468         close: Move AC_LIBOBJ invocation to module description.
7469         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7470         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7471         1.
7472         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7473
7474         close: Remove call-in from fchdir.m4.
7475         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7476         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7477
7478         open: Move AC_LIBOBJ invocation to module description.
7479         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7480         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7481         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7482
7483         open: Remove call-in from fchdir.m4.
7484         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7486
7487         fchdir: Start to remove gl_REPLACE_* idiom.
7488         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7489         (gl_FUNC_FCHDIR): Invoke it.
7490
7491 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7492
7493         * lib/ftell.c (ftell): Comment out cast.
7494
7495         close: use gl_REPLACE_FCLOSE only if defined
7496         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7497         is defined.  The close module doesn't depend on the fclose module
7498         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7500         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7501
7502 2011-07-24  Jim Meyering  <meyering@redhat.com>
7503
7504         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7505         * tests/test-select.h (test_function): Declare as "static".
7506
7507 2011-07-24  Bruno Haible  <bruno@clisp.org>
7508
7509         doc: Mention the effects of AC_SYS_LARGEFILE.
7510         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7511         on this function.
7512         * doc/posix-functions/aio_error.texi: Likewise.
7513         * doc/posix-functions/aio_fsync.texi: Likewise.
7514         * doc/posix-functions/aio_read.texi: Likewise.
7515         * doc/posix-functions/aio_return.texi: Likewise.
7516         * doc/posix-functions/aio_suspend.texi: Likewise.
7517         * doc/posix-functions/aio_write.texi: Likewise.
7518         * doc/posix-functions/fgetpos.texi: Likewise.
7519         * doc/posix-functions/fopen.texi: Likewise.
7520         * doc/posix-functions/freopen.texi: Likewise.
7521         * doc/posix-functions/fsetpos.texi: Likewise.
7522         * doc/posix-functions/fstatvfs.texi: Likewise.
7523         * doc/posix-functions/ftruncate.texi: Likewise.
7524         * doc/posix-functions/ftw.texi: Likewise.
7525         * doc/posix-functions/getrlimit.texi: Likewise.
7526         * doc/posix-functions/glob.texi: Likewise.
7527         * doc/posix-functions/lio_listio.texi: Likewise.
7528         * doc/posix-functions/lockf.texi: Likewise.
7529         * doc/posix-functions/mkstemp.texi: Likewise.
7530         * doc/posix-functions/mmap.texi: Likewise.
7531         * doc/posix-functions/nftw.texi: Likewise.
7532         * doc/posix-functions/openat.texi: Likewise.
7533         * doc/posix-functions/opendir.texi: Likewise.
7534         * doc/posix-functions/posix_fadvise.texi: Likewise.
7535         * doc/posix-functions/posix_fallocate.texi: Likewise.
7536         * doc/posix-functions/pread.texi: Likewise.
7537         * doc/posix-functions/pwrite.texi: Likewise.
7538         * doc/posix-functions/readdir.texi: Likewise.
7539         * doc/posix-functions/readdir_r.texi: Likewise.
7540         * doc/posix-functions/rewinddir.texi: Likewise.
7541         * doc/posix-functions/scandir.texi: Likewise.
7542         * doc/posix-functions/seekdir.texi: Likewise.
7543         * doc/posix-functions/setrlimit.texi: Likewise.
7544         * doc/posix-functions/statvfs.texi: Likewise.
7545         * doc/posix-functions/telldir.texi: Likewise.
7546         * doc/posix-functions/tmpfile.texi: Likewise.
7547         * doc/posix-functions/truncate.texi: Likewise.
7548         * doc/glibc-functions/fallocate.texi: Likewise.
7549         * doc/glibc-functions/fstatfs.texi: Likewise.
7550         * doc/glibc-functions/fts_children.texi: Likewise.
7551         * doc/glibc-functions/fts_read.texi: Likewise.
7552         * doc/glibc-functions/getdirentries.texi: Likewise.
7553         * doc/glibc-functions/mkostemp.texi: Likewise.
7554         * doc/glibc-functions/mkostemps.texi: Likewise.
7555         * doc/glibc-functions/mkstemps.texi: Likewise.
7556         * doc/glibc-functions/preadv.texi: Likewise.
7557         * doc/glibc-functions/pwritev.texi: Likewise.
7558         * doc/glibc-functions/sendfile.texi: Likewise.
7559         * doc/glibc-functions/statfs.texi: Likewise.
7560
7561 2011-07-24  Bruno Haible  <bruno@clisp.org>
7562
7563         doc: Fix typo.
7564         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7565
7566 2011-07-24  Bruno Haible  <bruno@clisp.org>
7567
7568         doc: Mention fsusage.
7569         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7570
7571 2011-07-24  Bruno Haible  <bruno@clisp.org>
7572
7573         doc: Mention new glibc headers and functions.
7574         * doc/glibc-headers/gshadow.texi: New file.
7575         * doc/glibc-functions/endsgent.texi: New file.
7576         * doc/glibc-functions/fgetsgent.texi: New file.
7577         * doc/glibc-functions/fgetsgent_r.texi: New file.
7578         * doc/glibc-functions/getsgent.texi: New file.
7579         * doc/glibc-functions/getsgent_r.texi: New file.
7580         * doc/glibc-functions/getsgnam.texi: New file.
7581         * doc/glibc-functions/getsgnam_r.texi: New file.
7582         * doc/glibc-functions/putsgent.texi: New file.
7583         * doc/glibc-functions/setsgent.texi: New file.
7584         * doc/glibc-functions/sgetsgent.texi: New file.
7585         * doc/glibc-functions/sgetsgent_r.texi: New file.
7586         * doc/glibc-functions/malloc_info.texi: New file.
7587         * doc/glibc-functions/preadv.texi: New file.
7588         * doc/glibc-functions/pwritev.texi: New file.
7589         * doc/glibc-functions/register_printf_modifier.texi: New file.
7590         * doc/glibc-functions/register_printf_specifier.texi: New file.
7591         * doc/glibc-functions/register_printf_type.texi: New file.
7592         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7593         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7594         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7595         * doc/glibc-functions/pthread_getname_np.texi: New file.
7596         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7597         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7598         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7599         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7600         * doc/glibc-functions/pthread_setname_np.texi: New file.
7601         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7602         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7603         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7604         * doc/glibc-functions/qsort_r.texi: New file.
7605         * doc/glibc-functions/quick_exit.texi: New file.
7606         * doc/glibc-functions/syncfs.texi: New file.
7607         * doc/gnulib.texi: Include them.
7608         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7609         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7610         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7611         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7612         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7613         * doc/glibc-functions/execvpe.texi: Likewise.
7614
7615 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7616
7617         ftell: don't include <unistd.h>
7618         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7619         guaranteed to define off_t, and the ftell module depends on the
7620         stdio module.
7621
7622         ftell: do not assume wraparound signed arithmetic
7623         * lib/ftell.c: Include <limits.h>.
7624         (ftell): Don't assume wraparound signed arithmetic.
7625
7626 2011-07-24  Bruno Haible  <bruno@clisp.org>
7627
7628         close: No longer depend on module 'fclose'.
7629         * modules/close (Depends-on): Remove fclose.
7630         * NEWS: Mention the change.
7631         Suggested by Sam Steingold <sds@gnu.org>.
7632
7633 2011-07-24  Bruno Haible  <bruno@clisp.org>
7634
7635         fsusage: Enable large volume support on AIX >= 5.2.
7636         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7637         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7638         instead of STAT_STATVFS.
7639         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7640
7641         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7642         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7643         f_blocks field only on MacOS X.
7644
7645         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7646         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7647         * modules/fsusage (Depends-on): Add largefile.
7648
7649 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7650
7651         * README: Modernize discussion of signed integers.
7652         Assuming overflow wraparound is no longer safe.
7653         Mention ones' complement and signed magnitude.
7654
7655 2011-07-22  Bruno Haible  <bruno@clisp.org>
7656
7657         select tests, pselect tests: Refactor.
7658         * tests/test-select.h: New file, extracted from tests/test-select.c.
7659         (select_fn): New type.
7660         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7661         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7662         test_pipe): Add my_select argument.
7663         (test_function): Renamed from main. Add my_select argument.
7664         * tests/test-select.c: Move most code to tests/test-select.h. Include
7665         test-select.h.
7666         * modules/select-tests (Files): Add tests/test-select.h.
7667         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7668         (my_select, main): New functions.
7669         * modules/pselect-tests (Files): Add tests/test-select.h,
7670         tests/macros.h, tests/signature.h.
7671         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7672         (configure.ac): Check for <sys/wait.h>.
7673
7674 2011-07-22  Bruno Haible  <bruno@clisp.org>
7675
7676         sys_select tests: Check the signature of FD_*.
7677         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7678         signature tests from here...
7679         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7680         here.
7681         * modules/sys_select-tests (Files): Add tests/signature.h.
7682
7683 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7684
7685         largefile: new module, replacing large-inode
7686         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
7687         * MODULES.html.sh: Add largefile, remove large-inode.
7688         * modules/largefile, m4/largefile.m4: New files.
7689         * modules/large-inode, m4/large-inode.m4: Remove.
7690
7691         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7692         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7693         implementations that use only 32 bits to count blocks.
7694         On typical hosts with 1024-byte blocks, this fails with file
7695         systems as small as 4 TiB.  Problem reported by Herb Wartens
7696         <http://debbugs.gnu.org/9140> and this should also fix a similar
7697         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
7698
7699         large-inode: New module
7700         * MODULES.html.sh: Add it.
7701         * modules/large-inode, m4/large-inode.m4: New files.
7702
7703         extensions: Enable extensions on MacOS X 10.5 and later.
7704         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
7705
7706 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
7707
7708         file-has-acl: use acl_extended_file_nofollow if available
7709         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
7710         (acl_extended_file): New macro.
7711         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
7712         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
7713
7714 2011-07-21  Bruno Haible  <bruno@clisp.org>
7715
7716         Declare system functions in a way that works with C++.
7717         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
7718         declare fdopendir as extern "C".
7719         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
7720         declare frexpl as extern "C".
7721         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
7722         declare gai_strerror as extern "C".
7723         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
7724         programs, declare gai_strerror as extern "C".
7725         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
7726         declare getlogin_r as extern "C".
7727         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
7728         as extern "C".
7729         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
7730         declare ldexpl as extern "C".
7731         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
7732         as extern "C".
7733         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
7734         program, declare getmntinfo as extern "C".
7735         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
7736         stpncpy as extern "C".
7737         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
7738         program, declare __xpg_strerror_r as extern "C".
7739         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
7740         strndup as extern "C".
7741         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
7742         declare memset and bzero as extern "C".
7743         Reported by Sam Steingold <sds@gnu.org>.
7744
7745 2011-07-12  Jim Meyering  <meyering@redhat.com>
7746
7747         maint.mk: prohibit inclusion of "verify.h" without use
7748         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
7749
7750 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7751
7752         timer-time: A new module to check for timer_settime()
7753         * m4/timer_time.m4: Check for the posix function.
7754         * modules/timer-time: Add the new module.
7755         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7756         Mention it.
7757
7758 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7759             Bruno Haible  <bruno@clisp.org>
7760
7761         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7762         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7763         not defined, assume POSIX threads and look for pthread_sigmask in
7764         $LIBS, without changing $CPPFLAGS.
7765
7766 2011-07-19  Bruno Haible  <bruno@clisp.org>
7767
7768         strstr: Update cross-compilation guess.
7769         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
7770         CPUs, guess no, in view of glibc
7771         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
7772         Suggested by Eric Blake. Reported by Reuben Thomas.
7773
7774 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7775
7776         getopt-gnu: suppress core dumps from detection code
7777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7778         to suppress core dumps that may well occur on glibc systems.
7779         * modules/getopt-gnu: Depend on nocrash.
7780
7781 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7782
7783         pthread_sigmask: ensure usleep is declared
7784         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7785         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7786
7787 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7788
7789         doc: Document NonStop portability issues.
7790         * doc/posix-functions/sigaction.texi (sigaction):
7791         * doc/posix-headers/signal.texi (signal.h):
7792         Document NonStop.  See Joachim Schmitz in
7793         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7794
7795 2011-07-15  Bruno Haible  <bruno@clisp.org>
7796
7797         ffsl, ffsll: Avoid unportable behaviour.
7798         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7799
7800 2011-07-15  Bruno Haible  <bruno@clisp.org>
7801
7802         ffs: More tests.
7803         * tests/test-ffs.c (NBITS): New macro.
7804         (main): Add more tests.
7805         * tests/test-ffsl.c (NBITS): New macro.
7806         (main): Add more tests.
7807         * tests/test-ffsll.c (NBITS): New macro.
7808         (main): Add more tests.
7809
7810 2011-07-15  Eric Blake  <eblake@redhat.com>
7811
7812         ffsl, ffsll: new modules
7813         * modules/ffsl: New file.
7814         * modules/ffsll: Likewise.
7815         * m4/ffsl.m4: Likewise.
7816         * m4/ffsll.m4: Likewise.
7817         * lib/ffsl.c: Likewise.
7818         * lib/ffsl.h: Likewise.
7819         * lib/ffsll.c: Likewise.
7820         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7821         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7822         * modules/string (Makefile.am): Substitute witnesses.
7823         * lib/strings.in.h (ffsl, ffsll): Declare.
7824         * modules/ffsl-tests: New test file.
7825         * modules/ffsll-tests: Likewise.
7826         * tests/test-ffsl.c: Likewise.
7827         * tests/test-ffsll.c: Likewise.
7828         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7829         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7830         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7831
7832         ffs: fix m4 prerequisite
7833         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7834
7835         ffs: avoid undefined behavior
7836         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7837         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7838         Reported by Bruno Haible.
7839
7840 2011-07-12  Bruno Haible  <bruno@clisp.org>
7841
7842         pthread_sigmask: Rely on module 'threadlib'.
7843         * modules/pthread_sigmask (Depends-on): Add threadlib.
7844         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7845         is defined.
7846
7847 2011-07-12  Bruno Haible  <bruno@clisp.org>
7848
7849         regex: Depend on module 'strcase'.
7850         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7851
7852 2011-07-12  Jim Meyering  <meyering@redhat.com>
7853
7854         warn-on-use: fix typo in file name
7855         * modules/snippet/warn-on-use (Files): Correct file name:
7856         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7857
7858 2011-07-12  Bruno Haible  <bruno@clisp.org>
7859
7860         strings: Document module.
7861         * doc/posix-headers/strings.texi: Mention module 'strings'.
7862
7863 2011-07-12  Bruno Haible  <bruno@clisp.org>
7864
7865         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7866         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7867         (Files, Makefile.am): Update.
7868         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7869         * modules/stdlib (Depends-on): Update.
7870
7871 2011-07-12  Bruno Haible  <bruno@clisp.org>
7872
7873         * NEWS: Mention the changes.
7874
7875         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7876         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7877         (Files, Makefile.am): Update.
7878         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7879         * modules/arpa_inet (Depends-on): Update.
7880         * modules/ctype (Depends-on): Update.
7881         * modules/dirent (Depends-on): Update.
7882         * modules/fcntl-h (Depends-on): Update.
7883         * modules/glob (Depends-on): Update.
7884         * modules/iconv-h (Depends-on): Update.
7885         * modules/inttypes-incomplete (Depends-on): Update.
7886         * modules/langinfo (Depends-on): Update.
7887         * modules/locale (Depends-on): Update.
7888         * modules/math (Depends-on): Update.
7889         * modules/netdb (Depends-on): Update.
7890         * modules/poll-h (Depends-on): Update.
7891         * modules/pty (Depends-on): Update.
7892         * modules/search (Depends-on): Update.
7893         * modules/signal (Depends-on): Update.
7894         * modules/spawn (Depends-on): Update.
7895         * modules/stdio (Depends-on): Update.
7896         * modules/stdlib (Depends-on): Update.
7897         * modules/string (Depends-on): Update.
7898         * modules/strings (Depends-on): Update.
7899         * modules/sys_file (Depends-on): Update.
7900         * modules/sys_ioctl (Depends-on): Update.
7901         * modules/sys_select (Depends-on): Update.
7902         * modules/sys_socket (Depends-on): Update.
7903         * modules/sys_stat (Depends-on): Update.
7904         * modules/sys_time (Depends-on): Update.
7905         * modules/sys_times (Depends-on): Update.
7906         * modules/sys_utsname (Depends-on): Update.
7907         * modules/sys_wait (Depends-on): Update.
7908         * modules/termios (Depends-on): Update.
7909         * modules/time (Depends-on): Update.
7910         * modules/unistd (Depends-on): Update.
7911         * modules/wchar (Depends-on): Update.
7912         * modules/wctype-h (Depends-on): Update.
7913         * MODULES.html.sh (Support for building libraries and executables):
7914         Update.
7915
7916         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7917         * modules/snippet/unused-parameter: Renamed from
7918         modules/unused-parameter.
7919         (Files, Makefile.am): Update.
7920         * build-aux/snippet/unused-parameter.h: Renamed from
7921         build-aux/unused-parameter.h.
7922         * modules/selinux-h (Depends-on): Update.
7923         * modules/unistr/base (Depends-on): Update.
7924         * MODULES.html.sh (Core language properties): Update.
7925
7926         Rename module 'link-warning' to 'snippet/link-warning'.
7927         * modules/snippet/link-warning: Renamed from modules/link-warning.
7928         (Files, Makefile.am): Update.
7929         * build-aux/snippet/link-warning.h: Renamed from
7930         build-aux/link-warning.h.
7931         * MODULES.html.sh (Support for building libraries and executables):
7932         Update.
7933
7934         Rename module 'c++defs' to 'snippet/c++defs'.
7935         * modules/snippet/c++defs: Renamed from modules/c++defs.
7936         (Files, Makefile.am): Update.
7937         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7938         * modules/arpa_inet (Depends-on): Update.
7939         * modules/ctype (Depends-on): Update.
7940         * modules/dirent (Depends-on): Update.
7941         * modules/fcntl-h (Depends-on): Update.
7942         * modules/glob (Depends-on): Update.
7943         * modules/iconv-h (Depends-on): Update.
7944         * modules/langinfo (Depends-on): Update.
7945         * modules/locale (Depends-on): Update.
7946         * modules/math (Depends-on): Update.
7947         * modules/netdb (Depends-on): Update.
7948         * modules/poll-h (Depends-on): Update.
7949         * modules/pty (Depends-on): Update.
7950         * modules/search (Depends-on): Update.
7951         * modules/signal (Depends-on): Update.
7952         * modules/spawn (Depends-on): Update.
7953         * modules/stdio (Depends-on): Update.
7954         * modules/stdlib (Depends-on): Update.
7955         * modules/string (Depends-on): Update.
7956         * modules/strings (Depends-on): Update.
7957         * modules/sys_ioctl (Depends-on): Update.
7958         * modules/sys_select (Depends-on): Update.
7959         * modules/sys_socket (Depends-on): Update.
7960         * modules/sys_stat (Depends-on): Update.
7961         * modules/sys_time (Depends-on): Update.
7962         * modules/sys_wait (Depends-on): Update.
7963         * modules/termios (Depends-on): Update.
7964         * modules/time (Depends-on): Update.
7965         * modules/unistd (Depends-on): Update.
7966         * modules/wchar (Depends-on): Update.
7967         * modules/wctype-h (Depends-on): Update.
7968
7969         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7970         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7971         (Files, Makefile.am): Update.
7972         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7973         * modules/argv-iter (Depends-on): Update.
7974         * modules/arpa_inet (Depends-on): Update.
7975         * modules/dirent (Depends-on): Update.
7976         * modules/fcntl-h (Depends-on): Update.
7977         * modules/fnmatch (Depends-on): Update.
7978         * modules/getopt-posix (Depends-on): Update.
7979         * modules/glob (Depends-on): Update.
7980         * modules/iconv-h (Depends-on): Update.
7981         * modules/inttypes-incomplete (Depends-on): Update.
7982         * modules/locale (Depends-on): Update.
7983         * modules/math (Depends-on): Update.
7984         * modules/netdb (Depends-on): Update.
7985         * modules/search (Depends-on): Update.
7986         * modules/signal (Depends-on): Update.
7987         * modules/spawn (Depends-on): Update.
7988         * modules/stdio (Depends-on): Update.
7989         * modules/stdlib (Depends-on): Update.
7990         * modules/string (Depends-on): Update.
7991         * modules/strings (Depends-on): Update.
7992         * modules/sys_socket (Depends-on): Update.
7993         * modules/sys_stat (Depends-on): Update.
7994         * modules/sys_time (Depends-on): Update.
7995         * modules/sys_times (Depends-on): Update.
7996         * modules/sys_utsname (Depends-on): Update.
7997         * modules/time (Depends-on): Update.
7998         * modules/unistd (Depends-on): Update.
7999         * modules/wchar (Depends-on): Update.
8000         * MODULES.html.sh (Support for building libraries and executables):
8001         Update.
8002
8003 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8004
8005         Improvements on _Noreturn and related modules.
8006
8007         modules/_Exit-tests: test _Noreturn too
8008         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8009         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8010         (main): Use them.
8011
8012         stdnoreturn, stdnoreturn-tests: remove modules
8013         They're not needed here and a bit premature for use elsewhere.  See
8014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8015         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8016         * tests/test-stdnoreturn.c: Remove files.
8017         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8018         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8019         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8020         and using noreturn.
8021         * modules/openat, modules/sigpipe-die, modules/xalloc:
8022         * modules/xmemdup0, modules/xstrtol:
8023         Remove dependency on stdnoreturn.
8024
8025         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8026         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8027         Reparenthesize to avoid GCC warning.
8028         Support Microsoft's syntax.
8029         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8030
8031         _Noreturn-tests: remove module
8032         * modules/_Noreturn-tests: Remove.
8033         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8034         * tests/test-_Noreturn.c: Remove.
8035         * tests/test-stdnoreturn.c: Merge from the old
8036         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8037
8038 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8039
8040         _Noreturn, stdnoreturn, and related modules.
8041
8042         * top/maint.mk: Adjust to new noreturn support.
8043         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8044         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8045
8046         xalloc: use stdnoreturn.h
8047         * lib/xalloc.h: Include <stdnoreturn.h>.
8048         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8049         * modules/xalloc (Depends-on): Add stdnoreturn.
8050
8051         xstrtol: use stdnoreturn.h
8052         * lib/xstrtol.h: Include <stdnoreturn.h>.
8053         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8054         * modules/xstrtol (Depends-on): Add stdnoreturn.
8055
8056         xmemdup0: use stdnoreturn.h
8057         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8058         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8059         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8060
8061         sigpipe-die: use stdnoreturn.h
8062         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8063         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8064         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8065
8066         openat: use stdnoreturn.h
8067         * lib/openat.h: Include <stdnoreturn.h>.
8068         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8069         * modules/openat (Depends-on): Add stdnoreturn.
8070
8071         * lib/openat-die.c (openat_save_fail): Modernize comment.
8072
8073         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8074
8075         * lib/glthread/thread.h: Modernize comment.
8076
8077         obstack: use _Noreturn
8078         * lib/obstack.c (__attribute__): Remove macro.
8079         (print_and_abort): Use _Noreturn.
8080
8081         c-stack: use _Noreturn
8082         * lib/c-stack.c (die, overflow_handler, segv_handler):
8083         Use _Noreturn rather than __attribute__((noreturn)).
8084
8085         argmatch-tests, exclude_tests: use _Noreturn
8086         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8087         Remove.
8088         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8089
8090         stdlib: use _Noreturn
8091         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8092         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8093         * modules/stdlib (Depends-on): Add _Noreturn.
8094         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8095
8096         stdnoreturn-tests: new module
8097         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8098
8099         stdnoreturn: new module
8100         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8101         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8102
8103         _Noreturn-tests: new module
8104         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8105
8106         _Noreturn: new module
8107         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8108         New section, mentioning it.
8109         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8110
8111         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8112
8113 2011-07-11  Eric Blake  <eblake@redhat.com>
8114
8115         ffs: new module
8116         * modules/ffs: New file.
8117         * m4/ffs.m4: Likewise.
8118         * lib/ffs.c: Likewise.
8119         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8120         * modules/strings (Makefile.am): Substitute witness.
8121         (Depends-on): Add c++defs.
8122         * lib/strings.in.h (ffs): Declare.
8123         * modules/ffs-tests: New test file.
8124         * tests/test-ffs.c: Test new module.
8125         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8126         * doc/posix-functions/ffs.texi (ffs): Likewise.
8127
8128         regex: avoid compiler warning
8129         * lib/regex.c (includes): Include <strings.h>, for use of
8130         strcasecmp in regcomp.c.
8131         Reported by Joachim Schmitz.
8132
8133 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8134
8135         stdint: respect system's intmax_t if INTMAX_MAX
8136         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8137         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8138         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8139         long but int64_t is long long, and where we will clash with the
8140         system intmax_t if we override it.  See
8141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8142         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8143         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8144         similarly for UINTMAX_C.
8145
8146 2011-07-08  Bruno Haible  <bruno@clisp.org>
8147
8148         pthread_sigmask tests: Avoid a compiler warning.
8149         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8150         non-zero.
8151
8152         sigprocmask tests: A better way to avoid a compiler warning.
8153         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8154         (main): Complain if system() returns non-zero.
8155         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8156
8157 2011-07-08  Bruno Haible  <bruno@clisp.org>
8158
8159         pthread_sigmask: Work around IRIX bug.
8160         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8161         bug.
8162         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8163         there may be unblocked pending signals.
8164         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8165
8166 2011-07-08  Bruno Haible  <bruno@clisp.org>
8167
8168         pthread_sigmask: Work around Cygwin bug.
8169         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8170         bug.
8171         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8172         the system's pthread_sigmask function.
8173         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8174
8175 2011-07-08  Bruno Haible  <bruno@clisp.org>
8176
8177         pthread_sigmask: Work around bug in single-threaded implementation.
8178         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8179         FreeBSD, HP-UX, Solaris bug.
8180         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8181         * lib/pthread_sigmask.c: Include <stddef.h>.
8182         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8183         the system's pthread_sigmask function.
8184         * modules/pthread_sigmask (configure.ac): Invoke
8185         gl_PREREQ_PTHREAD_SIGMASK.
8186         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8187         HP-UX, Solaris.
8188
8189 2011-07-08  Eric Blake  <eblake@redhat.com>
8190
8191         test-sigprocmask: avoid compiler warning
8192         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8193         * tests/test-sigprocmask.c (main): Use it to silence warning.
8194         Reported by Jim Meyering.
8195
8196         test-snprintf: avoid compiler warning
8197         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8198         * tests/test-vsnprintf.c (main): Likewise.
8199         Reported by Jim Meyering.
8200
8201 2011-07-08  Bruno Haible  <bruno@clisp.org>
8202
8203         Tests for module 'pthread_sigmask'.
8204         * modules/pthread_sigmask-tests: New file.
8205         * tests/test-pthread_sigmask1.c: New file, based on
8206         tests/test-sigprocmask.c.
8207         * tests/test-pthread_sigmask2.c: New file.
8208
8209 2011-07-08  Jim Meyering  <meyering@redhat.com>
8210
8211         test-getopt.h: avoid warning about an unused variable
8212         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8213
8214 2011-07-07  Jim Meyering  <meyering@redhat.com>
8215
8216         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8217         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8218         now that it no longer contains leading TABs.
8219         Remove unused "url=FIXME" statement.
8220
8221 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8222
8223         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8224         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8225         When gl_THREADLIB is not in use, assume that the POSIX sematics
8226         are desired.  This is better for Emacs, which uses POSIX semantics
8227         on GNUish and/or POSIXish platforms, and does not use threads at
8228         all otherwise.
8229
8230         pthread_sigmask: fix typo when testing for libraries
8231         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8232         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8233
8234 2011-07-08  Eric Blake  <eblake@redhat.com>
8235
8236         fts: introduce FTS_NOATIME
8237         * lib/fts_.h (FTS_NOATIME): New bit flag.
8238         (FTS_OPTIONMASK): Adjust.
8239         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8240         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8241
8242 2011-07-08  Bruno Haible  <bruno@clisp.org>
8243
8244         Tests for module 'thread'.
8245         * modules/thread-tests: New file.
8246         * tests/test-thread_self.c: New file.
8247         * tests/test-thread_create.cc: New file.
8248
8249 2011-07-08  Bruno Haible  <bruno@clisp.org>
8250
8251         thread: Avoid gcc warnings when using gl_thread_self().
8252         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8253         'void *'.
8254         (gl_thread_self_pointer): Update.
8255
8256 2011-07-07  Bruno Haible  <bruno@clisp.org>
8257
8258         signal-c++-tests: Check declaration of pthread_sigmask.
8259         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8260         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8261         $(LIB_PTHREAD_SIGMASK).
8262
8263 2011-07-07  Bruno Haible  <bruno@clisp.org>
8264
8265         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8266         * lib/signal.in.h (pthread_sigmask): Override if
8267         REPLACE_PTHREAD_SIGMASK is 1.
8268         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8269         REPLACE_PTHREAD_SIGMASK.
8270         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8271         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8272         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8273         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8274         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8275
8276 2011-07-07  Bruno Haible  <bruno@clisp.org>
8277
8278         pthread_sigmask: Ensure declaration in <signal.h>.
8279         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8280         include <pthread.h>.
8281         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8282         problem.
8283
8284 2011-07-07  Bruno Haible  <bruno@clisp.org>
8285
8286         pthread_sigmask: Document the module.
8287         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8288
8289 2011-07-07  Bruno Haible  <bruno@clisp.org>
8290
8291         pthread_sigmask: Follow gnulib conventions.
8292         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8293         gl_PTHREAD_SIGMASK.
8294         * modules/pthread_sigmask (configure.ac): Update.
8295
8296 2011-07-07  Bruno Haible  <bruno@clisp.org>
8297
8298         pthread_sigmask: Make declaration C++ safe.
8299         * lib/signal.in.h: In two special conditions, just do an #include_next.
8300         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8301         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8302         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8303         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8304         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8305         not REPLACE_PTHREAD_MASK.
8306         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8307         not REPLACE_PTHREAD_MASK.
8308         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8309
8310 2011-07-07  Bruno Haible  <bruno@clisp.org>
8311
8312         pthread_sigmask: Fix return value.
8313         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8314         * lib/pthread_sigmask.c: New file.
8315         * modules/pthread_sigmask (Files): Add it.
8316         (configure.ac): Invoke AC_LIBOBJ.
8317
8318 2011-07-07  Eric Blake  <eblake@redhat.com>
8319
8320         getopt: more portable argv creation
8321         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8322         const, use char arrays rather than strings.
8323         Suggested by Paul Eggert.
8324
8325 2011-07-07  Bruno Haible  <bruno@clisp.org>
8326
8327         Tests for module 'sigprocmask'.
8328         * modules/sigprocmask-tests: New file.
8329         * tests/test-sigprocmask.c: New file.
8330
8331 2011-07-07  Bruno Haible  <bruno@clisp.org>
8332
8333         float tests: Tweak.
8334         * tests/test-float.c (main): Tweak skip message.
8335
8336 2011-07-07  Eric Blake  <eblake@redhat.com>
8337
8338         getopt: avoid compiler warning during configure
8339         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8340         assigning string literals to non-const pointer.
8341
8342         getopt-gnu: avoid crash in glibc getopt
8343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8344         * tests/test-getopt.h (test_getopt): Enhance test.
8345         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8346         * doc/posix-functions/getopt.texi (getopt): Document it.
8347         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8348         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8349         Likewise.
8350
8351 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8352
8353         getopt: handle W; without long options in getopt [BZ #12922]
8354         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8355         but no long options are defined, just return 'W'.
8356
8357 2011-07-07  Bruno Haible  <bruno@clisp.org>
8358
8359         Avoid literal tabs.
8360         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8361         variable containing a tab instead of a literal tab.
8362         Reported by Jim Meyering.
8363
8364 2011-07-07  Bruno Haible  <bruno@clisp.org>
8365
8366         Comments.
8367         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8368
8369 2011-07-06  Bruno Haible  <bruno@clisp.org>
8370
8371         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8372         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8373         <winsock2.h>.
8374         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8375         lib/sys_socket.in.h.
8376         (close, gethostname): Hide declarations from <winsock2.h>.
8377         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8378         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8379         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8380         (select): Don't override if gnulib's <sys/select.h> was already
8381         included.
8382         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8383         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8384         setsockopt, shutdown, select): Tweak indentation.
8385
8386 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8387
8388         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8389         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8390         in an application that does not use the sys_select module.
8391
8392 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8393
8394         poll: do not return 0 on timeout=-1
8395         * lib/poll.c: Loop with yield if no events occured
8396
8397 2011-07-06  Eric Blake  <eblake@redhat.com>
8398
8399         pthread_sigmask: always replace when not using pthread
8400         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8401         replacement when using some threading other than pthread.  Fix
8402         logic bug.
8403
8404 2011-07-06  Bruno Haible  <bruno@clisp.org>
8405
8406         Comments.
8407         * m4/printf.m4: Update comments about mingw.
8408
8409 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8410
8411         sys_select: define sigset_t more portably
8412         * lib/sys_select.in.h: Always include <sys/types.h>, since
8413         we now need sigset_t and mingw defines it there.
8414         Include <signal.h> before split inclusion guard, to avoid
8415         mishaps on Solaris, whose <signal.h> eventually includes us.
8416         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8417         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8418         which come from ...
8419         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8420         gl_CHECK_TYPE_SIGSET_T.
8421         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8422         does the real work.
8423         * modules/sys_select (Depends-on): Add 'signal'.
8424
8425         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8426         Suggested by Bruno Haible.
8427
8428         pselect: Use pthread_sigmask, not sigprocmask.
8429         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8430         multithreaded apps better than sigprocmask does.
8431         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8432         sigprocmask directly.
8433
8434 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8435
8436         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8437         Don't #undef,  since we don't need any underlying pselect.
8438         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8439         (Depends-on): Add select.
8440         (Link): Add $(LIBSOCKET).
8441         These changes suggested by Bruno Haible.
8442
8443         pselect: document better
8444         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8445         * doc/posix-functions/pselect.texi (pselect): Document new module.
8446
8447         pthread_sigmask: new module
8448         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8449         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8450         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8451         This is done only as a macro; I don't know how well that'll
8452         work for C++.  Move <sys/types.h> include before the include_next,
8453         to avoid mishap on Solaris.
8454         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8455         * modules/signal (Makefile.am): Substitute the check's results.
8456         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8457
8458         test-pselect: new module
8459         * modules/pselect-tests, tests/test-pselect.c: New files.
8460         * tests/test-select.c, tests/test-sys_select-c++.cc:
8461         If TEST_PSELECT is defined, test pselect instead of testing select.
8462
8463         * tests/test-sys_select.c (sigset_t): Test for it, too.
8464         Suggested by Bruno Haible.
8465
8466 2011-07-05  Eric Blake  <eblake@redhat.com>
8467
8468         snprintf: guarantee %1$d, for libintl
8469         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8470         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8471         * doc/posix-functions/snprintf.texi (snprintf): Update.
8472         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8473         * tests/test-snprintf.c (main): Enhance test.
8474         * tests/test-vsnprintf.c (main): Likewise.
8475
8476 2011-07-05  Jim Meyering  <meyering@redhat.com>
8477
8478         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8479         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8480         per Bruno's request, to accommodate this idiom (no space after "#")
8481         even when the function is inside an #if block:
8482         char *
8483         gets (char *s)
8484         #undef gets
8485         {
8486           ...
8487         }
8488
8489 2011-07-04  Jim Meyering  <meyering@redhat.com>
8490
8491         maint: indent with spaces, not TABs, and add a rule to check this
8492         * tests/test-userspec.c: Indent with spaces, not TABs.
8493         * tests/test-argp.c: Likewise.
8494         * tests/test-c-stack2.sh: Likewise.
8495         * tests/test-parse-duration.sh: Likewise
8496         * m4/strtod.m4: Likewise.
8497         * m4/alloca.m4: Likewise.
8498         * m4/pselect.m4: Likewise.
8499         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8500
8501 2011-07-03  Jim Meyering  <meyering@redhat.com>
8502
8503         maint.mk: correct omissions in prohibit_argmatch_without_use check
8504         This rule would mistakenly report that argmatch.h is included without
8505         use even when both the argmatch and invalid_arg macro were used.
8506         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8507         of argmatch and invalid_arg.
8508
8509 2011-07-03  Bruno Haible  <bruno@clisp.org>
8510
8511         Comments about EINTR.
8512         * lib/safe-read.h: Explain the purpose of this module.
8513         * lib/safe-write.h: Likewise.
8514         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8515         module.
8516         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8517         module.
8518         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8519
8520 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8521
8522         xnanosleep: Rewrite to use new dtotimespec module.
8523         It has the conversion code that used to be in xnanosleep.
8524         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8525         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8526         (TIME_T_MAX): Remove.
8527         (xnanosleep): Rewrite in terms of dtotimespec.
8528         * modules/xnanosleep (Depends-on): Add dtotimespec.
8529         Remove intprops, stdbool.
8530
8531         timespec-add, timespec-sub: new modules
8532         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8533         * lib/timespec-add.c, lib/timespec-sub.c:
8534         * modules/timespec-add, modules/timespec-sub: New files.
8535
8536         dtotimespec: new module
8537         * lib/timespec.h (dtotimespec): New decl.
8538         * lib/dtotimespec.c, modules/dtotimespec: New files.
8539
8540         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8541
8542         pselect: new module
8543         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8544         (pselect): New decls.
8545         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8546         since the standard pselect decl uses 'restrict'.
8547         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8548         HAVE_PSELECT, REPLACE_PSELECT.
8549         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8550         HAVE_PSELECT, REPLACE_PSELECT.
8551         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8552
8553         sys_select: don't depend on sys_socket
8554         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8556         This fix works on GNU and GNU-like platforms, but has not been tested
8557         on native Windows.
8558         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8559         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8560         gl_HEADER_SYS_SOCKET.
8561         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8562         gl_PREREQ_SYS_H_WINSOCK2.
8563
8564 2011-06-29  Eric Blake  <eblake@redhat.com>
8565
8566         pipe2: fix C89 compile problem
8567         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8568         Reported by Bruno Haible.
8569
8570         pipe, pipe2: don't corrupt fd on error
8571         * lib/pipe.c (pipe): Leave fd unchanged on error.
8572         * lib/pipe2.c (pipe2): Likewise.
8573         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8574         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8575
8576 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8577
8578         mmap-anon: do not use regular expressions inadvertently
8579         * m4/mmap-anon.m4: Remove trailing period from strings sought
8580         in the output.
8581
8582 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8583
8584         nanosleep: fix integer overflow problem
8585         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8586         arithmetic wraps around on overflow.
8587
8588         nanosleep: simplify carrying
8589         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8590         first call to the underyling nanosleep, not for the last one.
8591         This doesn't fix any bugs, but it simplifies the computation of
8592         the remaining delay.  Found while auditing integer overflow issues.
8593
8594         dup2: remove test for existence of fcntl
8595         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8596         "#if HAVE_FCNTL", in the configure-time test program.
8597         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8598         and therefore speeds up "configure" a bit.  Found while
8599         adding the dup2 module to Emacs.
8600
8601 2011-06-24  Eric Blake  <eblake@redhat.com>
8602
8603         maint.mk: enhance useless header checks
8604         * top/maint.mk (_sc_header_without_use): Check both include
8605         styles.
8606         (sc_prohibit_assert_without_use)
8607         (sc_prohibit_close_stream_without_use)
8608         (sc_prohibit_getopt_without_use)
8609         (sc_prohibit_quotearg_without_use)
8610         (sc_prohibit_quote_without_use)
8611         (sc_prohibit_long_options_without_use)
8612         (sc_prohibit_inttostr_without_use)
8613         (sc_prohibit_ignore_value_without_use)
8614         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8615         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8616         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8617         (sc_prohibit_hash_pjw_without_use)
8618         (sc_prohibit_safe_read_without_use)
8619         (sc_prohibit_argmatch_without_use)
8620         (sc_prohibit_canonicalize_without_use)
8621         (sc_prohibit_root_dev_ino_without_use)
8622         (sc_prohibit_openat_without_use)
8623         (sc_prohibit_c_ctype_without_use)
8624         (sc_prohibit_signal_without_use)
8625         (sc_prohibit_stdio--_without_use)
8626         (sc_prohibit_stdio-safer_without_use)
8627         (sc_prohibit_strings_without_use)
8628         (sc_prohibit_intprops_without_use)
8629         (sc_prohibit_stddef_without_use)
8630         (sc_prohibit_xfreopen_without_use): Update clients.
8631
8632 2011-06-24  Jim Meyering  <meyering@redhat.com>
8633
8634         syntax-check: keep one maint.mk rule in sync with its header
8635         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8636         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8637         I prefer to avoid temporary files here, so use <(...), but that
8638         is not supported by /bin/sh, so...
8639         (SHELL): Define to /bin/bash.
8640
8641 2011-06-24  Eric Blake  <eblake@redhat.com>
8642
8643         maint.mk: update sc_prohibit_intprops_without_use
8644         * top/maint.mk (_intprops_names): Match recent changes.
8645
8646 2011-06-24  Bruno Haible  <bruno@clisp.org>
8647
8648         strerror-override: No-op tweak.
8649         * lib/strerror-override.h (strerror_override): Reorder conditions,
8650         for consistency with lib/strerror-override.c.
8651
8652 2011-06-23  Eric Blake  <eblake@redhat.com>
8653
8654         maint.mk: test further PATH_MAX issues
8655         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8656         (sc_prohibit_path_max_allocation): ...and also test alloca.
8657         Suggested by Jim Meyering.
8658
8659 2011-06-22  Eric Blake  <eblake@redhat.com>
8660
8661         maint.mk: add syntax-check to avoid char[PATH_MAX]
8662         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8663
8664         stat: be robust to PATH_MAX definition
8665         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8666         * modules/stat (Depends-on): Add verify.
8667
8668         link: work around IRIX bug
8669         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8670         * lib/link.c (rpl_link): Work around it.
8671         * tests/test-link.h (test_link): Enhance test.
8672         * doc/posix-functions/link.texi (link): Document the bug.
8673
8674         getopt: silence clang warning
8675         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8676         dereference.
8677         Reported by Gustavo Martin Domato.
8678
8679 2011-06-22  Jim Meyering  <meyering@redhat.com>
8680
8681         bootstrap: do not insert a blank line into each .gitignore file
8682         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8683
8684 2011-06-21  Eric Blake  <eblake@redhat.com>
8685
8686         perror: test for output mismatch
8687         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8688         perror on IRIX.
8689
8690         strerror_r: fix OpenBSD behavior on out-of-range
8691         * lib/strerror_r.c (strerror_r): Always use maximal string.
8692         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8693
8694         strerror_r: fix OpenBSD behavior on 0
8695         * lib/strerror-override.c (strerror_override): Also override 0
8696         when needed.
8697         * lib/strerror-override.h (strerror_override): Likewise.
8698         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8699         earlier.
8700         * lib/strerror_r.c (strerror_r): Likewise.
8701         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
8702         behavior...
8703         (gl_FUNC_STRERROR_0): ...into new macro.
8704         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
8705         is overridden.
8706         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
8707         * modules/strerror-override (Files): Add strerror.m4.
8708         (configure.ac): Also provide override for 0 when needed.
8709         * doc/posix-functions/strerror.texi (strerror): Document this.
8710         * doc/posix-functions/perror.texi (perror): Likewise.
8711
8712         perror: adjust array size
8713         * modules/perror (Depends-on): Add strerror-override.
8714         * lib/perror.c (perror): Use it to avoid magic number.
8715
8716         strerror-override: reduce size
8717         * lib/strerror-override.c (strerror_override): Use fewer lines.
8718
8719 2011-06-20  Bruno Haible  <bruno@clisp.org>
8720
8721         pathmax: Ensure correct value for PATH_MAX on HP-UX.
8722         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
8723
8724 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8725
8726         alloca: port to compilers that can optimize like GCC 4.6.0
8727         * lib/alloca.c (find_stack_direction): New signature, taken from
8728         Autoconf git.  This works with GCC 4.6.0.  This code should never
8729         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
8730         be used with other compilers that optimize as well as GCC 4.6.0 does.
8731         (alloca): Adjust to new signature.
8732         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
8733         New macro, which patches Autoconf in a similar way.
8734
8735         c-stack: stop worrying about stack direction
8736         * lib/c-stack.c (find_stack_direction): Remove.
8737         (segv_handler): Don't worry about stack direction growth, as it's
8738         too much of a pain to configure this correctly, given how compilers
8739         are optimizing-away our stack-growth detection code.  Instead, assume
8740         that any access to just before or just after the stack is OK.
8741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8742         Don't require AC_FUNC_ALLOCA; no longer needed.
8743
8744 2011-06-20  Eric Blake  <eblake@redhat.com>
8745
8746         test-stat: don't allocate PATH_MAX bytes
8747         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
8748         PATH_MAX-sized buffer.
8749         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
8750         * modules/stat-tests (Depends-on): Likewise.
8751         * tests/test-fstatat.c (includes): Drop pathmax.h.
8752         * tests/test-stat.c (includes): Likewise.
8753         Reported by Bruno Haible.
8754
8755 2011-06-20  Bruno Haible  <bruno@clisp.org>
8756
8757         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8758         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8759         * lib/float.c: New file.
8760         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8761         REPLACE_FLOAT_LDBL.
8762         * modules/float (Files): Add lib/float.c.
8763         (configure.ac): Invoke AC_LIBOBJ.
8764         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8765
8766 2011-06-20  Bruno Haible  <bruno@clisp.org>
8767
8768         Tests for module 'float'.
8769         * modules/float-tests: New file.
8770         * tests/test-float.c: New file.
8771
8772 2011-06-19  Bruno Haible  <bruno@clisp.org>
8773
8774         isinf: Coding style.
8775         * lib/isinf.c: Use GNU coding style.
8776
8777 2011-06-19  Bruno Haible  <bruno@clisp.org>
8778
8779         linkat test: Avoid test failure on AIX 7.1.
8780         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8781         * tests/test-link.h (test_link): Likewise.
8782
8783 2011-06-19  Bruno Haible  <bruno@clisp.org>
8784
8785         pread test: Avoid test failure on OpenBSD 4.9.
8786         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8787
8788 2011-06-19  Bruno Haible  <bruno@clisp.org>
8789
8790         sprintf-posix: Fix test failure on AIX 7.1.
8791         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8792         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8793         on AIX.
8794         * doc/posix-functions/fprintf.texi: Likewise.
8795         * doc/posix-functions/printf.texi: Likewise.
8796         * doc/posix-functions/snprintf.texi: Likewise.
8797         * doc/posix-functions/sprintf.texi: Likewise.
8798         * doc/posix-functions/vdprintf.texi: Likewise.
8799         * doc/posix-functions/vfprintf.texi: Likewise.
8800         * doc/posix-functions/vprintf.texi: Likewise.
8801         * doc/posix-functions/vsnprintf.texi: Likewise.
8802         * doc/posix-functions/vsprintf.texi: Likewise.
8803
8804 2011-06-19  Bruno Haible  <bruno@clisp.org>
8805
8806         roundl-ieee: Fix test failure on AIX 7.1.
8807         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8808         * doc/posix-functions/roundl.texi: Mention problem with negative
8809         arguments.
8810
8811 2011-06-19  Bruno Haible  <bruno@clisp.org>
8812
8813         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8814         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8815         * doc/posix-functions/round.texi: Mention problem with negative
8816         arguments.
8817         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8818
8819 2011-06-19  Bruno Haible  <bruno@clisp.org>
8820
8821         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8822         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8823         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8824         * doc/posix-functions/roundf.texi: Mention problem with negative
8825         arguments.
8826         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8827
8828 2011-06-19  Bruno Haible  <bruno@clisp.org>
8829
8830         ceilf-ieee: Work around bug on MacOS X 10.5.
8831         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8832
8833         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8834         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8835         IEEE compliant, avoid compiler optimizations.
8836         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8837         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8838         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8839         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8840         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8841         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8842         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8843         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8844         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8845         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8846
8847 2011-06-19  Bruno Haible  <bruno@clisp.org>
8848
8849         ceilf-ieee: Work around bug on AIX 7.1.
8850         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8851         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8852
8853 2011-06-19  Bruno Haible  <bruno@clisp.org>
8854
8855         ceil-ieee: Work around bug on AIX 7.1.
8856         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8857         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8858
8859 2011-06-18  Bruno Haible  <bruno@clisp.org>
8860
8861         fsync test: Avoid test failure on MacOS X and AIX.
8862         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8863         EINVAL.
8864
8865 2011-06-18  Bruno Haible  <bruno@clisp.org>
8866
8867         openat, fdopendir tests: Fix link errors.
8868         * modules/openat-tests (Depends-on): Add progname.
8869         * modules/fdopendir-tests (Depends-on): Likewise.
8870         * tests/test-fchownat.c: Include progname.h.
8871         (main): Call set_program_name.
8872         * tests/test-fstatat.c: Include progname.h.
8873         (main): Call set_program_name.
8874         * tests/test-mkdirat.c: Include progname.h.
8875         (main): Call set_program_name.
8876         * tests/test-openat.c: Include progname.h.
8877         (main): Call set_program_name.
8878         * tests/test-unlinkat.c: Include progname.h.
8879         (main): Call set_program_name.
8880         * tests/test-fdopendir.c: Include progname.h.
8881         (main): Call set_program_name.
8882
8883 2011-06-18  Bruno Haible  <bruno@clisp.org>
8884
8885         Doc update.
8886         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8887         HP-UX.
8888         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8889
8890 2011-06-18  Bruno Haible  <bruno@clisp.org>
8891
8892         getcwd tests: Avoid compilation error on HP-UX 11.31.
8893         * modules/getcwd-tests (Depends-on): Add pathmax.
8894         * tests/test-getcwd.c: Include pathmax.h.
8895
8896 2011-06-18  Bruno Haible  <bruno@clisp.org>
8897
8898         isfinite, isinf: Fix link error on AIX 6 and 7.
8899         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8900         needed, also test the macro with a 'float' argument.
8901         * m4/isinf.m4 (gl_ISINF): Likewise.
8902
8903 2011-06-18  Bruno Haible  <bruno@clisp.org>
8904
8905         getloadavg: Don't clobber LIBS. Regression from previous commit.
8906         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8907         AC_CHECK_LIB from here...
8908         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8909         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8910         gl_func_getloadavg_done.
8911         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8912
8913 2011-06-18  Bruno Haible  <bruno@clisp.org>
8914
8915         clean-temp: Improve documentation.
8916         * lib/clean-temp.h: Explain better how to use this module.
8917         Reported by John Darrington <john@darrington.wattle.id.au>.
8918
8919 2011-06-17  Bruno Haible  <bruno@clisp.org>
8920
8921         pread, pwrite: Avoid cc warning on AIX.
8922         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8923         (pwrite): Likewise.
8924
8925 2011-06-17  Bruno Haible  <bruno@clisp.org>
8926
8927         spawn-pipe tests: Fix link error.
8928         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8930
8931 2011-06-17  Bruno Haible  <bruno@clisp.org>
8932
8933         Tests: Remove unnecessary dependency.
8934         * modules/canonicalize-tests (Depends-on): Remove progname.
8935         * modules/chown-tests (Depends-on): Likewise.
8936         * modules/dirname-tests (Depends-on): Likewise.
8937         * modules/fdopendir-tests (Depends-on): Likewise.
8938         * modules/fdutimensat-tests (Depends-on): Likewise.
8939         * modules/hash-tests (Depends-on): Likewise.
8940         * modules/lchown-tests (Depends-on): Likewise.
8941         * modules/linkat-tests (Depends-on): Likewise.
8942         * modules/renameat-tests (Depends-on): Likewise.
8943         * modules/spawn-pipe-tests (Depends-on): Likewise.
8944         * modules/utimensat-tests (Depends-on): Likewise.
8945
8946 2011-06-17  Bruno Haible  <bruno@clisp.org>
8947
8948         spawn-pipe tests: Fix link error.
8949         * tests/test-spawn-pipe-child.c: Undefine fflush.
8950
8951 2011-06-17  Bruno Haible  <bruno@clisp.org>
8952
8953         Fix tests link errors.
8954         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8955         * modules/chown-tests (Makefile.am): Don't link test-chown with
8956         LIBINTL.
8957         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8958         LIBINTL.
8959         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8960         LIBINTL.
8961         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8962         LIBINTL.
8963
8964 2011-06-16  Bruno Haible  <bruno@clisp.org>
8965
8966         crypto/gc-sha1: Fix recent regression.
8967         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8968         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8969
8970         crypto/gc-md5: Fix recent regression.
8971         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8972
8973         crypto/gc-md4: Fix recent regression.
8974         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8975         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8976
8977         crypto/gc-arctwo: Fix recent regression.
8978         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8979         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8980
8981         crypto/gc-rijndael: Fix recent regression.
8982         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8983         (configure.ac): Invoke AC_LIBOBJ here.
8984         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8986
8987         crypto/gc-hmac-sha1: Fix recent regression.
8988         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8989         (configure.ac): Invoke AC_LIBOBJ here.
8990         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8992
8993         crypto/gc-hmac-md5: Fix recent regression.
8994         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8995         (configure.ac): Invoke AC_LIBOBJ here.
8996         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8997         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8998
8999         crypto/gc-des: Fix recent regression.
9000         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9001         (configure.ac): Invoke AC_LIBOBJ here.
9002         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9003         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9004
9005         crypto/gc-arcfour: Fix recent regression.
9006         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9007         (configure.ac): Invoke AC_LIBOBJ here.
9008         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9009         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9010
9011 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9012
9013         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9014         After the 2011-05-21 change, this macro requires
9015         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9016         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9017
9018 2011-06-16  Bruno Haible  <bruno@clisp.org>
9019
9020         fprintftime: Move AC_LIBOBJ invocations to module description.
9021         * m4/fprintftime.m4: Remove file.
9022         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9023         (configure.ac): Remove gl_FPRINTFTIME call.
9024         (Makefile.am): Augment lib_SOURCES.
9025         Reported by Jim Meyering.
9026
9027 2011-06-16  Bruno Haible  <bruno@clisp.org>
9028
9029         tmpfile-safer: Finish 2011-05-23 commit.
9030         * m4/stdio-safer.m4: Really remove file.
9031         Reported by Jim Meyering.
9032
9033 2011-06-16  Bruno Haible  <bruno@clisp.org>
9034
9035         syntax-check: Fix typo.
9036         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9037         printf-posix.m4.
9038         Reported by Jim Meyering.
9039
9040 2011-06-13  Jim Meyering  <meyering@redhat.com>
9041
9042         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9043         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9044
9045 2011-05-23  Bruno Haible  <bruno@clisp.org>
9046
9047         yesno: Move AC_LIBOBJ invocations to module description.
9048         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9049         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9050
9051 2011-05-23  Bruno Haible  <bruno@clisp.org>
9052
9053         xstrtol: Move AC_LIBOBJ invocations to module description.
9054         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9055         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9056
9057 2011-05-23  Bruno Haible  <bruno@clisp.org>
9058
9059         xstrtold: Move AC_LIBOBJ invocations to module description.
9060         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9061         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9062
9063 2011-05-23  Bruno Haible  <bruno@clisp.org>
9064
9065         xstrtod: Move AC_LIBOBJ invocations to module description.
9066         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9067         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9068
9069 2011-05-23  Bruno Haible  <bruno@clisp.org>
9070
9071         xnanosleep: Move AC_LIBOBJ invocations to module description.
9072         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9073         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9074
9075 2011-05-23  Bruno Haible  <bruno@clisp.org>
9076
9077         xgetcwd: Move AC_LIBOBJ invocations to module description.
9078         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9079         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9080
9081 2011-05-23  Bruno Haible  <bruno@clisp.org>
9082
9083         xalloc: Move AC_LIBOBJ invocations to module description.
9084         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9085         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9086
9087 2011-05-23  Bruno Haible  <bruno@clisp.org>
9088
9089         write-any-file: Move AC_LIBOBJ invocations to module description.
9090         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9091         invocation.
9092         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9093
9094 2011-05-23  Bruno Haible  <bruno@clisp.org>
9095
9096         utimens: Move AC_LIBOBJ invocations to module description.
9097         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9098         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9099
9100 2011-05-23  Bruno Haible  <bruno@clisp.org>
9101
9102         utimecmp: Move AC_LIBOBJ invocations to module description.
9103         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9104         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9105
9106 2011-05-23  Bruno Haible  <bruno@clisp.org>
9107
9108         userspec: Move AC_LIBOBJ invocations to module description.
9109         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9110         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9111
9112 2011-05-23  Bruno Haible  <bruno@clisp.org>
9113
9114         unlinkdir: Move AC_LIBOBJ invocations to module description.
9115         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9116         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9117
9118 2011-05-23  Bruno Haible  <bruno@clisp.org>
9119
9120         unistd-safer: Move AC_LIBOBJ invocations to module description.
9121         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9122         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9123
9124 2011-05-23  Bruno Haible  <bruno@clisp.org>
9125
9126         tempname: Move AC_LIBOBJ invocations to module description.
9127         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9128         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9129
9130 2011-05-23  Bruno Haible  <bruno@clisp.org>
9131
9132         strftime: Move AC_LIBOBJ invocations to module description.
9133         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9134         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9135
9136 2011-05-23  Bruno Haible  <bruno@clisp.org>
9137
9138         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9139         * m4/stdlib-safer.m4: Remove file.
9140         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9141         (configure.ac): Remove gl_STDLIB_SAFER call.
9142         (Makefile.am): Augment lib_SOURCES.
9143
9144 2011-05-23  Bruno Haible  <bruno@clisp.org>
9145
9146         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9147         * m4/stdio-safer.m4: Remove file.
9148         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9149         (configure.ac): Remove gl_TMPFILE_SAFER call.
9150         (Makefile.am): Augment lib_SOURCES.
9151
9152 2011-05-23  Bruno Haible  <bruno@clisp.org>
9153
9154         popen-safer: Move AC_LIBOBJ invocations to module description.
9155         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9156         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9157         (configure.ac): Remove gl_POPEN_SAFER call.
9158         (Makefile.am): Augment lib_SOURCES.
9159
9160 2011-05-23  Bruno Haible  <bruno@clisp.org>
9161
9162         freopen-safer: Move AC_LIBOBJ invocations to module description.
9163         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9164         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9165         (configure.ac): Remove gl_FREOPEN_SAFER call.
9166         (Makefile.am): Augment lib_SOURCES.
9167
9168 2011-05-23  Bruno Haible  <bruno@clisp.org>
9169
9170         fopen-safer: Move AC_LIBOBJ invocations to module description.
9171         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9172         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9173         (configure.ac): Remove gl_FOPEN_SAFER call.
9174         (Makefile.am): Augment lib_SOURCES.
9175
9176 2011-05-23  Bruno Haible  <bruno@clisp.org>
9177
9178         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9179         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9180         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9181
9182 2011-05-23  Bruno Haible  <bruno@clisp.org>
9183
9184         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9185         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9186         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9187
9188 2011-05-23  Bruno Haible  <bruno@clisp.org>
9189
9190         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9191         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9192         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9193
9194 2011-05-23  Bruno Haible  <bruno@clisp.org>
9195
9196         settime: Move AC_LIBOBJ invocations to module description.
9197         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9198         * modules/settime (Makefile.am): Augment lib_SOURCES.
9199
9200 2011-05-23  Bruno Haible  <bruno@clisp.org>
9201
9202         savedir: Move AC_LIBOBJ invocations to module description.
9203         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9204         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9205
9206 2011-05-23  Bruno Haible  <bruno@clisp.org>
9207
9208         save-cwd: Move AC_LIBOBJ invocations to module description.
9209         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9210         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9211
9212 2011-05-23  Bruno Haible  <bruno@clisp.org>
9213
9214         same: Move AC_LIBOBJ invocations to module description.
9215         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9216         * modules/same (Makefile.am): Augment lib_SOURCES.
9217
9218 2011-05-23  Bruno Haible  <bruno@clisp.org>
9219
9220         safe-write: Move AC_LIBOBJ invocations to module description.
9221         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9222         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9223         instead of gl_SAFE_WRITE.
9224         (Makefile.am): Augment lib_SOURCES.
9225
9226 2011-05-23  Bruno Haible  <bruno@clisp.org>
9227
9228         safe-read: Move AC_LIBOBJ invocations to module description.
9229         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9230         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9231         of gl_SAFE_READ.
9232         (Makefile.am): Augment lib_SOURCES.
9233
9234 2011-05-23  Bruno Haible  <bruno@clisp.org>
9235
9236         safe-alloc: Move AC_LIBOBJ invocations to module description.
9237         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9238         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9239
9240 2011-05-23  Bruno Haible  <bruno@clisp.org>
9241
9242         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9243         * m4/rijndael.m4: Remove file.
9244         * modules/crypto/rijndael (Files): Remove it.
9245         (configure.ac): Remove gl_RIJNDAEL call.
9246         (Makefile.am): Augment lib_SOURCES.
9247
9248 2011-05-23  Bruno Haible  <bruno@clisp.org>
9249
9250         readtokens: Move AC_LIBOBJ invocations to module description.
9251         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9252         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9253
9254 2011-05-23  Bruno Haible  <bruno@clisp.org>
9255
9256         read-file: Move AC_LIBOBJ invocations to module description.
9257         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9258         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9259         of gl_FUNC_READ_FILE.
9260         (Makefile.am): Augment lib_SOURCES.
9261
9262 2011-05-23  Bruno Haible  <bruno@clisp.org>
9263
9264         quotearg: Move AC_LIBOBJ invocations to module description.
9265         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9266         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9267
9268 2011-05-23  Bruno Haible  <bruno@clisp.org>
9269
9270         quote: Move AC_LIBOBJ invocations to module description.
9271         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9272         * modules/quote (Makefile.am): Augment lib_SOURCES.
9273
9274 2011-05-23  Bruno Haible  <bruno@clisp.org>
9275
9276         posixver: Move AC_LIBOBJ invocations to module description.
9277         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9278         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9279
9280 2011-05-23  Bruno Haible  <bruno@clisp.org>
9281
9282         posixtm: Move AC_LIBOBJ invocations to module description.
9283         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9284         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9285
9286 2011-05-23  Bruno Haible  <bruno@clisp.org>
9287
9288         physmem: Move AC_LIBOBJ invocations to module description.
9289         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9290         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9291
9292 2011-05-23  Bruno Haible  <bruno@clisp.org>
9293
9294         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9295         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9296         invocation.
9297         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9298
9299 2011-05-23  Bruno Haible  <bruno@clisp.org>
9300
9301         mpsort: Move AC_LIBOBJ invocations to module description.
9302         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9303         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9304
9305 2011-05-23  Bruno Haible  <bruno@clisp.org>
9306
9307         modechange: Move AC_LIBOBJ invocations to module description.
9308         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9309         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9310
9311 2011-05-23  Bruno Haible  <bruno@clisp.org>
9312
9313         mkdir-p: Move AC_LIBOBJ invocations to module description.
9314         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9315         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9316
9317 2011-05-23  Bruno Haible  <bruno@clisp.org>
9318
9319         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9320         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9321         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9322
9323 2011-05-23  Bruno Haible  <bruno@clisp.org>
9324
9325         mgetgroups: Move AC_LIBOBJ invocations to module description.
9326         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9327         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9328
9329 2011-05-23  Bruno Haible  <bruno@clisp.org>
9330
9331         memxor: Move AC_LIBOBJ invocations to module description.
9332         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9333         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9334
9335 2011-05-23  Bruno Haible  <bruno@clisp.org>
9336
9337         memcoll: Move AC_LIBOBJ invocations to module description.
9338         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9339         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9340
9341 2011-05-23  Bruno Haible  <bruno@clisp.org>
9342
9343         memcasecmp: Move AC_LIBOBJ invocations to module description.
9344         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9345         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9346
9347 2011-05-23  Bruno Haible  <bruno@clisp.org>
9348
9349         crypto/md5: Move AC_LIBOBJ invocations to module description.
9350         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9351         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9352
9353 2011-05-23  Bruno Haible  <bruno@clisp.org>
9354
9355         crypto/md4: Move AC_LIBOBJ invocations to module description.
9356         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9357         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9358
9359 2011-05-23  Bruno Haible  <bruno@clisp.org>
9360
9361         crypto/md2: Move AC_LIBOBJ invocations to module description.
9362         * m4/md2.m4: Remove file.
9363         * modules/crypto/md2 (Files): Remove it.
9364         (configure.ac): Remove gl_MD2 call.
9365         (Makefile.am): Augment lib_SOURCES.
9366
9367 2011-05-23  Bruno Haible  <bruno@clisp.org>
9368
9369         long-options: Move AC_LIBOBJ invocations to module description.
9370         * m4/long-options.m4: Remove file.
9371         * modules/long-options (Files): Remove it.
9372         (configure.ac): Remove gl_LONG_OPTIONS call.
9373         (Makefile.am): Augment lib_SOURCES.
9374
9375 2011-05-23  Bruno Haible  <bruno@clisp.org>
9376
9377         i-ring: Move AC_LIBOBJ invocations to module description.
9378         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9379         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9380
9381 2011-05-23  Bruno Haible  <bruno@clisp.org>
9382
9383         idcache: Move AC_LIBOBJ invocations to module description.
9384         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9385         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9386
9387 2011-05-23  Bruno Haible  <bruno@clisp.org>
9388
9389         human: Move AC_LIBOBJ invocations to module description.
9390         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9391         * modules/human (Makefile.am): Augment lib_SOURCES.
9392
9393 2011-05-23  Bruno Haible  <bruno@clisp.org>
9394
9395         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9396         * m4/hmac-sha1.m4: Remove file.
9397         * modules/crypto/hmac-sha1 (Files): Remove it.
9398         (configure.ac): Remove gl_HMAC_SHA1 call.
9399         (Makefile.am): Augment lib_SOURCES.
9400
9401 2011-05-23  Bruno Haible  <bruno@clisp.org>
9402
9403         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9404         * m4/hmac-md5.m4: Remove file.
9405         * modules/crypto/hmac-md5 (Files): Remove it.
9406         (configure.ac): Remove gl_HMAC_MD5 call.
9407         (Makefile.am): Augment lib_SOURCES.
9408
9409 2011-05-23  Bruno Haible  <bruno@clisp.org>
9410
9411         hash: Move AC_LIBOBJ invocations to module description.
9412         * m4/hash.m4: Remove file.
9413         * modules/hash (Files): Remove it.
9414         (configure.ac): Remove gl_HASH call.
9415         (Makefile.am): Augment lib_SOURCES.
9416
9417 2011-05-23  Bruno Haible  <bruno@clisp.org>
9418
9419         hard-locale: Move AC_LIBOBJ invocations to module description.
9420         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9421         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9422
9423 2011-05-23  Bruno Haible  <bruno@clisp.org>
9424
9425         getugroups: Move AC_LIBOBJ invocations to module description.
9426         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9427         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9428
9429 2011-05-23  Bruno Haible  <bruno@clisp.org>
9430
9431         gettime: Move AC_LIBOBJ invocations to module description.
9432         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9433         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9434
9435 2011-05-23  Bruno Haible  <bruno@clisp.org>
9436
9437         getndelim2: Move AC_LIBOBJ invocations to module description.
9438         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9439         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9440
9441 2011-05-23  Bruno Haible  <bruno@clisp.org>
9442
9443         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9444         * m4/gc-pbkdf2-sha1.m4: Remove file.
9445         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9446         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9447         (Makefile.am): Augment lib_SOURCES.
9448
9449 2011-05-23  Bruno Haible  <bruno@clisp.org>
9450
9451         fts: Move AC_LIBOBJ invocations to module description.
9452         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9453         * modules/fts (configure.ac): ... to here.
9454
9455 2011-05-23  Bruno Haible  <bruno@clisp.org>
9456
9457         file-type: Move AC_LIBOBJ invocations to module description.
9458         * m4/file-type.m4: Remove file.
9459         * modules/file-type (Files): Remove it.
9460         (configure.ac): Remove gl_FILE_TYPE call.
9461         (Makefile.am): Augment lib_SOURCES.
9462
9463 2011-05-23  Bruno Haible  <bruno@clisp.org>
9464
9465         filenamecat*: Respect rules for use of AC_LIBOBJ.
9466         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9467         Remove AC_LIBOBJ invocation.
9468         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9469         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9470
9471 2011-05-23  Bruno Haible  <bruno@clisp.org>
9472
9473         filemode: Move AC_LIBOBJ invocations to module description.
9474         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9475         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9476
9477 2011-05-23  Bruno Haible  <bruno@clisp.org>
9478
9479         openat-safer: Move AC_LIBOBJ invocations to module description.
9480         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9481         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9482
9483 2011-05-23  Bruno Haible  <bruno@clisp.org>
9484
9485         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9486         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9487         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9488
9489 2011-05-23  Bruno Haible  <bruno@clisp.org>
9490
9491         exclude: Move AC_LIBOBJ invocations to module description.
9492         * m4/exclude.m4: Remove file.
9493         * modules/exclude (Files): Remove it.
9494         (configure.ac): Remove gl_EXCLUDE call.
9495         (Makefile.am): Augment lib_SOURCES.
9496
9497 2011-05-23  Bruno Haible  <bruno@clisp.org>
9498
9499         dirname*: Respect rules for use of AC_LIBOBJ.
9500         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9501         invocations.
9502         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9503         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9504
9505 2011-05-23  Bruno Haible  <bruno@clisp.org>
9506
9507         dirent-safer: Move AC_LIBOBJ invocations to module description.
9508         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9509         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9510
9511 2011-05-23  Bruno Haible  <bruno@clisp.org>
9512
9513         crypto/des: Move AC_LIBOBJ invocations to module description.
9514         * m4/des.m4: Remove file.
9515         * modules/crypto/des (Files): Remove it.
9516         (configure.ac): Remove gl_DES call.
9517         (Makefile.am): Augment lib_SOURCES.
9518
9519 2011-05-23  Bruno Haible  <bruno@clisp.org>
9520
9521         cycle-check: Move AC_LIBOBJ invocations to module description.
9522         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9523         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9524
9525 2011-05-23  Bruno Haible  <bruno@clisp.org>
9526
9527         c-strtold: Move AC_LIBOBJ invocations to module description.
9528         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9529         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9530
9531 2011-05-23  Bruno Haible  <bruno@clisp.org>
9532
9533         c-strtod: Move AC_LIBOBJ invocations to module description.
9534         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9535         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9536
9537 2011-05-23  Bruno Haible  <bruno@clisp.org>
9538
9539         crc: Move AC_LIBOBJ invocations to module description.
9540         * m4/crc.m4: Remove file.
9541         * modules/crc (Files): Remove it.
9542         (configure.ac): Remove gl_CRC call.
9543         (Makefile.am): Augment lib_SOURCES.
9544
9545 2011-05-23  Bruno Haible  <bruno@clisp.org>
9546
9547         close-stream: Move AC_LIBOBJ invocations to module description.
9548         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9549         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9550
9551 2011-05-23  Bruno Haible  <bruno@clisp.org>
9552
9553         closeout: Move AC_LIBOBJ invocations to module description.
9554         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9555         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9556
9557 2011-05-23  Bruno Haible  <bruno@clisp.org>
9558
9559         closein: Move AC_LIBOBJ invocations to module description.
9560         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9561         * modules/closein (Makefile.am): Augment lib_SOURCES.
9562
9563 2011-05-23  Bruno Haible  <bruno@clisp.org>
9564
9565         cloexec: Move AC_LIBOBJ invocations to module description.
9566         * m4/cloexec.m4: Remove file.
9567         * modules/cloexec (Files): Remove it.
9568         (configure.ac): Remove gl_CLOEXEC call.
9569         (Makefile.am): Augment lib_SOURCES.
9570
9571 2011-05-23  Bruno Haible  <bruno@clisp.org>
9572
9573         check-version: Move AC_LIBOBJ invocations to module description.
9574         * m4/check-version.m4: Remove file.
9575         * modules/check-version (Files): Remove it.
9576         (configure.ac): Remove gl_CHECK_VERSION call.
9577         (Makefile.am): Augment lib_SOURCES.
9578
9579 2011-05-23  Bruno Haible  <bruno@clisp.org>
9580
9581         chdir-safer: Move AC_LIBOBJ invocations to module description.
9582         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9583         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9584
9585 2011-05-23  Bruno Haible  <bruno@clisp.org>
9586
9587         canonicalize: Move AC_LIBOBJ invocations to module description.
9588         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9589         AC_LIBOBJ invocation.
9590         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9591
9592 2011-05-23  Bruno Haible  <bruno@clisp.org>
9593
9594         canon-host: Move AC_LIBOBJ invocations to module description.
9595         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9596         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9597         instead of gl_CANON_HOST.
9598         (Makefile.am): Augment lib_SOURCES.
9599
9600 2011-05-23  Bruno Haible  <bruno@clisp.org>
9601
9602         backupfile: Move AC_LIBOBJ invocations to module description.
9603         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9604         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9605
9606 2011-05-23  Bruno Haible  <bruno@clisp.org>
9607
9608         argmatch: Move AC_LIBOBJ invocations to module description.
9609         * m4/argmatch.m4: Remove file.
9610         * modules/argmatch (Files): Remove it.
9611         (configure.ac): Remove gl_ARGMATCH call.
9612         (Makefile.am): Augment lib_SOURCES.
9613
9614 2011-05-23  Bruno Haible  <bruno@clisp.org>
9615
9616         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9617         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9618         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9619
9620 2011-05-23  Bruno Haible  <bruno@clisp.org>
9621
9622         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9623         * m4/arcfour.m4: Remove file.
9624         * modules/crypto/arcfour (Files): Remove it.
9625         (configure.ac): Remove gl_ARCFOUR call.
9626         (Makefile.am): Augment lib_SOURCES.
9627
9628 2011-05-22  Bruno Haible  <bruno@clisp.org>
9629
9630         write: Move AC_LIBOBJ invocations to module description.
9631         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9632         * modules/write (configure.ac): ... to here.
9633
9634 2011-05-22  Bruno Haible  <bruno@clisp.org>
9635
9636         wmemset: Move AC_LIBOBJ invocations to module description.
9637         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9638         here...
9639         * modules/wmemset (configure.ac): ... to here.
9640
9641 2011-05-22  Bruno Haible  <bruno@clisp.org>
9642
9643         wmemmove: Move AC_LIBOBJ invocations to module description.
9644         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9645         here...
9646         * modules/wmemmove (configure.ac): ... to here.
9647
9648 2011-05-22  Bruno Haible  <bruno@clisp.org>
9649
9650         wmemcpy: Move AC_LIBOBJ invocations to module description.
9651         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9652         here...
9653         * modules/wmemcpy (configure.ac): ... to here.
9654
9655 2011-05-22  Bruno Haible  <bruno@clisp.org>
9656
9657         wmemcmp: Move AC_LIBOBJ invocations to module description.
9658         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9659         here...
9660         * modules/wmemcmp (configure.ac): ... to here.
9661
9662 2011-05-22  Bruno Haible  <bruno@clisp.org>
9663
9664         wmemchr: Move AC_LIBOBJ invocations to module description.
9665         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9666         here...
9667         * modules/wmemchr (configure.ac): ... to here.
9668
9669 2011-05-22  Bruno Haible  <bruno@clisp.org>
9670
9671         wcswidth: Move AC_LIBOBJ invocations to module description.
9672         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9673         here...
9674         * modules/wcswidth (configure.ac): ... to here.
9675
9676 2011-05-22  Bruno Haible  <bruno@clisp.org>
9677
9678         wcwidth: Respect rules for use of AC_LIBOBJ.
9679         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9680         invocation from here...
9681         * modules/wcwidth (configure.ac): ... to here.
9682         (Depends-on): Update conditions.
9683
9684 2011-05-22  Bruno Haible  <bruno@clisp.org>
9685
9686         wctype: Move AC_LIBOBJ invocations to module description.
9687         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9688         invocation from here...
9689         * modules/wctype (configure.ac): ... to here.
9690         (Depends-on): Update conditions.
9691
9692 2011-05-22  Bruno Haible  <bruno@clisp.org>
9693
9694         wctrans: Move AC_LIBOBJ invocations to module description.
9695         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9696         invocation from here...
9697         * modules/wctrans (configure.ac): ... to here.
9698
9699 2011-05-22  Bruno Haible  <bruno@clisp.org>
9700
9701         wctomb: Move AC_LIBOBJ invocations to module description.
9702         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
9703         invocations from here...
9704         * modules/wctomb (configure.ac): ... to here.
9705
9706 2011-05-22  Bruno Haible  <bruno@clisp.org>
9707
9708         wctob: Move AC_LIBOBJ invocations to module description.
9709         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
9710         gl_PREREQ_WCTOB invocations from here...
9711         * modules/wctob (configure.ac): ... to here.
9712         (Depends-on): Update conditions.
9713
9714 2011-05-22  Bruno Haible  <bruno@clisp.org>
9715
9716         wcsxfrm: Move AC_LIBOBJ invocations to module description.
9717         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
9718         here...
9719         * modules/wcsxfrm (configure.ac): ... to here.
9720
9721 2011-05-22  Bruno Haible  <bruno@clisp.org>
9722
9723         wcstok: Move AC_LIBOBJ invocations to module description.
9724         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
9725         * modules/wcstok (configure.ac): ... to here.
9726
9727 2011-05-22  Bruno Haible  <bruno@clisp.org>
9728
9729         wcsstr: Move AC_LIBOBJ invocations to module description.
9730         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
9731         * modules/wcsstr (configure.ac): ... to here.
9732
9733 2011-05-22  Bruno Haible  <bruno@clisp.org>
9734
9735         wcsspn: Move AC_LIBOBJ invocations to module description.
9736         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
9737         * modules/wcsspn (configure.ac): ... to here.
9738
9739 2011-05-22  Bruno Haible  <bruno@clisp.org>
9740
9741         wcsrtombs: Move AC_LIBOBJ invocations to module description.
9742         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
9743         gl_PREREQ_WCSRTOMBS invocations from here...
9744         * modules/wcsrtombs (configure.ac): ... to here.
9745
9746 2011-05-22  Bruno Haible  <bruno@clisp.org>
9747
9748         wcsrchr: Move AC_LIBOBJ invocations to module description.
9749         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
9750         here...
9751         * modules/wcsrchr (configure.ac): ... to here.
9752
9753 2011-05-22  Bruno Haible  <bruno@clisp.org>
9754
9755         wcspbrk: Move AC_LIBOBJ invocations to module description.
9756         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9757         here...
9758         * modules/wcspbrk (configure.ac): ... to here.
9759
9760 2011-05-22  Bruno Haible  <bruno@clisp.org>
9761
9762         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9763         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9764         gl_PREREQ_WCSNRTOMBS invocations from here...
9765         * modules/wcsnrtombs (configure.ac): ... to here.
9766
9767 2011-05-22  Bruno Haible  <bruno@clisp.org>
9768
9769         wcsnlen: Move AC_LIBOBJ invocations to module description.
9770         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
9771         here...
9772         * modules/wcsnlen (configure.ac): ... to here.
9773
9774 2011-05-22  Bruno Haible  <bruno@clisp.org>
9775
9776         wcsncpy: Move AC_LIBOBJ invocations to module description.
9777         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9778         here...
9779         * modules/wcsncpy (configure.ac): ... to here.
9780
9781 2011-05-22  Bruno Haible  <bruno@clisp.org>
9782
9783         wcsncmp: Move AC_LIBOBJ invocations to module description.
9784         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9785         here...
9786         * modules/wcsncmp (configure.ac): ... to here.
9787
9788 2011-05-22  Bruno Haible  <bruno@clisp.org>
9789
9790         wcsncat: Move AC_LIBOBJ invocations to module description.
9791         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9792         here...
9793         * modules/wcsncat (configure.ac): ... to here.
9794
9795 2011-05-22  Bruno Haible  <bruno@clisp.org>
9796
9797         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9798         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9799         from here...
9800         * modules/wcsncasecmp (configure.ac): ... to here.
9801
9802 2011-05-22  Bruno Haible  <bruno@clisp.org>
9803
9804         wcslen: Move AC_LIBOBJ invocations to module description.
9805         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9806         * modules/wcslen (configure.ac): ... to here.
9807
9808 2011-05-22  Bruno Haible  <bruno@clisp.org>
9809
9810         wcsdup: Move AC_LIBOBJ invocations to module description.
9811         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9812         * modules/wcsdup (configure.ac): ... to here.
9813
9814 2011-05-22  Bruno Haible  <bruno@clisp.org>
9815
9816         wcscspn: Move AC_LIBOBJ invocations to module description.
9817         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9818         here...
9819         * modules/wcscspn (configure.ac): ... to here.
9820
9821 2011-05-22  Bruno Haible  <bruno@clisp.org>
9822
9823         wcscpy: Move AC_LIBOBJ invocations to module description.
9824         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9825         * modules/wcscpy (configure.ac): ... to here.
9826
9827 2011-05-22  Bruno Haible  <bruno@clisp.org>
9828
9829         wcscoll: Move AC_LIBOBJ invocations to module description.
9830         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9831         here...
9832         * modules/wcscoll (configure.ac): ... to here.
9833
9834 2011-05-22  Bruno Haible  <bruno@clisp.org>
9835
9836         wcscmp: Move AC_LIBOBJ invocations to module description.
9837         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9838         * modules/wcscmp (configure.ac): ... to here.
9839
9840 2011-05-22  Bruno Haible  <bruno@clisp.org>
9841
9842         wcschr: Move AC_LIBOBJ invocations to module description.
9843         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9844         * modules/wcschr (configure.ac): ... to here.
9845
9846 2011-05-22  Bruno Haible  <bruno@clisp.org>
9847
9848         wcscat: Move AC_LIBOBJ invocations to module description.
9849         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9850         * modules/wcscat (configure.ac): ... to here.
9851
9852 2011-05-22  Bruno Haible  <bruno@clisp.org>
9853
9854         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9855         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9856         here...
9857         * modules/wcscasecmp (configure.ac): ... to here.
9858
9859 2011-05-22  Bruno Haible  <bruno@clisp.org>
9860
9861         wcrtomb: Move AC_LIBOBJ invocations to module description.
9862         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9863         invocations from here...
9864         * modules/wcrtomb (configure.ac): ... to here.
9865
9866 2011-05-22  Bruno Haible  <bruno@clisp.org>
9867
9868         wcpncpy: Move AC_LIBOBJ invocations to module description.
9869         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9870         here...
9871         * modules/wcpncpy (configure.ac): ... to here.
9872
9873 2011-05-22  Bruno Haible  <bruno@clisp.org>
9874
9875         wcpcpy: Move AC_LIBOBJ invocations to module description.
9876         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9877         * modules/wcpcpy (configure.ac): ... to here.
9878
9879 2011-05-22  Bruno Haible  <bruno@clisp.org>
9880
9881         waitpid: Move AC_LIBOBJ invocations to module description.
9882         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9883         invocation from here...
9884         * modules/waitpid (configure.ac): ... to here.
9885
9886 2011-05-22  Bruno Haible  <bruno@clisp.org>
9887
9888         utimensat: Move AC_LIBOBJ invocations to module description.
9889         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9890         here...
9891         * modules/utimensat (configure.ac): ... to here.
9892
9893 2011-05-22  Bruno Haible  <bruno@clisp.org>
9894
9895         usleep: Move AC_LIBOBJ invocations to module description.
9896         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9897         here...
9898         * modules/usleep (configure.ac): ... to here.
9899
9900 2011-05-22  Bruno Haible  <bruno@clisp.org>
9901
9902         unlockpt: Move AC_LIBOBJ invocations to module description.
9903         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9904         gl_PREREQ_UNLOCKPT invocations from here...
9905         * modules/unlockpt (configure.ac): ... to here.
9906
9907 2011-05-22  Bruno Haible  <bruno@clisp.org>
9908
9909         unlink: Respect rules for use of AC_LIBOBJ.
9910         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9911         * modules/unlink (configure.ac): ... to here.
9912
9913 2011-05-22  Bruno Haible  <bruno@clisp.org>
9914
9915         uname: Move AC_LIBOBJ invocations to module description.
9916         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9917         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9918         here...
9919         * modules/uname (configure.ac): ... to here.
9920
9921 2011-05-22  Bruno Haible  <bruno@clisp.org>
9922
9923         ttyname_r: Move AC_LIBOBJ invocations to module description.
9924         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9925         gl_PREREQ_TTYNAME_R invocations from here...
9926         * modules/ttyname_r (configure.ac): ... to here.
9927
9928 2011-05-22  Bruno Haible  <bruno@clisp.org>
9929
9930         tsearch: Move AC_LIBOBJ invocations to module description.
9931         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9932         invocations from here...
9933         * modules/tsearch (configure.ac): ... to here.
9934
9935 2011-05-22  Bruno Haible  <bruno@clisp.org>
9936
9937         towctrans: Move AC_LIBOBJ invocations to module description.
9938         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9939         AC_LIBOBJ invocation from here...
9940         * modules/towctrans (configure.ac): ... to here.
9941
9942 2011-05-22  Bruno Haible  <bruno@clisp.org>
9943
9944         tmpfile: Move AC_LIBOBJ invocations to module description.
9945         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9946         invocations from here...
9947         * modules/tmpfile (configure.ac): ... to here.
9948
9949 2011-05-22  Bruno Haible  <bruno@clisp.org>
9950
9951         times: Move AC_LIBOBJ invocations to module description.
9952         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9953         * modules/times (configure.ac): ... to here.
9954
9955 2011-05-22  Bruno Haible  <bruno@clisp.org>
9956
9957         time_r: Move AC_LIBOBJ invocations to module description.
9958         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9959         invocations from here...
9960         * modules/time_r (configure.ac): ... to here.
9961
9962 2011-05-22  Bruno Haible  <bruno@clisp.org>
9963
9964         timegm: Move AC_LIBOBJ invocations to module description.
9965         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9966         invocations from here...
9967         * modules/timegm (configure.ac): ... to here.
9968
9969 2011-05-22  Bruno Haible  <bruno@clisp.org>
9970
9971         tcgetsid: Move AC_LIBOBJ invocations to module description.
9972         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9973         and gl_PREREQ_TCGETSID invocations from here...
9974         * modules/tcgetsid (configure.ac): ... to here.
9975         (Depends-on): Update conditions.
9976
9977 2011-05-22  Bruno Haible  <bruno@clisp.org>
9978
9979         symlinkat: Move AC_LIBOBJ invocations to module description.
9980         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9981         here...
9982         * modules/symlinkat (configure.ac): ... to here.
9983
9984 2011-05-22  Bruno Haible  <bruno@clisp.org>
9985
9986         symlink: Move AC_LIBOBJ invocations to module description.
9987         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9988         here...
9989         * modules/symlink (configure.ac): ... to here.
9990
9991 2011-05-22  Bruno Haible  <bruno@clisp.org>
9992
9993         strverscmp: Move AC_LIBOBJ invocations to module description.
9994         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9995         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9996         from here...
9997         * modules/strverscmp (configure.ac): ... to here.
9998
9999 2011-05-22  Bruno Haible  <bruno@clisp.org>
10000
10001         strtok_r: Move AC_LIBOBJ invocations to module description.
10002         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10003         and gl_PREREQ_STRTOK_R invocations from here...
10004         * modules/strtok_r (configure.ac): ... to here.
10005         (Depends-on): Update conditions.
10006
10007 2011-05-22  Bruno Haible  <bruno@clisp.org>
10008
10009         strtoumax: Move AC_LIBOBJ invocations to module description.
10010         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10011         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10012         from here...
10013         * modules/strtoumax (configure.ac): ... to here.
10014
10015 2011-05-22  Bruno Haible  <bruno@clisp.org>
10016
10017         strtoimax: Move AC_LIBOBJ invocations to module description.
10018         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10019         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10020         from here...
10021         * modules/strtoimax (configure.ac): ... to here.
10022
10023 2011-05-22  Bruno Haible  <bruno@clisp.org>
10024
10025         strtoull: Move AC_LIBOBJ invocations to module description.
10026         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10027         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10028         from here...
10029         * modules/strtoull (configure.ac): ... to here.
10030
10031 2011-05-22  Bruno Haible  <bruno@clisp.org>
10032
10033         strtoll: Move AC_LIBOBJ invocations to module description.
10034         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10036         here...
10037         * modules/strtoll (configure.ac): ... to here.
10038
10039 2011-05-22  Bruno Haible  <bruno@clisp.org>
10040
10041         strtoul: Move AC_LIBOBJ invocations to module description.
10042         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10043         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10044         * modules/strtoul (configure.ac): ... to here.
10045
10046 2011-05-22  Bruno Haible  <bruno@clisp.org>
10047
10048         strtol: Move AC_LIBOBJ invocations to module description.
10049         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10050         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10051         * modules/strtol (configure.ac): ... to here.
10052
10053 2011-05-22  Bruno Haible  <bruno@clisp.org>
10054
10055         strtod: Move AC_LIBOBJ invocations to module description.
10056         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10057         invocations from here...
10058         * modules/strtod (configure.ac): ... to here.
10059
10060 2011-05-22  Bruno Haible  <bruno@clisp.org>
10061
10062         strstr*: Move AC_LIBOBJ invocations to module description.
10063         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10064         invocations from here...
10065         * modules/strstr-simple (configure.ac): ... to here.
10066         * modules/strstr (configure.ac): ... and here.
10067
10068 2011-05-22  Bruno Haible  <bruno@clisp.org>
10069
10070         strsignal: Move AC_LIBOBJ invocations to module description.
10071         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10072         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10073         * modules/strsignal (configure.ac): ... to here.
10074         (Depends-on): Update conditions.
10075
10076 2011-05-22  Bruno Haible  <bruno@clisp.org>
10077
10078         strsep: Move AC_LIBOBJ invocations to module description.
10079         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10080         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10081         here...
10082         * modules/strsep (configure.ac): ... to here.
10083
10084 2011-05-22  Bruno Haible  <bruno@clisp.org>
10085
10086         strptime: Move AC_LIBOBJ invocations to module description.
10087         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10088         gl_PREREQ_STRPTIME invocations from here...
10089         * modules/strptime (configure.ac): ... to here.
10090
10091 2011-05-22  Bruno Haible  <bruno@clisp.org>
10092
10093         strpbrk: Move AC_LIBOBJ invocations to module description.
10094         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10095         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10096         here...
10097         * modules/strpbrk (configure.ac): ... to here.
10098
10099 2011-05-22  Bruno Haible  <bruno@clisp.org>
10100
10101         strnlen: Move AC_LIBOBJ invocations to module description.
10102         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10103         invocations from here...
10104         * modules/strnlen (configure.ac): ... to here.
10105
10106 2011-05-22  Bruno Haible  <bruno@clisp.org>
10107
10108         strndup: Move AC_LIBOBJ invocations to module description.
10109         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10110         invocations from here...
10111         * modules/strndup (configure.ac): ... to here.
10112         (Depends-on): Update conditions.
10113
10114 2011-05-22  Bruno Haible  <bruno@clisp.org>
10115
10116         strncat: Move AC_LIBOBJ invocations to module description.
10117         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10118         invocations from here...
10119         * modules/strncat (configure.ac): ... to here.
10120
10121 2011-05-22  Bruno Haible  <bruno@clisp.org>
10122
10123         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10124         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10125         invocations from here...
10126         * modules/strdup (configure.ac): ... to here.
10127         * modules/strdup-posix (configure.ac): ... and here.
10128
10129 2011-05-22  Bruno Haible  <bruno@clisp.org>
10130
10131         strcspn: Move AC_LIBOBJ invocations to module description.
10132         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10134         here...
10135         * modules/strcspn (configure.ac): ... to here.
10136
10137 2011-05-22  Bruno Haible  <bruno@clisp.org>
10138
10139         strchrnul: Move AC_LIBOBJ invocations to module description.
10140         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10141         gl_PREREQ_STRCHRNUL invocations from here...
10142         * modules/strchrnul (configure.ac): ... to here.
10143
10144 2011-05-22  Bruno Haible  <bruno@clisp.org>
10145
10146         strcasestr*: Move AC_LIBOBJ invocations to module description.
10147         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10148         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10149         * modules/strcasestr-simple (configure.ac): ... to here.
10150         * modules/strcasestr (configure.ac): ... and here.
10151
10152 2011-05-22  Bruno Haible  <bruno@clisp.org>
10153
10154         strcase: Move AC_LIBOBJ invocations to module description.
10155         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10156         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10157         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10158         gl_PREREQ_STRNCASECMP invocations from here...
10159         * modules/strcase (configure.ac): ... to here.
10160
10161 2011-05-22  Bruno Haible  <bruno@clisp.org>
10162
10163         stpncpy: Move AC_LIBOBJ invocations to module description.
10164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10165         here...
10166         * modules/stpncpy (configure.ac): ... to here.
10167
10168 2011-05-22  Bruno Haible  <bruno@clisp.org>
10169
10170         stpcpy: Move AC_LIBOBJ invocations to module description.
10171         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10172         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10173         here...
10174         * modules/stpcpy (configure.ac): ... to here.
10175
10176 2011-05-21  Bruno Haible  <bruno@clisp.org>
10177
10178         stat: Move AC_LIBOBJ invocations to module description.
10179         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10180         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10181         here...
10182         * modules/stat (configure.ac): ... to here.
10183
10184 2011-05-21  Bruno Haible  <bruno@clisp.org>
10185
10186         sleep: Move AC_LIBOBJ invocations to module description.
10187         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10188         * modules/sleep (configure.ac): ... to here.
10189
10190 2011-05-21  Bruno Haible  <bruno@clisp.org>
10191
10192         signbit: Move AC_LIBOBJ invocations to module description.
10193         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10194         * modules/signbit (configure.ac): ... to here.
10195
10196 2011-05-21  Bruno Haible  <bruno@clisp.org>
10197
10198         sigprocmask: Move AC_LIBOBJ invocations to module description.
10199         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10200         gl_PREREQ_SIGPROMASK invocations from here...
10201         * modules/sigprocmask (configure.ac): ... to here.
10202
10203 2011-05-21  Bruno Haible  <bruno@clisp.org>
10204
10205         sigaction: Move AC_LIBOBJ invocations to module description.
10206         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10207         gl_PREREQ_SIGACTION invocations from here...
10208         * modules/sigaction (configure.ac): ... to here.
10209
10210 2011-05-21  Bruno Haible  <bruno@clisp.org>
10211
10212         sig2str: Move AC_LIBOBJ invocations to module description.
10213         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10214         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10215         here...
10216         * modules/sig2str (configure.ac): ... to here.
10217
10218 2011-05-21  Bruno Haible  <bruno@clisp.org>
10219
10220         setlocale: Move AC_LIBOBJ invocations to module description.
10221         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10222         gl_PREREQ_SETLOCALE invocations from here...
10223         * modules/setlocale (configure.ac): ... to here.
10224
10225 2011-05-21  Bruno Haible  <bruno@clisp.org>
10226
10227         unsetenv: Move AC_LIBOBJ invocations to module description.
10228         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10229         and gl_PREREQ_UNSETENV invocations from here...
10230         * modules/unsetenv (configure.ac): ... to here.
10231         (Depends-on): Update.
10232
10233 2011-05-21  Bruno Haible  <bruno@clisp.org>
10234
10235         setenv: Move AC_LIBOBJ invocations to module description.
10236         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10237         here...
10238         * modules/setenv (configure.ac): ... to here.
10239
10240 2011-05-21  Bruno Haible  <bruno@clisp.org>
10241
10242         selinux-h: Move AC_LIBOBJ invocations to module description.
10243         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10244         AC_LIBOBJ invocation from here...
10245         * modules/selinux-h (configure.ac): ... to here.
10246
10247 2011-05-21  Bruno Haible  <bruno@clisp.org>
10248
10249         select: Respect rules for use of AC_LIBOBJ.
10250         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10251         here...
10252         * modules/select (configure.ac): ... to here.
10253
10254 2011-05-21  Bruno Haible  <bruno@clisp.org>
10255
10256         scandir: Move AC_LIBOBJ invocations to module description.
10257         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10258         invocations from here...
10259         * modules/scandir (configure.ac): ... to here.
10260
10261 2011-05-21  Bruno Haible  <bruno@clisp.org>
10262
10263         rpmatch: Move AC_LIBOBJ invocations to module description.
10264         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10265         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10266         here...
10267         * modules/rpmatch (configure.ac): ... to here.
10268
10269 2011-05-21  Bruno Haible  <bruno@clisp.org>
10270
10271         rmdir: Respect rules for use of AC_LIBOBJ.
10272         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10273         * modules/rmdir (configure.ac): ... to here.
10274
10275 2011-05-21  Bruno Haible  <bruno@clisp.org>
10276
10277         renameat: Move AC_LIBOBJ invocations to module description.
10278         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10279         here...
10280         * modules/renameat (configure.ac): ... to here.
10281
10282 2011-05-21  Bruno Haible  <bruno@clisp.org>
10283
10284         rename: Respect rules for use of AC_LIBOBJ.
10285         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10286         here...
10287         * modules/rename (configure.ac): ... to here.
10288
10289 2011-05-21  Bruno Haible  <bruno@clisp.org>
10290
10291         remove: Move AC_LIBOBJ invocations to module description.
10292         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10293         here...
10294         * modules/remove (configure.ac): ... to here.
10295
10296 2011-05-21  Bruno Haible  <bruno@clisp.org>
10297
10298         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10299         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10300         macro.
10301         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10302         * modules/relocatable-lib (configure.ac): ... to here.
10303         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10304         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10305
10306 2011-05-21  Bruno Haible  <bruno@clisp.org>
10307
10308         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10309         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10310         here...
10311         * modules/relocatable-prog (configure.ac): ... to here.
10312
10313 2011-05-21  Bruno Haible  <bruno@clisp.org>
10314
10315         regex: Move AC_LIBOBJ invocations to module description.
10316         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10317         invocations from here...
10318         * modules/regex (configure.ac): ... to here.
10319
10320 2011-05-21  Bruno Haible  <bruno@clisp.org>
10321
10322         realloc-*: Move AC_LIBOBJ invocations to module description.
10323         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10324         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10325         AC_LIBOBJ invocations from here...
10326         * modules/realloc-gnu (configure.ac): ... to here.
10327         * modules/realloc-posix (configure.ac): ... and here.
10328
10329 2011-05-21  Bruno Haible  <bruno@clisp.org>
10330
10331         readutmp: Move AC_LIBOBJ invocations to module description.
10332         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10333         * modules/readutmp (configure.ac): ... to here.
10334
10335 2011-05-21  Bruno Haible  <bruno@clisp.org>
10336
10337         readlinkat: Move AC_LIBOBJ invocations to module description.
10338         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10339         here...
10340         * modules/readlinkat (configure.ac): ... to here.
10341
10342 2011-05-21  Bruno Haible  <bruno@clisp.org>
10343
10344         readlink: Move AC_LIBOBJ invocations to module description.
10345         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10346         gl_PREREQ_READLINK invocations from here...
10347         * modules/readlink (configure.ac): ... to here.
10348
10349 2011-05-21  Bruno Haible  <bruno@clisp.org>
10350
10351         readline: Move AC_LIBOBJ invocations to module description.
10352         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10353         gl_PREREQ_READLINE invocations from here...
10354         * modules/readline (configure.ac): ... to here.
10355
10356 2011-05-21  Bruno Haible  <bruno@clisp.org>
10357
10358         read: Move AC_LIBOBJ invocations to module description.
10359         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10360         * modules/read (configure.ac): ... to here.
10361
10362 2011-05-21  Bruno Haible  <bruno@clisp.org>
10363
10364         rawmemchr: Move AC_LIBOBJ invocations to module description.
10365         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10366         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10367         from here...
10368         * modules/rawmemchr (configure.ac): ... to here.
10369
10370 2011-05-21  Bruno Haible  <bruno@clisp.org>
10371
10372         random_r: Move AC_LIBOBJ invocations to module description.
10373         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10374         gl_PREREQ_RANDOM_R invocations from here...
10375         * modules/random_r (configure.ac): ... to here.
10376
10377 2011-05-21  Bruno Haible  <bruno@clisp.org>
10378
10379         pwrite: Move AC_LIBOBJ invocations to module description.
10380         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10381         * modules/pwrite (configure.ac): ... to here.
10382
10383 2011-05-21  Bruno Haible  <bruno@clisp.org>
10384
10385         putenv: Move AC_LIBOBJ invocations to module description.
10386         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10387         * modules/putenv (configure.ac): ... to here.
10388
10389 2011-05-21  Bruno Haible  <bruno@clisp.org>
10390
10391         login_tty: Move AC_LIBOBJ invocations to module description.
10392         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10393         * modules/login_tty (configure.ac): ... to here.
10394
10395 2011-05-21  Bruno Haible  <bruno@clisp.org>
10396
10397         openpty: Move AC_LIBOBJ invocations to module description.
10398         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10399         * modules/openpty (configure.ac): ... to here.
10400
10401 2011-05-21  Bruno Haible  <bruno@clisp.org>
10402
10403         forkpty: Move AC_LIBOBJ invocations to module description.
10404         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10405         * modules/forkpty (configure.ac): ... to here.
10406
10407 2011-05-21  Bruno Haible  <bruno@clisp.org>
10408
10409         ptsname: Move AC_LIBOBJ invocations to module description.
10410         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10411         invocations from here...
10412         * modules/ptsname (configure.ac): ... to here.
10413
10414 2011-05-21  Bruno Haible  <bruno@clisp.org>
10415
10416         pread: Move AC_LIBOBJ invocations to module description.
10417         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10418         * modules/pread (configure.ac): ... to here.
10419
10420 2011-05-21  Bruno Haible  <bruno@clisp.org>
10421
10422         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10423         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10424         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10425         * modules/posix_spawn (configure.ac): ... to here.
10426         * modules/posix_spawnp (configure.ac): ... and here.
10427
10428 2011-05-21  Bruno Haible  <bruno@clisp.org>
10429
10430         popen: Move AC_LIBOBJ invocations to module description.
10431         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10432         invocations from here...
10433         * modules/popen (configure.ac): ... to here.
10434
10435 2011-05-21  Bruno Haible  <bruno@clisp.org>
10436
10437         poll: Move AC_LIBOBJ invocations to module description.
10438         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10439         invocations from here...
10440         * modules/poll (configure.ac): ... to here.
10441
10442 2011-05-21  Bruno Haible  <bruno@clisp.org>
10443
10444         pipe-posix: Move AC_LIBOBJ invocations to module description.
10445         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10446         * modules/pipe-posix (configure.ac): ... to here.
10447
10448 2011-05-21  Bruno Haible  <bruno@clisp.org>
10449
10450         openat: Respect rules for use of AC_LIBOBJ.
10451         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10452         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10453         * modules/openat (configure.ac): ... to here.
10454
10455 2011-05-21  Bruno Haible  <bruno@clisp.org>
10456
10457         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10458         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10459         invocation from here...
10460         * modules/obstack-printf (configure.ac): ... to here.
10461         * modules/obstack-printf-posix (configure.ac): ... and here.
10462
10463 2011-05-21  Bruno Haible  <bruno@clisp.org>
10464
10465         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10466         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10467         from here...
10468         * modules/nl_langinfo (configure.ac): ... to here.
10469
10470 2011-05-21  Bruno Haible  <bruno@clisp.org>
10471
10472         nanosleep: Move AC_LIBOBJ invocations to module description.
10473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10474         gl_PREREQ_NANOSLEEP invocations from here...
10475         * modules/nanosleep (configure.ac): ... to here.
10476
10477 2011-05-21  Bruno Haible  <bruno@clisp.org>
10478
10479         mountlist: Move AC_LIBOBJ invocations to module description.
10480         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10481         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10482         * modules/mountlist (configure.ac): ... to here.
10483
10484 2011-05-21  Bruno Haible  <bruno@clisp.org>
10485
10486         mktime: Respect rules for use of AC_LIBOBJ.
10487         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10488         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10489         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10490         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10491         * modules/mktime (configure.ac): ... to here.
10492         * modules/mktime-internal (configure.ac): ... and here.
10493         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10494
10495 2011-05-21  Bruno Haible  <bruno@clisp.org>
10496
10497         mkstemps: Move AC_LIBOBJ invocations to module description.
10498         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10499         here...
10500         * modules/mkstemps (configure.ac): ... to here.
10501
10502 2011-05-21  Bruno Haible  <bruno@clisp.org>
10503
10504         mkstemp: Move AC_LIBOBJ invocations to module description.
10505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10506         gl_PREREQ_MKSTEMP invocations from here...
10507         * modules/mkstemp (configure.ac): ... to here.
10508
10509 2011-05-21  Bruno Haible  <bruno@clisp.org>
10510
10511         mkostemps: Move AC_LIBOBJ invocations to module description.
10512         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10513         here...
10514         * modules/mkostemps (configure.ac): ... to here.
10515
10516 2011-05-21  Bruno Haible  <bruno@clisp.org>
10517
10518         mkostemp: Move AC_LIBOBJ invocations to module description.
10519         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10520         gl_PREREQ_MKOSTEMP invocations from here...
10521         * modules/mkostemp (configure.ac): ... to here.
10522
10523 2011-05-21  Bruno Haible  <bruno@clisp.org>
10524
10525         mknod: Move AC_LIBOBJ invocations to module description.
10526         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10527         * modules/mknod (configure.ac): ... to here.
10528
10529 2011-05-21  Bruno Haible  <bruno@clisp.org>
10530
10531         mkfifoat: Move AC_LIBOBJ invocations to module description.
10532         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10533         here...
10534         * modules/mkfifoat (configure.ac): ... to here.
10535
10536 2011-05-21  Bruno Haible  <bruno@clisp.org>
10537
10538         mkfifo: Respect rules for use of AC_LIBOBJ.
10539         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10540         here...
10541         * modules/mkfifo (configure.ac): ... to here.
10542
10543 2011-05-21  Bruno Haible  <bruno@clisp.org>
10544
10545         mkdtemp: Move AC_LIBOBJ invocations to module description.
10546         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10547         invocations from here...
10548         * modules/mkdtemp (configure.ac): ... to here.
10549
10550 2011-05-21  Bruno Haible  <bruno@clisp.org>
10551
10552         mkdir: Move AC_LIBOBJ invocations to module description.
10553         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10554         * modules/mkdir (configure.ac): ... to here.
10555
10556 2011-05-21  Bruno Haible  <bruno@clisp.org>
10557
10558         memset: Move AC_LIBOBJ invocations to module description.
10559         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10560         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10561         here...
10562         * modules/memset (configure.ac): ... to here.
10563
10564 2011-05-21  Bruno Haible  <bruno@clisp.org>
10565
10566         memrchr: Move AC_LIBOBJ invocations to module description.
10567         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10568         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10569         here...
10570         * modules/memrchr (configure.ac): ... to here.
10571
10572 2011-05-21  Bruno Haible  <bruno@clisp.org>
10573
10574         mempcpy: Move AC_LIBOBJ invocations to module description.
10575         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10576         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10577         here...
10578         * modules/mempcpy (configure.ac): ... to here.
10579
10580 2011-05-21  Bruno Haible  <bruno@clisp.org>
10581
10582         memmove: Move AC_LIBOBJ invocations to module description.
10583         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10584         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10585         here...
10586         * modules/memmove (configure.ac): ... to here.
10587
10588 2011-05-21  Bruno Haible  <bruno@clisp.org>
10589
10590         memmem*: Move AC_LIBOBJ invocations to module description.
10591         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10592         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10593         here...
10594         (gl_FUNC_MEMMEM): ... and here...
10595         * modules/memmem-simple (configure.ac): ... to here.
10596         * modules/memmem (configure.ac): ... and here.
10597
10598 2011-05-21  Bruno Haible  <bruno@clisp.org>
10599
10600         memcpy: Move AC_LIBOBJ invocations to module description.
10601         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10602         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10603         here...
10604         * modules/memcpy (configure.ac): ... to here.
10605
10606 2011-05-21  Bruno Haible  <bruno@clisp.org>
10607
10608         memcmp: Simplify autoconf macro.
10609         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10610         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10611         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10612
10613 2011-05-21  Bruno Haible  <bruno@clisp.org>
10614
10615         memcmp: Move AC_LIBOBJ invocations to module description.
10616         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10617         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10618         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10619         * modules/memcmp (configure.ac): ... to here.
10620         (Depends-on): Update conditions.
10621
10622 2011-05-21  Bruno Haible  <bruno@clisp.org>
10623
10624         memchr: Respect rules for use of AC_LIBOBJ.
10625         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10626         invocations from here...
10627         * modules/memchr (configure.ac): ... to here.
10628
10629 2011-05-21  Bruno Haible  <bruno@clisp.org>
10630
10631         mbtowc: Move AC_LIBOBJ invocations to module description.
10632         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10633         invocations from here...
10634         * modules/mbtowc (configure.ac): ... to here.
10635
10636 2011-05-21  Bruno Haible  <bruno@clisp.org>
10637
10638         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10639         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10640         gl_PREREQ_MBSRTOWCS invocations from here...
10641         * modules/mbsrtowcs (configure.ac): ... to here.
10642
10643 2011-05-21  Bruno Haible  <bruno@clisp.org>
10644
10645         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10646         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10647         gl_PREREQ_MBSNRTOWCS invocations from here...
10648         * modules/mbsnrtowcs (configure.ac): ... to here.
10649
10650 2011-05-21  Bruno Haible  <bruno@clisp.org>
10651
10652         mbsinit: Move AC_LIBOBJ invocations to module description.
10653         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10654         invocations from here...
10655         * modules/mbsinit (configure.ac): ... to here.
10656
10657 2011-05-21  Bruno Haible  <bruno@clisp.org>
10658
10659         mbrlen: Move AC_LIBOBJ invocations to module description.
10660         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10661         invocations from here...
10662         * modules/mbrlen (configure.ac): ... to here.
10663
10664 2011-05-21  Bruno Haible  <bruno@clisp.org>
10665
10666         mbrtowc: Respect rules for use of AC_LIBOBJ.
10667         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10668         invocations from here...
10669         * modules/mbrtowc (configure.ac): ... to here.
10670
10671 2011-05-21  Bruno Haible  <bruno@clisp.org>
10672
10673         malloc-*: Move AC_LIBOBJ invocations to module description.
10674         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10675         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10676         AC_LIBOBJ invocations from here...
10677         * modules/malloc-gnu (configure.ac): ... to here.
10678         * modules/malloc-posix (configure.ac): ... and here.
10679
10680 2011-05-21  Bruno Haible  <bruno@clisp.org>
10681
10682         lstat, openat: Respect rules for use of AC_LIBOBJ.
10683         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10684         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10685         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10686         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10687         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10688         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10689         here.
10690         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10691
10692 2011-05-21  Bruno Haible  <bruno@clisp.org>
10693
10694         lseek: Move AC_LIBOBJ invocations to module description.
10695         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10696         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10697         * modules/lseek (configure.ac): ... to here.
10698
10699 2011-05-21  Bruno Haible  <bruno@clisp.org>
10700
10701         linkat: Move AC_LIBOBJ invocations to module description.
10702         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
10703         here...
10704         * modules/linkat (configure.ac): ... to here.
10705
10706 2011-05-21  Bruno Haible  <bruno@clisp.org>
10707
10708         link: Respect rules for use of AC_LIBOBJ.
10709         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
10710         * modules/link (configure.ac): ... to here.
10711
10712 2011-05-21  Bruno Haible  <bruno@clisp.org>
10713
10714         lchown: Move AC_LIBOBJ invocations to module description.
10715         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10716         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10717         * modules/lchown (configure.ac): ... to here.
10718
10719 2011-05-21  Bruno Haible  <bruno@clisp.org>
10720
10721         iswctype: Move AC_LIBOBJ invocations to module description.
10722         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
10723         here...
10724         * modules/iswctype (configure.ac): ... to here.
10725
10726 2011-05-21  Bruno Haible  <bruno@clisp.org>
10727
10728         iswblank: Move AC_LIBOBJ invocations to module description.
10729         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
10730         here...
10731         * modules/iswblank (configure.ac): ... to here.
10732
10733 2011-05-21  Bruno Haible  <bruno@clisp.org>
10734
10735         atanl: Move AC_LIBOBJ invocations to module description.
10736         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
10737         * modules/atanl (configure.ac): ... to here.
10738
10739 2011-05-21  Bruno Haible  <bruno@clisp.org>
10740
10741         acosl: Move AC_LIBOBJ invocations to module description.
10742         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
10743         * modules/acosl (configure.ac): ... to here.
10744
10745 2011-05-21  Bruno Haible  <bruno@clisp.org>
10746
10747         asinl: Respect rules for use of AC_LIBOBJ.
10748         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
10749         * modules/asinl (configure.ac): ... to here.
10750
10751 2011-05-21  Bruno Haible  <bruno@clisp.org>
10752
10753         tanl: Move AC_LIBOBJ invocations to module description.
10754         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10755         * modules/tanl (configure.ac): ... to here.
10756
10757 2011-05-21  Bruno Haible  <bruno@clisp.org>
10758
10759         cosl: Move AC_LIBOBJ invocations to module description.
10760         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10761         * modules/cosl (configure.ac): ... to here.
10762
10763 2011-05-21  Bruno Haible  <bruno@clisp.org>
10764
10765         sinl: Move AC_LIBOBJ invocations to module description.
10766         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10767         * modules/sinl (configure.ac): ... to here.
10768
10769 2011-05-21  Bruno Haible  <bruno@clisp.org>
10770
10771         logl: Move AC_LIBOBJ invocations to module description.
10772         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
10773         * modules/logl (configure.ac): ... to here.
10774
10775 2011-05-21  Bruno Haible  <bruno@clisp.org>
10776
10777         expl: Move AC_LIBOBJ invocations to module description.
10778         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10779         * modules/expl (configure.ac): ... to here.
10780
10781 2011-05-21  Bruno Haible  <bruno@clisp.org>
10782
10783         roundl: Move AC_LIBOBJ invocations to module description.
10784         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10785         * modules/roundl (configure.ac): ... to here.
10786
10787 2011-05-21  Bruno Haible  <bruno@clisp.org>
10788
10789         round: Move AC_LIBOBJ invocations to module description.
10790         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10791         * modules/round (configure.ac): ... to here.
10792
10793 2011-05-21  Bruno Haible  <bruno@clisp.org>
10794
10795         roundf: Move AC_LIBOBJ invocations to module description.
10796         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10797         * modules/roundf (configure.ac): ... to here.
10798
10799 2011-05-21  Bruno Haible  <bruno@clisp.org>
10800
10801         truncl: Move AC_LIBOBJ invocations to module description.
10802         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10803         * modules/truncl (configure.ac): ... to here.
10804
10805 2011-05-21  Bruno Haible  <bruno@clisp.org>
10806
10807         trunc: Move AC_LIBOBJ invocations to module description.
10808         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10809         * modules/trunc (configure.ac): ... to here.
10810
10811 2011-05-21  Bruno Haible  <bruno@clisp.org>
10812
10813         truncf: Move AC_LIBOBJ invocations to module description.
10814         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10815         * modules/truncf (configure.ac): ... to here.
10816
10817 2011-05-21  Bruno Haible  <bruno@clisp.org>
10818
10819         ceill: Move AC_LIBOBJ invocations to module description.
10820         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10821         * modules/ceill (configure.ac): ... to here.
10822
10823 2011-05-21  Bruno Haible  <bruno@clisp.org>
10824
10825         ceil: Move AC_LIBOBJ invocations to module description.
10826         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10827         * modules/ceil (configure.ac): ... to here.
10828
10829 2011-05-21  Bruno Haible  <bruno@clisp.org>
10830
10831         ceilf: Move AC_LIBOBJ invocations to module description.
10832         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10833         * modules/ceilf (configure.ac): ... to here.
10834
10835 2011-05-21  Bruno Haible  <bruno@clisp.org>
10836
10837         floorl: Respect rules for use of AC_LIBOBJ.
10838         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10839         * modules/floorl (configure.ac): ... to here.
10840
10841 2011-05-21  Bruno Haible  <bruno@clisp.org>
10842
10843         floor: Respect rules for use of AC_LIBOBJ.
10844         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10845         * modules/floor (configure.ac): ... to here.
10846
10847 2011-05-21  Bruno Haible  <bruno@clisp.org>
10848
10849         floorf: Move AC_LIBOBJ invocations to module description.
10850         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10851         * modules/floorf (configure.ac): ... to here.
10852
10853 2011-05-20  Bruno Haible  <bruno@clisp.org>
10854
10855         sqrtl: Respect rules for use of AC_LIBOBJ.
10856         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10857         * modules/sqrtl (configure.ac): ... to here.
10858
10859 2011-05-20  Bruno Haible  <bruno@clisp.org>
10860
10861         ldexpl: Respect rules for use of AC_LIBOBJ.
10862         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10863         * modules/ldexpl (configure.ac): ... to here.
10864
10865 2011-05-20  Bruno Haible  <bruno@clisp.org>
10866
10867         frexpl*: Respect rules for use of AC_LIBOBJ.
10868         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10869         invocation from here...
10870         * modules/frexpl (configure.ac): ... to here.
10871         * modules/frexpl-nolibm (configure.ac): ... and here.
10872
10873 2011-05-20  Bruno Haible  <bruno@clisp.org>
10874
10875         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10876         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10877         invocation from here...
10878         * modules/frexp (configure.ac): ... to here.
10879         * modules/frexp-nolibm (configure.ac): ... and here.
10880
10881 2011-05-20  Bruno Haible  <bruno@clisp.org>
10882
10883         isnan: Respect rules for use of AC_LIBOBJ.
10884         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10885         invocations here.
10886         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10887         REPLACE_ISNAN.
10888         * modules/isnand (configure.ac): Likewise.
10889         * modules/isnanl (configure.ac): Likewise.
10890
10891 2011-05-20  Bruno Haible  <bruno@clisp.org>
10892
10893         isnanl*: Respect rules for use of AC_LIBOBJ.
10894         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10895         invocation from here...
10896         * modules/isnanl (configure.ac): ... to here.
10897         * modules/isnanl-nolibm (configure.ac): ... and here.
10898
10899 2011-05-20  Bruno Haible  <bruno@clisp.org>
10900
10901         isnand*: Move AC_LIBOBJ invocations to module description.
10902         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10903         invocation from here...
10904         * modules/isnand (configure.ac): ... to here.
10905         * modules/isnand-nolibm (configure.ac): ... and here.
10906
10907 2011-05-20  Bruno Haible  <bruno@clisp.org>
10908
10909         isnanf*: Move AC_LIBOBJ invocations to module description.
10910         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10911         invocation from here...
10912         * modules/isnanf (configure.ac): ... to here.
10913         * modules/isnanf-nolibm (configure.ac): ... and here.
10914
10915 2011-05-20  Bruno Haible  <bruno@clisp.org>
10916
10917         isnan*: Separate the AC_LIBOBJ invocations.
10918         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10919         AC_LIBOBJ invocation.
10920         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10921         here.
10922         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10923         AC_LIBOBJ invocation.
10924         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10925         here.
10926         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10927         AC_LIBOBJ invocation.
10928         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10929         here.
10930         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10931
10932 2011-05-08  Bruno Haible  <bruno@clisp.org>
10933
10934         isinf: Move AC_LIBOBJ invocations to module description.
10935         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10936         * modules/isinf (configure.ac): ... to here.
10937
10938 2011-05-08  Bruno Haible  <bruno@clisp.org>
10939
10940         isfinite: Move AC_LIBOBJ invocations to module description.
10941         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10942         * modules/isfinite (configure.ac): ... to here.
10943
10944 2011-05-08  Bruno Haible  <bruno@clisp.org>
10945
10946         isblank: Move AC_LIBOBJ invocations to module description.
10947         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10948         here...
10949         * modules/isblank (configure.ac): ... to here.
10950
10951 2011-05-08  Bruno Haible  <bruno@clisp.org>
10952
10953         isapipe: Move AC_LIBOBJ invocations to module description.
10954         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10955         gl_PREREQ_ISAPIPE invocations from here...
10956         * modules/isapipe (configure.ac): ... to here.
10957         (Depends-on): Update condition.
10958
10959 2011-05-08  Bruno Haible  <bruno@clisp.org>
10960
10961         ioctl: Move AC_LIBOBJ invocations to module description.
10962         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10963         invocations from here...
10964         * modules/ioctl (configure.ac): ... to here.
10965         (Depends-on): Update condition.
10966
10967 2011-05-08  Bruno Haible  <bruno@clisp.org>
10968
10969         imaxdiv: Move AC_LIBOBJ invocations to module description.
10970         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10971         invocations from here...
10972         * modules/imaxdiv (configure.ac): ... to here.
10973
10974 2011-05-08  Bruno Haible  <bruno@clisp.org>
10975
10976         imaxabs: Move AC_LIBOBJ invocations to module description.
10977         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10978         invocations from here...
10979         * modules/imaxabs (configure.ac): ... to here.
10980
10981 2011-05-08  Bruno Haible  <bruno@clisp.org>
10982
10983         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10984         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10985         AC_LIBOBJ invocations from here...
10986         * modules/getaddrinfo (configure.ac): ... to here.
10987         (Depends-on): Add conditions.
10988
10989 2011-05-08  Bruno Haible  <bruno@clisp.org>
10990
10991         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10992         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10993         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10994         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10995         (gl_PREREQ_INET_PTON): ... from here.
10996         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10997         gl_PREREQ_INET_PTON here.
10998         (Depends-on): Update condition.
10999
11000 2011-05-08  Bruno Haible  <bruno@clisp.org>
11001
11002         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11003         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11004         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11005         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11006         (gl_PREREQ_INET_NTOP): ... from here.
11007         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11008         gl_PREREQ_INET_NTOP here.
11009         (Depends-on): Update condition.
11010
11011 2011-05-08  Bruno Haible  <bruno@clisp.org>
11012
11013         iconv_open: Move AC_LIBOBJ invocations to module description.
11014         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11015         AC_LIBOBJ invocations from here...
11016         * modules/iconv_open (configure.ac): ... to here.
11017
11018 2011-05-08  Bruno Haible  <bruno@clisp.org>
11019
11020         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11021         If module 'iconv_open' is among the main modules and module
11022         'iconv_open-utf' is among the tests dependencies, then
11023         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11024         return the special iconv_t values. Therefore iconv() and iconv_close()
11025         must support these special iconv_t values, already in lib, not only in
11026         tests.
11027         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11028         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11029         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11030         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11031         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11032         (Depends-on): Add the dependencies of iconv_open-utf.
11033         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11034         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11035         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11036
11037 2011-05-08  Bruno Haible  <bruno@clisp.org>
11038
11039         group-member: Move AC_LIBOBJ invocations to module description.
11040         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11041         gl_PREREQ_GROUP_MEMBER invocations from here...
11042         * modules/group-member (configure.ac): ... to here.
11043
11044 2011-05-08  Bruno Haible  <bruno@clisp.org>
11045
11046         grantpt: Move AC_LIBOBJ invocations to module description.
11047         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11048         invocations from here...
11049         * modules/grantpt (configure.ac): ... to here.
11050
11051 2011-05-08  Bruno Haible  <bruno@clisp.org>
11052
11053         glob: Move AC_LIBOBJ invocations to module description.
11054         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11055         from here...
11056         * modules/glob (configure.ac): ... to here.
11057
11058 2011-05-08  Bruno Haible  <bruno@clisp.org>
11059
11060         getusershell: Move AC_LIBOBJ invocations to module description.
11061         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11062         Move AC_LIBOBJ invocation from here...
11063         * modules/getusershell (configure.ac): ... to here.
11064         (Depends-on): Update condition.
11065
11066 2011-05-08  Bruno Haible  <bruno@clisp.org>
11067
11068         gettimeofday: Move AC_LIBOBJ invocations to module description.
11069         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11070         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11071         gl_PREREQ_GETTIMEOFDAY invocations from here...
11072         * modules/gettimeofday (configure.ac): ... to here.
11073
11074 2011-05-08  Bruno Haible  <bruno@clisp.org>
11075
11076         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11077         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11078         just gl_FUNC_TZSET.
11079         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11080         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11081         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11082         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11083
11084 2011-05-08  Bruno Haible  <bruno@clisp.org>
11085
11086         getsubopt: Move AC_LIBOBJ invocations to module description.
11087         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11088         gl_PREREQ_GETSUBOPT invocations from here...
11089         * modules/getsubopt (configure.ac): ... to here.
11090
11091 2011-05-08  Bruno Haible  <bruno@clisp.org>
11092
11093         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11094         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11095         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11096         * modules/getpass-gnu (configure.ac): ... to here.
11097
11098 2011-05-08  Bruno Haible  <bruno@clisp.org>
11099
11100         getpass: Move AC_LIBOBJ invocations to module description.
11101         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11102         gl_PREREQ_GETPASS invocations from here...
11103         * modules/getpass (configure.ac): ... to here.
11104
11105 2011-05-08  Bruno Haible  <bruno@clisp.org>
11106
11107         getpagesize: Move AC_LIBOBJ invocations to module description.
11108         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11109         from here...
11110         * modules/getpagesize (configure.ac): ... to here.
11111
11112 2011-05-08  Bruno Haible  <bruno@clisp.org>
11113
11114         getopt: Move AC_LIBOBJ invocations to module description.
11115         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11116         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11117         invocations from here...
11118         * modules/getopt-gnu (configure.ac): ... to here.
11119         * modules/getopt-posix (configure.ac): ... and here.
11120         (Depends-on): Update condition.
11121
11122 2011-05-08  Bruno Haible  <bruno@clisp.org>
11123
11124         getopt, argp: Respect rules for use of AC_LIBOBJ.
11125         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11126         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11127         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11128         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11129
11130 2011-05-08  Bruno Haible  <bruno@clisp.org>
11131
11132         getlogin_r: Move AC_LIBOBJ invocations to module description.
11133         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11134         gl_PREREQ_GETLOGIN_R invocations from here...
11135         * modules/getlogin_r (configure.ac): ... to here.
11136
11137 2011-05-08  Bruno Haible  <bruno@clisp.org>
11138
11139         getlogin: Move AC_LIBOBJ invocations to module description.
11140         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11141         here...
11142         * modules/getlogin (configure.ac): ... to here.
11143
11144 2011-05-08  Bruno Haible  <bruno@clisp.org>
11145
11146         getloadavg: Move AC_LIBOBJ invocations to module description.
11147         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11148         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11149         * modules/getloadavg (configure.ac): ... to here.
11150
11151 2011-05-08  Bruno Haible  <bruno@clisp.org>
11152
11153         gethrxtime: Move AC_LIBOBJ invocations to module description.
11154         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11155         LIB_GETHRXTIME from here...
11156         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11157         invocations from here...
11158         * modules/gethrxtime (configure.ac): ... to here.
11159
11160 2011-05-08  Bruno Haible  <bruno@clisp.org>
11161
11162         gethostname: Move AC_LIBOBJ invocations to module description.
11163         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11164         gl_PREREQ_GETHOSTNAME invocations from here...
11165         * modules/gethostname (configure.ac): ... to here.
11166
11167 2011-05-08  Bruno Haible  <bruno@clisp.org>
11168
11169         getgroups: Move AC_LIBOBJ invocations to module description.
11170         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11171         here...
11172         * modules/getgroups (configure.ac): ... to here.
11173
11174 2011-05-08  Bruno Haible  <bruno@clisp.org>
11175
11176         getdtablesize: Move AC_LIBOBJ invocations to module description.
11177         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11178         invocation from here...
11179         * modules/getdtablesize (configure.ac): ... to here.
11180
11181 2011-05-08  Bruno Haible  <bruno@clisp.org>
11182
11183         getdomainname: Move AC_LIBOBJ invocations to module description.
11184         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11185         gl_PREREQ_GETDOMAINNAME invocations from here...
11186         * modules/getdomainname (configure.ac): ... to here.
11187
11188 2011-05-08  Bruno Haible  <bruno@clisp.org>
11189
11190         getline: Move AC_LIBOBJ invocations to module description.
11191         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11192         invocations from here...
11193         * modules/getline (configure.ac): ... to here.
11194
11195 2011-05-08  Bruno Haible  <bruno@clisp.org>
11196
11197         getline: Simplify.
11198         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11199         It's already handled through the module dependency.
11200
11201 2011-05-08  Bruno Haible  <bruno@clisp.org>
11202
11203         getdelim: Move AC_LIBOBJ invocations to module description.
11204         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11205         and gl_PREREQ_GETDELIM invocations from here...
11206         * modules/getdelim (configure.ac): ... to here.
11207         (Depends-on): Fix condition.
11208
11209 2011-05-08  Bruno Haible  <bruno@clisp.org>
11210
11211         getcwd: Move AC_LIBOBJ invocations to module description.
11212         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11213         invocations from here...
11214         * modules/getcwd (configure.ac): ... to here.
11215
11216 2011-05-08  Bruno Haible  <bruno@clisp.org>
11217
11218         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11219         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11220         here...
11221         * modules/getcwd-lgpl (configure.ac): ... to here.
11222
11223 2011-05-07  Bruno Haible  <bruno@clisp.org>
11224
11225         crypto/gc: Move AC_LIBOBJ invocations to module description.
11226         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11227         * modules/crypto/gc (configure.ac): ... to here.
11228
11229 2011-05-07  Bruno Haible  <bruno@clisp.org>
11230
11231         fwriting: Move AC_LIBOBJ invocations to module description.
11232         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11233         here...
11234         * modules/fwriting (configure.ac): ... to here.
11235
11236 2011-05-07  Bruno Haible  <bruno@clisp.org>
11237
11238         fwritable: Move AC_LIBOBJ invocations to module description.
11239         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11240         here...
11241         * modules/fwritable (configure.ac): ... to here.
11242
11243 2011-05-07  Bruno Haible  <bruno@clisp.org>
11244
11245         futimens: Move AC_LIBOBJ invocations to module description.
11246         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11247         here...
11248         * modules/futimens (configure.ac): ... to here.
11249
11250 2011-05-07  Bruno Haible  <bruno@clisp.org>
11251
11252         ftruncate: Move AC_LIBOBJ invocations to module description.
11253         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11254         gl_PREREQ_FTRUNCATE invocations from here...
11255         * modules/ftruncate (configure.ac): ... to here.
11256
11257 2011-05-07  Bruno Haible  <bruno@clisp.org>
11258
11259         fsync: Move AC_LIBOBJ invocations to module description.
11260         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11261         invocations from here...
11262         * modules/fsync (configure.ac): ... to here.
11263
11264 2011-05-07  Bruno Haible  <bruno@clisp.org>
11265
11266         fsusage: Move AC_LIBOBJ invocations to module description.
11267         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11268         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11269         * modules/fsusage (configure.ac): ... to here.
11270
11271 2011-05-07  Bruno Haible  <bruno@clisp.org>
11272
11273         freopen: Move AC_LIBOBJ invocations to module description.
11274         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11275         invocations from here...
11276         * modules/freopen (configure.ac): ... to here.
11277
11278 2011-05-07  Bruno Haible  <bruno@clisp.org>
11279
11280         free: Move AC_LIBOBJ invocations to module description.
11281         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11282         invocations from here...
11283         * modules/free (configure.ac): ... to here.
11284
11285 2011-05-07  Bruno Haible  <bruno@clisp.org>
11286
11287         freadable: Move AC_LIBOBJ invocations to module description.
11288         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11289         here...
11290         * modules/freadable (configure.ac): ... to here.
11291
11292 2011-05-07  Bruno Haible  <bruno@clisp.org>
11293
11294         fpurge: Move AC_LIBOBJ invocations to module description.
11295         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11296         invocations from here...
11297         * modules/fpurge (configure.ac): ... to here.
11298
11299 2011-05-07  Bruno Haible  <bruno@clisp.org>
11300
11301         fpending: Move AC_LIBOBJ invocations to module description.
11302         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11303         gl_FUNC_FPENDING.
11304         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11305         invocations from here...
11306         * modules/fpending (configure.ac): ... to here.
11307
11308 2011-05-07  Bruno Haible  <bruno@clisp.org>
11309
11310         fopen: Move AC_LIBOBJ invocations to module description.
11311         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11312         invocations from here...
11313         * modules/fopen (configure.ac): ... to here.
11314
11315 2011-05-07  Bruno Haible  <bruno@clisp.org>
11316
11317         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11318         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11319         gl_FUNC_FNMATCH_POSIX.
11320         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11321         invocations from here...
11322         * modules/fnmatch (configure.ac): ... to here.
11323         * modules/fnmatch-gnu (configure.ac): ... and here.
11324
11325 2011-05-07  Bruno Haible  <bruno@clisp.org>
11326
11327         flock: Move AC_LIBOBJ invocations to module description.
11328         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11329         invocations from here...
11330         * modules/flock (configure.ac): ... to here.
11331
11332 2011-05-07  Bruno Haible  <bruno@clisp.org>
11333
11334         fileblocks: Move AC_LIBOBJ invocations to module description.
11335         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11336         gl_PREREQ_FILEBLOCKS invocations from here...
11337         * modules/fileblocks (configure.ac): ... to here.
11338
11339 2011-05-06  Bruno Haible  <bruno@clisp.org>
11340
11341         fflush: Move AC_LIBOBJ invocations to module description.
11342         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11343         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11344         invocations from here...
11345         * modules/fflush (configure.ac): ... to here.
11346
11347 2011-05-06  Bruno Haible  <bruno@clisp.org>
11348
11349         fdopendir: Move AC_LIBOBJ invocations to module description.
11350         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11351         here...
11352         * modules/fdopendir (configure.ac): ... to here.
11353         (Depends-on): Improve conditions.
11354
11355 2011-05-06  Bruno Haible  <bruno@clisp.org>
11356
11357         _Exit: Move AC_LIBOBJ invocations to module description.
11358         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11359         invocations from here...
11360         * modules/_Exit (configure.ac): ... to here.
11361
11362 2011-05-21  Bruno Haible  <bruno@clisp.org>
11363
11364         euidaccess: Respect rules for use of AC_LIBOBJ.
11365         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11366         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11367         from here...
11368         * modules/euidaccess (configure.ac): ... to here.
11369
11370 2011-05-06  Bruno Haible  <bruno@clisp.org>
11371
11372         error: Move AC_LIBOBJ invocations to module description.
11373         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11374         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11375         invocations from here...
11376         * modules/error (configure.ac): ... to here.
11377
11378 2011-05-06  Bruno Haible  <bruno@clisp.org>
11379
11380         duplocale: Move AC_LIBOBJ invocations to module description.
11381         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11382         gl_PREREQ_DUPLOCALE invocations from here...
11383         * modules/duplocale (configure.ac): ... to here.
11384
11385 2011-05-05  Bruno Haible  <bruno@clisp.org>
11386
11387         dirfd: Move AC_LIBOBJ invocations to module description.
11388         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11389         gl_FUNC_DIRFD.
11390         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11391         here...
11392         * modules/dirfd (configure.ac): ... to here.
11393         (Depends-on): Fix condition.
11394
11395 2011-05-05  Bruno Haible  <bruno@clisp.org>
11396
11397         chown: Respect rules for use of AC_LIBOBJ.
11398         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11399         * modules/chown (configure.ac): ... to here.
11400
11401 2011-05-05  Bruno Haible  <bruno@clisp.org>
11402
11403         chdir-long: Move AC_LIBOBJ invocations to module description.
11404         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11405         gl_PREREQ_CHDIR_LONG invocations from here...
11406         * modules/chdir-long (configure.ac): ... to here.
11407
11408 2011-05-05  Bruno Haible  <bruno@clisp.org>
11409
11410         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11411         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11412         from here...
11413         * modules/canonicalize-lgpl (configure.ac): ... to here.
11414
11415 2011-05-05  Bruno Haible  <bruno@clisp.org>
11416
11417         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11418         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11419         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11420         REPLACE_CALLOC.
11421         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11422         * modules/calloc-gnu (configure.ac): Likewise.
11423
11424 2011-05-05  Bruno Haible  <bruno@clisp.org>
11425
11426         btowc: Move AC_LIBOBJ invocations to module description.
11427         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11428         invocations from here...
11429         * modules/btowc (configure.ac): ... to here.
11430
11431 2011-05-21  Bruno Haible  <bruno@clisp.org>
11432
11433         atexit: Move AC_LIBOBJ invocations to module description.
11434         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11435         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11436         here...
11437         * modules/atexit (configure.ac): ... to here.
11438
11439 2011-05-05  Bruno Haible  <bruno@clisp.org>
11440
11441         atoll: Move AC_LIBOBJ invocations to module description.
11442         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11443         invocations from here...
11444         * modules/atoll (configure.ac): ... to here.
11445
11446 2011-05-05  Bruno Haible  <bruno@clisp.org>
11447
11448         argz: Move AC_LIBOBJ invocations to module description.
11449         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11450         * modules/argz (configure.ac): ... to here.
11451
11452 2011-05-05  Bruno Haible  <bruno@clisp.org>
11453
11454         alphasort: Move AC_LIBOBJ invocations to module description.
11455         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11456         gl_PREREQ_ALPHASORT invocations from here...
11457         * modules/alphasort (configure.ac): ... to here.
11458
11459 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11460
11461         verify: new macro verify_expr; verify_true deprecated
11462         * NEWS: Mention this.
11463         * doc/verify.texi (Compile-time Assertions): Document this.
11464         * lib/verify.h (verify_true): Deprecate.
11465         (verify_expr): New macro.
11466         * tests/test-verify.c (function): Test verify_expr.
11467
11468 2011-06-14  Jim Meyering  <meyering@redhat.com>
11469
11470         init.sh: give more portable redirection-related advice in a comment
11471         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11472         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11473         for lots of discussion.  Stefano Lattarini suggested the solution
11474         of putting "9>&2" after the command.  Reported by Bruno Haible.
11475
11476 2011-06-13  Bruno Haible  <bruno@clisp.org>
11477
11478         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11479         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11480         'none'.
11481
11482 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11483
11484         ftoastr: use strtof only if HAVE_STRTOF
11485         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11487         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11488         * modules/ftoastr (configure.ac): Check for strtof.
11489
11490 2011-06-13  Bruno Haible  <bruno@clisp.org>
11491
11492         gnulib-tool: Addendum to 2011-06-08 commit.
11493         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11494         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11495
11496 2011-06-13  Bruno Haible  <bruno@clisp.org>
11497
11498         fseeko: Provide a non-inline replacement of fseek().
11499         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11500         * modules/fseeko (Depends-on): Add fseek.
11501         * modules/fseek (License): Change to LGPLv2+.
11502
11503 2011-06-13  Bruno Haible  <bruno@clisp.org>
11504
11505         ftello: Provide a non-inline replacement of ftell().
11506         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11507         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11508         not have ftello() (such as on mingw).
11509         * modules/ftello (Depends-on): Add ftell.
11510         * modules/ftell (License): Change to LGPLv2+.
11511
11512 2011-05-07  Bruno Haible  <bruno@clisp.org>
11513
11514         ftell: Move AC_LIBOBJ invocations to module description.
11515         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11516         * modules/ftell (configure.ac): ... to here.
11517
11518 2011-05-07  Bruno Haible  <bruno@clisp.org>
11519
11520         ftello: Respect rules for use of AC_LIBOBJ.
11521         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11522         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11523         here...
11524         * modules/ftello (configure.ac): ... to here.
11525
11526 2011-05-07  Bruno Haible  <bruno@clisp.org>
11527
11528         fseeko: Simplify.
11529         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11530         (gl_FUNC_FSEEKO): Inline it here.
11531
11532 2011-05-07  Bruno Haible  <bruno@clisp.org>
11533
11534         fseek: Move AC_LIBOBJ invocations to module description.
11535         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11536         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11537         * modules/fseek (configure.ac): ... to here.
11538
11539 2011-05-07  Bruno Haible  <bruno@clisp.org>
11540
11541         fseek: Respect rules for use of AC_LIBOBJ.
11542         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11543         here...
11544         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11545
11546 2011-05-07  Bruno Haible  <bruno@clisp.org>
11547
11548         fseeko: Respect rules for use of AC_LIBOBJ.
11549         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11550         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11551         here...
11552         * modules/fseeko (configure.ac): ... to here.
11553
11554 2011-06-13  Bruno Haible  <bruno@clisp.org>
11555
11556         gnulib-tool: Allow comments in the 'Depends-on' section.
11557         * doc/gnulib.texi (Module description): Mention comment syntax in the
11558         Depends-on section.
11559         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11560
11561 2011-06-13  Bruno Haible  <bruno@clisp.org>
11562
11563         file-set.h: guard __attibute__ use, now that it's not always defined
11564         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11565         versions that support it.  This fixes a coreutils build failure with
11566         the vendor cc on HP-UX 11.31.
11567
11568 2011-06-12  Bruno Haible  <bruno@clisp.org>
11569
11570         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11571         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11572         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11573         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11574         (acl, aclsort): New declarations.
11575         (aclv_nontrivial): New declaration.
11576         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11577         (file_has_acl): Read also the second kind of HP-UX ACLs.
11578         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11579         kind of HP-UX ACLs if the first kind fails.
11580         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11581         second kind of HP-UX ACLs.
11582         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11583         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11584         agree.
11585         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11586         hpuxjfs.
11587         Handle hpuxjfs.
11588         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11589         hpuxjfs.
11590         Handle hpuxjfs.
11591         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11592         (func_test_same_acls): Use both lsacl and getacl.
11593         Handle hpuxjfs.
11594         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11595         (func_test_same_acls): Use both lsacl and getacl.
11596         Handle hpuxjfs.
11597
11598 2011-06-12  Bruno Haible  <bruno@clisp.org>
11599
11600         acl: Complete the 2010-08-10 fix.
11601         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11602         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11603         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11604         explicitly.
11605         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11606         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11607
11608 2011-06-12  Bruno Haible  <bruno@clisp.org>
11609
11610         spawn-pipe tests: Comments.
11611         * tests/test-spawn-pipe-child.c (main): Update comment.
11612         Reported by James Youngman <jay@gnu.org>.
11613
11614 2011-06-11  James Youngman  <jay@gnu.org>
11615
11616         New module 'stat-size'.
11617         * modules/stat-size: New module.  Provides macros for accessing
11618         file size information in instances of struct stat.  Depends on the
11619         fileblocks module because it calls st_blocks.
11620         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11621         * doc/gnulib.texi: Include stat-size.texi.
11622         * doc/stat-size.texi: Documentation for this module.
11623         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11624         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11625         AC_STRUCT_ST_BLOCKS.
11626
11627 2011-06-09  Bruno Haible  <bruno@clisp.org>
11628
11629         thread: Support pthreads-win32.
11630         * lib/glthread/thread.h (gl_thread_self): Define differently on
11631         pthreads-win32.
11632         (gl_null_thread): New declaration.
11633         (gl_thread_self_pointer): New macro.
11634         * lib/glthread/thread.c (gl_null_thread): New constant.
11635         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11636         gl_thread_self.
11637         * tests/test-tls.c: Likewise.
11638         Suggested by Paul Eggert. Reported by Eric Blake.
11639
11640 2011-06-09  Bruno Haible  <bruno@clisp.org>
11641
11642         thread: Fix confusion between NULL and 0.
11643         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11644         Reported by Paul Eggert.
11645
11646 2011-06-09  Bruno Haible  <bruno@clisp.org>
11647
11648         spawn-pipe tests: Avoid test failure on HP-UX 11.
11649         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11650         is closed.
11651
11652 2011-06-09  Bruno Haible  <bruno@clisp.org>
11653
11654         acl tests: Fix compilation error on HP-UX 11.
11655         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11656
11657 2011-06-09  Bruno Haible  <bruno@clisp.org>
11658
11659         rmdir: Avoid test failure on HP-UX 10.20.
11660         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11661         EEXIST.
11662
11663 2011-06-08  Eric Blake  <eblake@redhat.com>
11664
11665         perror: fix test on mingw
11666         * modules/perror-tests (Depends-on): Add dup2.
11667
11668         strerror_r-posix: fix on MacOS
11669         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11670         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11671         logic bug.
11672         * lib/strerror_r.c (strerror_r): Fix the bug.
11673         * lib/strerror.c (strerror): Likewise.
11674         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11675         problem.
11676         * doc/posix-functions/strerror.texi (strerror): Likewise.
11677         * doc/posix-functions/perror.texi (perror): Likewise.
11678         * tests/test-strerror.c (main): Enhance test.
11679         * tests/test-strerror_r.c (main): Likewise.
11680
11681 2011-06-08  Bruno Haible  <bruno@clisp.org>
11682
11683         gnulib-tool: Better isolation between different gnulib-tool invocations.
11684         * gnulib-tool: New option --witness-c-macro.
11685         (witness_c_macro): New variable.
11686         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11687         AM_CPPFLAGS define it as a C macro.
11688         (func_emit_tests_Makefile_am): Likewise.
11689         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11690         read it from there.
11691         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11692         m4_define, not AC_DEFUN.
11693         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11694         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11695         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11696         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11697         s|...|...|, to substitute the values of the GNULIB_* module indicator
11698         variables.
11699         * modules/dirent (Makefile.am): Likewise.
11700         * modules/fcntl-h (Makefile.am): Likewise.
11701         * modules/iconv-h (Makefile.am): Likewise.
11702         * modules/langinfo (Makefile.am): Likewise.
11703         * modules/locale (Makefile.am): Likewise.
11704         * modules/math (Makefile.am): Likewise.
11705         * modules/netdb (Makefile.am): Likewise.
11706         * modules/poll-h (Makefile.am): Likewise.
11707         * modules/pty (Makefile.am): Likewise.
11708         * modules/search (Makefile.am): Likewise.
11709         * modules/signal (Makefile.am): Likewise.
11710         * modules/spawn (Makefile.am): Likewise.
11711         * modules/stdio (Makefile.am): Likewise.
11712         * modules/stdlib (Makefile.am): Likewise.
11713         * modules/string (Makefile.am): Likewise.
11714         * modules/sys_ioctl (Makefile.am): Likewise.
11715         * modules/sys_select (Makefile.am): Likewise.
11716         * modules/sys_socket (Makefile.am): Likewise.
11717         * modules/sys_stat (Makefile.am): Likewise.
11718         * modules/sys_times (Makefile.am): Likewise.
11719         * modules/sys_utsname (Makefile.am): Likewise.
11720         * modules/sys_wait (Makefile.am): Likewise.
11721         * modules/termios (Makefile.am): Likewise.
11722         * modules/time (Makefile.am): Likewise.
11723         * modules/unistd (Makefile.am): Likewise.
11724         * modules/wchar (Makefile.am): Likewise.
11725
11726 2011-06-08  Eric Blake  <eblake@redhat.com>
11727
11728         strerror: simplify replacement
11729         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
11730         * modules/strerror (configure.ac): No prereqs needed here...
11731         * modules/strerror-override (configure.ac): ...but this needs it.
11732         (Files): Add file for needed prereq macro.
11733
11734 2011-06-08  Bruno Haible  <bruno@clisp.org>
11735
11736         strerror_r-posix: Tweaks.
11737         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
11738         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
11739         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
11740         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
11741         (gl_FUNC_STRERROR_R): ... to here.
11742         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
11743
11744 2011-06-07  Eric Blake  <eblake@redhat.com>
11745
11746         perror: document fixed bugs
11747         * doc/posix-functions/perror.texi (perror): Document recent
11748         patches.
11749
11750 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11751
11752         stat-time: get_stat_birthtime failure is better-defined
11753         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11754         return a timestamp whose tv_sec and tv_nsec values are both -1.
11755         Previously, the spec said only that the tv_nsec value was negative.
11756         This upward-compatible change simplifies GNU tar a bit.
11757
11758 2011-06-07  Eric Blake  <eblake@redhat.com>
11759
11760         strerror_r-posix: work around cygwin 1.7.9
11761         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11762         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11763         bug without replacing strerror_r.
11764         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11765         strerror_r is buggy, but without requiring strerror_r compilation.
11766         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11767
11768         test-perror: relax test to ignore cygwin bug
11769         * tests/test-perror2.c (main): Relax test on requiring detection
11770         of stream errors, and use unbuffered stream.
11771         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
11772         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11773         * doc/posix-functions/fputc.texi (fputc): Likewise.
11774         * doc/posix-functions/fputs.texi (fputs): Likewise.
11775         * doc/posix-functions/fputws.texi (fputws): Likewise.
11776         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11777         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11778         * doc/posix-functions/getopt.texi (getopt): Likewise.
11779         * doc/posix-functions/perror.texi (perror): Likewise.
11780         * doc/posix-functions/printf.texi (printf): Likewise.
11781         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11782         * doc/posix-functions/psignal.texi (psignal): Likewise.
11783         * doc/posix-functions/putc.texi (putc): Likewise.
11784         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11785         Likewise.
11786         * doc/posix-functions/putchar.texi (putchar): Likewise.
11787         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11788         Likewise.
11789         * doc/posix-functions/puts.texi (puts): Likewise.
11790         * doc/posix-functions/putwc.texi (putwc): Likewise.
11791         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11792         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11793         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11794         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11795         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11796         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11797         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11798         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11799
11800 2011-05-22  Bruno Haible  <bruno@clisp.org>
11801
11802         strerror: Move AC_LIBOBJ invocations to module description.
11803         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11804         gl_PREREQ_STRERROR invocations from here...
11805         * modules/strerror (configure.ac): ... to here.
11806
11807 2011-05-21  Bruno Haible  <bruno@clisp.org>
11808
11809         perror: Use common idiom.
11810         * modules/perror (configure.ac): Reorder statements.
11811
11812 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11813
11814         tests: fix usage message in 'mktempd_'
11815         * tests/init.sh (mktempd_): In the usage message, use literal
11816         'mktempd_', not '$ME' (which is even undefined), as the name of
11817         the subroutine.
11818
11819 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11820
11821         tests init: new function 'fatal_', for hard errors
11822         Before this patch, the only way offered by tests/init.sh to
11823         properly signal a hard error was the `framework_failure_'
11824         function.  But the error message issued by that function,
11825         as its name would suggest, refers to a set-up failure in the
11826         testsuite, while hard errors can obviously also be due to
11827         other reasons.  The best way to fix this inconsistency is to
11828         introduce a new function with a more general error message.
11829         * tests/init.sh (fatal_): New function.
11830
11831 2011-06-06  Eric Blake  <eblake@redhat.com>
11832
11833         canonicalize-lgpl: use common idiom
11834         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11835         over newer POSIX -Rf.
11836         Reported by Bruno Haible.
11837
11838         canonicalize-lgpl: work around AIX realpath bug
11839         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11840         * doc/posix-functions/realpath.texi (realpath): Document it.
11841         Reported by Bruno Haible.
11842
11843         strerror: work around FreeBSD bug
11844         * lib/strerror.c (strerror): Special case 0.
11845         Reported by Bruno Haible.
11846
11847         strerror-override: avoid bloating errno module
11848         * modules/errno (Files, configure.ac): Move replacement strings...
11849         * modules/strerror-override: ...to new module.
11850         * modules/strerror (Depends-on): Add strerror-override.
11851         * modules/strerror_r-posix (Depends-on): Likewise.
11852         * MODULES.html.sh: Document new module.
11853         Reported by Bruno Haible.
11854
11855 2011-06-06  Bruno Haible  <bruno@clisp.org>
11856
11857         spawn-pipe tests: Rename program.
11858         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11859         * tests/test-spawn-pipe-child.c: Update comment.
11860         * tests/test-spawn-pipe.sh: Update.
11861         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11862
11863         spawn-pipe tests: Link the child program only against libc.
11864         * tests/test-spawn-pipe-child.c: New file, extracted from
11865         tests/test-spawn-pipe.c.
11866         (main): Expect only one argument.
11867         (is_open): New function, copied from tests/test-pipe.c.
11868         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11869         (child_main): Remove function.
11870         (test_pipe): Pass only one argument to the child program.
11871         (main): Remove child process code. Expect the child program's name as
11872         first argument.
11873         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11874         argument.
11875         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11876         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11877         test-spawn-pipe-child against no libraries.
11878
11879 2011-06-06  Bruno Haible  <bruno@clisp.org>
11880
11881         careadlinkat: Avoid mismatch between ssize_t and int.
11882         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11883         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11884
11885 2011-06-06  Jim Meyering  <meyering@redhat.com>
11886
11887         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11888         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11889         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11890
11891 2011-06-05  Bruno Haible  <bruno@clisp.org>
11892
11893         ansi-c++-opt: Interoperability with libtool.
11894         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11895         set the variable to "no", not to ":".
11896         * NEWS: Mention the change.
11897
11898 2011-06-05  Bruno Haible  <bruno@clisp.org>
11899
11900         acl: Fix test failure on AIX 7.
11901         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11902         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11903
11904 2011-06-05  Bruno Haible  <bruno@clisp.org>
11905
11906         pipe-filter-ii: Fix test failure on AIX and IRIX.
11907         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11908         with EAGAIN, retry with a smaller buffer size.
11909
11910 2011-06-05  Bruno Haible  <bruno@clisp.org>
11911
11912         localename: Fix link dependencies.
11913         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11914         * modules/localename-tests (Makefile.am): Link test-localename with
11915         $(LIBTHREAD).
11916
11917 2011-06-05  Bruno Haible  <bruno@clisp.org>
11918
11919         error: Avoid gcc warning.
11920         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11921
11922 2011-06-05  Bruno Haible  <bruno@clisp.org>
11923
11924         unsetenv: Avoid gcc warning.
11925         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11926
11927 2011-06-05  Bruno Haible  <bruno@clisp.org>
11928
11929         setenv: Avoid gcc warning.
11930         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11931
11932 2011-06-05  Bruno Haible  <bruno@clisp.org>
11933
11934         sys_select: Ensure memset is declared also on AIX 7.
11935         * lib/sys_select.in.h: Include <string.h> also on AIX.
11936         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11937         self-contained also on AIX 7.1.
11938
11939 2011-06-04  Jim Meyering  <meyering@redhat.com>
11940
11941         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11942         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11943         function name, "error".
11944         (_gl_translatable_diag_func_re): New configurable variable.
11945
11946 2011-06-04  Bruno Haible  <bruno@clisp.org>
11947
11948         getopt: Avoid gcc warning.
11949         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11950
11951 2011-06-04  Bruno Haible  <bruno@clisp.org>
11952
11953         strerror_r: Fix comments.
11954         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11955         commit.
11956
11957 2011-06-04  Bruno Haible  <bruno@clisp.org>
11958
11959         perror: Fix compilation error.
11960         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11961         Undefine fprintf, not sprintf.
11962         * modules/perror (Depends-on): Remove intprops, verify.
11963
11964 2011-06-04  Bruno Haible  <bruno@clisp.org>
11965
11966         setlocale: Enable replacement on Cygwin 1.5.
11967         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11968         Cygwin 1.5.x.
11969         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11970         LC_CTYPE category also exists on Cygwin 1.5.x.
11971
11972 2011-06-04  Bruno Haible  <bruno@clisp.org>
11973
11974         strerror-override: Don't disable symbol renamings.
11975         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11976         * lib/strerror-override.c: Include config.h.
11977         (strerror_override): Don't undefine.
11978
11979 2011-06-03  Bruno Haible  <bruno@clisp.org>
11980
11981         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11982         * lib/localename.h: Update copyright header.
11983         * lib/localename.c: Likewise.
11984         * lib/relocatable.h: Likewise.
11985         * lib/relocatable.c: Likewise.
11986
11987 2011-06-02  Bruno Haible  <bruno@clisp.org>
11988
11989         doc: Fix a module name.
11990         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11991
11992 2011-06-02  Bruno Haible  <bruno@clisp.org>
11993
11994         pipe2: Remove dependency on 'nonblocking' module.
11995         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11996         O_NONBLOCK is defined by gnulib.
11997         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11998         is zero.
11999         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12000         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12001         defined by gnulib.
12002         (get_nonblocking_flag): New function.
12003         (main): Test O_NONBLOCK flag only if it is nonzero.
12004         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12005
12006 2011-06-03  Jim Meyering  <meyering@redhat.com>
12007
12008         maint: three new prohibit-header-without-use rules
12009         Prohibit use of cloexec.h, posixver.h, same.h without use.
12010         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12011         (sc_prohibit_posixver_without_use): Likewise.
12012         (sc_prohibit_same_without_use): Likewise.
12013
12014 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12015
12016         allocator: 'die' routine is now given requested size
12017         * lib/allocator.h (struct allocator.die): New size arg.
12018         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12019         If the actual problem is an ssize_t limitation, not a size_t or
12020         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12021
12022 2011-06-01  Eric Blake  <eblake@redhat.com>
12023
12024         strerror: drop strerror_r dependency
12025         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12026         * lib/strerror-override.c (strerror_override): ...to new file.
12027         * lib/strerror-override.h: Add prototype.
12028         * lib/strerror-impl.h: Delete.
12029         * lib/strerror.c (strerror): New implementation.
12030         * modules/errno (Files): Add new files.
12031         (configure.ac): Compile new file as appropriate.
12032         * modules/strerror (Files): Drop unused file.
12033         (Depends-on): Drop strerror_r-posix.
12034         * MODULES.html.sh: Document strerror_r-posix.
12035         Requested by Sam Steingold.
12036
12037         perror: call strerror_r directly
12038         * modules/perror (Files): Drop strerror-impl.h.
12039         * lib/perror.c (perror): Use our own stack buffer, rather than
12040         calling a wrapper that uses static storage.
12041         * doc/posix-functions/perror.texi (perror): Document a limitation
12042         of our replacement.
12043
12044         strerror_r: fix includes for FreeBSD
12045         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12046         since we use abort on some platforms.
12047         Reported by Matthias Bolte.
12048
12049 2011-05-31  Bruno Haible  <bruno@clisp.org>
12050
12051         Fix link errors in tests: openat-die uses gettext-h.
12052         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12053         against $(LIBINTL).
12054         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12055         against $(LIBINTL).
12056         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12057         $(LIBINTL).
12058         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12059         against $(LIBINTL).
12060         * modules/linkat-tests (Makefile.am): Link test-linkat against
12061         $(LIBINTL).
12062         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12063         $(LIBINTL).
12064         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12065         against $(LIBINTL).
12066         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12067         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12068         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12069         $(LIBINTL).
12070         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12071         $(LIBINTL).
12072         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12073         $(LIBINTL).
12074         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12075
12076 2011-05-31  Bruno Haible  <bruno@clisp.org>
12077
12078         Fix link errors in tests: wait-process uses gettext-h.
12079         * modules/nonblocking-pipe-tests (Makefile.am): Set
12080         test_nonblocking_pipe_main_LDADD.
12081         * modules/nonblocking-socket-tests (Makefile.am): Link
12082         test-nonblocking-socket-main against $(LIBINTL).
12083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12084
12085 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12086
12087         assert-h: work around 'verify' incompatibility
12088         * lib/verify.h: Use @...@ directives, not ifdef.
12089         * modules/assert-h (assert.h): Implement the directives.
12090         (assert.h): Substitute the symbol-prefix more consistently.
12091
12092 2011-05-29  Jim Meyering  <meyering@redhat.com>
12093
12094         trim: remove three superfluous assignments
12095         * lib/trim.c (trim2): Remove three superfluous assignments
12096         and correct brace positioning.
12097
12098 2011-05-29  Bruno Haible  <bruno@clisp.org>
12099
12100         wctype-h: Avoid namespace pollution on Solaris 2.6.
12101         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12102         identifiers.
12103         * doc/posix-headers/wctype.texi: Mention the problem.
12104         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12105
12106 2011-05-28  Jim Meyering  <meyering@redhat.com>
12107
12108         parse-datetime.y: accommodate -Wstrict-overflow
12109         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12110         placate -Wstrict-overflow.
12111
12112         trim: avoid a warning from -O2 -Wstrict-overflow
12113         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12114
12115 2011-05-29  Bruno Haible  <bruno@clisp.org>
12116
12117         gnulib-tool: Fix bug in yesterday's commit.
12118         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12119         twice.
12120
12121 2011-05-29  Bruno Haible  <bruno@clisp.org>
12122
12123         Allow multiple gnulib generated include files to be combined.
12124         * gnulib-tool (func_compute_include_guard_prefix): New function.
12125         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12126         ${gl_include_guard_prefix} references.
12127         (func_import, func_create_testdir): Invoke
12128         func_compute_include_guard_prefix.
12129         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12130         * lib/ctype.in.h: Likewise.
12131         * lib/dirent.in.h: Likewise.
12132         * lib/errno.in.h: Likewise.
12133         * lib/fcntl.in.h: Likewise.
12134         * lib/float.in.h: Likewise.
12135         * lib/getopt.in.h: Likewise.
12136         * lib/iconv.in.h: Likewise.
12137         * lib/langinfo.in.h: Likewise.
12138         * lib/locale.in.h: Likewise.
12139         * lib/math.in.h: Likewise.
12140         * lib/netdb.in.h: Likewise.
12141         * lib/netinet_in.in.h: Likewise.
12142         * lib/poll.in.h: Likewise.
12143         * lib/pthread.in.h: Likewise.
12144         * lib/pty.in.h: Likewise.
12145         * lib/sched.in.h: Likewise.
12146         * lib/se-selinux.in.h: Likewise.
12147         * lib/search.in.h: Likewise.
12148         * lib/signal.in.h: Likewise.
12149         * lib/spawn.in.h: Likewise.
12150         * lib/stdarg.in.h: Likewise.
12151         * lib/stddef.in.h: Likewise.
12152         * lib/stdint.in.h: Likewise.
12153         * lib/stdio.in.h: Likewise.
12154         * lib/stdlib.in.h: Likewise.
12155         * lib/string.in.h: Likewise.
12156         * lib/strings.in.h: Likewise.
12157         * lib/sys_file.in.h: Likewise.
12158         * lib/sys_ioctl.in.h: Likewise.
12159         * lib/sys_select.in.h: Likewise.
12160         * lib/sys_socket.in.h: Likewise.
12161         * lib/sys_stat.in.h: Likewise.
12162         * lib/sys_time.in.h: Likewise.
12163         * lib/sys_times.in.h: Likewise.
12164         * lib/sys_uio.in.h: Likewise.
12165         * lib/sys_utsname.in.h: Likewise.
12166         * lib/sys_wait.in.h: Likewise.
12167         * lib/sysexits.in.h: Likewise.
12168         * lib/termios.in.h: Likewise.
12169         * lib/time.in.h: Likewise.
12170         * lib/unistd.in.h: Likewise.
12171         * lib/wchar.in.h: Likewise.
12172         * lib/wctype.in.h: Likewise.
12173         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12174         * modules/ctype (Makefile.am): Likewise.
12175         * modules/dirent (Makefile.am): Likewise.
12176         * modules/errno (Makefile.am): Likewise.
12177         * modules/fcntl-h (Makefile.am): Likewise.
12178         * modules/float (Makefile.am): Likewise.
12179         * modules/getopt-posix (Makefile.am): Likewise.
12180         * modules/iconv-h (Makefile.am): Likewise.
12181         * modules/langinfo (Makefile.am): Likewise.
12182         * modules/locale (Makefile.am): Likewise.
12183         * modules/math (Makefile.am): Likewise.
12184         * modules/netdb (Makefile.am): Likewise.
12185         * modules/netinet_in (Makefile.am): Likewise.
12186         * modules/poll-h (Makefile.am): Likewise.
12187         * modules/pthread (Makefile.am): Likewise.
12188         * modules/pty (Makefile.am): Likewise.
12189         * modules/sched (Makefile.am): Likewise.
12190         * modules/search (Makefile.am): Likewise.
12191         * modules/selinux-h (Makefile.am): Likewise.
12192         * modules/signal (Makefile.am): Likewise.
12193         * modules/spawn (Makefile.am): Likewise.
12194         * modules/stdarg (Makefile.am): Likewise.
12195         * modules/stddef (Makefile.am): Likewise.
12196         * modules/stdint (Makefile.am): Likewise.
12197         * modules/stdio (Makefile.am): Likewise.
12198         * modules/stdlib (Makefile.am): Likewise.
12199         * modules/string (Makefile.am): Likewise.
12200         * modules/strings (Makefile.am): Likewise.
12201         * modules/sys_file (Makefile.am): Likewise.
12202         * modules/sys_ioctl (Makefile.am): Likewise.
12203         * modules/sys_select (Makefile.am): Likewise.
12204         * modules/sys_socket (Makefile.am): Likewise.
12205         * modules/sys_stat (Makefile.am): Likewise.
12206         * modules/sys_time (Makefile.am): Likewise.
12207         * modules/sys_times (Makefile.am): Likewise.
12208         * modules/sys_uio (Makefile.am): Likewise.
12209         * modules/sys_utsname (Makefile.am): Likewise.
12210         * modules/sys_wait (Makefile.am): Likewise.
12211         * modules/sysexits (Makefile.am): Likewise.
12212         * modules/termios (Makefile.am): Likewise.
12213         * modules/time (Makefile.am): Likewise.
12214         * modules/unistd (Makefile.am): Likewise.
12215         * modules/wchar (Makefile.am): Likewise.
12216         * modules/wctype-h (Makefile.am): Likewise.
12217         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12218
12219 2011-05-29  Bruno Haible  <bruno@clisp.org>
12220
12221         assert-h: Allow multiple gnulib generated replacements to coexist.
12222         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12223
12224 2011-05-29  Bruno Haible  <bruno@clisp.org>
12225
12226         argp: Allow coexistence with strerror_r-posix module.
12227         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12228         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12229         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12230         not the glibc signature.
12231
12232 2011-05-28  Bruno Haible  <bruno@clisp.org>
12233
12234         gnulib-tool: Alternative structure of testdirs, similar to --import.
12235         * gnulib-tool: New option --single-configure.
12236         (func_usage): Document it.
12237         (single_configure): New variable.
12238         (func_modules_transitive_closure_separately,
12239         func_modules_transitive_closure_separately,
12240         func_determine_use_libtests, func_modules_add_dummy_separately,
12241         func_modules_to_filelist_separately): New functions, extracted from
12242         func_import.
12243         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12244         (func_import): Use the new functions.
12245         (func_create_testdir): Set final_modules. Handle $single_configure =
12246         true case.
12247
12248 2011-05-28  Bruno Haible  <bruno@clisp.org>
12249
12250         getloadavg: Remove an unreliable safety check.
12251         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12252         getloadavg.c is in place.
12253         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12254         Reported by Sam Steingold <sds@gnu.org>.
12255
12256 2011-05-28  Bruno Haible  <bruno@clisp.org>
12257
12258         doc: Cleanup yet another file produced by texinfo.tex.
12259         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12260
12261 2011-05-28  Bruno Haible  <bruno@clisp.org>
12262
12263         Finish the conditional dependencies mechanism.
12264         * gnulib-tool: New option --no-conditional-dependencies.
12265         (func_usage): Document it. Don't mark --conditional-dependencies as
12266         experimental.
12267         (cond_dependencies): The possible values can now be true, false, empty.
12268         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12269         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12270         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12271
12272 2011-05-28  Bruno Haible  <bruno@clisp.org>
12273
12274         doc: Use a recent texinfo.tex.
12275         * doc/Makefile (tex_opts): New variable.
12276         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12277
12278 2011-05-28  Jim Meyering  <meyering@redhat.com>
12279
12280         intprops.h: adjust comment to match code change
12281         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12282         only once, it *may* have side effects.  Also fix an unrelated typo.
12283         (_GL_INT_SIGNED): Likewise.
12284
12285 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12286
12287         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12288
12289 2011-05-26  Bruno Haible  <bruno@clisp.org>
12290
12291         mbsrchr: Avoid collision with system function on Interix.
12292         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12293         Reported by Markus Duft <mduft@gentoo.org>.
12294
12295 2011-05-15  James Youngman  <jay@gnu.org>
12296
12297         getopt: for ambiguous options, enumerate the possibilities.
12298         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12299         the ambiguous options when an ambiguous prefix is given. This was
12300         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12301         glibc change was
12302         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12303
12304 2011-05-25  Eric Blake  <eblake@redhat.com>
12305
12306         getcwd: work around mingw bug
12307         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12308         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12309         Reported by Matthias Bolte.
12310
12311 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12312
12313         test-intprops: disable -Wtype-limits diagnostics
12314         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12315         diagnostics.  Otherwise, the integer overflow macros generate many
12316         diagnostics.  Reported by Jim Meyering in
12317         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12318
12319         intprops: shorten, to pacify gcc -Woverlength-strings
12320         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12321         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12322         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12323         likely to run afoul of C compiler limits for string constant lengths.
12324         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12325
12326 2011-05-24  Eric Blake  <eblake@redhat.com>
12327
12328         docs: document recently fixed glibc printf bug
12329         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12330         * doc/posix-functions/printf.texi (printf): Likewise.
12331         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12332         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12333
12334         closein-tests: convert to init.sh
12335         * modules/closein-tests (Files): Add init.sh
12336         * tests/test-closein.sh Use it.
12337
12338         yesno-tests: convert to init.sh
12339         * modules/yesno-tests (Files): Add init.sh.
12340         * tests/test-yesno.sh: Use it.
12341
12342         atexit-tests: ensure reliable exit status
12343         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12344         Reported by Bruno Haible.
12345
12346 2011-05-24  Bruno Haible  <bruno@clisp.org>
12347
12348         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12349         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12350         gl_PREREQ_STRERROR_R invocations from here...
12351         * modules/strerror_r-posix (configure.ac): ... to here.
12352
12353 2011-05-24  Eric Blake  <eblake@redhat.com>
12354
12355         strerror_r: fix missing header
12356         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12357
12358         strerror_r: fix AIX test failures
12359         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12360         ERANGE failure.
12361
12362         strerror_r: fix Solaris test failures
12363         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12364         failures.
12365         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12366
12367         strerror_r: enforce POSIX recommendations
12368         * lib/strerror_r.c (safe_copy): New helper method.
12369         (strerror_r): Guarantee a non-empty string.
12370         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12371         recent POSIX rulings and to match our strerror guarantees.
12372         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12373
12374 2011-05-24  Jim Meyering  <meyering@redhat.com>
12375
12376         test-perror2.c: avoid warning about unused variable
12377         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12378
12379 2011-05-24  Eric Blake  <eblake@redhat.com>
12380
12381         perror: avoid spurious test failure on HP-UX
12382         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12383
12384         tests: fix logic bug in init.sh
12385         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12386         shell.
12387
12388 2011-05-24  Jim Meyering  <meyering@redhat.com>
12389
12390         utimensat: do not reference an out-of-scope buffer
12391         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12392         declared in an inner scope, yet "times" would be dereferenced outside
12393         the scope in which "ts" was valid.
12394         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12395         of ts[2] "out/up", so that the use of aliased "times" (via
12396         "times = ts;") does not end up referencing an out-of-scope "ts"
12397
12398         opendir-safer.c: don't clobber errno; don't close negative FD
12399         * lib/opendir-safer.c (opendir_safer):
12400         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12401         file descriptor, and more importantly, don't clobber the
12402         offending errno value with EINVAL.  Before, upon failure
12403         of dup_safer, we would pass the negative file descriptor to
12404         fdopendir, which would clobber errno.
12405
12406 2011-05-23  Bruno Haible  <bruno@clisp.org>
12407
12408         idcache: Fix module description.
12409         * modules/idcache (Include): Set to "idcache.h".
12410
12411 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12412
12413         gnulib-tool: fix portability problem with MacOS sed
12414         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12415         before the "}".  Problem reported by Leo in
12416         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12417         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12418         sed_extract_condition1, sed_extract_condition2.
12419
12420 2011-05-23  Bruno Haible  <bruno@clisp.org>
12421
12422         hash: Simplify autoconf macro.
12423         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12424
12425 2011-05-23  Bruno Haible  <bruno@clisp.org>
12426
12427         getugroups: Fix module description.
12428         * modules/getugroups (Include): Set to "getugroups.h".
12429
12430 2011-05-23  Bruno Haible  <bruno@clisp.org>
12431
12432         linkat: Simplify autoconf macro.
12433         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12434
12435 2011-05-23  Bruno Haible  <bruno@clisp.org>
12436             Eric Blake  <eblake@redhat.com>
12437
12438         linkat, renameat: Update dependencies.
12439         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12440         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12441         symlinkat.
12442
12443 2011-05-23  Jim Meyering  <meyering@redhat.com>
12444
12445         maint.mk: more tight_scope improvements
12446         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12447         (_gl_TS_headers): Define only in if-0'd block.
12448         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12449         sometimes we must *not* use it.  Adjust uses accordingly.
12450         (sc_tight_scope): Use much simpler grep-based test to determine
12451         whether we skip this rule.
12452
12453         maint.mk: generalize/improve the tight-scope rule
12454         * top/maint.mk: Emit a warning when the test is skipped.
12455         (_gl_TS_dir): Add $(srcdir)/ prefix.
12456         (_gl_TS_function_match): Simplify, rather than trying
12457         to enumerate common types.  Otherwise, it would fail to match an
12458         "extern unsigned char const *" declaration in idutils.
12459         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12460         a way to support use of that type of macro.
12461         (_gl_TS_var_match): Simplify regexp.
12462         (_gl_TS_obj_files): New configurable variable.
12463         (_gl_TS_headers): Likewise.
12464
12465 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12466
12467         verify: fix bug when gnulib <assert.h> is also included
12468         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12469         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12470         Perhaps there's a better way, but this fixes the immediate problem.
12471         Problem reported by Bruno Haible in
12472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12473
12474 2011-05-22  Bruno Haible  <bruno@clisp.org>
12475
12476         xgetcwd: Simplify autoconf macro.
12477         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12478
12479 2011-05-22  Bruno Haible  <bruno@clisp.org>
12480
12481         New module 'mktime-internal'.
12482         * modules/mktime-internal: New file.
12483         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12484         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12485         mktime_internal as a C macro if libc has __mktime_internal.
12486         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12487         conditions.
12488         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12489
12490 2011-05-22  Bruno Haible  <bruno@clisp.org>
12491
12492         timegm: Correct mktime replacement statements.
12493         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12494         defining mktime as a C macro. This completes a 2009-07-28 commit.
12495
12496 2011-05-22  Bruno Haible  <bruno@clisp.org>
12497
12498         timegm: Simplify autoconf macro.
12499         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12500
12501 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12502
12503         clock-time: change to LGPLv2+.
12504         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12505         BSD-like but we have no mark for that; this is good enough for now.
12506
12507 2011-05-21  Bruno Haible  <bruno@clisp.org>
12508
12509         strerror_r: Fix comments.
12510         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12511
12512 2011-05-21  Bruno Haible  <bruno@clisp.org>
12513
12514         relocatable-prog-wrapper: Fix possible link error.
12515         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12516         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12517         (gl_FUNC_SETENV): ... to here.
12518         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12519         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12520
12521 2011-05-21  Bruno Haible  <bruno@clisp.org>
12522
12523         relocatable-prog-wrapper: Assume strerror() exists.
12524         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12525         m4/strerror.m4.
12526         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12527         * lib/relocwrapper.c: Remove mention of strerror module.
12528         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12529         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12530         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12531         C macro.
12532
12533 2011-05-21  Bruno Haible  <bruno@clisp.org>
12534
12535         select: Simplify replacement idiom.
12536         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12537         Win32 platforms.
12538         * lib/sys_select.in.h (select): Simplify accordingly.
12539         * modules/select (Depends-on): Likewise.
12540
12541 2011-05-21  Bruno Haible  <bruno@clisp.org>
12542
12543         mkdir-p: Simplify autoconf macro.
12544         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12545         gl_FUNC_LCHOWN.
12546
12547 2011-05-21  Eric Blake  <eblake@redhat.com>
12548
12549         strerror_r: avoid clobbering strerror on cygwin
12550         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12551         fall back instead to sys_errlist.
12552         * modules/strerror (configure.ac): Add witness.
12553         * tests/test-strerror_r.c (main): Enhance test.
12554         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12555         * tests/test-perror2.c (main): Free memory before exit.
12556
12557 2011-05-21  Bruno Haible  <bruno@clisp.org>
12558
12559         mkdtemp: Use gnulib naming conventions.
12560         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12561         * modules/mkdtemp (configure.ac): Update.
12562
12563 2011-05-20  Eric Blake  <eblake@redhat.com>
12564
12565         strerror_r: avoid corrupting errno on Solaris
12566         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12567         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12568
12569         strerror_r: avoid compiler warning
12570         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12571
12572         strerror_r: simplify AIX code
12573         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12574
12575         test-perror: avoid spurious failure on FreeBSD
12576         * modules/perror-tests (Depends-on): Add strerror, now that
12577         strerror_r no longer pulls it in.
12578
12579 2011-05-20  Bruno Haible  <bruno@clisp.org>
12580
12581         strerror_r-posix: Remove unused dependencies.
12582         * modules/strerror_r-posix (Depends-on): Remove strerror.
12583         Reported by Eric Blake.
12584
12585 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12586
12587         intprops: remove assumption about A|B representation
12588         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12589         is a valid integer if both A and B are.  Although this is true for
12590         all known practical hosts, the C standard doesn't guarantee it,
12591         and the code need not assume it.  Also, this change may work around
12592         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12594
12595 2011-05-20  Eric Blake  <eblake@redhat.com>
12596
12597         perror: work around FreeBSD bug
12598         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12599         is broken.  Move AC_LIBOBJ...
12600         * modules/perror (configure.ac): Here.
12601         * doc/posix-functions/perror.texi (perror): Document this.
12602         * tests/test-perror2.c (main): Enhance test.
12603
12604         test-perror: check for strerror interactions
12605         * tests/macros.h (STREQ): Add macro.
12606         * modules/perror-tests (Files): Add second test.
12607         * tests/test-perror2.c (main): New file.
12608         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12609
12610         test-perror: rewrite to use init script
12611         * modules/perror-tests (Files): Add init.sh.
12612         * tests/test-perror.sh: Use temporary directory.
12613
12614 2011-05-20  Jim Meyering  <meyering@redhat.com>
12615
12616         maint: replace misused "a" with "an"
12617         * doc/intprops.texi: "a integer"
12618         * doc/regex.texi: "a explanation"
12619         * lib/alignof.h: "a object"
12620         * lib/argmatch.h: "a explanation"
12621         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12622         * lib/stdint.in.h: "a integer"
12623         * lib/userspec.c: "a owner"
12624         * doc/gnulib.texi: Fix "a idea", and reword.
12625
12626 2011-05-19  Jim Meyering  <meyering@redhat.com>
12627
12628         maint: correct misuse of "a" and "an"
12629         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12630         * lib/argp-help.c: "an docum...": s/an/a/
12631         * lib/argp-parse.c: "An vector": s/An/A/
12632         * lib/execute.c: "an native": s/an/a/
12633         * lib/spawn-pipe.c: Likewise.
12634         * lib/gc.h: "an Gc_rc": s/an/a/
12635         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12636         * lib/fts.c: "an stat.st_dev": s/an/a/
12637
12638 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12639
12640         intprops-tests: work around HP-UX 11.23 cc bug with constants
12641         * tests/test-intprops.c (VERIFY): New macro.
12642         (main): Use it, instead of verify, to work around the compiler bug; see
12643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12644
12645         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12646         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12647         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12648         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12649         (_GL_REMAINDER_OVERFLOW): Use it.
12650
12651         intprops-tests: revert unsigned part of previous change
12652         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12653         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12654         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12656
12657 2011-05-19  Bruno Haible  <bruno@clisp.org>
12658
12659         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12660         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12661         strerror_r() returned without filling the buffer.
12662         Reported by Eric Blake.
12663
12664 2011-05-19  Eric Blake  <eblake@redhat.com>
12665
12666         strerror_r: guarantee unchanged errno
12667         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12668         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12669         failure.
12670         * tests/test-strerror_r.c (main): Enhance test.
12671
12672 2011-05-19  Bruno Haible  <bruno@clisp.org>
12673
12674         strerror_r: Reorder #if blocks.
12675         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12676         for consistency with the previous commit.
12677
12678 2011-05-19  Bruno Haible  <bruno@clisp.org>
12679
12680         perror: Avoid clobbering the strerror buffer when possible.
12681         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12682         * lib/strerror.c: Include it.
12683         * modules/strerror (Files): Add lib/strerror-impl.h.
12684         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12685         (my_strerror): New function, defined through lib/strerror-impl.h.
12686         (perror): Use it instead of strerror.
12687         * modules/perror (Files): Add lib/strerror-impl.h.
12688         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12689
12690 2011-05-19  Eric Blake  <eblake@redhat.com>
12691
12692         strerror_r: fix on newer cygwin
12693         * lib/strerror_r.c (strerror_r): Cygwin now has
12694         __xpg_strerror_r, use it.
12695
12696 2011-05-19  Bruno Haible  <bruno@clisp.org>
12697
12698         strerror_r: Avoid clobbering the strerror buffer when possible.
12699         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
12700         (sys_nerr, sys_errlist): New declarations.
12701         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
12702         HP-UX, native Win32, IRIX, and 32-bit Solaris.
12703         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
12704
12705 2011-05-19  Bruno Haible  <bruno@clisp.org>
12706
12707         strerror_r: Fix test failure on mingw.
12708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
12709         EXTEND_STRERROR_R.
12710         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
12711         macros from errno.in.h instead.
12712
12713 2011-05-19  Eric Blake  <eblake@redhat.com>
12714
12715         strerror: relax test for Solaris
12716         * tests/test-strerror.c (main): Permit Solaris behavior.
12717         * tests/test-strerror_r.c (main): Likewise.
12718
12719         strerror: enforce POSIX ruling on strerror(0)
12720         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
12721         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12722         * lib/strerror_r.c (rpl_strerror_r): Work around it.
12723         * doc/posix-functions/strerror.texi (strerror): Document it.
12724         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
12725         * tests/test-strerror.c (main): Strengthen test.
12726         * tests/test-strerror_r.c (main): Likewise.
12727
12728 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12729
12730         intprop-tests: port to older and more-pedantic compilers
12731         * modules/intprops-tests (Files): Add tests/macros.h.
12732         * tests/test-intprops.c: Include macros.h.
12733         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
12734         it's no longer documented to expand to an integer constant expression.
12735         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
12736         argument is floating point, as it's no longer documented to expand
12737         to an integer constant expression in that case.
12738         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
12739         compiler bugs reported by Bruno Haible.  See
12740         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12741         (U0, U1): New constants, to work around the same bugs.  Also,
12742         in tests, use e.g., "(unsigned int) 39" rather than "39u".
12743
12744         intprops: work around C compiler bugs
12745         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
12746         bug in Sun C 5.11 2010/08/13 and other compilers; see
12747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12748
12749         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
12750         * doc/intprops.texi (Integer Type Determination): Fix
12751         documentation for TYPE_IS_INTEGER: it returns an constant
12752         expression, not an integer constant expression.  Fix doc for
12753         TYPE_SIGNED: it returns an integer constant expression only if its
12754         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12755         hardly worth documented that way....)
12756
12757 2011-05-18  Bruno Haible  <bruno@clisp.org>
12758
12759         strerror_r: Avoid clobbering the strerror buffer when possible.
12760         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12761         Handle gnulib defined errno values here. When strerror() returns NULL
12762         or an empty string, return EINVAL.
12763         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12764         gnulib defined errno values here.
12765         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12766
12767 2011-05-18  Eric Blake  <eblake@redhat.com>
12768
12769         fnmatch: avoid compiler warning
12770         * lib/fnmatch_loop.c (FCT): Use correct type.
12771         Reported by Matthias Bolte.
12772
12773 2011-05-13  Jim Meyering  <meyering@redhat.com>
12774
12775         maint.mk: three new prohibit_<HDR>_without_use rules
12776         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
12777         (sc_prohibit_stdio-safer_without_use): Likewise.
12778         (sc_prohibit_xfreopen_without_use): Likewise.
12779
12780 2011-05-17  Jim Meyering  <meyering@redhat.com>
12781
12782         announce-gen: fail if the NEWS delta is empty
12783         If there's nothing noteworthy in NEWS, then either you forgot
12784         or you shouldn't be releasing.
12785         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12786
12787 2011-05-17  Pádraig Brady <P@draigBrady.com>
12788
12789         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12790         reserved symbols starting with double underscore from the check.
12791
12792 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12793
12794         intprops: add doc
12795         * doc/intprops.texi: New file, documenting intprops.
12796         * doc/gnulib.texi (Particular Modules): Include it.
12797
12798         verify: add doc to gnulib manual and fix example
12799         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12800         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12801         (Compile-time Assertions): Fix example so it can't overflow.
12802
12803 2011-05-17  Jim Meyering  <meyering@redhat.com>
12804
12805         warnings.m4: don't usurp save_CPPFLAGS variable name
12806         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12807
12808         doc: fix typo
12809         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12810
12811 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12812             Bruno Haible  <bruno@clisp.org>
12813
12814         doc: Tweak recent change.
12815         * README (Portability guidelines): Tweak new text.
12816         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12817         Interix 6.1.
12818
12819 2011-05-16  Eric Blake  <eblake@redhat.com>
12820
12821         inttypes: avoid autoconf warning
12822         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12823         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12824
12825 2011-05-16  Sam Steingold <sds@gnu.org>
12826         and Eric Blake  <eblake@redhat.com>
12827
12828         vc-list-files: accept multiple directory operands
12829         * build-aux/vc-list-files: Iterate over all remaining operands.
12830
12831 2011-05-16  Bruno Haible  <bruno@clisp.org>
12832
12833         Fix confusion regarding deprecated modules.
12834         * modules/calloc (Status, Notice): Mark module as deprecated, not
12835         obsolete.
12836         * modules/fnmatch-posix (Status, Notice): Likewise.
12837         * modules/getdate (Status, Notice): Likewise.
12838         * modules/getopt (Status, Notice): Likewise.
12839         * modules/malloc (Status, Notice): Likewise.
12840         * modules/pipe (Status, Notice): Likewise.
12841         * modules/realloc (Status, Notice): Likewise.
12842         * modules/rename-dest-slash (Status, Notice): Likewise.
12843         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12844         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12845         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12846         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12847         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12848
12849 2011-05-16  Bruno Haible  <bruno@clisp.org>
12850
12851         doc: List the target platforms.
12852         * doc/gnulib-intro.texi (Target Platforms): New section.
12853         * doc/gnulib.texi (Introduction): Update menu.
12854         * README (Portability guidelines): Refer to the new section. Update
12855         statement about oldest supported environment. Remove rationale why
12856         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12857         unportable C89 function.
12858         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12859         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12860
12861 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12862
12863         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12864
12865 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12866
12867         intprops-tests: new module
12868         * modules/intprops-tests, tests/test-intprops.c: New files.
12869
12870         intprops: add safe, portable integer overflow checking
12871         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12872         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12873         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12874         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12875         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12876         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12877         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12878         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12879         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12880         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12881         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12882
12883 2011-05-12  James Youngman  <jay@gnu.org>
12884
12885         Add a test for glibc's Bugzilla bug #12378.
12886         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12887         doesn't allow the literal matching of a lone "[" (which is
12888         required by POSIX).
12889         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12890
12891 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12892
12893         Sync glibc change fixing Bugzilla bug #12378.
12894         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12895         beginning and fall back to matching as normal character if the
12896         string ends before the matching ']' is found.  This is what POSIX
12897         requires.
12898
12899 2011-05-13  Eric Blake  <eblake@redhat.com>
12900
12901         getcwd-lgpl: relax test for FreeBSD
12902         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12903         issue.
12904         * tests/test-getcwd-lgpl.c (main): Relax test.
12905         Reported by Matthias Bolte.
12906
12907 2011-05-11  Eric Blake  <eblake@redhat.com>
12908
12909         test-fflush: silence compiler warning
12910         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12911
12912 2011-05-11  Bruno Haible  <bruno@clisp.org>
12913
12914         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12915         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12916         * modules/canonicalize (Depends-on): Add 'nocrash'.
12917         * modules/canonicalize-lgpl (Depends-on): Likewise.
12918         * doc/posix-functions/realpath.texi: Update platforms list.
12919         Reported by Ryan Schmidt <ryandesign@macports.org>.
12920
12921 2011-05-11  Bruno Haible  <bruno@clisp.org>
12922
12923         group-member: Declare function in <unistd.h>.
12924         * lib/unistd.in.h (group_member): New declaration.
12925         * lib/group-member.h: Remove file.
12926         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12927         * tests/test-unistd-c++.cc: Check signature of group_member.
12928         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12929         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12930         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12931         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12932         HAVE_GROUP_MEMBER.
12933         * modules/group-member (Files): Remove lib/group-member.h.
12934         (Depends-on): Add unistd. Specify conditions.
12935         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12936         (Include): Change to <unistd.h>.
12937         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12938         HAVE_GROUP_MEMBER.
12939         * NEWS: Mention the change.
12940         * lib/euidaccess.c: Don't include group-member.h.
12941
12942 2011-05-11  Bruno Haible  <bruno@clisp.org>
12943
12944         group-member: Document module.
12945         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12946         module.
12947
12948 2011-05-11  Bruno Haible  <bruno@clisp.org>
12949
12950         fclose: Fix mistake earlier today.
12951         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12952
12953 2011-05-11  Eric Blake  <eblake@redhat.com>
12954
12955         fclose: preserve fflush errors
12956         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12957         Reported by Jim Meyering.
12958
12959         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12960         * build-aux/bootstrap (check_versions): When no specific version
12961         is required, merely check that the app produces an exit status
12962         that indicates its existence.
12963
12964         maint.mk: drop redundant check
12965         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12966         the same but better.
12967
12968 2011-05-11  Bruno Haible  <bruno@clisp.org>
12969
12970         fclose: Fix possible link error.
12971         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12972         unregister_shadow_fd. Improve comments.
12973         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12974         Eric Blake.
12975
12976 2011-05-11  Jim Meyering  <meyering@redhat.com>
12977
12978         maint.mk: improve "can not" detection and generalize rule name
12979         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12980         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12981         Use the same technique as in sc_prohibit_doubled_word, so that
12982         we recognize "can not" also when the words are separated by a newline.
12983         Suggested by Eric Blake.
12984         (perl_filename_lineno_text_): Define.  Factored out of...
12985         (prohibit_doubled_word_): ...here.  Use the new definition.
12986         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12987         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12988         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12989
12990 2011-05-10  Eric Blake  <eblake@redhat.com>
12991
12992         fclose: avoid double close race when possible
12993         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12994         all but WINDOWS_SOCKETS.
12995
12996 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12997
12998         openat: correct new comment
12999         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13000
13001 2011-05-10  Jim Meyering  <meyering@redhat.com>
13002
13003         openat: add comments
13004         * lib/openat-proc.c (openat_proc_name): Add comments,
13005         mostly from Eric Blake.
13006
13007 2011-05-09  Eric Blake  <eblake@redhat.com>
13008
13009         openat: reduce syscalls in first probe of /proc
13010         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13011         be a directory.  Simplify the probe for .. bugs.
13012         * modules/openat (Depends-on): Drop same-inode.
13013         Reported by Bastien ROUCARIES.
13014
13015 2011-05-09  Jim Meyering  <meyering@redhat.com>
13016
13017         maint.mk: change semantics/name of tight_scope variables
13018         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13019         Rename variables to align with semantics that make them more useful.
13020
13021         maint.mk: tweak new rule's name not to impinge
13022         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13023         (sc_tight_scope): Use new rule name rather than $@-0.
13024
13025         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13026         * top/maint.mk (sc_tight_scope): New rule.
13027         (sc_tight_scope-0): New rule, ifdef'd out.
13028         (_gl_TS_dir): Default.
13029         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13030         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13031
13032 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13033
13034         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13035         Haible <bruno@clisp.org>.
13036
13037 2011-05-08  Bruno Haible  <bruno@clisp.org>
13038
13039         Comments.
13040         * m4/isnanf.m4: Add comment.
13041         * m4/isnanl.m4: Likewise.
13042
13043 2011-05-08  Bruno Haible  <bruno@clisp.org>
13044
13045         glob: Remove obsolete macro.
13046         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13047
13048 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13049
13050         intprops: Sun C 5.11 supports __typeof__
13051         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13052         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13053         which is new.
13054         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13055
13056         intprops: switch to usual gnulib indenting and naming
13057         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13058         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13059
13060         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13061
13062 2011-05-08  Jim Meyering  <meyering@redhat.com>
13063
13064         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13065         * top/maint.mk (release-prep): Use make's --no-print-directory
13066         option when generating the announcement.  This eliminates the
13067         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13068         generated announcement template.
13069
13070 2011-05-08  Bruno Haible  <bruno@clisp.org>
13071
13072         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13073         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13074         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13075
13076 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13077
13078         ignore-value, verify: Omit include files from lib_SOURCES.
13079         * modules/ignore-value, modules/verify (Makefile.am):
13080         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13081         that leads Automake to duplicate use of am__objects_... variables
13082         in Makefile.in.  See
13083         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13084
13085 2011-05-07  Bruno Haible  <bruno@clisp.org>
13086
13087         fclose: Simplify autoconf macro.
13088         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13089         defined.
13090
13091 2011-05-07  Bruno Haible  <bruno@clisp.org>
13092
13093         canonicalize-lgpl: Fix autoconf macro ordering bug.
13094         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13095         gl_STDLIB_H_DEFAULTS.
13096
13097 2011-05-06  Eric Blake  <eblake@redhat.com>
13098
13099         maintainer-makefile: make sc_po_check easier to tune
13100         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13101         to probe for strings, such as an alternate location for gnulib.
13102
13103         fclose: guarantee behavior on seekable stdin
13104         * modules/fclose (Depends-on): Add fflush.
13105         * doc/posix-functions/fclose.texi (fclose): Document this.
13106         * tests/test-fclose.c (main): Make test for this unconditional.
13107
13108 2011-05-06  Bruno Haible  <bruno@clisp.org>
13109
13110         fflush, fpurge: Relicense under LGPLv2+.
13111         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13112         * modules/fpurge (License): Likewise.
13113         With permission from Eric Blake and Jim Meyering.
13114         Suggested by Eric Blake.
13115
13116 2011-05-06  Karl Berry  <karl@gnu.org>
13117
13118         * MODULES.html.sh (func_all_modules): remove exit.
13119
13120 2011-05-06  Jim Meyering  <meyering@redhat.com>
13121
13122         maint.mk: use info-gnu@ as the default only for a stable release
13123         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13124         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13125         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13126         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13127
13128 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13129
13130         assert-h: new module, which supports C1X-style static_assert
13131         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13132         * lib/verify.h: Revamp so that this can be copied into assert.h,
13133         while retaining the ability to use it standalone as before.
13134         Rename private identifiers so as not to encroach on the
13135         standard C namespace, since this is now used by assert.h.
13136         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13137         the old verify_true.
13138         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13139         the old verify_true.  Use _GL_VERIFY_TYPE.
13140         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13141         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13142         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13143         defined when this file is copied into the replacement assert.h.
13144         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13145         and _Static_assert is not built in.
13146         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13147         defined, and use the new macros mentioned above.
13148         * doc/posix-headers/assert.texi: Document this.
13149
13150 2011-05-05  Bruno Haible  <bruno@clisp.org>
13151
13152         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13153         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13154         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13155         gl_REPLACE_FCLOSE here.
13156         * modules/fflush (Depends-on): Remove fclose.
13157         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13158         combination with module 'fclose'.
13159
13160 2011-05-05  Bruno Haible  <bruno@clisp.org>
13161
13162         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13163         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13164         gl_FUNC_FFLUSH.
13165         (gl_FUNC_FFLUSH): Use it.
13166         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13167         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13168         gl_REPLACE_FSEEKO here.
13169
13170 2011-05-05  Bruno Haible  <bruno@clisp.org>
13171
13172         tzset: Relicense under LGPL.
13173         * modules/tzset (License): Change to LGPL.
13174         No agreement needed; it's a no-op.
13175
13176         strtoimax, strtoumax: Relicense under LGPL.
13177         * modules/strtoimax (License): Change to LGPL.
13178         * modules/strtoumax (License): Likewise.
13179         With permission from Jim Meyering, Paul Eggert:
13180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13182
13183         getgroups: Relicense under LGPL.
13184         * modules/getgroups (License): Change to LGPL.
13185         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13189
13190         nanosleep: Relicense under LGPL.
13191         * modules/nanosleep (License): Change to LGPL.
13192         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13193         Haible:
13194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13198
13199         futimens: Relicense under LGPL.
13200         * modules/futimens (License): Change to LGPL.
13201         With permission from Eric Blake:
13202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13203
13204         fflush: Relicense under LGPL.
13205         * modules/fflush (License): Change to LGPL.
13206         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13210
13211         tmpfile: Relicense under LGPL.
13212         * modules/tmpfile (License): Change to LGPL.
13213         With permission from Ben Pfaff:
13214         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13215
13216         isfinite: Relicense under LGPL.
13217         * modules/isfinite (License): Change to LGPL.
13218         With permission from Ben Pfaff, Bruno Haible:
13219         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13221
13222         acosl..tanl: Relicense under LGPL.
13223         * modules/acosl (License): Change to LGPL.
13224         * modules/asinl (License): Likewise.
13225         * modules/atanl (License): Likewise.
13226         * modules/cosl (License): Likewise.
13227         * modules/expl (License): Likewise.
13228         * modules/logl (License): Likewise.
13229         * modules/sinl (License): Likewise.
13230         * modules/sqrtl (License): Likewise.
13231         * modules/tanl (License): Likewise.
13232         Source code originally from glibc and Paolo Bonzini. Agreements:
13233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13235
13236 2011-05-05  Bruno Haible  <bruno@clisp.org>
13237
13238         signal: Define sighandler_t.
13239         * lib/signal.in.h (sighandler_t): New type.
13240         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13241         whether sighandler_t is defined.
13242         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13243         * modules/signal (Depends-on): Add extensions.
13244         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13245         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13246         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13247
13248 2011-05-05  Eric Blake  <eblake@redhat.com>
13249
13250         maint: remove useless REPLACE_*_H macros
13251         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13252         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13253         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13254         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13255         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13256         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13257         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13258         * m4/btowc.m4: Update callers.
13259         * m4/dirfd.m4: Likewise.
13260         * m4/duplocale.m4: Likewise.
13261         * m4/fchdir.m4: Likewise.
13262         * m4/fdopendir.m4: Likewise.
13263         * m4/inet_ntop.m4: Likewise.
13264         * m4/inet_pton.m4: Likewise.
13265         * m4/ioctl.m4: Likewise.
13266         * m4/mbrlen.m4: Likewise.
13267         * m4/mbrtowc.m4: Likewise.
13268         * m4/mbsinit.m4: Likewise.
13269         * m4/mbsnrtowcs.m4: Likewise.
13270         * m4/mbsrtowcs.m4: Likewise.
13271         * m4/poll.m4: Likewise.
13272         * m4/setlocale.m4: Likewise.
13273         * m4/wcrtomb.m4: Likewise.
13274         * m4/wcsnrtombs.m4: Likewise.
13275         * m4/wcsrtombs.m4: Likewise.
13276         * m4/wctob.m4: Likewise.
13277         * m4/wcwidth.m4: Likewise.
13278         * modules/posix_spawn: Likewise.
13279         * modules/posix_spawn_file_actions_addclose: Likewise.
13280         * modules/posix_spawn_file_actions_adddup2: Likewise.
13281         * modules/posix_spawn_file_actions_addopen: Likewise.
13282         * modules/posix_spawn_file_actions_destroy: Likewise.
13283         * modules/posix_spawn_file_actions_init: Likewise.
13284         * modules/posix_spawnattr_destroy: Likewise.
13285         * modules/posix_spawnattr_getflags: Likewise.
13286         * modules/posix_spawnattr_getpgroup: Likewise.
13287         * modules/posix_spawnattr_getschedparam: Likewise.
13288         * modules/posix_spawnattr_getschedpolicy: Likewise.
13289         * modules/posix_spawnattr_getsigdefault: Likewise.
13290         * modules/posix_spawnattr_getsigmask: Likewise.
13291         * modules/posix_spawnattr_init: Likewise.
13292         * modules/posix_spawnattr_setflags: Likewise.
13293         * modules/posix_spawnattr_setpgroup: Likewise.
13294         * modules/posix_spawnattr_setschedparam: Likewise.
13295         * modules/posix_spawnattr_setschedpolicy: Likewise.
13296         * modules/posix_spawnattr_setsigdefault: Likewise.
13297         * modules/posix_spawnattr_setsigmask: Likewise.
13298         * modules/posix_spawnp: Likewise.
13299
13300 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13301
13302         Add option to do-release-commit-and-tag to specify branch.
13303         * build-aux/do-release-commit-and-tag: Add --branch.
13304
13305 2011-05-03  Bruno Haible  <bruno@clisp.org>
13306
13307         Avoid unnecessary compilation units, through conditional dependencies.
13308         * modules/accept (Depends-on): Add conditions to the dependencies.
13309         * modules/acosl (Depends-on): Likewise.
13310         * modules/argz (Depends-on): Likewise.
13311         * modules/asinl (Depends-on): Likewise.
13312         * modules/atanl (Depends-on): Likewise.
13313         * modules/atoll (Depends-on): Likewise.
13314         * modules/bind (Depends-on): Likewise.
13315         * modules/btowc (Depends-on): Likewise.
13316         * modules/canonicalize-lgpl (Depends-on): Likewise.
13317         * modules/ceil (Depends-on): Likewise.
13318         * modules/ceilf (Depends-on): Likewise.
13319         * modules/ceill (Depends-on): Likewise.
13320         * modules/chdir-long (Depends-on): Likewise.
13321         * modules/chown (Depends-on): Likewise.
13322         * modules/close (Depends-on): Likewise.
13323         * modules/connect (Depends-on): Likewise.
13324         * modules/cosl (Depends-on): Likewise.
13325         * modules/dirfd (Depends-on): Likewise.
13326         * modules/dprintf (Depends-on): Likewise.
13327         * modules/dprintf-posix (Depends-on): Likewise.
13328         * modules/error (Depends-on): Likewise.
13329         * modules/euidaccess (Depends-on): Likewise.
13330         * modules/expl (Depends-on): Likewise.
13331         * modules/faccessat (Depends-on): Likewise.
13332         * modules/fchdir (Depends-on): Likewise.
13333         * modules/fclose (Depends-on): Likewise.
13334         * modules/fcntl (Depends-on): Likewise.
13335         * modules/fdopendir (Depends-on): Likewise.
13336         * modules/fflush (Depends-on): Likewise.
13337         * modules/floor (Depends-on): Likewise.
13338         * modules/floorf (Depends-on): Likewise.
13339         * modules/floorl (Depends-on): Likewise.
13340         * modules/fnmatch (Depends-on): Likewise.
13341         * modules/fopen (Depends-on): Likewise.
13342         * modules/fprintf-posix (Depends-on): Likewise.
13343         * modules/frexp (Depends-on): Likewise.
13344         * modules/frexp-nolibm (Depends-on): Likewise.
13345         * modules/frexpl (Depends-on): Likewise.
13346         * modules/frexpl-nolibm (Depends-on): Likewise.
13347         * modules/fseek (Depends-on): Likewise.
13348         * modules/fsusage (Depends-on): Likewise.
13349         * modules/ftell (Depends-on): Likewise.
13350         * modules/ftello (Depends-on): Likewise.
13351         * modules/futimens (Depends-on): Likewise.
13352         * modules/getcwd (Depends-on): Likewise.
13353         * modules/getcwd-lgpl (Depends-on): Likewise.
13354         * modules/getdelim (Depends-on): Likewise.
13355         * modules/getdomainname (Depends-on): Likewise.
13356         * modules/getgroups (Depends-on): Likewise.
13357         * modules/gethostname (Depends-on): Likewise.
13358         * modules/getline (Depends-on): Likewise.
13359         * modules/getlogin_r (Depends-on): Likewise.
13360         * modules/getopt-posix (Depends-on): Likewise.
13361         * modules/getpeername (Depends-on): Likewise.
13362         * modules/getsockname (Depends-on): Likewise.
13363         * modules/getsockopt (Depends-on): Likewise.
13364         * modules/getsubopt (Depends-on): Likewise.
13365         * modules/getusershell (Depends-on): Likewise.
13366         * modules/glob (Depends-on): Likewise.
13367         * modules/grantpt (Depends-on): Likewise.
13368         * modules/iconv_open (Depends-on): Likewise.
13369         * modules/iconv_open-utf (Depends-on): Likewise.
13370         * modules/inet_ntop (Depends-on): Likewise.
13371         * modules/inet_pton (Depends-on): Likewise.
13372         * modules/ioctl (Depends-on): Likewise.
13373         * modules/isapipe (Depends-on): Likewise.
13374         * modules/isfinite (Depends-on): Likewise.
13375         * modules/isinf (Depends-on): Likewise.
13376         * modules/lchown (Depends-on): Likewise.
13377         * modules/ldexpl (Depends-on): Likewise.
13378         * modules/link (Depends-on): Likewise.
13379         * modules/linkat (Depends-on): Likewise.
13380         * modules/listen (Depends-on): Likewise.
13381         * modules/logl (Depends-on): Likewise.
13382         * modules/lstat (Depends-on): Likewise.
13383         * modules/mbrlen (Depends-on): Likewise.
13384         * modules/mbrtowc (Depends-on): Likewise.
13385         * modules/mbsinit (Depends-on): Likewise.
13386         * modules/mbsnrtowcs (Depends-on): Likewise.
13387         * modules/mbsrtowcs (Depends-on): Likewise.
13388         * modules/mbtowc (Depends-on): Likewise.
13389         * modules/memcmp (Depends-on): Likewise.
13390         * modules/mkdir (Depends-on): Likewise.
13391         * modules/mkdtemp (Depends-on): Likewise.
13392         * modules/mkfifo (Depends-on): Likewise.
13393         * modules/mkfifoat (Depends-on): Likewise.
13394         * modules/mknod (Depends-on): Likewise.
13395         * modules/mkostemp (Depends-on): Likewise.
13396         * modules/mkostemps (Depends-on): Likewise.
13397         * modules/mkstemp (Depends-on): Likewise.
13398         * modules/mkstemps (Depends-on): Likewise.
13399         * modules/mktime (Depends-on): Likewise.
13400         * modules/nanosleep (Depends-on): Likewise.
13401         * modules/open (Depends-on): Likewise.
13402         * modules/openat (Depends-on): Likewise.
13403         * modules/perror (Depends-on): Likewise.
13404         * modules/poll (Depends-on): Likewise.
13405         * modules/popen (Depends-on): Likewise.
13406         * modules/posix_spawn (Depends-on): Likewise.
13407         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13408         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13409         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13410         * modules/posix_spawnp (Depends-on): Likewise.
13411         * modules/pread (Depends-on): Likewise.
13412         * modules/printf-posix (Depends-on): Likewise.
13413         * modules/ptsname (Depends-on): Likewise.
13414         * modules/putenv (Depends-on): Likewise.
13415         * modules/pwrite (Depends-on): Likewise.
13416         * modules/readline (Depends-on): Likewise.
13417         * modules/readlink (Depends-on): Likewise.
13418         * modules/readlinkat (Depends-on): Likewise.
13419         * modules/recv (Depends-on): Likewise.
13420         * modules/recvfrom (Depends-on): Likewise.
13421         * modules/regex (Depends-on): Likewise.
13422         * modules/remove (Depends-on): Likewise.
13423         * modules/rename (Depends-on): Likewise.
13424         * modules/renameat (Depends-on): Likewise.
13425         * modules/rmdir (Depends-on): Likewise.
13426         * modules/round (Depends-on): Likewise.
13427         * modules/roundf (Depends-on): Likewise.
13428         * modules/roundl (Depends-on): Likewise.
13429         * modules/rpmatch (Depends-on): Likewise.
13430         * modules/select (Depends-on): Likewise.
13431         * modules/send (Depends-on): Likewise.
13432         * modules/sendto (Depends-on): Likewise.
13433         * modules/setenv (Depends-on): Likewise.
13434         * modules/setlocale (Depends-on): Likewise.
13435         * modules/setsockopt (Depends-on): Likewise.
13436         * modules/shutdown (Depends-on): Likewise.
13437         * modules/sigaction (Depends-on): Likewise.
13438         * modules/signbit (Depends-on): Likewise.
13439         * modules/sigprocmask (Depends-on): Likewise.
13440         * modules/sinl (Depends-on): Likewise.
13441         * modules/sleep (Depends-on): Likewise.
13442         * modules/snprintf (Depends-on): Likewise.
13443         * modules/snprintf-posix (Depends-on): Likewise.
13444         * modules/socket (Depends-on): Likewise.
13445         * modules/sprintf-posix (Depends-on): Likewise.
13446         * modules/sqrtl (Depends-on): Likewise.
13447         * modules/stat (Depends-on): Likewise.
13448         * modules/strchrnul (Depends-on): Likewise.
13449         * modules/strdup-posix (Depends-on): Likewise.
13450         * modules/strerror (Depends-on): Likewise.
13451         * modules/strerror_r-posix (Depends-on): Likewise.
13452         * modules/strndup (Depends-on): Likewise.
13453         * modules/strnlen (Depends-on): Likewise.
13454         * modules/strptime (Depends-on): Likewise.
13455         * modules/strsep (Depends-on): Likewise.
13456         * modules/strsignal (Depends-on): Likewise.
13457         * modules/strstr-simple (Depends-on): Likewise.
13458         * modules/strtod (Depends-on): Likewise.
13459         * modules/strtoimax (Depends-on): Likewise.
13460         * modules/strtok_r (Depends-on): Likewise.
13461         * modules/strtoumax (Depends-on): Likewise.
13462         * modules/symlink (Depends-on): Likewise.
13463         * modules/symlinkat (Depends-on): Likewise.
13464         * modules/tanl (Depends-on): Likewise.
13465         * modules/tcgetsid (Depends-on): Likewise.
13466         * modules/tmpfile (Depends-on): Likewise.
13467         * modules/trunc (Depends-on): Likewise.
13468         * modules/truncf (Depends-on): Likewise.
13469         * modules/truncl (Depends-on): Likewise.
13470         * modules/uname (Depends-on): Likewise.
13471         * modules/unlink (Depends-on): Likewise.
13472         * modules/unlockpt (Depends-on): Likewise.
13473         * modules/unsetenv (Depends-on): Likewise.
13474         * modules/usleep (Depends-on): Likewise.
13475         * modules/utimensat (Depends-on): Likewise.
13476         * modules/vasprintf (Depends-on): Likewise.
13477         * modules/vdprintf (Depends-on): Likewise.
13478         * modules/vdprintf-posix (Depends-on): Likewise.
13479         * modules/vfprintf-posix (Depends-on): Likewise.
13480         * modules/vprintf-posix (Depends-on): Likewise.
13481         * modules/vsnprintf (Depends-on): Likewise.
13482         * modules/vsnprintf-posix (Depends-on): Likewise.
13483         * modules/vsprintf-posix (Depends-on): Likewise.
13484         * modules/wcrtomb (Depends-on): Likewise.
13485         * modules/wcscasecmp (Depends-on): Likewise.
13486         * modules/wcscspn (Depends-on): Likewise.
13487         * modules/wcsdup (Depends-on): Likewise.
13488         * modules/wcsncasecmp (Depends-on): Likewise.
13489         * modules/wcsnrtombs (Depends-on): Likewise.
13490         * modules/wcspbrk (Depends-on): Likewise.
13491         * modules/wcsrtombs (Depends-on): Likewise.
13492         * modules/wcsspn (Depends-on): Likewise.
13493         * modules/wcsstr (Depends-on): Likewise.
13494         * modules/wcstok (Depends-on): Likewise.
13495         * modules/wcswidth (Depends-on): Likewise.
13496         * modules/wctob (Depends-on): Likewise.
13497         * modules/wctomb (Depends-on): Likewise.
13498         * modules/wctype (Depends-on): Likewise.
13499         * modules/wcwidth (Depends-on): Likewise.
13500         * modules/write (Depends-on): Likewise.
13501
13502 2011-05-03  Bruno Haible  <bruno@clisp.org>
13503
13504         Support for conditional dependencies.
13505         * doc/gnulib.texi (Module description): Document the syntax of
13506         conditional dependencies.
13507         * gnulib-tool: New option --conditional-dependencies.
13508         (func_usage): Document it.
13509         (cond_dependencies): New variable.
13510         (func_get_automake_snippet_conditional,
13511         func_get_automake_snippet_unconditional): New functions, extracted from
13512         func_get_automake_snippet.
13513         (func_get_automake_snippet): Use them.
13514         (sed_first_32_chars): New variable.
13515         (func_module_shellfunc_name): New function.
13516         (func_module_shellvar_name): New function.
13517         (func_module_conditional_name): New function.
13518         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13519         func_cond_module_condition): New functions.
13520         (func_modules_transitive_closure): Add support for conditional
13521         dependencies.
13522         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13523         conditional automake snippet in an automake conditional.
13524         (func_emit_autoconf_snippets): Emit shell functions that contain the
13525         code for conditional modules.
13526         (func_import, func_create_testdir): Update specification.
13527
13528 2011-05-03  Eric Blake  <eblake@redhat.com>
13529
13530         test-getaddrinfo: report error information
13531         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13532
13533 2011-05-03  Jim Meyering  <meyering@redhat.com>
13534
13535         bootstrap: avoid build failure when $GZIP is set
13536         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13537         program name.  If defined at all, it is supposed to list gzip options.
13538         Reported by Alan Curry in http://debbugs.gnu.org/8609
13539
13540 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13541
13542         readme-release: new module with release instructions
13543         * modules/readme-release: New module.
13544         * top/README-release: New file, from coreutils, grep, diffutils.
13545         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13546
13547 2011-05-02  Eric Blake  <eblake@redhat.com>
13548
13549         fflush: also replace fclose when fixing fflush
13550         * modules/fflush (Depends-on): Add fclose.
13551         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13552         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13553         memstreams with no backing fd.
13554         * doc/posix-functions/fclose.texi (fclose): Document the use of
13555         fflush module to fix the bug.
13556         * tests/test-fclose.c (main): Relax test when fclose is used in
13557         isolation.
13558
13559         fclose: add some tests
13560         * modules/fclose-tests: New test module.
13561         * tests/test-fclose.c: New file.
13562         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13563
13564         fclose: reduced dependencies
13565         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13566         simpler lseek.
13567         * lib/fclose.c (rpl_fclose): Likewise.
13568         Reported by Simon Josefsson.
13569
13570         exit: drop remaining clients
13571         * modules/argmatch (Depends-on): Replace exit with stdlib.
13572         * modules/copy-file (Depends-on): Likewise.
13573         * modules/execute (Depends-on): Likewise.
13574         * modules/exitfail (Depends-on): Likewise.
13575         * modules/obstack (Depends-on): Likewise.
13576         * modules/pagealign_alloc (Depends-on): Likewise.
13577         * modules/pipe-filter-gi (Depends-on): Likewise.
13578         * modules/pipe-filter-ii (Depends-on): Likewise.
13579         * modules/savewd (Depends-on): Likewise.
13580         * modules/spawn-pipe (Depends-on): Likewise.
13581         * modules/wait-process (Depends-on): Likewise.
13582         * modules/xsetenv (Depends-on): Likewise.
13583         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13584         * modules/git-merge-changelog (Depends-on): Likewise.
13585         * modules/long-options (Depends-on): Likewise.
13586         * modules/pt_chown (Depends-on): Likewise.
13587         * modules/sysexits (Depends-on): Likewise.
13588
13589         freading: relax license from LGPLv3+ to LGPLv2+
13590         * modules/freading (License): Relax LGPL version.
13591
13592 2011-05-02  Bruno Haible  <bruno@clisp.org>
13593
13594         fchdir: Remove unused dependencies.
13595         * modules/fchdir (Depends-on): Remove include_next.
13596
13597 2011-05-02  Bruno Haible  <bruno@clisp.org>
13598
13599         gnulib-tool: Refactor.
13600         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13601         from func_emit_autoconf_snippets.
13602         (func_emit_autoconf_snippets): Use it.
13603
13604 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13605
13606         * NEWS: Document removal of 'exit'.
13607         * modules/exit: Remove file.
13608
13609 2011-05-01  Bruno Haible  <bruno@clisp.org>
13610
13611         Update DEPENDENCIES.
13612         * DEPENDENCIES (gettext): Recommend the newest release.
13613         Reported by Simon Josefsson.
13614
13615 2011-05-01  Bruno Haible  <bruno@clisp.org>
13616
13617         gnulib-tool: Reduce code duplication.
13618         * gnulib-tool (func_emit_autoconf_snippets): New function.
13619         (func_import, func_create_testdir): Use it.
13620
13621 2011-04-30  Eric Blake  <eblake@redhat.com>
13622
13623         fclose: don't fail on non-seekable input stream
13624         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13625         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13626         since fflush is allowed to fail in that case.
13627
13628 2011-04-30  Bruno Haible  <bruno@clisp.org>
13629
13630         dup3: cleanup
13631         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13632
13633 2011-04-30  Bruno Haible  <bruno@clisp.org>
13634
13635         netdb: Make it work in C++ mode.
13636         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13637         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13638         module.
13639         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13640         gl_MODULE_INDICATOR_FOR_TESTS.
13641         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13642         * modules/netdb-c++-tests: New file.
13643         * tests/test-netdb-c++.cc: New file.
13644
13645 2011-04-30  Bruno Haible  <bruno@clisp.org>
13646
13647         New modules 'vfscanf', 'vscanf'.
13648         * modules/vfscanf: New file.
13649         * modules/vscanf: New file.
13650         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13651         here.
13652         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13653         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13654
13655 2011-04-30  Bruno Haible  <bruno@clisp.org>
13656
13657         passfd: Add comments.
13658         * lib/passfd.c: Add comments about platforms.
13659
13660 2011-04-30  Bruno Haible  <bruno@clisp.org>
13661
13662         sys_uio: Make <sys/uio.h> self-contained.
13663         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13664         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13665
13666 2011-04-30  Bruno Haible  <bruno@clisp.org>
13667
13668         sys_socket: Ensure 'struct iovec' definition.
13669         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13670         <sys/socket.h>.
13671         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13672
13673 2011-04-30  Bruno Haible  <bruno@clisp.org>
13674
13675         sys_uio: Protect definition of 'struct iovec'.
13676         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13677         it as a C struct.
13678
13679 2011-04-30  Bruno Haible  <bruno@clisp.org>
13680
13681         manywarnings: fix indentation
13682         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13683
13684 2011-04-30  Pádraig Brady <P@draigBrady.com>
13685
13686         manywarnings: add -Wno-missing-field-initializers if needed.
13687         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13688         option if it's needed to allow initialization with { 0, }
13689
13690 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13691
13692         announce-gen: cosmetic improvement
13693         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13694
13695 2011-04-29  Jim Meyering  <meyering@redhat.com>
13696
13697         vc-list-files: indent with spaces, not TABs
13698         * build-aux/vc-list-files: Convert leading TABs to spaces,
13699         to match the style of most other files in gnulib.
13700
13701         announce-gen: indent with spaces, not TABs
13702         * build-aux/announce-gen: Convert all TABs to spaces, to match
13703         the style of most other files in gnulib.
13704
13705 2011-04-29  Eric Blake  <eblake@redhat.com>
13706
13707         quotearg: avoid uninitialized variable use
13708         * lib/quotearg.c (quoting_options_from_style): Initialize
13709         remaining fields, and ensure that custom styles are only used via
13710         quoting_options rather than quoting_style.
13711
13712 2011-04-29  Jim Meyering  <meyering@redhat.com>
13713
13714         maint.mk: remove unused VC-tag variable
13715         * top/maint.mk (VC-tag): Remove unused variable.
13716
13717 2011-04-29  Bruno Haible  <bruno@clisp.org>
13718
13719         netdb: fix gai_strerror replacements
13720         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
13721         * modules/netdb: Substitute it.
13722
13723 2011-04-29  Jim Meyering  <meyering@redhat.com>
13724
13725         test-getcwd.c: avoid new set-but-not-used warning
13726         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
13727         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
13728         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
13729         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
13730
13731         test-hash.c: avoid a new shadowing warning
13732         * tests/test-hash.c (main): Don't shadow "dup".
13733
13734 2011-04-28  Eric Blake  <eblake@redhat.com>
13735
13736         getaddrinfo: fix gai_strerror signature
13737         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
13738         and work around mingw with UNICODE defined.
13739         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
13740         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
13741         * modules/netdb (Makefile.am): Substitute it.
13742         * lib/netdb.in.h (gai_strerror): Declare replacement.
13743         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
13744         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
13745         the fix.
13746
13747         getsockopt: avoid compiler warning
13748         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
13749         Reported by Matthias Bolte.
13750
13751         tests: drop unused link dependency
13752         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
13753         * modules/dirent-safer-tests (Makefile.am): Likewise.
13754         * modules/fdopendir-tests (Makefile.am): Likewise.
13755         * modules/mkfifoat-tests (Makefile.am): Likewise.
13756         * modules/openat-safer-tests (Makefile.am): Likewise.
13757         * modules/openat-tests (Makefile.am): Likewise.
13758         * modules/readlinkat-tests (Makefile.am): Likewise.
13759         * modules/symlinkat-tests (Makefile.am): Likewise.
13760         * modules/linkat-tests (Makefile.am): Likewise.
13761         (Depends-on): Switch to filenamecat-lgpl.
13762         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13763         LIBINTL.
13764         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13765         * tests/test-linkat.c (main): Don't require xalloc.
13766
13767         hash, mgetgroups: drop xalloc dependency
13768         * lib/hash.c (includes): Adjust includes.
13769         * lib/mgetgroups.c (includes): Likewise.
13770         (xgetgroups): Move...
13771         * lib/xgetgroups.c: ...to new file.
13772         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
13773         * modules/xgetgroups: New file, split from...
13774         * modules/mgetgroups: ...here.
13775         (Depends-on): Add xalloc-oversized.
13776         * modules/hash (Depends-on): Likewise.
13777         * modules/hash-tests (Depends-on): Drop xalloc.
13778         (test_hash_LDADD): Drop unused library.
13779         * tests/test-hash.c (main): Break xalloc dependency.
13780         (includes): Drop unused include.
13781
13782         xalloc-oversized: new module
13783         * modules/xalloc-oversized: New module.
13784         * modules/xalloc (Depends-on): Add it.
13785         * lib/xalloc.h (xalloc_oversized): Move...
13786         * lib/xalloc-oversized.h: ...into new file.
13787
13788         utimecmp: drop dependency on xmalloc
13789         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13790         due to memory pressure.
13791         * modules/utimecmp (Depends-on): Drop xalloc.
13792
13793 2011-04-27  Eric Blake  <eblake@redhat.com>
13794
13795         getcwd: fix mingw bugs
13796         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13797         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13798         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13799
13800 2011-04-27  Bruno Haible  <bruno@clisp.org>
13801
13802         mkstemps: Ensure declaration on MacOS X 10.5.
13803         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13804         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13805         MacOS X.
13806
13807 2011-04-27  Bruno Haible  <bruno@clisp.org>
13808
13809         mkstemp: More documentation.
13810         * doc/posix-functions/mkstemp.texi: Document header file problem on
13811         MacOS X.
13812
13813 2011-04-27  Bruno Haible  <bruno@clisp.org>
13814
13815         mkstemp: Tweak configure message when cross-compiling.
13816         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13817         result as a guess.
13818
13819 2011-04-27  Bruno Haible  <bruno@clisp.org>
13820
13821         clean-temp: Clarify what it does.
13822         * lib/clean-temp.h: Add more comments.
13823         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13824         module.
13825         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13826         * doc/glibc-functions/mkstemps.texi: Likewise.
13827         * doc/glibc-functions/mkostemps.texi: Likewise.
13828
13829 2011-04-27  Eric Blake  <eblake@redhat.com>
13830
13831         fchdir: avoid extra chdir and fix test
13832         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13833         getcwd-lgpl.
13834         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13835         have to be canonical.
13836         (canonicalize_file_name): Drop unused macro.
13837         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13838
13839         filenamecat-lgpl: fix licence
13840         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13841         when it was first created.
13842
13843         linkat, renameat: add missing dependency
13844         * modules/linkat (Depends-on): Require getcwd-lgpl.
13845         * modules/renameat (Depends-on): Likewise.
13846
13847         tests: reduce dependencies
13848         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13849         * tests/test-renameat.c (main): Likewise.
13850         * modules/linkat-tests (Depends-on): Relax dependency.
13851         * modules/renameat-tests (Depends-on): Likewise.
13852         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13853         dependency explicit.
13854
13855         save-cwd: reduce default dependency
13856         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13857         * lib/save-cwd.c: Update comments.
13858         * NEWS: Document the semantic change.
13859
13860         getcwd: enhance tests
13861         * tests/test-getcwd-lgpl.c: New file, taken from...
13862         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13863         repeat long path stress tests from m4 probe.
13864         * modules/getcwd-lgpl-tests: New module.
13865         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13866         * m4/getcwd-abort-bug.m4: Update comment.
13867         * m4/getcwd-path-max.m4: Likewise.
13868
13869         getcwd-lgpl: new module
13870         * modules/getcwd-lgpl: New module.
13871         * lib/getcwd-lgpl.c: New file.
13872         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13873         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13874         * modules/getcwd (configure.ac): Set C witness.
13875         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13876
13877         getcwd: tweak comments
13878         * m4/getcwd-abort-bug.m4: Fix comments.
13879         * m4/getcwd-path-max.m4: Likewise.
13880         * m4/getcwd.m4: Likewise.
13881
13882 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13883         and Eric Blake  <eblake@redhat.com>
13884
13885         mkstemp: replace if system version uses wrong permissions
13886         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13887         read/write mode bits set in file created by mkstemp.
13888         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13889
13890 2011-04-27  Eric Blake  <eblake@redhat.com>
13891
13892         passfd: avoid compiler warning
13893         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13894         Reported by Laine Stump.
13895
13896 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13897
13898         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13899         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13900
13901 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13902         and Eric Blake  <eblake@redhat.com>
13903
13904         mkstemp: mention clean-temp module
13905         * lib/mkstemp.c: Add comment.
13906         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13907
13908 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13909
13910         inttypes: also provide default values for 32-bit tests
13911         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13912         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13913
13914 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13915
13916         strtoumax: remove dependency on strtoimax
13917         This is like the strtoull change of yesterday.
13918         * modules/strtoumax (Files): Add lib/strtoimax.c.
13919         (Depends-on): Remove strtoimax and add verify.
13920
13921         inttypes-incomplete: new module
13922         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13923         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13924         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13925         of gl_INTTYPES_H.
13926         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13927         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13928         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13929         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13930         * modules/strtoumax, modules/xstrtol (Depends-on):
13931         Depend on inttypes-incomplete, not inttypes.
13932         * modules/inttypes-incomplete: New module, containing the contents
13933         of the old modules/inttypes module, except that the Files: section
13934         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13935         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13936         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13937         (Depends-on): Depend only on inttypes-incomplete.
13938         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13939
13940         inttypes: omit now-redundant strtoimax and strtoumax work
13941         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13942         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13943
13944         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13945         This supports apps that need pointers to strtoimax and strtoumax,
13946         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13947         nonexistent functions.  See
13948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13949         et seq.
13950         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13951         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13952         a macro.
13953         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13954
13955 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13956
13957         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13958
13959 2011-04-25  Bruno Haible  <bruno@clisp.org>
13960
13961         strtol, strtoul: Mark modules as obsolete.
13962         * modules/strtol (Status, Notice): New sections.
13963         * modules/strtoul (Status, Notice): New sections.
13964
13965 2011-04-25  Bruno Haible  <bruno@clisp.org>
13966
13967         strtod: Remove check for strtod, unless supporting old platforms.
13968         * modules/strtod-obsolete: New file.
13969         * m4/strtod-obsolete.m4: New file.
13970         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13971         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13972         * modules/strtod (Depends-on): Add strtod-obsolete.
13973         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13974
13975 2011-04-25  Bruno Haible  <bruno@clisp.org>
13976
13977         strcase: Make module obsolete.
13978         * modules/strcase (Status, Notice): New sections.
13979
13980 2011-04-25  Bruno Haible  <bruno@clisp.org>
13981
13982         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13983         * modules/dup2-obsolete: New file.
13984         * m4/dup2-obsolete.m4: New file.
13985         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13986         gl_FUNC_DUP2_OBSOLETE is not also defined.
13987         * modules/dup2 (Depends-on): Add dup2-obsolete.
13988         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13989
13990 2011-04-25  Bruno Haible  <bruno@clisp.org>
13991
13992         strnlen: Avoid memchr related link error on old obsolete platforms.
13993         * modules/memchr-obsolete: New file.
13994         * m4/memchr-obsolete.m4: New file.
13995         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13996         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13997         * modules/memchr (Depends-on): Add memchr-obsolete.
13998         * modules/strnlen (Depends-on): Likewise.
13999         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14000
14001 2011-04-25  Jim Meyering  <meyering@redhat.com>
14002
14003         maint.mk: makefile_at_at_check extend and clean up
14004         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14005         in addition to */Makefile.am.
14006         Exempt legitimate uses of @VAR@ notation, e.g.,
14007         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14008         Remove obsolete coreutils-specific comment.
14009         Prompted by discussion here:
14010         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14011
14012 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14013
14014         strtoul: remove dependency on strtol
14015         This is so that 'configure' need not check for strtol merely because
14016         the application needs strtoul.
14017         * modules/strtoul (Files): Add lib/strtol.c.
14018         (Depends-on): Remove strtol.
14019
14020         strtoull: remove dependency on strtoul
14021         This is like the strtoll change.
14022         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14023         (Depends-on): Remove strtoul.
14024
14025         strtoll: remove dependency on strtol
14026         This is so that 'configure' need not check for strtol merely because
14027         the application needs strtoll.
14028         * modules/strtoll (Files): Add lib/strtol.c.
14029         (Depends-on): Remove strtol.
14030
14031 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14032
14033         inttypes: Move some configure check to module 'imaxdiv'.
14034         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14035         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14036         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14037
14038 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14039
14040         inttypes: Move some configure check to module 'imaxabs'.
14041         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14042         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14043         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14044
14045 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14046
14047         inttypes: Remove configure tests that are not needed since 2009-12-31.
14048         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14049         gl_cv_header_working_inttypes_h.
14050
14051 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14052
14053         * modules/strnlen (Depends-on): Remove memchr.
14054         The strnlen implementation doesn't need the memchr module's fixes; see
14055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14056
14057         strtol: remove dependency on wchar
14058         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14059         * modules/strtol (Depends-on): Remove wchar.
14060
14061 2011-04-21  Eric Blake  <eblake@redhat.com>
14062
14063         passfd: fix test regression on Linux
14064         * modules/passfd-tests (configure.ac): Correct socketpair check.
14065
14066         passfd: speed up configure and drop unused code
14067         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14068         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14069         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14070         Instead of probing at configure for unix_scm_rights_bsd44_way,
14071         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14072         check to a struct member probe.
14073         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14074         (sendfd, recvfd): Update preprocessor checks.
14075         * modules/passfd (Files): Reflect rename, and drop unused file.
14076         (Depends-on): Drop unused dependency.
14077
14078         passfd: allow compilation on mingw
14079         * modules/sys_socket (Depends-on): Add sys_uio.
14080         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14081         iovec and a minimal struct msghdr.
14082         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14083         * tests/test-sys_socket.c (main): Enhance test.
14084         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14085         guaranteed to provide what we need.
14086         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14087         * modules/passfd-tests (Depends-on): Add sys_wait.
14088         * tests/test-passfd.c (main): Skip test on mingw, for now.
14089         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14090         partial 'struct msghdr' implementation.
14091
14092         sys_uio: new module
14093         * modules/sys_uio: New module.
14094         * modules/sys_uio-tests: Likewise.
14095         * lib/sys_uio.in.h: New file.
14096         * m4/sys_uio_h.m4: Likewise.
14097         * tests/test-sys_uio.c: Likewise.
14098         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14099         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14100
14101 2011-04-20  Jim Meyering  <meyering@redhat.com>
14102
14103         useless-if-before-free: avoid false-positive
14104         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14105         disjunct so that it too requires a terminating ";".  Without that,
14106         this script would identify as useless one statement from gcc that
14107         was not:
14108           if (aligned_ptr)
14109             free (((void **) aligned_ptr) [-1]);
14110
14111 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14112
14113         doc: update users.txt.
14114         * users.txt: Add barcode.
14115
14116 2011-04-19  Bruno Haible  <bruno@clisp.org>
14117
14118         ioctl: Remove link dependency on native Windows.
14119         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14120         (gl_close_fn, gl_ioctl_fn): New types.
14121         (struct fd_hook): Renamed from struct close_hook. Change type of
14122         private_close_fn field. Add private_ioctl_fn field.
14123         (close_hook_fn): Add parameter for primary close method.
14124         (execute_close_hooks, execute_all_close_hooks): Likewise.
14125         (ioctl_hook_fn): New type.
14126         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14127         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14128         argument.
14129         (unregister_fd_hook): Renamed from unregister_close_hook.
14130         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14131         Don't include <unistd.h>.
14132         (close): Remove undef.
14133         (anchor): Update.
14134         (execute_close_hooks): Add argument for primary close method.
14135         (execute_all_close_hooks): Likewise.
14136         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14137         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14138         argument. Allow each argument to be NULL.
14139         (unregister_fd_hook): Renamed from unregister_close_hook.
14140         * lib/close.c (rpl_close): Pass 'close' function pointer to
14141         execute_all_close_hooks.
14142         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14143         (primary_ioctl): New function.
14144         (ioctl): Don't call ioctlsocket here. Instead, call
14145         execute_all_ioctl_hooks.
14146         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14147         close method.
14148         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14149         (fd_sockets_hook): Renamed from close_sockets_hook.
14150         (gl_sockets_startup, gl_sockets_cleanup): Update.
14151         * modules/fd-hook: Renamed from modules/close-hook. Update.
14152         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14153         * modules/sockets (Depends-on): Likewise.
14154         * modules/ioctl (Depends-on): Add fd-hook.
14155         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14156         GNULIB_SOCKET.
14157
14158 2011-04-19  Bruno Haible  <bruno@clisp.org>
14159
14160         Move the support of O_NONBLOCK in open() to the 'open' module.
14161         * modules/nonblocking (Depends-on): Remove 'open'.
14162         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14163         gl_cv_have_open_O_NONBLOCK.
14164         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14165         O_NONBLOCK support.
14166         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14167
14168 2011-04-17  Bruno Haible  <bruno@clisp.org>
14169
14170         pipe2: Simplify code.
14171         * lib/pipe2.c (pipe2): Reduce code duplication.
14172
14173 2011-04-17  Bruno Haible  <bruno@clisp.org>
14174
14175         nonblocking: Add comment.
14176         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14177
14178 2011-04-17  Bruno Haible  <bruno@clisp.org>
14179
14180         nonblocking: Add tests for sockets.
14181         * tests/test-nonblocking-socket.sh: New file.
14182         * tests/test-nonblocking-socket-main.c: New file.
14183         * tests/test-nonblocking-socket-child.c: New file.
14184         * tests/test-nonblocking-socket.h: New file.
14185         * tests/socket-server.h: New file.
14186         * tests/socket-client.h: New file.
14187         * modules/nonblocking-socket-tests: New file.
14188         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14189
14190 2011-04-17  Bruno Haible  <bruno@clisp.org>
14191
14192         nonblocking: Add tests for pipes.
14193         * tests/test-nonblocking-pipe.sh: New file.
14194         * tests/test-nonblocking-pipe-main.c: New file.
14195         * tests/test-nonblocking-pipe-child.c: New file.
14196         * tests/test-nonblocking-pipe.h: New file.
14197         * tests/test-nonblocking-writer.h: New file.
14198         * tests/test-nonblocking-reader.h: New file.
14199         * tests/test-nonblocking-misc.h: New file.
14200         * modules/nonblocking-pipe-tests: New file.
14201         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14202
14203 2011-04-16  Bruno Haible  <bruno@clisp.org>
14204
14205         gettext: Clarify the needed programmer actions.
14206         * modules/gettext (Notice): New field.
14207         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14208
14209 2011-04-16  Bruno Haible  <bruno@clisp.org>
14210
14211         strchrnul: Tweak last commit.
14212         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14213         bug.
14214         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14215         as in _GL_FUNCDECL_SYS.
14216         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14217         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14218
14219 2011-04-15  Eric Blake  <eblake@redhat.com>
14220
14221         strchrnul: work around cygwin bug
14222         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14223         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14225         * modules/string (Makefile.am): Substitute it.
14226         * lib/string.in.h (strchrnul): Use it.
14227
14228 2011-04-15  Bruno Haible  <bruno@clisp.org>
14229
14230         Don't require lib/stdio-write.c when only module 'stdio' is used.
14231         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14232         invocation.
14233         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14234
14235 2011-04-14  Bruno Haible  <bruno@clisp.org>
14236
14237         Support non-blocking pipe I/O in read() on native Windows.
14238         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14239         (read): New declaration.
14240         * lib/read.c: New file.
14241         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14242         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14243         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14244         vscanf): New declarations.
14245         * lib/stdio-read.c: New file.
14246         * m4/read.m4: New file.
14247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14248         REPLACE_READ.
14249         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14250         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14251         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14252         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14253         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14254         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14255         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14256         * modules/read: New file.
14257         * modules/nonblocking (Files): Add lib/stdio-read.c.
14258         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14259         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14260         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14261         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14262         * modules/pread (Depends-on): Add read.
14263         * modules/safe-read (Depends-on): Likewise.
14264         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14265         gets, scanf, vfscanf, vscanf): Verify signatures.
14266         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14267         problem with non-blocking pipes.
14268         * doc/posix-functions/fgetc.texi: Likewise.
14269         * doc/posix-functions/fgets.texi: Likewise.
14270         * doc/posix-functions/fread.texi: Likewise.
14271         * doc/posix-functions/fscanf.texi: Likewise.
14272         * doc/posix-functions/getc.texi: Likewise.
14273         * doc/posix-functions/getchar.texi: Likewise.
14274         * doc/posix-functions/gets.texi: Likewise.
14275         * doc/posix-functions/scanf.texi: Likewise.
14276         * doc/posix-functions/vfscanf.texi: Likewise.
14277         * doc/posix-functions/vscanf.texi: Likewise.
14278
14279 2011-04-14  Bruno Haible  <bruno@clisp.org>
14280
14281         Support non-blocking pipe I/O in write() on native Windows.
14282         * lib/write.c (rpl_write): Split a write request that failed merely
14283         because the byte count was larger than the pipe buffer's size.
14284         * doc/posix-functions/write.texi: Mention the problem with large byte
14285         counts.
14286
14287 2011-04-14  Bruno Haible  <bruno@clisp.org>
14288
14289         wchar: Ensure that wchar_t gets defined on uClibc.
14290         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14291         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14292
14293 2011-04-13  Bruno Haible  <bruno@clisp.org>
14294
14295         safe-write, full-read: Avoid unnecessary compilation units.
14296         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14297         (Depends-on): Remove safe-read. Add ssize_t.
14298         * modules/full-read (Files): Add lib/full-write.c.
14299         (Depends-on): Add full-write.
14300
14301 2011-04-13  Bruno Haible  <bruno@clisp.org>
14302
14303         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14304         * modules/pwrite (Depends-on): Add 'write'.
14305
14306 2011-04-13  Bruno Haible  <bruno@clisp.org>
14307
14308         Support non-blocking pipe I/O in write() on native Windows.
14309         * lib/unistd.in.h (write): Enable replacement also if
14310         GNULIB_UNISTD_H_NONBLOCKING is 1.
14311         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14312         (rpl_write): When failing to write on a non-blocking pipe, change
14313         errno from ENOSPC to EAGAIN.
14314         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14315         putchar, puts, vfprintf, vprintf): Enable replacement also if
14316         GNULIB_STDIO_H_NONBLOCKING is 1.
14317         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14318         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14319         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14320         CALL_WITH_SIGPIPE_EMULATION.
14321         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14322         * m4/nonblocking.m4: New file.
14323         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14324         for non-blocking I/O support.
14325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14326         GNULIB_UNISTD_H_NONBLOCKING.
14327         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14328         required for non-blocking I/O support.
14329         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14330         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14331         lib/stdio-write.c, m4/asm-underscore.m4.
14332         (Depends-on): Add stdio, unistd.
14333         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14334         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14335         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14336         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14337         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14338         problem with non-blocking pipes.
14339         * doc/posix-functions/fputc.texi: Likewise.
14340         * doc/posix-functions/fputs.texi: Likewise.
14341         * doc/posix-functions/fwrite.texi: Likewise.
14342         * doc/posix-functions/printf.texi: Likewise.
14343         * doc/posix-functions/putc.texi: Likewise.
14344         * doc/posix-functions/putchar.texi: Likewise.
14345         * doc/posix-functions/puts.texi: Likewise.
14346         * doc/posix-functions/vfprintf.texi: Likewise.
14347         * doc/posix-functions/vprintf.texi: Likewise.
14348         * doc/posix-functions/write.texi: Likewise.
14349
14350 2011-04-10  Jim Meyering  <meyering@redhat.com>
14351
14352         maint.mk: prohibit doubled words
14353         Detect them also when they're separated by a newline.
14354         There are 3 ways to customize it:
14355           - disable the test on a per file basis, as usual with rules using
14356             $(VC_LIST_EXCEPT)
14357           - replace the default doubled-word-selecting regexp (affects all files)
14358           - ignore a particular file-vs-doubled-word match
14359         I nearly used that last one to ignore the "is is" match in
14360         coreutils' NEWS file, since the text was "ls -is is ..."
14361         To do that, I would have added this line to cfg.mk:
14362           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14363         but it would have ignored any "is is" match in NEWS.
14364         Low probability, but still...
14365         Instead, I changed the text, slightly:
14366           -  ls -is is now consistent with ls -lis in ignoring values returned
14367           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14368         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14369         (prohibit_doubled_word_): Define.
14370         (sc_prohibit_doubled_word): New rule.
14371         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14372
14373 2011-04-10  Jim Meyering  <meyering@redhat.com>
14374
14375         maint: fix doubled-word typo in comment
14376         * m4/gethostname.m4: s/is is/it is/
14377         * m4/getdomainname.m4: Likewise.
14378
14379 2011-04-10  Jim Meyering  <meyering@redhat.com>
14380
14381         maint: remove doubled word: s/it it/it/
14382         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14383
14384 2011-04-10  Jim Meyering  <meyering@redhat.com>
14385
14386         maint.mk: remove useless semicolon and backslash
14387         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14388         semicolon and backslash.
14389
14390 2011-04-10  Bruno Haible  <bruno@clisp.org>
14391
14392         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14393         * modules/stdint-tests (Depends-on): Add wchar.
14394
14395 2011-04-10  Jim Meyering  <meyering@redhat.com>
14396
14397         maint: remove doubled words in comments, e.g., s/a a/a/
14398         * lib/strptime.c (day_of_the_week): s/the the/the/
14399         * tests/test-chown.h (test_chown): s/a a/a/
14400
14401         test-chown.h: correct a cast
14402         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14403         when the destination is a stat.st_gid.
14404
14405 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14406
14407         getaddrinfo: Fix test for sa_len member.
14408         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14409         include <sys/types.h> before <sys/socket.h>.
14410
14411 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14412
14413         maint: change "can not" to "cannot"
14414         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14415         boundaries.
14416
14417 2011-04-09  Jim Meyering  <meyering@redhat.com>
14418
14419         maint: change "a a" to "a"
14420         * tests/test-lchown.h (test_lchown): s/a a/a/
14421
14422         maint.mk: prohibit \<the the\>
14423         * top/maint.mk (sc_prohibit_the_the): New rule.
14424
14425         maint: fix "the the" in comment
14426         * lib/count-one-bits.h: s/the the/the/
14427
14428         maint: change "can not" to "cannot"
14429         But do not change the occurrences in maintain.texi or in
14430         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14431         * doc/gnulib-tool.texi: s/can not/cannot/
14432         * doc/posix-functions/accept.texi (accept): Likewise.
14433         * doc/posix-functions/socket.texi (socket): Likewise.
14434         * lib/mbrtowc.c: Likewise.
14435
14436         maint.mk: prohibit use of "can not"
14437         * top/maint.mk (sc_prohibit_can_not): New rule.
14438         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14439
14440 2011-04-09  Bruno Haible  <bruno@clisp.org>
14441
14442         careadlinkat: Guard against misuse of careadlinkatcwd.
14443         * lib/careadlinkat.c: Include <stdlib.h>.
14444         (careadlinkatcwd): Check that the fd argument is as expected.
14445
14446 2011-04-09  Bruno Haible  <bruno@clisp.org>
14447
14448         careadlinkat: Use common coding style.
14449         * lib/careadlinkat.c: Move gnulib includes after system includes.
14450
14451 2011-04-09  Bruno Haible  <bruno@clisp.org>
14452
14453         careadlinkat: Clarify specification.
14454         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14455         (careadlinkatcwd): Add comment.
14456         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14457
14458 2011-04-09  Bruno Haible  <bruno@clisp.org>
14459
14460         areadlinkat: Avoid link error on many platforms.
14461         * modules/areadlinkat (Depends-on): Add areadlink.
14462
14463 2011-04-09  Bruno Haible  <bruno@clisp.org>
14464
14465         allocator, careadlinkat: Fix double-inclusion guard.
14466         * lib/allocator.h: Fix double-inclusion guard.
14467         * lib/careadlinkat.h: Likewise.
14468
14469 2011-04-09  Bruno Haible  <bruno@clisp.org>
14470
14471         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14472         * lib/relocwrapper.c: Update dependencies hierarchy.
14473         * build-aux/install-reloc: Update list of files to be compiled.
14474         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14475         lib/allocator.[hc].
14476
14477 2011-04-08  Eric Blake  <eblake@redhat.com>
14478
14479         strftime: silence gnulib-tool warning
14480         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14481
14482 2011-04-08  Bruno Haible  <bruno@clisp.org>
14483
14484         verify: Fix syntax error with GCC 4.6 in C++ mode.
14485         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14486         (HAVE_STATIC_ASSERT): New macro.
14487         (verify_true, verify): Use 'static_assert' if it is supported and
14488         '_Static_assert' is not supported.
14489
14490 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14491
14492         allocator: New module.
14493         * modules/allocator, lib/allocator.c: New files.
14494         * lib/allocator.h (stdlib_allocator): New decl.
14495         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14496         Remove.  Do not include <stdlib.h>.
14497         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14498         * modules/careadlinkat (Files): Remove lib/allocator.h.
14499         (Depends-on): Add allocator.
14500
14501         stdlib: let modules use system malloc, realloc
14502         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14503         if !_GL_USE_STDLIB_ALLOC.
14504         (malloc, realloc): Limit this change to a smaller scope.
14505
14506         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14507         (malloc, realloc): Don't #undef; no longer needed.
14508         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14509         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14510         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14511         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14512         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14513         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14514         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14515         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14516
14517         careadlinkat: rename members to avoid problem
14518         * lib/allocator.h (struct allocator): Rename members from
14519         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14520         and realloc are #define'd.  Reported by Eric Blake in
14521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14522         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14523
14524 2011-04-08  Eric Blake  <eblake@redhat.com>
14525
14526         nonblocking: reduce dependency
14527         * tests/test-nonblocking.c: Only test sockets when in use.
14528         * modules/nonblocking-tests (Depends-on): Drop socket.
14529         (Makefile.am): Link even if sockets are not present.
14530         * modules/pipe2-tests (Makefile.am): Likewise.
14531         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14532
14533         pipe2: fix O_NONBLOCK support on mingw
14534         * modules/pipe2 (Depends-on): Add nonblocking.
14535         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14536         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14537         * tests/test-nonblocking.c (main): Likewise.
14538         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14539
14540         fcntl-h: fix O_ACCMODE on cygwin
14541         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14542         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14543
14544         pipe-filter: drop O_NONBLOCK workarounds
14545         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14546         * modules/pipe-filter-ii (Depends-on): Likewise.
14547         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14548
14549         nonblocking: provide O_NONBLOCK for mingw
14550         * modules/nonblocking (Depends-on): Add open.
14551         (configure.ac): Set new witness macro.
14552         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14553         * modules/fcntl-h (Makefile.am): Substitute it.
14554         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14555         nonblocking module is in use.
14556         * lib/nonblocking.c: Adjust portability test.
14557         * lib/open.c (open): Don't let native open see gnulib flag.
14558         * tests/test-fcntl-h.c (main): Enhance test.
14559         * tests/test-open.h (test_open): Likewise.
14560         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14561
14562         careadlinkat: fix compilation error on mingw
14563         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14564         within struct allocator.
14565
14566 2011-04-06  Eric Blake  <eblake@redhat.com>
14567
14568         binary-io: relicense under LGPLv2+
14569         * modules/binary-io (License): Relax to LGPLv2+.
14570         Requested for libvirt, and required by pipe2.
14571
14572 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14573
14574         verify: use _Static_assert if available
14575         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14576         (verify_true, verify): Use it if available.  This generates better
14577         diagnostics with GCC 4.6.0 and later.
14578
14579 2011-04-05  Bruno Haible  <bruno@clisp.org>
14580
14581         Remove leftover generated .h files after config.status changed.
14582
14583         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14584         GL_GENERATE_ALLOCA_H.
14585         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14586         GL_GENERATE_ALLOCA_H evaluates to false.
14587
14588         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14589         GL_GENERATE_ARGZ_H.
14590         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14591         evaluates to false.
14592
14593         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14594         GL_GENERATE_BYTESWAP_H.
14595         * modules/byteswap (Makefile.am): Remove byteswap.h if
14596         GL_GENERATE_BYTESWAP_H evaluates to false.
14597
14598         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14599         GL_GENERATE_ERRNO_H.
14600         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14601         evaluates to false.
14602
14603         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14604         GL_GENERATE_FLOAT_H.
14605         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14606         evaluates to false.
14607
14608         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14609         GL_GENERATE_FNMATCH_H.
14610         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14611         GL_GENERATE_FNMATCH_H evaluates to false.
14612
14613         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14614         GL_GENERATE_GLOB_H.
14615         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14616         evaluates to false.
14617
14618         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14619         automake conditional GL_GENERATE_ICONV_H.
14620         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14621         evaluates to false.
14622
14623         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14624         GL_GENERATE_NETINET_IN_H.
14625         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14626         GL_GENERATE_NETINET_IN_H evaluates to false.
14627
14628         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14629         conditional GL_GENERATE_PTHREAD_H.
14630         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14631         * modules/pthread (Makefile.am): Remove pthread.h if
14632         GL_GENERATE_PTHREAD_H evaluates to false.
14633
14634         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14635         GL_GENERATE_SCHED_H.
14636         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14637         evaluates to false.
14638
14639         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14640         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14641         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14642         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14643
14644         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14645         GL_GENERATE_STDARG_H.
14646         * modules/stdarg (Makefile.am): Remove stdarg.h if
14647         GL_GENERATE_STDARG_H evaluates to false.
14648
14649         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14650         GL_GENERATE_STDBOOL_H.
14651         * modules/stdbool (Makefile.am): Remove stdbool.h if
14652         GL_GENERATE_STDBOOL_H evaluates to false.
14653
14654         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14655         conditional GL_GENERATE_STDDEF_H.
14656         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14657         * modules/stddef (Makefile.am): Remove stddef.h if
14658         GL_GENERATE_STDDEF_H evaluates to false.
14659
14660         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14661         GL_GENERATE_STDINT_H.
14662         * modules/stdint (Makefile.am): Remove stdint.h if
14663         GL_GENERATE_STDINT_H evaluates to false.
14664
14665         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14666         GL_GENERATE_SYSEXITS_H.
14667         * modules/sysexits (Makefile.am): Remove sysexits.h if
14668         GL_GENERATE_SYSEXITS_H evaluates to false.
14669
14670         Reported by Karl Berry and Ralf Wildenhues.
14671
14672 2011-04-05  Bruno Haible  <bruno@clisp.org>
14673
14674         Ensure to rebuild generated .h files when config.status has changed.
14675         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14676         config.status.
14677         * modules/ctype (Makefile.am): Likewise.
14678         * modules/dirent (Makefile.am): Likewise.
14679         * modules/errno (Makefile.am): Likewise.
14680         * modules/fcntl-h (Makefile.am): Likewise.
14681         * modules/float (Makefile.am): Likewise.
14682         * modules/getopt-posix (Makefile.am): Likewise.
14683         * modules/glob (Makefile.am): Likewise.
14684         * modules/iconv-h (Makefile.am): Likewise.
14685         * modules/inttypes (Makefile.am): Likewise.
14686         * modules/langinfo (Makefile.am): Likewise.
14687         * modules/locale (Makefile.am): Likewise.
14688         * modules/math (Makefile.am): Likewise.
14689         * modules/netdb (Makefile.am): Likewise.
14690         * modules/netinet_in (Makefile.am): Likewise.
14691         * modules/poll-h (Makefile.am): Likewise.
14692         * modules/pthread (Makefile.am): Likewise.
14693         * modules/pty (Makefile.am): Likewise.
14694         * modules/sched (Makefile.am): Likewise.
14695         * modules/search (Makefile.am): Likewise.
14696         * modules/selinux-h (Makefile.am): Likewise.
14697         * modules/signal (Makefile.am): Likewise.
14698         * modules/spawn (Makefile.am): Likewise.
14699         * modules/stdarg (Makefile.am): Likewise.
14700         * modules/stdbool (Makefile.am): Likewise.
14701         * modules/stddef (Makefile.am): Likewise.
14702         * modules/stdint (Makefile.am): Likewise.
14703         * modules/stdio (Makefile.am): Likewise.
14704         * modules/stdlib (Makefile.am): Likewise.
14705         * modules/string (Makefile.am): Likewise.
14706         * modules/strings (Makefile.am): Likewise.
14707         * modules/sys_file (Makefile.am): Likewise.
14708         * modules/sys_ioctl (Makefile.am): Likewise.
14709         * modules/sys_select (Makefile.am): Likewise.
14710         * modules/sys_socket (Makefile.am): Likewise.
14711         * modules/sys_stat (Makefile.am): Likewise.
14712         * modules/sys_time (Makefile.am): Likewise.
14713         * modules/sys_times (Makefile.am): Likewise.
14714         * modules/sys_utsname (Makefile.am): Likewise.
14715         * modules/sys_wait (Makefile.am): Likewise.
14716         * modules/sysexits (Makefile.am): Likewise.
14717         * modules/termios (Makefile.am): Likewise.
14718         * modules/time (Makefile.am): Likewise.
14719         * modules/unistd (Makefile.am): Likewise.
14720         * modules/wchar (Makefile.am): Likewise.
14721         * modules/wctype-h (Makefile.am): Likewise.
14722         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
14723
14724 2011-04-05  Bruno Haible  <bruno@clisp.org>
14725
14726         pipe2: Relicense under LGPLv2+.
14727         * modules/pipe2 (License): Change to LGPLv2+.
14728         Requested by Eric Blake, for libvirt.
14729
14730 2011-04-05  Bruce Korb  <bkorb@gnu.org>
14731
14732         bootstrap: compute gnulib_extra_files after updating build_aux
14733         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
14734         change build_aux or also supply gnulib_extra_files.  Handle correctly.
14735
14736 2011-04-05  Eric Blake  <eblake@redhat.com>
14737
14738         bootstrap: preserve git whitelist item sorting
14739         * build-aux/bootstrap (sort_patterns): New function.
14740         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
14741
14742 2011-04-05  Simon Josefsson  <simon@josefsson.org>
14743
14744         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
14745         sc_space_tab check.
14746
14747 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14748
14749         areadlink, areadlinkat: rewrite in terms of careadlinkat
14750         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
14751         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
14752         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
14753         (malloc, realloc): Remove #undefs.
14754         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14755         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14756         readlink, ssize_t, stdint, unistd.
14757         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14758         areadlink, stdint.
14759
14760         careadlinkat: new module
14761         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14762         * modules/careadlinkat: New files, written by me with
14763         a review and feedback from Ben Pfaff in
14764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14765
14766 2011-04-01  Bruno Haible  <bruno@clisp.org>
14767
14768         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14769         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
14770         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
14771         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
14772         Reported by Bruce Korb <bruce.korb@gmail.com>.
14773
14774 2011-04-01  Bruno Haible  <bruno@clisp.org>
14775
14776         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
14777         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14778         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14779         * modules/wcpcpy (Depends-on): Add extensions.
14780         * modules/wcpncpy (Depends-on): Likewise.
14781         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14782         systems.
14783         * doc/posix-functions/wcpncpy.texi: Likewise.
14784         * doc/posix-functions/wcwidth.texi: Likewise.
14785
14786 2011-03-31  Eric Blake  <eblake@redhat.com>
14787
14788         nonblocking: fix mingw test failures
14789         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14790         non-blocking flag on regular file.
14791         (get_nonblocking_flag): Set errno on invalid fd.
14792         * tests/test-nonblocking.c (main): Avoid test failure on
14793         directories if fchdir is not active.
14794         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14795
14796 2011-03-31  Bruno Haible  <bruno@clisp.org>
14797
14798         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14799         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14800         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14801         Reported by Simon Josefsson <simon@josefsson.org>.
14802
14803 2011-03-31  Bruno Haible  <bruno@clisp.org>
14804         and Eric Blake  <eblake@redhat.com>
14805
14806         nonblocking: new module
14807         * modules/nonblocking: New module.
14808         * modules/nonblocking-tests: Likewise.
14809         * lib/nonblocking.h: New file.
14810         * lib/nonblocking.c: Likewise.
14811         * tests/test-nonblocking.c: New test.
14812         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14813
14814 2011-03-30  Bruno Haible  <bruno@clisp.org>
14815
14816         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14817         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14818         instead of 'printf' format for GCC >= 4.4.
14819         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14820         (fprintf, printf, vfprintf, vprintf): Declare with
14821         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14822         the system's vfprintf() function.
14823         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14824
14825 2011-03-30  Eric Blake  <eblake@redhat.com>
14826
14827         passfd: fix scoping bug
14828         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14829         before sendmsg/recvmsg.
14830
14831         passfd: standardize coding conventions
14832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14833         can be learned at compile time.
14834         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14835         ifdefs.
14836         (sendfd, recvfd): Follow gnulib code conventions.
14837
14838         passfd: fix incorrect sendmsg arguments
14839         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14840         incorrect msg_controllen value.
14841         * modules/passfd-tests (Depends-on): Check for alarm.
14842         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14843         Reported by Bastien ROUCARIES.
14844
14845 2011-03-30  Bruno Haible  <bruno@clisp.org>
14846
14847         c-strcasestr: Relicense under LGPLv2+.
14848         * modules/c-strcasestr (License): Change to LGPLv2+.
14849         Requested by Eric Blake, for libvirt.
14850
14851 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14852
14853         * users.txt: Add libidn2.  Fix libtasn1 link.
14854
14855 2011-03-30  Jim Meyering  <meyering@redhat.com>
14856
14857         tests: readlink* ("",... fails with EINVAL on newer kernels
14858         readlink and readlinkat have typically failed with ENOENT for
14859         the invalid, empty file name,  "".  However, with the advent
14860         of linux-2.6.39, they fail with EINVAL.
14861         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14862         when operating on the empty file name.
14863         * tests/test-readlink.h (test_readlink): Likewise.
14864
14865 2011-03-29  Bruno Haible  <bruno@clisp.org>
14866
14867         Relicense some modules under LGPLv2+, for libidn2.
14868         * modules/array-mergesort (License): Change to LGPLv2+.
14869         * modules/c-strcaseeq (License): Likewise.
14870         * modules/striconveh (License): Likewise.
14871         * modules/striconveha (License): Likewise.
14872         * modules/uniconv/base (License): Likewise.
14873         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14874         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14875         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14876         * modules/unictype/base (License): Likewise.
14877         * modules/unictype/bidiclass-of (License): Likewise.
14878         * modules/unictype/category-M (License): Likewise.
14879         * modules/unictype/category-none (License): Likewise.
14880         * modules/unictype/category-of (License): Likewise.
14881         * modules/unictype/category-test (License): Likewise.
14882         * modules/unictype/category-test-withtable (License): Likewise.
14883         * modules/unictype/combining-class (License): Likewise.
14884         * modules/unictype/joiningtype-of (License): Likewise.
14885         * modules/unictype/scripts (License): Likewise.
14886         * modules/uninorm/base (License): Likewise.
14887         * modules/uninorm/canonical-decomposition (License): Likewise.
14888         * modules/uninorm/composition (License): Likewise.
14889         * modules/uninorm/decompose-internal (License): Likewise.
14890         * modules/uninorm/decomposition-table (License): Likewise.
14891         * modules/uninorm/nfc (License): Likewise.
14892         * modules/uninorm/nfd (License): Likewise.
14893         * modules/uninorm/u32-normalize (License): Likewise.
14894         * modules/unistr/base (License): Likewise.
14895         * modules/unistr/u32-cpy (License): Likewise.
14896         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14897         * modules/unistr/u32-to-u8 (License): Likewise.
14898         * modules/unistr/u32-uctomb (License): Likewise.
14899         * modules/unistr/u8-check (License): Likewise.
14900         * modules/unistr/u8-mblen (License): Likewise.
14901         * modules/unistr/u8-mbtouc (License): Likewise.
14902         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14903         * modules/unistr/u8-mbtoucr (License): Likewise.
14904         * modules/unistr/u8-prev (License): Likewise.
14905         * modules/unistr/u8-strlen (License): Likewise.
14906         * modules/unistr/u8-to-u32 (License): Likewise.
14907         * modules/unistr/u8-uctomb (License): Likewise.
14908         * modules/unitypes (License): Likewise.
14909         Requested by Simon Josefsson.
14910
14911 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14912
14913         lib-symbol-visibility: Add a notice.
14914         * modules/lib-symbol-visibility (Notice): New field.
14915
14916 2011-03-29  Bruno Haible  <bruno@clisp.org>
14917
14918         getaddrinfo: Doc fix.
14919         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14920         section "fixed in Gnulib".
14921
14922 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14923
14924         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14925         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14926
14927 2011-03-26  Bruno Haible  <bruno@clisp.org>
14928
14929         unictype/property-byname: Reduce the number of load-time relocations.
14930         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14931         (UC_PROPERTY_INDEX_*): New enumeration values.
14932         (uc_property_byname): Convert an index from the lookup table to an
14933         uc_property_t.
14934         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14935         values.
14936
14937 2011-03-26  Bruno Haible  <bruno@clisp.org>
14938
14939         unictype/property-byname: Allow omitted word separators and aliases.
14940         * lib/unictype/pr_byname.gperf: Add property names without word
14941         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14942         for 'space'.
14943
14944 2011-03-26  Bruno Haible  <bruno@clisp.org>
14945
14946         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14947         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14948         also hyphens to space.
14949         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14950         without spaces.
14951         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14952
14953 2011-03-26  Bruno Haible  <bruno@clisp.org>
14954
14955         unictype/joiningtype-byname: Recognize long names as well.
14956         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14957         a long name.
14958         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14959         unictype/joiningtype_byname.h.
14960         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14961         * lib/unictype/joiningtype_byname.gperf: New file.
14962         * modules/unictype/joiningtype-byname (Files): Add
14963         lib/unictype/joiningtype_byname.gperf.
14964         (Depends-on): Add gperf.
14965         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14966         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14967         long names.
14968
14969         Tests for module 'unictype/joiningtype-longname'.
14970         * modules/unictype/joiningtype-longname-tests: New file.
14971         * tests/unictype/test-joiningtype_longname.c: New file.
14972
14973         New module 'unictype/joiningtype-longname'.
14974         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14975         * lib/unictype/joiningtype_longname.c: New file.
14976         * modules/unictype/joiningtype-longname: New file.
14977         * modules/unictype/joiningtype-all (Depends-on): Add
14978         unictype/joiningtype-longname.
14979
14980 2011-03-26  Bruno Haible  <bruno@clisp.org>
14981
14982         unictype/bidiclass-byname: Recognize long names as well.
14983         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14984         name.
14985         * lib/unictype/bidi_byname.c: Include <string.h>,
14986         unictype/bidi_byname.h.
14987         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14988         * lib/unictype/bidi_byname.gperf: New file.
14989         * modules/unictype/bidiclass-byname (Files): Add
14990         lib/unictype/bidi_byname.gperf.
14991         (Depends-on): Add gperf.
14992         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14993         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14994         long names.
14995
14996         Tests for module 'unictype/bidiclass-longname'.
14997         * modules/unictype/bidiclass-longname-tests: New file.
14998         * tests/unictype/test-bidi_longname.c: New file.
14999
15000         New module 'unictype/bidiclass-longname'.
15001         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15002         * lib/unictype/bidi_longname.c: New file.
15003         * modules/unictype/bidiclass-longname: New file.
15004         * modules/unictype/bidiclass-all (Depends-on): Add
15005         unictype/bidiclass-longname.
15006
15007 2011-03-26  Bruno Haible  <bruno@clisp.org>
15008
15009         unictype/bidi*: Rename modules.
15010         * modules/unictype/bidiclass-all: Renamed from
15011         modules/unictype/bidicategory-all.
15012         * modules/unictype/bidiclass-name: Renamed from
15013         modules/unictype/bidiclass-name.
15014         (Description): Update.
15015         * modules/unictype/bidiclass-name-tests: Renamed from
15016         modules/unictype/bidicategory-name-tests.
15017         * modules/unictype/bidiclass-byname: Renamed from
15018         modules/unictype/bidicategory-byname.
15019         (Description): Update.
15020         * modules/unictype/bidiclass-byname-tests: Renamed from
15021         modules/unictype/bidicategory-byname-tests.
15022         * modules/unictype/bidiclass-of: Renamed from
15023         modules/unictype/bidicategory-of.
15024         (Description): Update.
15025         * modules/unictype/bidiclass-of-tests: Renamed from
15026         modules/unictype/bidicategory-of-tests.
15027         * modules/unictype/bidiclass-test: Renamed from
15028         modules/unictype/bidicategory-test.
15029         (Description): Update.
15030         * modules/unictype/bidiclass-test-tests: Renamed from
15031         modules/unictype/bidicategory-test-tests.
15032         * modules/unictype/bidicategory-all: New file, a simple redirection.
15033         * modules/unictype/bidicategory-name: Likewise.
15034         * modules/unictype/bidicategory-byname: Likewise.
15035         * modules/unictype/bidicategory-of: Likewise.
15036         * modules/unictype/bidicategory-test: Likewise.
15037         * modules/unictype/property-bidi-* (Dependencies): Update.
15038         * lib/unictype/bidi_*.c: Update comment.
15039
15040 2011-03-26  Bruno Haible  <bruno@clisp.org>
15041
15042         unictype/bidi*: Rename functions, part 2.
15043         * modules/unictype/bidicategory-name (configure.ac): Update required
15044         libunistring version.
15045         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15046
15047 2011-03-25  Bruno Haible  <bruno@clisp.org>
15048
15049         New module 'unictype/combining-class-all'.
15050         * modules/unictype/combining-class-all: New file.
15051
15052         Tests for module 'unictype/combining-class-byname'.
15053         * modules/unictype/combining-class-byname-tests: New file.
15054         * tests/unictype/test-combiningclass_byname.c: New file.
15055
15056         New module 'unictype/combining-class-byname'.
15057         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15058         * lib/unictype/combiningclass_byname.c: New file.
15059         * lib/unictype/combiningclass_byname.gperf: New file.
15060         * modules/unictype/combining-class-byname: New file.
15061
15062         Tests for module 'unictype/combining-class-longname'.
15063         * modules/unictype/combining-class-longname-tests: New file.
15064         * tests/unictype/test-combiningclass_longname.c: New file.
15065
15066         New module 'unictype/combining-class-longname'.
15067         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15068         * lib/unictype/combiningclass_longname.c: New file.
15069         * modules/unictype/combining-class-longname: New file.
15070
15071         Tests for module 'unictype/combining-class-name'.
15072         * modules/unictype/combining-class-name-tests: New file.
15073         * tests/unictype/test-combiningclass_name.c: New file.
15074
15075         New module 'unictype/combining-class-name'.
15076         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15077         * lib/unictype/combiningclass_name.c: New file.
15078         * modules/unictype/combining-class-name: New file.
15079
15080 2011-03-25  Bruno Haible  <bruno@clisp.org>
15081
15082         unictype/combining-class: Rename source files.
15083         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15084         of unictype/combining.h.
15085         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15086         Update.
15087         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15088         * modules/unictype/combining-class (Description): Fix.
15089         (Files, Makefile.am): Update.
15090         * tests/unictype/test-combiningclass.c: Renamed from
15091         tests/unictype/test-combining.c.
15092         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15093
15094 2011-03-25  Bruno Haible  <bruno@clisp.org>
15095
15096         unictype: Update list of canonical combining classes.
15097         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15098
15099 2011-03-25  Bruno Haible  <bruno@clisp.org>
15100
15101         unictype/category-byname: Recognize long names as well.
15102         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15103         a long name.
15104         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15105         unictype/categ_byname.h.
15106         (UC_CATEGORY_INDEX_*): New enumeration values.
15107         (uc_general_category_byname): Use uc_general_category_lookup and
15108         convert from index to value.
15109         * lib/unictype/categ_byname.gperf: New file.
15110         * modules/unictype/category-byname (Files): Add
15111         lib/unictype/categ_byname.gperf.
15112         (Depends-on): Add gperf.
15113         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15114         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15115         long names.
15116
15117         Tests for module 'unictype/category-longname'.
15118         * modules/unictype/category-longname-tests: New file.
15119         * tests/unictype/test-categ_longname.c: New file.
15120
15121         New module 'unictype/category-longname'.
15122         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15123         * lib/unictype/categ_longname.c: New file.
15124         * modules/unictype/category-longname: New file.
15125         * modules/unictype/category-all (Depends-on): Add it.
15126
15127 2011-03-25  Bruno Haible  <bruno@clisp.org>
15128
15129         Tests for module 'unictype/category-LC'.
15130         * modules/unictype/category-LC-tests: New file.
15131         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15132
15133         New module 'unictype/category-LC'.
15134         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15135         (UC_CATEGORY_LC): New declaration.
15136         (UC_CASED_LETTER): New macro.
15137         * lib/gen-uni-tables.c (is_category_LC): New function.
15138         (output_categories): Also handle category LC.
15139         (UC_CATEGORY_MASK_LC): New enumeration value.
15140         (general_category_byname): Also handle category LC.
15141         * lib/unictype/categ_LC.c: New file.
15142         * lib/unictype/categ_LC.h: New file, automatically generated.
15143         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15144         category LC.
15145         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15146         * modules/unictype/category-LC: New file.
15147         * modules/unictype/category-byname (Depends-on): Add
15148         unictype/category-LC.
15149         * modules/unictype/category-all (Depends-on): Likewise.
15150
15151 2011-03-25  Eric Blake  <eblake@redhat.com>
15152
15153         xmalloc: revert yesterday's regression
15154         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15155         realloc's underlying behavior (allowing allocation of zero-size
15156         objects, especially if malloc-gnu is also in use).
15157
15158 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15159
15160         maint.mk: add missing version to VC-tag
15161         * top/maint.mk: git tag was missing actual tag name; add it.
15162
15163         valgrind: do leak checking, and exit with code 1 on error (not 0)
15164         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15165         to VALGRIND.
15166
15167 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15168
15169         posix-modules: say what it does.
15170         * posix-modules: Add a line to the --help output saying what it does.
15171
15172 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15173
15174         xmalloc: Do not leak if underlying realloc is C99 compatible.
15175         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15176         This avoids a leak on C99-based systems.  See
15177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15178
15179 2011-03-24  Eric Blake  <eblake@redhat.com>
15180
15181         realloc: document portability problem
15182         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15183         passing 0 size to realloc.
15184
15185 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15186
15187         doc: update users.txt
15188         * users.txt: Add cvsps, tmpwatch
15189
15190 2011-03-23  Matt Rice  <ratmice@gmail.com>
15191
15192         doc: update users.txt
15193         * users.txt: Add gdb.
15194
15195 2011-03-23  Jim Meyering  <meyering@redhat.com>
15196
15197         doc: update users.txt
15198         Looking through matches up to the following URL (there are still
15199         several more pages), I found several projects that use gnulib:
15200         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15201         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15202         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15203
15204 2011-03-22  Bruno Haible  <bruno@clisp.org>
15205
15206         unictype/bidi*: Rename functions.
15207         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15208         uc_bidi_class, uc_is_bidi_class): New declarations.
15209         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15210         uc_bidi_category_byname.
15211         (uc_bidi_category_byname): New function.
15212         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15213         u_bidi_category_name.
15214         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15215         (uc_bidi_category_name): New function.
15216         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15217         uc_bidi_category.
15218         (uc_bidi_category): New function.
15219         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15220         uc_is_bidi_category. Invoke uc_bidi_class.
15221         (uc_is_bidi_category): New function.
15222         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15223         instead of uc_bidi_category_byname.
15224         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15225         instead of uc_bidi_category_name.
15226         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15227         uc_bidi_category.
15228         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15229         instead of uc_is_bidi_category.
15230
15231 2011-03-21  Bruno Haible  <bruno@clisp.org>
15232
15233         New module 'unictype/joininggroup-all'.
15234         * modules/unictype/joininggroup-all: New file.
15235
15236         Tests for module 'unictype/joininggroup-of'.
15237         * modules/unictype/joininggroup-of-tests: New file.
15238         * tests/unictype/test-joininggroup_of.c: New file.
15239         * tests/unictype/test-joininggroup_of.h: New file, automatically
15240         generated by gen-uni-tables.
15241
15242         New module 'unictype/joininggroup-of'.
15243         * modules/unictype/joininggroup-of: New file.
15244         * lib/unictype/joininggroup_of.c: New file.
15245         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15246         gen-uni-tables.
15247
15248         Tests for module 'unictype/joininggroup-byname'.
15249         * modules/unictype/joininggroup-byname-tests: New file.
15250         * tests/unictype/test-joininggroup_byname.c: New file.
15251
15252         New module 'unictype/joininggroup-byname'.
15253         * modules/unictype/joininggroup-byname: New file.
15254         * lib/unictype/joininggroup_byname.c: New file.
15255         * lib/unictype/joininggroup_byname.gperf: New file.
15256
15257         Tests for module 'unictype/joininggroup-name'.
15258         * modules/unictype/joininggroup-name-tests: New file.
15259         * tests/unictype/test-joininggroup_name.c: New file.
15260
15261         New module 'unictype/joininggroup-name'.
15262         * modules/unictype/joininggroup-name: New file.
15263         * lib/unictype/joininggroup_name.c: New file.
15264         * lib/unictype/joininggroup_name.h: New file.
15265
15266         New module 'unictype/joiningtype-all'.
15267         * modules/unictype/joiningtype-all: New file.
15268
15269         Tests for module 'unictype/joiningtype-of'.
15270         * modules/unictype/joiningtype-of-tests: New file.
15271         * tests/unictype/test-joiningtype_of.c: New file.
15272         * tests/unictype/test-joiningtype_of.h: New file, automatically
15273         generated by gen-uni-tables.
15274
15275         New module 'unictype/joiningtype-of'.
15276         * modules/unictype/joiningtype-of: New file.
15277         * lib/unictype/joiningtype_of.c: New file.
15278         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15279         gen-uni-tables.
15280
15281         Tests for module 'unictype/joiningtype-byname'.
15282         * modules/unictype/joiningtype-byname-tests: New file.
15283         * tests/unictype/test-joiningtype_byname.c: New file.
15284
15285         New module 'unictype/joiningtype-byname'.
15286         * modules/unictype/joiningtype-byname: New file.
15287         * lib/unictype/joiningtype_byname.c: New file.
15288
15289         Tests for module 'unictype/joiningtype-name'.
15290         * modules/unictype/joiningtype-name-tests: New file.
15291         * tests/unictype/test-joiningtype_name.c: New file.
15292
15293         New module 'unictype/joiningtype-name'.
15294         * modules/unictype/joiningtype-name: New file.
15295         * lib/unictype/joiningtype_name.c: New file.
15296
15297         unictype: Add support for Arabic shaping properties.
15298         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15299         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15300         declarations.
15301         (UC_JOINING_GROUP_*): New enumeration values.
15302         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15303         declarations.
15304         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15305         (unicode_joining_type): New variable.
15306         (UC_JOINING_GROUP_*): New enumeration values.
15307         (unicode_joining_group): New variable.
15308         (fill_arabicshaping, joining_type_as_c_identifier,
15309         output_joining_type_test, output_joining_type,
15310         joining_group_as_c_identifier, output_joining_group_test,
15311         output_joining_group): New functions.
15312         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15313         fill_arabicshaping and output_joining_type_test, output_joining_type,
15314         output_joining_group_test, output_joining_group.
15315         Reported by Simon Josefsson.
15316
15317 2011-03-21  Jim Meyering  <meyering@redhat.com>
15318
15319         strftime: fix a bug in yesterday's change
15320         * lib/strftime.c (add): Accommodate width's initial value of -1.
15321         Otherwise, nstrftime would copy uninitialized data into
15322         the result buffer.
15323
15324 2011-03-21  Jim Meyering  <meyering@redhat.com>
15325
15326         tests: add strftime-tests module
15327         * tests/test-strftime.c: New file.
15328         * modules/strftime-tests: New module.
15329
15330 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15331
15332         strftime: don't assume a byte count fits in 'int'
15333         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15334         found this problem by static analysis, using gcc -Wstrict-overflow
15335         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15336         on an integer overflow having undefined behavior, but it turns out
15337         that the argument is a size, which might not fit in 'int' anyway,
15338
15339 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15340
15341         stdio: don't require ignore_value around fwrite
15342
15343         This patch works around libc bug 11959
15344         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15345         Without this patch, applications must often write
15346         ignore_value (fwrite (...)) even though the ignore_value is
15347         not helpful here.  It's common to write many objects, using
15348         fwrite/printf/etc., and then use ferror to detect output error.
15349
15350         I considered making this patch optional, but decided against it,
15351         because libc is obviously being inconsistent here: there is no
15352         reason libc should insist that user code must inspect fwrite
15353         return's value without also insisting that it inspect printf's,
15354         putchar's, etc.  If user code wants to have a strict style where
15355         all these functions' values are checked (so that ferror need not
15356         be checked), we could add support for that style in a new gnulib
15357         module, but in the meantime it's better to be consistent and to
15358         support common usage.
15359
15360         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15361         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15362         that we are compiling in checking mode, and if not C++, and
15363         if not already wrapping fwrite for some other reason.
15364         (fwrite): #define to rpl_fwrite if the latter is defined.
15365
15366 2011-03-20  Bruno Haible  <bruno@clisp.org>
15367
15368         verror: Fix compilation error introduced on 2011-02-13.
15369         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15370         instead of __attribute__.
15371         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15372
15373 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15374             Bruno Haible  <bruno@clisp.org>
15375
15376         socklen: do not depend on sys_socket
15377         While trying to modify Emacs to use gnulib's socklen module,
15378         I discovered a circular dependency: socklen depends on sys_socket
15379         and vice versa.  Emacs can use socklen, but it does not need
15380         sys_socket because it has its own substitute for sys/socket.h.
15381         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15382         gl_TYPE_SOCKLEN_T.
15383         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15384         gl_PREREQ_SYS_H_SOCKET.
15385         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15386         gl_PREREQ_SYS_H_SOCKET.
15387         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15388         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15389         * modules/socklen (Depends-on): Do not depend on sys_socket.
15390         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15391
15392 2011-03-20  Jim Meyering  <meyering@redhat.com>
15393
15394         maint.mk: sort file names *after* new transformation
15395         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15396         prefix would have led to an unwarranted failure in GNU parted.
15397         Sort after that transformation.
15398
15399 2011-03-19  Jim Meyering  <meyering@redhat.com>
15400
15401         maint.mk: fix po-file syntax-check rule
15402         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15403         Patch by Bruno Haible.
15404
15405 2011-03-19  Bruno Haible  <bruno@clisp.org>
15406
15407         socklen: Update comment.
15408         * m4/socklen.m4: Update comment about platforms.
15409
15410 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15411             Bruno Haible  <bruno@clisp.org>
15412
15413         inet_ntop, inet_pton: Simplify.
15414         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15415         documented to provide socklen_t and we already depend on sys_socket.
15416         * modules/inet_pton (Depends-on): Likewise.
15417         * lib/arpa_inet.in.h: Adjust comment.
15418
15419 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15420             Bruno Haible  <bruno@clisp.org>
15421
15422         netdb: Simplify.
15423         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15424         documented to provide socklen_t and we already depend on sys_socket.
15425         * lib/netdb.in.h: Adjust comment.
15426
15427 2011-03-19  Bruno Haible  <bruno@clisp.org>
15428
15429         sys_socket, netdb: Document problem with socklen_t.
15430         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15431         platforms.
15432         * doc/posix-headers/netdb.texi: Likewise.
15433
15434 2011-03-18  Eric Blake  <eblake@redhat.com>
15435
15436         maint.mk: let po check work in VPATH build
15437         * top/maint.mk (po_file): Allow cfg.mk override.
15438         (sc_po_check): Allow VPATH use.
15439         Reported by Jiri Denemark.
15440
15441 2011-03-16  Jim Meyering  <meyering@redhat.com>
15442
15443         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15444         Before, you would have had to create one .x-sc_ file per rule in order
15445         to exempt offending files.  Now, you may instead use a Make variable --
15446         usually defined in cfg.mk -- whose name identifies the affected rule.
15447         * top/maint.mk (_sc_excl): Define.
15448         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15449         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15450
15451 2011-03-13  Bruno Haible  <bruno@clisp.org>
15452
15453         ignore-value tests: Avoid warnings.
15454         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15455         empty for gcc < 3.4.
15456
15457 2011-03-13  Bruno Haible  <bruno@clisp.org>
15458
15459         passfd: Fix link error on Solaris.
15460         * modules/passfd (Description): Correct.
15461         (Depends-on): Add socketlib.
15462         (Link): New section.
15463         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15464
15465 2011-03-13  Bruno Haible  <bruno@clisp.org>
15466
15467         passfd: Fix link error on AIX 5.2.
15468         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15469
15470 2011-03-13  Bruno Haible  <bruno@clisp.org>
15471
15472         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15473         * lib/sys_socket.in.h: Include <stddef.h>.
15474         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15475         CMSG_FIRSTHDR. Remove unused variable.
15476
15477 2011-03-13  Bruno Haible  <bruno@clisp.org>
15478
15479         passfd: Fix compilation error on OpenBSD.
15480         * lib/passfd.c: Include <sys/uio.h>.
15481
15482 2011-03-13  Bruno Haible  <bruno@clisp.org>
15483
15484         passfd test: Fix warnings.
15485         * tests/test-passfd.c: Include <sys/wait.h>.
15486         (main): Fix typo.
15487
15488 2011-03-13  Bruno Haible  <bruno@clisp.org>
15489
15490         passfd module, part 4, tweaks.
15491         * tests/test-passfd.c: Reorder includes.
15492         (main): Fix perror and printf calls.
15493
15494 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15495
15496         passfd module, part 4.
15497         * modules/passfd-tests: New file.
15498         * tests/test-passfd.c: New file.
15499
15500 2011-03-13  Jim Meyering  <meyering@redhat.com>
15501
15502         Makefile: rely on GNU make; derive syntax-check rule names
15503         Rather than requiring that each sc_ rule be listed as a dependent
15504         of "check", use features of GNU make to derive the list.
15505         * Makefile (syntax-check-rules): Define.
15506         (check): Depend on the new variable, not the hard-coded list.
15507
15508 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15509             Bruno Haible  <bruno@clisp.org>
15510
15511         passfd module, part 3.
15512         * lib/passfd.h (recvfd): Add a flags argument.
15513         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15514         (recvfd): Add a flags argument.
15515         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15516         exists.
15517         * modules/passfd (Depends-on): Add cloexec.
15518         Suggested by Eric Blake.
15519
15520 2011-03-13  Bruno Haible  <bruno@clisp.org>
15521
15522         passfd module, part 2, tweaks.
15523         * modules/passfd (Files): Reorder.
15524         (Depends-on): Remove errno.
15525         (Include): Remove <sys/socket.h>, <sys/un.h>.
15526         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15527         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15528         specification header. Include <sys/socket.h> always. Don't include
15529         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15530         (sendfd): Clarify that it sets errno when it fails.
15531         (recvfd): Fix specification.
15532
15533 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15534
15535         passfd module, part 2.
15536         * modules/passfd: New file.
15537         * lib/passfd.h: New file.
15538         * lib/passfd.c: New file.
15539
15540 2011-03-12  Bruno Haible  <bruno@clisp.org>
15541
15542         wcswidth, mbswidth: Avoid integer overflow.
15543         * lib/wcswidth.c: Include <limits.h>.
15544         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15545         * lib/mbswidth.c: Include <limits.h>.
15546         (mbsnwidth): Avoid 'int' overflow.
15547         Reported by Jim Meyering.
15548
15549 2011-03-12  Bruno Haible  <bruno@clisp.org>
15550
15551         futimens, utimensat: Avoid endless recursion on Solaris 10.
15552         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15553         Solaris.
15554         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15555         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15556
15557 2011-03-11  Jim Meyering  <meyering@redhat.com>
15558
15559         maint.mk: relax a regexp to accommodate other formatting styles
15560         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15561         between "ngettext" and the following "(".
15562
15563 2011-03-11  Pádraig Brady <P@draigBrady.com>
15564
15565         maint.mk: suppress a false positive warning
15566         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15567         diagnostics are marked with ngettext.
15568
15569 2011-03-10  Eric Blake  <eblake@redhat.com>
15570
15571         wchar: add explicit dependencies, for Tru64
15572         * modules/mbmemcasecoll (Depends-on): Add wchar.
15573         * modules/mbtowc (Depends-on): Likewise.
15574         * modules/vasnprintf (Depends-on): Likewise.
15575         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15576         * modules/wctomb (Depends-on): Likewise.
15577         Reported by Peter O'Gorman.
15578
15579 2011-03-08  Bruno Haible  <bruno@clisp.org>
15580
15581         passfd module, part 1, tweaks.
15582         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15583         Improve indentation. Improve AC_MSG_CHECKING messages.
15584         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15585         gl_SOCKET_FAMILIES.
15586
15587 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15588
15589         passfd module, part 1.
15590         * m4/afunix.m4: New file.
15591         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15592         sockets.
15593
15594 2011-03-08  Bruno Haible  <bruno@clisp.org>
15595
15596         regex-quote: New API.
15597         * lib/regex-quote.h: Include <stdbool.h>.
15598         (struct regex_quote_spec): New type.
15599         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15600         New declarations.
15601         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15602         'const struct regex_quote_spec *' argument.
15603         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15604         (pcre_special): New constant.
15605         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15606         New functions.
15607         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15608         'const struct regex_quote_spec *' argument.
15609         * modules/regex-quote (Depends-on): Add stdbool.
15610         * tests/test-regex-quote.c (check): Update for new API. Add test for
15611         anchored results.
15612         * NEWS: Mention the API change.
15613         Reported by Reuben Thomas and Eric Blake.
15614
15615 2011-03-06  Bruno Haible  <bruno@clisp.org>
15616
15617         regex-quote: Fix creation of POSIX extended regular expressions.
15618         * lib/regex-quote.c (ere_special): Add grouping and alternation
15619         operators.
15620
15621 2011-03-05  Bruno Haible  <bruno@clisp.org>
15622
15623         doc: Improve doc regarding autopoint vs. gnulib.
15624         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15625         disable autopoint while running autoreconf.
15626         Suggested by Ralf Wildenhues.
15627
15628 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15629
15630         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15631         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15632
15633 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15634
15635         parse-duration: remove xalloc.h dependency
15636         * lib/parse-duration.c (parse_period): handle NULL return from
15637         strdup instead of calling xstrdup().
15638         * modules/parse-duration: remove "xalloc" dependency
15639
15640 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15641
15642         bootstrap: honor m4_base when running aclocal
15643         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15644
15645 2011-03-02  Jim Meyering  <meyering@redhat.com>
15646
15647         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15648         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15649         on request from Matt Booth.
15650
15651 2011-03-01  Eric Blake  <eblake@redhat.com>
15652
15653         test-link: work on Hurd
15654         * tests/test-link.h (test_link): Hurd rejects linking directories
15655         with EISDIR instead of the POSIX-mandated EPERM.
15656
15657 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15658
15659         stdio: simplify by moving files to printf-posix, sigpipe
15660         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15661         since this symbol is needed only if printf is replaced.
15662         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15663         Require gl_ASM_SYMBOL_PREFIX.
15664         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15665         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15666         (Depends-on): Add 'raise'.
15667         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15668         * modules/stdio (Files): Remove lib/stdio-write.c,
15669         m4/asm-underscore.m4.
15670         (Depends-on): Remove 'raise'.
15671
15672         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15673         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15674         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15675         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15676
15677 2011-02-28  Bruno Haible  <bruno@clisp.org>
15678
15679         localcharset: Assume ANSI C behaviour of free().
15680         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15681         calling free().
15682         Suggested by Simon Josefsson <simon@josefsson.org>.
15683
15684 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15685             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15686             Bruno Haible  <bruno@clisp.org>  (tiny change)
15687
15688         On Cygwin, use /proc file system instead of win32 API.
15689         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15690         Win32 file names.
15691         (DllMain): Simplify by removing Cygwin specific code.
15692         (find_shared_library_fullname): Use Linux specific implementation also
15693         for Cygwin.
15694         (get_shared_library_fullname): Update accordingly.
15695         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15696         Win32 file names.
15697         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
15698         Cygwin specific code.
15699
15700 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
15701             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
15702
15703         Fix OpenMP flag detection for various Fortran compilers.
15704         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
15705         OpenMP-conditional compilation construct, to force compile
15706         failure with missing OpenMP flag.
15707         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
15708
15709 2011-02-25  Eric Blake  <eblake@redhat.com>
15710
15711         strstr: expand test coverage
15712         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
15713         compilation.
15714         * tests/test-memmem.c (main): Duplicate tests.
15715         * tests/test-strcasestr.c (main): Likewise.
15716         * tests/test-c-strcasestr.c (main): Likewise.
15717
15718 2011-02-25  Jim Meyering  <meyering@redhat.com>
15719
15720         maint.mk: detect missing-NL-at-EOF, too
15721         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
15722         it also detects when a file lacks a newline at EOF.
15723         (require_exactly_one_NL_at_EOF_): Renamed from
15724         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
15725         since people may well have .x-sc_... file names tied to the
15726         existing name.  Suggested by Eric Blake.
15727
15728 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15729
15730         dirname: move m4/dos.m4 functionality into lib/dosname.h
15731
15732         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
15733         extracts symbols from it, puts them into config.h; but it's much
15734         easier to use the symbols directly.  filename.h already does this,
15735         but it disagrees with dos.m4 in some respects.  This patch
15736         introduces a different include file dosname.h that packages up
15737         dos.m4, and then later we can work on merging filename.h and
15738         dosname.h.  Applications that need only the easy-to-configure
15739         symbols should consider including dosname.h rather than dirname.h.
15740         * NEWS: Mention incompatible changes.
15741         * m4/dos.m4: Remove.
15742         * lib/dosname.h, modules/dosname: New files.
15743         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
15744         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
15745         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
15746         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
15747         Include dosname.h, not dirname.h.
15748         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
15749         Include dosname.h, for definitions of symbols like ISSLASH
15750         that used to be in config.h.
15751         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
15752         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15753         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15754         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15755         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15756         * modules/rmdir (Files): Likewise.
15757         * modules/stat (Files): Likewise.
15758         * modules/unlink (Files): Likewise.
15759         * modules/dirname-lgpl (Depends-on): Add dosname.
15760         * modules/lstat (Depends-on): Likewise.
15761         * modules/openat (Depends-on): Likewise.
15762         * modules/rmdir (Depends-on): Likewise.
15763         * modules/savewd (Depends-on): Likewise.
15764         * modules/stat (Depends-on): Likewise.
15765         * modules/unlink (Depends-on): Likewise.
15766         * modules/openat (Depends-on): Remove dirname-lgpl.
15767         * modules/savewd (Depends-on): Likewise.
15768         * tests/test-dirname.c: Do not use removed symbols like
15769         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
15770         the remaining symbols, e.g., ISSLASH ('\\').
15771
15772 2011-02-25  Eric Blake  <eblake@redhat.com>
15773
15774         strstr: revert patches that introduced bug and pessimization
15775         * lib/str-two-way.h: Add another reference.
15776         (two_way_short_needle, two_way_long_needle): Revert changes from
15777         2011-02-24; they pessimize search speed.
15778         (critical_factorization): Partially revert changes from
15779         2010-06-22; they violate the requirement that the left half of the
15780         needle be smaller than the period of the needle.
15781
15782 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15783
15784         filenamecat: remove unnecessary dependency on dirname-lgpl
15785         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15786         is no direct dependency, just an indirect one via filenamecat-lgpl.
15787
15788         remove: remove unnecessary use of m4/dos.m4
15789         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15790         * modules/remove (FILES): Remove m4/dos.m4.
15791
15792         * lib/openat-proc.c: Don't include dirname.h; not needed.
15793
15794         backupfile: remove unnecessary use of m4/dos.m4
15795         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15796         of its symbols are used by the backupfile code.  backupfile.c does
15797         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15798         for the rare case of programs that want all their backup file
15799         names to live within 8+3 limits, and dos.m4 doesn't address that.
15800         * modules/backupfile (Files): Remove m4/dos.m4.
15801
15802 2011-02-24  Jim Meyering  <meyering@redhat.com>
15803
15804         strstr: fix a bug whereby strstr would mistakenly return NULL
15805         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15806         in period calculation.
15807         (two_way_long_needle): Likewise.
15808         The original problem was reported by Mike Stump in
15809         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15810         Ralf Wildenhues provided the short needle and haystack.
15811         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15812         Add a more involved test to trigger the bug in two_way_long_needle.
15813
15814 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15815
15816         gnulib-tool: remove use of bold display in help screen
15817         * gnulib-tool (func_usage): Do not use bold display anymore in the
15818         help screen.  That was just meant to be a temporary emphasis for a
15819         backward-incompatible change.
15820
15821 2011-02-23  Bruno Haible  <bruno@clisp.org>
15822
15823         Fix misindentation of preprocessor directives.
15824         * lib/argp-namefrob.h: Reindent preprocessor directives.
15825         * lib/getopt_int.h (struct _getopt_data): Likewise.
15826         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15827         * lib/vasnprintf.c (decode_long_double): Likewise.
15828         * tests/test-argmatch.c: Insert blank lines, for clarity.
15829         * tests/test-exclude.c: Likewise.
15830
15831 2011-02-22  Bruno Haible  <bruno@clisp.org>
15832
15833         ioctl: Fix for MacOS X in 64-bit mode.
15834         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15835         value.
15836         Suggested by Eric Blake.
15837         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15838
15839 2011-02-22  Jim Meyering  <meyering@redhat.com>
15840
15841         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15842         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15843         in lib/.
15844
15845 2011-02-22  Eric Blake  <eblake@redhat.com>
15846
15847         maint: avoid any CDPATH issue
15848         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15849
15850         maint: adjust cpp indentation for my modules, as well
15851         * Makefile (sc_cpp_indent_check): Add my name.
15852         * lib/fbufmode.c: Filter through cppi.
15853         * lib/fpurge.c: Likewise.
15854         * lib/freadable.c: Likewise.
15855         * lib/freading.c: Likewise.
15856         * lib/fwritable.c: Likewise.
15857         * lib/fwriting.c: Likewise.
15858         * lib/sigaction.c: Likewise.
15859
15860 2011-02-22  Jim Meyering  <meyering@redhat.com>
15861
15862         maint: adjust cpp indentation to reflect nesting depth
15863         I.e., in a block of code that begins with an unnested "#if",
15864         put one space between the "#" in column 1 and following token.
15865         For example,
15866         -#include <sys/vfs.h>
15867         +# include <sys/vfs.h>
15868         Do this only in .c files that are part of a module I maintain.
15869         * lib/linkat.c: Filter through cppi.
15870         * lib/nanosleep.c: Likewise.
15871         * lib/openat.c: Likewise.
15872         * lib/openat-die.c: Likewise.
15873         * lib/dup3.c: Likewise.
15874         * lib/fchownat.c: Likewise.
15875         * lib/flock.c: Likewise.
15876         * lib/fsync.c: Likewise.
15877         * lib/fts.c: Likewise.
15878         * lib/getpass.c: Likewise.
15879         * lib/gettimeofday.c: Likewise.
15880         * lib/userspec.c: Likewise.
15881         * Makefile (sc_cpp_indent_check): New rule, to check this.
15882
15883 2011-02-22  Bruno Haible  <bruno@clisp.org>
15884
15885         New module 'wctomb'.
15886         * lib/stdlib.in.h (wctomb): New declaration.
15887         * lib/wctomb.c: New file.
15888         * lib/wctomb-impl.h: New file.
15889         * m4/wctomb.m4: New file.
15890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15891         REPLACE_WCTOMB.
15892         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15893         REPLACE_WCTOMB.
15894         * modules/wctomb: New file.
15895         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15896         * doc/posix-functions/wctomb.texi: Mention the new module.
15897         * modules/wctob (Depends-on): Add wctomb.
15898
15899 2011-02-22  Bruno Haible  <bruno@clisp.org>
15900
15901         New module 'mbtowc'.
15902         * lib/stdlib.in.h (mbtowc): New declaration.
15903         * lib/mbtowc.c: New file.
15904         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15905         * m4/mbtowc.m4: New file.
15906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15907         REPLACE_MBTOWC.
15908         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15909         REPLACE_MBTOWC.
15910         * modules/mbtowc: New file.
15911         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15912         * doc/posix-functions/mbtowc.texi: Mention the new module.
15913         * modules/btowc (Depends-on): Add mbtowc.
15914
15915 2011-02-22  Bruno Haible  <bruno@clisp.org>
15916
15917         wcrtomb: Add more tests for native Windows platforms.
15918         * tests/test-wcrtomb-w32-1.sh: New file.
15919         * tests/test-wcrtomb-w32-2.sh: New file.
15920         * tests/test-wcrtomb-w32-3.sh: New file.
15921         * tests/test-wcrtomb-w32-4.sh: New file.
15922         * tests/test-wcrtomb-w32-5.sh: New file.
15923         * tests/test-wcrtomb-w32.c: New file.
15924         * modules/wcrtomb-tests (Files): Add them.
15925         (Makefile.am): Arrange to run these tests.
15926         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15927         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15928
15929 2011-02-20  Bruno Haible  <bruno@clisp.org>
15930
15931         wcrtomb: Enhance test.
15932         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15933
15934 2011-02-20  Bruno Haible  <bruno@clisp.org>
15935
15936         mbrtowc: Tiny optimization.
15937         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15938
15939 2011-02-20  Jim Meyering  <meyering@redhat.com>
15940
15941         test-exclude.c: remove unmatched #endif
15942         * tests/test-exclude.c: Remove stray #endif, left over from
15943         the change of a week ago.
15944
15945 2011-02-19  Jim Meyering  <meyering@redhat.com>
15946
15947         git-version-gen: skip "-dirty" check when appropriate
15948         * build-aux/git-version-gen: Don't run any git commands when the
15949         version string comes from .tarball-version.  Prior to this, we
15950         would run git update-index --refresh even from a just-unpacked
15951         tarball directory, and that could affect a .git/ directory in a
15952         parent of the build directory.  Reported by Mike Frysinger.
15953
15954 2011-02-19  Bruno Haible  <bruno@clisp.org>
15955
15956         unictype/property-byname: Reduce the size of the 'data' segment.
15957         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15958
15959 2011-02-19  Bruno Haible  <bruno@clisp.org>
15960
15961         unictype/scripts: Reduce the size of the 'data' segment.
15962         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15963         '%pic'.
15964         * lib/unictype/scripts_byname.gperf: Regenerated.
15965
15966 2011-02-19  Bruno Haible  <bruno@clisp.org>
15967
15968         stdint: Update documentation.
15969         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15970
15971 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15972
15973         stdint: omit redundant check for wchar.h
15974         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15975         always tests whether wchar.h exists, so remove the now-redundant test.
15976
15977 2011-02-18  Bruno Haible  <bruno@clisp.org>
15978
15979         stdint: Cut dependency to module 'wchar'.
15980         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15981         include the necessary prerequisites.
15982         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15983         * modules/stdint (Depends-on): Remove wchar.
15984         (Makefile.am): Substitute HAVE_WCHAR_H.
15985         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15986
15987 2011-02-18  Eric Blake  <eblake@redhat.com>
15988
15989         longlong: skip, rather than fail, on cross-compilation
15990         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15991         when cross-compiling; regression from 2011-02-16.
15992
15993 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15994
15995         * NEWS: Mention 2011-02-08 change to stdlib.
15996
15997 2011-02-17  Bruno Haible  <bruno@clisp.org>
15998
15999         getloadavg: Add comments about platforms.
16000         * m4/getloadavg.m4: Add comment.
16001         * lib/getloadavg.c: Likewise.
16002
16003 2011-02-17  Bruno Haible  <bruno@clisp.org>
16004
16005         getloadavg: Fix link error on Solaris 2.6.
16006         * modules/getloadavg (Link): New section.
16007         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16008         linking test-getloadavg.
16009         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16010         getloadavg.
16011
16012 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16013
16014         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16015         It was 'int', but this doesn't match the IRIX 6.5 manual.
16016         Suggested by Bruno Haible in
16017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16018
16019 2011-02-17  Bruno Haible  <bruno@clisp.org>
16020
16021         havelib: Fix comments.
16022         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16023         change.
16024
16025 2011-02-17  Bruno Haible  <bruno@clisp.org>
16026
16027         havelib: Update config.rpath.
16028         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16029
16030 2011-02-17  Bruno Haible  <bruno@clisp.org>
16031
16032         getloadavg test: Add some plausibility checks.
16033         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16034         is improbable.
16035
16036 2011-02-16  Eric Blake  <eblake@redhat.com>
16037
16038         maintainer-makefile: make syntax-check a no-op from tarballs
16039         * top/maint.mk (no-vc-detected): New rule.
16040         (local-checks-available): Use it to avoid hanging if someone tries
16041         'make syntax-check' from a tarball.  Also append to any non-syntax
16042         checks already defined in cfg.mk.
16043
16044 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16045
16046         longlong: tune, particularly for common case of c99
16047
16048         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16049         or running anything if c99, or if unsigned long long int does not
16050         work.  In either case, we know the answer without further tests.
16051         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16052         it at most once, and use its results for both long long int and
16053         unsigned long long int.  This is more likely to be efficient in
16054         the common case where the program wants to check for both long
16055         long int and unsigned long long int.
16056         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16057         since the answer is already known.
16058
16059 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16060
16061         getloadavg: set errno
16062         * lib/getloadavg.c: Set errno when returning -1.  If no other
16063         error number looks appropriate, set it to ENOSYS if the getloadavg
16064         looks like it can't possibly ever work, ENOTSUP otherwise.
16065         Suggested by Bruno Haible in
16066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16067
16068         getloadavg: trim unused parts and speed up 'configure'
16069         * NEWS: Document this.
16070         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16071         always compiled if getloadavg is absent.
16072         Move test code to ...
16073         * tests/test-getloadavg.c: New file, containing previous
16074         contents of test from lib/getloadavg.c.  It also contains
16075         suggestions by Bruno Haible in
16076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16077         * modules/getloadavg-tests: New file.
16078         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16079         Do tests in the same order as they're needed for getloadavg.c.
16080         Omit setgid-related tests that generate symbols KMEM_GROUP,
16081         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16082         Do only the tests that are needed to see whether the system has
16083         getloadavg, moving the other tests into ...
16084         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16085         NLIST_NAME_UNION; nobody should be using it.  Do not define
16086         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16087         relevant, as the user of this module shouldn't care how getloadavg
16088         is implemented.
16089
16090         getloadavg: omit unused var
16091         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16092
16093 2011-02-15  Jim Meyering  <meyering@redhat.com>
16094
16095         doc: update users.txt
16096         * users.txt: Update iwhd's URL.
16097
16098 2011-02-13  Bruno Haible  <bruno@clisp.org>
16099
16100         Consistent macro naming for macros that use GCC __attribute__.
16101         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16102         _ATTRIBUTE_NONNULL_.
16103         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16104         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16105         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16106         ATTRIBUTE_DEPRECATED.
16107         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16108         ATTRIBUTE_NORETURN.
16109         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16110         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16111         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16112         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16113         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16114         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16115         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16116         ATTRIBUTE_SENTINEL.
16117         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16118         ATTRIBUTE_RETURN_CHECK.
16119         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16120         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16121         ATTRIBUTE_NORETURN.
16122         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16123         Reported by Paul Eggert.
16124
16125 2011-02-13  Bruno Haible  <bruno@clisp.org>
16126
16127         Don't interfere with a program's definition of __attribute__.
16128         * lib/argp.h (__attribute__): Remove definition.
16129         (_GL_ATTRIBUTE_FORMAT): New macro.
16130         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16131         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16132         (_GL_ATTRIBUTE_FORMAT): New macro.
16133         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16134         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16135         GCC 3 or newer.
16136         * lib/error.h (__attribute__): Remove definition.
16137         (_GL_ATTRIBUTE_FORMAT): New macro.
16138         (error, error_at_line): Use it.
16139         * lib/hash.h (__attribute__): Remove definition.
16140         (ATTRIBUTE_WUR): Update definition. Define always.
16141         * lib/openat.h (__attribute__): Remove definition.
16142         (ATTRIBUTE_NORETURN): Update definition. Define always.
16143         * lib/sigpipe-die.h (__attribute__): Remove definition.
16144         (ATTRIBUTE_NORETURN): Update definition. Define always.
16145         * lib/vasnprintf.h (__attribute__): Remove definition.
16146         (_GL_ATTRIBUTE_FORMAT): New macro.
16147         (asnprintf, vasnprintf): Use it.
16148         * lib/xalloc.h (__attribute__): Remove definition.
16149         (ATTRIBUTE_NORETURN): Update definition. Define always.
16150         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16151         * lib/xmemdup0.h (__attribute__): Remove definition.
16152         (ATTRIBUTE_NORETURN): Update definition. Define always.
16153         * lib/xprintf.h (__attribute__): Remove definition.
16154         (_GL_ATTRIBUTE_FORMAT): New macro.
16155         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16156         * lib/xstrtol.h (__attribute__): Remove definition.
16157         (ATTRIBUTE_NORETURN): Update definition. Define always.
16158         * lib/xvasprintf.h (__attribute__): Remove definition.
16159         (_GL_ATTRIBUTE_FORMAT): New macro.
16160         (xasprintf, xvasprintf): Use it.
16161         * tests/test-argmatch.c (__attribute__): Remove definition.
16162         (ATTRIBUTE_NORETURN): Update definition. Define always.
16163         * tests/test-exclude.c (__attribute__): Remove definition.
16164         (ATTRIBUTE_NORETURN): Update definition. Define always.
16165         Reported by Paul Eggert.
16166
16167 2011-02-13  Bruno Haible  <bruno@clisp.org>
16168
16169         mbrtowc: Add more tests for native Windows platforms.
16170         * tests/test-mbrtowc-w32-1.sh: New file.
16171         * tests/test-mbrtowc-w32-2.sh: New file.
16172         * tests/test-mbrtowc-w32-3.sh: New file.
16173         * tests/test-mbrtowc-w32-4.sh: New file.
16174         * tests/test-mbrtowc-w32-5.sh: New file.
16175         * tests/test-mbrtowc-w32.c: New file.
16176         * modules/mbrtowc-tests (Files): Add them.
16177         (Makefile.am): Arrange to run these tests.
16178         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16179         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16180
16181 2011-02-13  Bruno Haible  <bruno@clisp.org>
16182
16183         mbrtowc: Work around native Windows bug.
16184         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16185         guess when no suitable locale for testing was found.
16186         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16187
16188 2011-02-13  Bruno Haible  <bruno@clisp.org>
16189
16190         mbsinit: Work around mingw bug.
16191         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16192         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16193         Windows.
16194         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16195
16196 2011-02-13  Bruno Haible  <bruno@clisp.org>
16197
16198         mbsinit: Don't crash for a NULL argument.
16199         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16200         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16201
16202 2011-02-13  Bruno Haible  <bruno@clisp.org>
16203
16204         Don't interfere with a program's definition of __attribute__.
16205         * lib/stdio.in.h (__attribute__): Remove definition.
16206         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16207         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16208         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16209         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16210         * lib/string.in.h (__attribute__): Remove definition.
16211         Reported by Paul Eggert.
16212
16213 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16214
16215         stdlib: don't get in the way of non-GCC __attribute__
16216         See thread starting at
16217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16218         Revert previous stdlib change, installing the following instead:
16219         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16220         to get in the way of a non-GCC compiler that supports __attribute__.
16221         (_GL_ATTRIBUTE_RETURN): New macro.
16222         (_Exit): Use it instead of __attribute__.
16223
16224 2011-02-12  Bruno Haible  <bruno@clisp.org>
16225
16226         quotearg test: Avoid test failure on mingw.
16227         * tests/test-quotearg.sh: Convert the locale identifier from native
16228         Windows syntax to Unix syntax.
16229
16230 2011-02-12  Bruno Haible  <bruno@clisp.org>
16231
16232         setlocale: Prefer gnulib's override over libintl's override.
16233         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16234         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16235         GNULIB_defined_setlocale is set.
16236
16237 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16238
16239         stdlib: support non-GCC __attribute__
16240
16241         Fix a serious and tricky problem encountered when attempting to
16242         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16243         5.5, but it crashed due to memory corruption on Solaris 10 with
16244         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16245         bits that are otherwise zero.  This tagging is optional inside
16246         Emacs but is preferred and is used when __attribute__ ((__aligned
16247         (8))) works, as it does with both recent-enough GCC and with Sun C
16248         5.11.  However, Sun C 5.11 is not GCC and does not #define
16249         __GNUC__ and __GNUC_MINOR__.
16250
16251         When I added the getloadavg module to Emacs, it brought in
16252         stdlib.in.h, which contained this fragment:
16253
16254            #ifndef __attribute__
16255            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16256            #  define __attribute__(Spec)   /* empty */
16257            # endif
16258            #endif
16259
16260         When files that include <stdlib.h> were compiled with Sun C 5.11,
16261         the above code disabled __attribute__ ((__aligned (8))), which
16262         caused variables to not be properly aligned, which eventually led
16263         to the pointer corruption mentioned above.  (This was a bit hard
16264         to diagnose, unfortunately.)
16265
16266         Several "#define __attribute__(X) /* empty */" code snippets need
16267         to be eradicated from Gnulib to work with non-GCC compilers that
16268         support __attribute__.  The Autoconf way to do this is to test for
16269         each kind of attribute that we want support for, and selectively
16270         enable that in source code.
16271
16272         Fix this problem just for stdlib.h, by adding a test for the
16273         __noreturn__ attribute, and change stdlib.in.h to use that test
16274         when needed.  This technique can be easily generalized to the
16275         other *.in.h files and attributes, and a similar technique can be
16276         used for *.h and *.c files.  This patch is enough to solve the
16277         problem for Emacs + getloadavg, and I thought I'd publish it for
16278         feedback before undertaking further, similar fixes in other
16279         modules.
16280
16281         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16282         because it's not needed for stdlib.h.  It merely substitutes the
16283         value directly into stdlib.h.  We may well need to #define it, or
16284         similar symbols, for other modules, but it's nice to also have an
16285         option to not #define it for applications like Emacs that do not
16286         need it.
16287
16288         * lib/stdlib.in.h (__attribute__): Do not #define.
16289         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16290         be defined only if the _Exit module is also used.
16291         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16293         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16294         platforms.
16295         * modules/_Exit (Files): Add m4/attribute.m4.
16296         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16297         * m4/attribute.m4: New file.
16298
16299 2011-02-12  Bruno Haible  <bruno@clisp.org>
16300
16301         wcsrtombs: Work around bug on native Windows.
16302         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16303         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16304         instead of len.
16305         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16306
16307 2011-02-12  Bruno Haible  <bruno@clisp.org>
16308
16309         mbsrtowcs: Work around bug on native Windows.
16310         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16311         against mingw bug.
16312         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16313
16314 2011-02-12  Bruno Haible  <bruno@clisp.org>
16315
16316         Avoid setlocale bugs in tests.
16317         * modules/btowc (Dependencies): Add setlocale.
16318         * modules/c-strcase (Dependencies): Likewise.
16319         * modules/mbmemcasecmp (Dependencies): Likewise.
16320         * modules/mbmemcasecoll (Dependencies): Likewise.
16321         * modules/mbrtowc (Dependencies): Likewise.
16322         * modules/mbscasecmp (Dependencies): Likewise.
16323         * modules/mbscasestr (Dependencies): Likewise.
16324         * modules/mbschr (Dependencies): Likewise.
16325         * modules/mbscspn (Dependencies): Likewise.
16326         * modules/mbsinit (Dependencies): Likewise.
16327         * modules/mbsncasecmp (Dependencies): Likewise.
16328         * modules/mbsnrtowcs (Dependencies): Likewise.
16329         * modules/mbspbrk (Dependencies): Likewise.
16330         * modules/mbspcasecmp (Dependencies): Likewise.
16331         * modules/mbsrchr (Dependencies): Likewise.
16332         * modules/mbsrtowcs (Dependencies): Likewise.
16333         * modules/mbsspn (Dependencies): Likewise.
16334         * modules/mbsstr (Dependencies): Likewise.
16335         * modules/nl_langinfo (Dependencies): Likewise.
16336         * modules/quotearg (Dependencies): Likewise.
16337         * modules/unicase/locale-language (Dependencies): Likewise.
16338         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16339         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16340         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16341         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16342         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16343         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16344         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16345         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16346         * modules/vasnprintf-posix (Dependencies): Likewise.
16347         * modules/wcrtomb (Dependencies): Likewise.
16348         * modules/wcsnrtombs (Dependencies): Likewise.
16349         * modules/wcsrtombs (Dependencies): Likewise.
16350
16351 2011-02-12  Bruno Haible  <bruno@clisp.org>
16352
16353         setlocale: Workaround native Windows bug.
16354         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16355         succeeds but sets LC_CTYPE to "C", report a failure.
16356         * tests/test-setlocale2.sh: New file.
16357         * tests/test-setlocale2.c: New file.
16358         * modules/setlocale-tests (Files): Add the new files.
16359         (Makefile.am): Enable test-setlocale2.sh test.
16360         * doc/posix-functions/setlocale.texi: Mention workaround.
16361
16362 2011-02-11  Bruno Haible  <bruno@clisp.org>
16363
16364         Tests for module 'setlocale'.
16365         * modules/setlocale-tests: New file.
16366         * tests/test-setlocale1.sh: New file.
16367         * tests/test-setlocale1.c: New file.
16368
16369         New module 'setlocale'.
16370         * lib/locale.in.h (setlocale): New declaration.
16371         * lib/setlocale.c: New file, based on
16372         gettext/gettext-runtime/intl/setlocale.c.
16373         * m4/setlocale.m4: New file.
16374         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16375         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16376         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16377         REPLACE_SETLOCALE.
16378         * modules/setlocale: New file.
16379         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16380         * doc/posix-functions/setlocale.texi: Mention the new module.
16381
16382 2011-02-11  Bruno Haible  <bruno@clisp.org>
16383
16384         Prepare for locale dependent tests on mingw.
16385         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16386         because it has the wrong locale encoding.
16387         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16388         French_France.1252 instead of "fr".
16389         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16390         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16391         because it has the wrong locale encoding.
16392         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16393         native Windows, try Turkish_Turkey.65001.
16394         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16395         Chinese_China.54936.
16396
16397         Prepare for locale dependent tests on mingw.
16398         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16399         differently.
16400         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16401         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16402         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16403         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16404
16405 2011-02-11  Eric Blake  <eblake@redhat.com>
16406
16407         strptime: avoid compiler warnings
16408         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16409         compiler warnings about dead code.
16410         Reported by Daniel P. Berrange.
16411
16412 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16413
16414         doc: update users.txt
16415         * users.txt: Add rcs.
16416
16417 2011-02-10  John W. Eaton  <jwe@gnu.org>
16418
16419         doc: update users.txt
16420         * users.txt: Add octave.
16421
16422 2011-02-10  Jim Meyering  <meyering@redhat.com>
16423
16424         doc: update users.txt
16425         * users.txt: Add iwhd.
16426
16427 2011-02-09  Bruno Haible  <bruno@clisp.org>
16428
16429         gnulib-tool: Make copyright notice adjustment more robust.
16430         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16431         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16432         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16433         License".
16434         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16435
16436 2011-02-06  Bruno Haible  <bruno@clisp.org>
16437
16438         New module 'towctrans'.
16439         * modules/towctrans: New file.
16440         * lib/wctype.in.h (towctrans): New declaration.
16441         * lib/towctrans.c: New file.
16442         * lib/towctrans-impl.h: New file.
16443         * m4/towctrans.m4: New file.
16444         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16445         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16446         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16447         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16448         * doc/posix-functions/towctrans.texi: Mention the new module.
16449
16450 2011-02-06  Bruno Haible  <bruno@clisp.org>
16451
16452         New module 'wctrans'.
16453         * modules/wctrans: New file.
16454         * lib/wctype.in.h (wctrans): New declaration.
16455         * lib/wctrans.c: New file.
16456         * lib/wctrans-impl.h: New file.
16457         * m4/wctrans.m4: New file.
16458         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16459         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16460         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16461         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16462         * doc/posix-functions/wctrans.texi: Mention the new module.
16463
16464 2011-02-06  Bruno Haible  <bruno@clisp.org>
16465
16466         New module 'iswctype'.
16467         * modules/iswctype: New file.
16468         * lib/wctype.in.h (iswctype): New declaration.
16469         * lib/iswctype.c: New file.
16470         * lib/iswctype-impl.h: New file.
16471         * m4/iswctype.m4: New file.
16472         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16473         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16474         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16475         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16476         * doc/posix-functions/iswctype.texi: Mention the new module and the
16477         HP-UX 11.00 problem.
16478
16479 2011-02-06  Bruno Haible  <bruno@clisp.org>
16480
16481         New module 'wctype'.
16482         * modules/wctype: Change to represent the wctype() substitute.
16483         * lib/wctype.in.h (wctype): New declaration.
16484         * lib/wctype.c: New file.
16485         * lib/wctype-impl.h: New file.
16486         * m4/wctype.m4: New file.
16487         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16488         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16489         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16490         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16491         * doc/posix-functions/wctype.texi: Mention the new module and the
16492         HP-UX 11.00 problem.
16493
16494 2011-02-06  Bruno Haible  <bruno@clisp.org>
16495
16496         wctype-h: Ensure wctype_t and wctrans_t are defined.
16497         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16498         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16499         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16500         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16501         HAVE_WCTRANS_T.
16502         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16503
16504 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16505
16506         flock: fix license typo
16507
16508         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16509         omitted.
16510
16511 2011-02-08  Bruno Haible  <bruno@clisp.org>
16512
16513         Split large sed scripts, for HP-UX sed.
16514         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16515         to avoid HP-UX limit of 99 commands, in the near future.
16516         * modules/stdlib (Makefile.am): Likewise.
16517         * modules/unistd (Makefile.am): Likewise.
16518         * modules/wchar (Makefile.am): Likewise.
16519         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16520         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16521         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16522
16523 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16524             Bruno Haible  <bruno@clisp.org>
16525
16526         stdlib: improve random_r modularization
16527         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16528         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16529         you also need the random_r module to get this material right.
16530         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16531         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16532         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16533
16534 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16535
16536         stdlib: don't depend on stdint
16537         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16538         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16539         be independent of whether stdint.h is needed.
16540         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16541         here, instead of ...
16542         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16543         struct random_data should be using the random_r module, not just
16544         the stdlib module (which wouldn't make sense: what package needs
16545         just struct random_data without also needing random_r?).
16546         * modules/stdlib (Depends-on): Remove stdint.
16547
16548         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16549         See the thread rooted at
16550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16551         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16552         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16553         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16554         __VMS)); previously it was always included (via fcntl--.h).
16555         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16556         hand; this is good enough for load averages.  Also, do not use
16557         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16558         flags directly if available and don't bother otherwise.  (Packages
16559         that need the extra reliability should use the modules that define
16560         these flags on older platforms that lack them.)
16561         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16562         fcntl-safer.
16563
16564 2011-02-08  Jim Meyering  <meyering@redhat.com>
16565
16566         di-set.h, ino-map.h: add multiple-inclusion guard
16567         Technically, the guard is required only for ino-map.h, due to its
16568         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16569         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16570         * lib/ino-map.h: Likewise.
16571
16572 2011-02-06  Bruno Haible  <bruno@clisp.org>
16573
16574         iswblank: Ensure declaration on glibc systems.
16575         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16576         * modules/iswblank (Dependencies): Add 'extensions'.
16577         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16578
16579 2011-02-06  Bruno Haible  <bruno@clisp.org>
16580
16581         New module 'iswblank'.
16582         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16583         * modules/iswblank: New file.
16584         * modules/wctype-h (Files): Remove lib/iswblank.c.
16585         (Makefile.am): Substitute GNULIB_ISWBLANK.
16586         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16587         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16588         (gl_WCTYPE_H_DEFAULTS): New macro.
16589         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16590         * modules/iswblank-tests: New file.
16591         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16592         * tests/test-wctype-h.c (main): Remove iswblank tests.
16593         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16594         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16595         of 'wctype-h'.
16596         * NEWS: Mention the change.
16597         * modules/mbchar (Depends-on): Add iswblank.
16598
16599 2011-02-08  Bruno Haible  <bruno@clisp.org>
16600
16601         di-set tests: Refactor.
16602         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16603         unnecessary includes.
16604         (ASSERT): Remove macro.
16605         (main): Make C90 compliant by avoiding variable declaration after
16606         statement.
16607         * modules/di-set-tests (Files): Add tests/macros.h.
16608
16609 2011-02-08  Bruno Haible  <bruno@clisp.org>
16610
16611         ino-map tests: Refactor.
16612         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16613         unnecessary includes.
16614         (ASSERT): Remove macro.
16615         (main): Make C90 compliant by avoiding variable declaration after
16616         statement.
16617         * modules/ino-map-tests (Files): Add tests/macros.h.
16618
16619 2011-02-08  Jim Meyering  <meyering@redhat.com>
16620
16621         di-set: add "const" to a cast
16622         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16623         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16624
16625 2011-02-06  Bruno Haible  <bruno@clisp.org>
16626
16627         Rename module 'wctype' to 'wctype-h'.
16628         * modules/wctype-h: Renamed from modules/wctype.
16629         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16630         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16631         (Files, Depends-on, Makefile.am): Update.
16632         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16633         (Files, Makefile.am): Update.
16634         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16635         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16636         * doc/posix-headers/wctype.texi: Update.
16637         * doc/posix-functions/iswalnum.texi: Update.
16638         * doc/posix-functions/iswalpha.texi: Update.
16639         * doc/posix-functions/iswblank.texi: Update.
16640         * doc/posix-functions/iswcntrl.texi: Update.
16641         * doc/posix-functions/iswdigit.texi: Update.
16642         * doc/posix-functions/iswgraph.texi: Update.
16643         * doc/posix-functions/iswlower.texi: Update.
16644         * doc/posix-functions/iswprint.texi: Update.
16645         * doc/posix-functions/iswpunct.texi: Update.
16646         * doc/posix-functions/iswspace.texi: Update.
16647         * doc/posix-functions/iswupper.texi: Update.
16648         * doc/posix-functions/iswxdigit.texi: Update.
16649         * doc/posix-functions/towlower.texi: Update.
16650         * doc/posix-functions/towupper.texi: Update.
16651         * NEWS: Mention the change.
16652         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16653         * modules/mbchar (Dependencies): Likewise.
16654         * modules/mbswidth (Dependencies): Likewise.
16655         * modules/quotearg (Dependencies): Likewise.
16656         * modules/regex (Dependencies): Likewise.
16657         * modules/wcscasecmp (Dependencies): Likewise.
16658         * modules/wcsncasecmp (Dependencies): Likewise.
16659         * modules/wcwidth (Dependencies): Likewise.
16660
16661 2011-02-06  Bruno Haible  <bruno@clisp.org>
16662
16663         New module 'wcswidth'.
16664         * modules/wcswidth: New file.
16665         * lib/wchar.in.h (wcswidth): New declaration.
16666         * lib/wcswidth.c: New file.
16667         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16668         * m4/wcswidth.m4: New file.
16669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16671         REPLACE_WCSWIDTH.
16672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16673         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16674         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16675         * doc/posix-functions/wcswidth.texi: Mention the new module.
16676
16677 2011-02-06  Bruno Haible  <bruno@clisp.org>
16678
16679         New module 'wcstok'.
16680         * modules/wcstok: New file.
16681         * lib/wchar.in.h (wcstok): New declaration.
16682         * lib/wcstok.c: New file.
16683         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16684         * m4/wcstok.m4: New file.
16685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16688         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16689         * doc/posix-functions/wcstok.texi: Mention the new module.
16690
16691 2011-02-06  Bruno Haible  <bruno@clisp.org>
16692
16693         New module 'wcsstr'.
16694         * modules/wcsstr: New file.
16695         * lib/wchar.in.h (wcsstr): New declaration.
16696         * lib/wcsstr.c: New file.
16697         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
16698         * m4/wcsstr.m4: New file.
16699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
16700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
16701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
16702         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
16703         * doc/posix-functions/wcsstr.texi: Mention the new module.
16704
16705 2011-02-06  Bruno Haible  <bruno@clisp.org>
16706
16707         New module 'wcspbrk'.
16708         * modules/wcspbrk: New file.
16709         * lib/wchar.in.h (wcspbrk): New declaration.
16710         * lib/wcspbrk.c: New file.
16711         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
16712         * m4/wcspbrk.m4: New file.
16713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
16714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
16715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
16716         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
16717         * doc/posix-functions/wcspbrk.texi: Mention the new module.
16718
16719 2011-02-06  Bruno Haible  <bruno@clisp.org>
16720
16721         New module 'wcsspn'.
16722         * modules/wcsspn: New file.
16723         * lib/wchar.in.h (wcsspn): New declaration.
16724         * lib/wcsspn.c: New file.
16725         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
16726         * m4/wcsspn.m4: New file.
16727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
16728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
16729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
16730         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
16731         * doc/posix-functions/wcsspn.texi: Mention the new module.
16732
16733 2011-02-06  Bruno Haible  <bruno@clisp.org>
16734
16735         New module 'wcscspn'.
16736         * modules/wcscspn: New file.
16737         * lib/wchar.in.h (wcscspn): New declaration.
16738         * lib/wcscspn.c: New file.
16739         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
16740         * m4/wcscspn.m4: New file.
16741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
16742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
16743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
16744         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
16745         * doc/posix-functions/wcscspn.texi: Mention the new module.
16746
16747 2011-02-06  Bruno Haible  <bruno@clisp.org>
16748
16749         New module 'wcsrchr'.
16750         * modules/wcsrchr: New file.
16751         * lib/wchar.in.h (wcsrchr): New declaration.
16752         * lib/wcsrchr.c: New file.
16753         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16754         * m4/wcsrchr.m4: New file.
16755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16757         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16758         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16759         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16760
16761 2011-02-06  Bruno Haible  <bruno@clisp.org>
16762
16763         New module 'wcschr'.
16764         * modules/wcschr: New file.
16765         * lib/wchar.in.h (wcschr): New declaration.
16766         * lib/wcschr.c: New file.
16767         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16768         * m4/wcschr.m4: New file.
16769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
16770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
16771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
16772         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
16773         * doc/posix-functions/wcschr.texi: Mention the new module.
16774
16775 2011-02-06  Bruno Haible  <bruno@clisp.org>
16776
16777         New module 'wcsdup'.
16778         * modules/wcsdup: New file.
16779         * lib/wchar.in.h (wcsdup): New declaration.
16780         * lib/wcsdup.c: New file.
16781         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16782         * m4/wcsdup.m4: New file.
16783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16785         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16786         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16787         * doc/posix-functions/wcsdup.texi: Mention the new module.
16788
16789 2011-02-06  Bruno Haible  <bruno@clisp.org>
16790
16791         New module 'wcsxfrm'.
16792         * modules/wcsxfrm: New file.
16793         * lib/wchar.in.h (wcsxfrm): New declaration.
16794         * lib/wcsxfrm.c: New file.
16795         * lib/wcsxfrm-impl.h: New file.
16796         * m4/wcsxfrm.m4: New file.
16797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16800         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16801         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16802
16803 2011-02-06  Bruno Haible  <bruno@clisp.org>
16804
16805         New module 'wcscoll'.
16806         * modules/wcscoll: New file.
16807         * lib/wchar.in.h (wcscoll): New declaration.
16808         * lib/wcscoll.c: New file.
16809         * lib/wcscoll-impl.h: New file.
16810         * m4/wcscoll.m4: New file.
16811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16814         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16815         * doc/posix-functions/wcscoll.texi: Mention the new module.
16816
16817 2011-02-06  Bruno Haible  <bruno@clisp.org>
16818
16819         New module 'wcsncasecmp'.
16820         * modules/wcsncasecmp: New file.
16821         * lib/wchar.in.h (wcsncasecmp): New declaration.
16822         * lib/wcsncasecmp.c: New file.
16823         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16824         * m4/wcsncasecmp.m4: New file.
16825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16828         HAVE_WCSNCASECMP.
16829         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16830         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16831
16832 2011-02-06  Bruno Haible  <bruno@clisp.org>
16833
16834         New module 'wcscasecmp'.
16835         * modules/wcscasecmp: New file.
16836         * lib/wchar.in.h (wcscasecmp): New declaration.
16837         * lib/wcscasecmp.c: New file.
16838         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16839         * m4/wcscasecmp.m4: New file.
16840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16843         HAVE_WCSCASECMP.
16844         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16845         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16846
16847 2011-02-05  Bruno Haible  <bruno@clisp.org>
16848
16849         New module 'wcsncmp'.
16850         * modules/wcsncmp: New file.
16851         * lib/wchar.in.h (wcsncmp): New declaration.
16852         * lib/wcsncmp.c: New file.
16853         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16854         * m4/wcsncmp.m4: New file.
16855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16858         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16859         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16860
16861 2011-02-05  Bruno Haible  <bruno@clisp.org>
16862
16863         New module 'wcscmp'.
16864         * modules/wcscmp: New file.
16865         * lib/wchar.in.h (wcscmp): New declaration.
16866         * lib/wcscmp.c: New file.
16867         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16868         * m4/wcscmp.m4: New file.
16869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16872         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16873         * doc/posix-functions/wcscmp.texi: Mention the new module.
16874
16875 2011-02-05  Bruno Haible  <bruno@clisp.org>
16876
16877         New module 'wcsncat'.
16878         * modules/wcsncat: New file.
16879         * lib/wchar.in.h (wcsncat): New declaration.
16880         * lib/wcsncat.c: New file.
16881         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16882         * m4/wcsncat.m4: New file.
16883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16886         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16887         * doc/posix-functions/wcsncat.texi: Mention the new module.
16888
16889 2011-02-05  Bruno Haible  <bruno@clisp.org>
16890
16891         New module 'wcscat'.
16892         * modules/wcscat: New file.
16893         * lib/wchar.in.h (wcscat): New declaration.
16894         * lib/wcscat.c: New file.
16895         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16896         * m4/wcscat.m4: New file.
16897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16900         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16901         * doc/posix-functions/wcscat.texi: Mention the new module.
16902
16903 2011-02-05  Bruno Haible  <bruno@clisp.org>
16904
16905         New module 'wcpncpy'.
16906         * modules/wcpncpy: New file.
16907         * lib/wchar.in.h (wcpncpy): New declaration.
16908         * lib/wcpncpy.c: New file.
16909         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16910         * m4/wcpncpy.m4: New file.
16911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16913         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16914         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16915         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16916
16917 2011-02-05  Bruno Haible  <bruno@clisp.org>
16918
16919         New module 'wcsncpy'.
16920         * modules/wcsncpy: New file.
16921         * lib/wchar.in.h (wcsncpy): New declaration.
16922         * lib/wcsncpy.c: New file.
16923         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16924         * m4/wcsncpy.m4: New file.
16925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16927         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16928         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16929         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16930
16931 2011-02-05  Bruno Haible  <bruno@clisp.org>
16932
16933         New module 'wcpcpy'.
16934         * modules/wcpcpy: New file.
16935         * lib/wchar.in.h (wcpcpy): New declaration.
16936         * lib/wcpcpy.c: New file.
16937         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16938         * m4/wcpcpy.m4: New file.
16939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16941         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16942         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16943         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16944
16945 2011-02-05  Bruno Haible  <bruno@clisp.org>
16946
16947         New module 'wcscpy'.
16948         * modules/wcscpy: New file.
16949         * lib/wchar.in.h (wcscpy): New declaration.
16950         * lib/wcscpy.c: New file.
16951         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16952         * m4/wcscpy.m4: New file.
16953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16955         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16956         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16957         * doc/posix-functions/wcscpy.texi: Mention the new module.
16958
16959 2011-02-05  Bruno Haible  <bruno@clisp.org>
16960
16961         New module 'wcsnlen'.
16962         * modules/wcsnlen: New file.
16963         * lib/wchar.in.h (wcsnlen): New declaration.
16964         * lib/wcsnlen.c: New file.
16965         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16966         * m4/wcsnlen.m4: New file.
16967         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16968         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16969         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16970         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16971         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16972
16973 2011-02-05  Bruno Haible  <bruno@clisp.org>
16974
16975         New module 'wcslen'.
16976         * modules/wcslen: New file.
16977         * lib/wchar.in.h (wcslen): New declaration.
16978         * lib/wcslen.c: New file.
16979         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16980         * m4/wcslen.m4: New file.
16981         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16982         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16983         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16984         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16985         * doc/posix-functions/wcslen.texi: Mention the new module.
16986
16987 2011-02-05  Bruno Haible  <bruno@clisp.org>
16988
16989         New module 'wmemset'.
16990         * modules/wmemset: New file.
16991         * lib/wchar.in.h (wmemset): New declaration.
16992         * lib/wmemset.c: New file.
16993         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16994         * m4/wmemset.m4: New file.
16995         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16996         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16997         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16998         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16999         * doc/posix-functions/wmemset.texi: Mention the new module.
17000
17001 2011-02-05  Bruno Haible  <bruno@clisp.org>
17002
17003         New module 'wmemmove'.
17004         * modules/wmemmove: New file.
17005         * lib/wchar.in.h (wmemmove): New declaration.
17006         * lib/wmemmove.c: New file.
17007         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17008         * m4/wmemmove.m4: New file.
17009         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17010         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17011         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17012         HAVE_WMEMMOVE.
17013         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17014         * doc/posix-functions/wmemmove.texi: Mention the new module.
17015
17016 2011-02-05  Bruno Haible  <bruno@clisp.org>
17017
17018         New module 'wmemcpy'.
17019         * modules/wmemcpy: New file.
17020         * lib/wchar.in.h (wmemcpy): New declaration.
17021         * lib/wmemcpy.c: New file.
17022         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17023         * m4/wmemcpy.m4: New file.
17024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17026         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17027         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17028         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17029
17030 2011-02-05  Bruno Haible  <bruno@clisp.org>
17031
17032         New module 'wmemcmp'.
17033         * modules/wmemcmp: New file.
17034         * lib/wchar.in.h (wmemcmp): New declaration.
17035         * lib/wmemcmp.c: New file.
17036         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17037         * m4/wmemcmp.m4: New file.
17038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17040         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17041         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17042         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17043
17044 2011-02-07  Jim Meyering  <meyering@redhat.com>
17045
17046         di-set, ino-map: new modules, from coreutils
17047         * lib/di-set.c: New file.
17048         * lib/di-set.h: Likewise.
17049         * lib/ino-map.c: Likewise.
17050         * lib/ino-map.h: Likewise.
17051         * modules/di-set: Likewise.
17052         * modules/di-set-tests: Likewise.
17053         * modules/ino-map: Likewise.
17054         * modules/ino-map-tests: Likewise.
17055         * tests/test-di-set.c: Likewise.
17056         * tests/test-ino-map.c: Likewise.
17057
17058 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17059
17060         getloadavg: merge minor changes from Emacs
17061
17062         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17063         (getloadavg): Use memset, not bzero.
17064
17065         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17066         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17067         clash (bug#86).
17068
17069 2010-11-14  Bruno Haible  <bruno@clisp.org>
17070
17071         Allow multiple gnulib generated replacements to coexist.
17072         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17073         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17074         * lib/langinfo.in.h (nl_item): Likewise.
17075         * lib/math.in.h (_NaN, NAN): Likewise.
17076         * lib/netdb.in.h (struct addrinfo): Likewise.
17077         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17078         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17079         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17080         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17081         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17082         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17083         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17084         pthread_mutexattr_init, pthread_mutexattr_settype,
17085         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17086         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17087         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17088         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17089         * lib/sched.in.h (struct sched_param): Likewise.
17090         * lib/se-selinux.in.h (security_class_t, security_context_t,
17091         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17092         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17093         lsetfilecon, fsetfilecon, security_check_context,
17094         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17095         Likewise.
17096         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17097         Likewise.
17098         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17099         _gl_function_taking_int_returning_void_t, union sigval,
17100         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17101         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17102         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17103         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17104         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17105         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17106         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17107         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17108         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17109         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17110         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17111         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17112         socklen_t, rpl_fd_isset): Likewise.
17113         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17114         * lib/sys_time.in.h (struct timeval): Likewise.
17115         * lib/sys_times.in.h (struct tms): Likewise.
17116         * lib/sys_utsname.in.h (struct utsname):
17117         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17118         * lib/unistd.in.h (getpagesize): Likewise.
17119         * lib/wchar.in.h (mbstate_t): Likewise.
17120         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17121         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17122         towlower, towupper): Likewise.
17123         Reported by Sam Steingold <sds@gnu.org>.
17124
17125 2011-02-05  Eric Blake  <eblake@redhat.com>
17126
17127         unsetenv: work around Haiku issues
17128         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17129         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17130
17131 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17132
17133         libposix: avoid calling error() within libposix
17134         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17135         is defined.
17136
17137 2011-02-05  Eric Blake  <eblake@redhat.com>
17138
17139         strerror_r-posix: port to cygwin
17140         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17141         implementation.
17142         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17143         * tests/test-strerror_r.c (main): Fix test.
17144         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17145         issue.
17146
17147 2011-02-05  Bruno Haible  <bruno@clisp.org>
17148
17149         New module 'wmemchr'.
17150         * modules/wmemchr: New file.
17151         * lib/wchar.in.h (wmemchr): New declaration.
17152         * lib/wmemchr.c: New file.
17153         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17154         * m4/wmemchr.m4: New file.
17155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17157         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17158         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17159         * doc/posix-functions/wmemchr.texi: Mention the new module.
17160
17161 2011-02-04  Eric Blake  <eblake@redhat.com>
17162
17163         fdopendir: detect FreeBSD bug
17164         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17165         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17166
17167 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17168
17169         stdbool: do not define HAVE_STDBOOL_H
17170         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17171         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17172         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17173         imported from the latest Autoconf git.  It was motivated by Emacs,
17174         which uses gnulib but does not need HAVE_STDBOOL_H.
17175
17176 2011-02-04  Bruno Haible  <bruno@clisp.org>
17177
17178         wcsnrtombs: Prepare for new module wwcsnrtombs.
17179         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17180         * lib/wcsnrtombs.c: Include it.
17181         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17182
17183         wcsrtombs: Prepare for new module wwcsrtombs.
17184         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17185         * lib/wcsrtombs.c: Include it.
17186         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17187
17188         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17189         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17190         * lib/mbsnrtowcs.c: Include it.
17191         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17192
17193         mbsrtowcs: Prepare for new module mbsrtowwcs.
17194         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17195         * lib/mbsrtowcs.c: Include it.
17196         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17197
17198 2011-02-04  Bruno Haible  <bruno@clisp.org>
17199
17200         vasnprintf: Reduce use of malloc for small format strings.
17201         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17202         (arguments): Add room for the first 7 arguments.
17203         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17204         (char_directives, u8_directives, u16_directives, u32_directives): Add
17205         room for the first 7 directives.
17206         * lib/printf-parse.c: Include <string.h>.
17207         (PRINTF_PARSE): Change memory handling code so that it uses the first
17208         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17209         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17210         Reported by Pádraig Brady <P@draigbrady.com>.
17211
17212 2011-01-31  Eric Blake  <eblake@redhat.com>
17213
17214         dup2: work around Haiku bug
17215         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17216         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17217         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17218         * tests/test-dup2.c (main): Enhance test.
17219
17220 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17221
17222         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17223         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17224         declared by eglibc 2.11.2.
17225         * lib/stdio.in.h: Likewise.
17226
17227 2011-01-31  Eric Blake  <eblake@redhat.com>
17228
17229         ignore-value: add missing test dependency
17230         * tests/test-ignore-value.c: Revert previous change; stdio.h
17231         provides off_t.
17232         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17233
17234 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17235
17236         mktime: clarify long_int width checking
17237         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17238         the top level, to make it clearer that the assumption about
17239         long_int width is being checked.  See
17240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17241
17242 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17243
17244         ignore-value: Fix self-test.
17245         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17246
17247 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17248
17249         TYPE_MAXIMUM: avoid theoretically undefined behavior
17250         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17251         negative number, which the C Standard says has undefined behavior.
17252         In practice this is not a problem, but might as well do it by the book.
17253         Reported by Rich Felker and Eric Blake; see
17254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17255         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17256         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17257         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17258         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17259         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17260         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17261
17262         mktime: #undef mktime before #defining it
17263         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17264
17265         mktime: systematically normalize tm_isdst comparisons
17266         * lib/mktime.c (isdst_differ): New function.
17267         (__mktime_internal): Use it systematically for all isdst comparisons.
17268         This completes the fix for libc BZ #6723, and removes the need for
17269         normalizing tm_isdst.  See
17270         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17271         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17272
17273         mktime: fix some integer overflow issues and sidestep the rest
17274
17275         This was prompted by a bug report by Benjamin Lindner for MinGW
17276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17277         His bug is due to signed integer overflow (0 - INT_MIN), and I
17278         I scanned through mktime.c looking for other integer overflow
17279         problems, fixing all the bugs I found.
17280
17281         Although the C Standard says the resulting code is still not safe
17282         in the presence of integer overflow, in practice it should be good
17283         enough for all real-world two's-complement implementations, except
17284         for debugging environments that deliberately trap on integer
17285         overflow (e.g., gcc -ftrapv).
17286
17287         * lib/mktime.c (WRAPV): New macro.
17288         (SHR): Also check that long_int and time_t shift right in the
17289         usual way, before using the fast-but-unportable method.
17290         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17291         used.  The code already assumed two's complement, so there's
17292         no need to test for alternatives.  All uses removed.
17293         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17294         the C standard.  Problem reported by Rich Felker in
17295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17296         (twos_complement_arithmetic): Also check long_int and time_t.
17297         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17298         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17299         (__mktime_internal): Avoid integer overflow with unary subtraction
17300         in two instances where -1 - X is an adequate replacement for -X,
17301         since the calculations are approximate.
17302
17303 2011-01-29  Eric Blake  <eblake@redhat.com>
17304
17305         mktime: avoid infinite loop
17306         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17307         type; behavior is still undefined but portable to all known targets.
17308         Reported by Rich Felker.
17309
17310 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17311
17312         rename, unlink, same-inode: Relicense.
17313         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17314         * modules/unlink (License): Likewise.
17315         * modules/same-inode (License): Likewise.
17316
17317 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17318
17319         mktime: avoid problems on NetBSD 5 / i386
17320         * lib/mktime.c (long_int): New type.  This works around a problem
17321         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17322         but time_t is 64 bits, and where I expect the existing code is
17323         wrong in some cases.
17324         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17325         (ydhms_diff): Bring back the compile-time check for wide-enough
17326         year and yday.
17327
17328         mktime: fix misspelling in comment
17329         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17330         This merges all recent glibc changes of importance.
17331
17332 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17333
17334         move-if-change: cope with concurrent mv of identical file.
17335         * build-aux/move-if-change (CMPPROG): Accept environment
17336         variable as an override for `cmp'.
17337         (usage): Document CMPPROG.
17338         Adjust comparison to drop stdout.  Cope with failure of mv if
17339         the target file exists and is identical to the source, for
17340         parallel builds.
17341         Report from H.J. Lu against binutils in PR binutils/12283.
17342
17343 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17344
17345         * users.txt: Mention sharutils.
17346
17347 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17348
17349         * users.txt: Mention OATH Toolkit.
17350
17351 2011-01-27  Bruno Haible  <bruno@clisp.org>
17352
17353         Prepare for supporting FreeBSD 10.
17354         * build-aux/config.libpath: Remove handling of freebsd1*.
17355
17356 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17357
17358         Prepare for supporting FreeBSD 10.
17359         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17360         match FreeBSD 10.0.
17361
17362 2011-01-27  Bruno Haible  <bruno@clisp.org>
17363
17364         vma-iter, get-rusage-as: Add OpenBSD support.
17365         * modules/vma-iter (configure.ac): Test for mquery.
17366         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17367         * lib/vma-iter.c: Include <sys/mman.h>.
17368         (vma_iterate): Add an implementation based on mquery().
17369         * lib/resource-ext.h (get_rusage_as): Update comments.
17370         * lib/get-rusage-as.c: Likewise.
17371         * lib/get-rusage-data.c: Likewise.
17372
17373 2011-01-26  Karl Berry  <karl@gnu.org>
17374
17375         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17376         variables to make it easier to override the makeinfo program used.
17377
17378 2011-01-26  Eric Blake  <eblake@redhat.com>
17379
17380         fcntl: work around Haiku F_DUPFD bugs
17381         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17382         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17383         cloexec bit on duplication.
17384         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17385
17386 2011-01-26  Bruno Haible  <bruno@clisp.org>
17387
17388         Enable memory leak tests on AIX.
17389         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17390         * tests/test-fprintf-posix3.c (main): Likewise.
17391
17392 2011-01-26  Bruno Haible  <bruno@clisp.org>
17393
17394         Tests for module 'get-rusage-data'.
17395         * modules/get-rusage-data-tests: New file.
17396         * tests/test-get-rusage-data.c: New file.
17397
17398         New module 'get-rusage-data'.
17399         * lib/resource-ext.h (get_rusage_data): New declaration.
17400         * lib/get-rusage-data.c: New file.
17401         * modules/get-rusage-data: New file.
17402
17403 2011-01-25  Bruno Haible  <bruno@clisp.org>
17404
17405         get-rusage-as: Allow for easier testing.
17406         * lib/resource-ext.h (get_rusage_as): Add comment.
17407         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17408         (main): New function for interactive testing.
17409
17410 2011-01-25  Bruno Haible  <bruno@clisp.org>
17411
17412         vma-iter: Treat Haiku like BeOS.
17413         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17414         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17415
17416 2011-01-25  Eric Blake  <eblake@redhat.com>
17417
17418         c-stack: fix regression on cygwin when libsigsegv is present
17419         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17420
17421 2011-01-24  Bruno Haible  <bruno@clisp.org>
17422
17423         vma-iter: Avoid empty intervals.
17424         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17425         on an empty interval.
17426
17427 2011-01-24  Jim Meyering  <meyering@redhat.com>
17428
17429         u64: remove unnecessary #include
17430         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17431
17432 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17433
17434         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17435         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17436
17437 2011-01-23  Bruno Haible  <bruno@clisp.org>
17438
17439         New module 'vma-iter'.
17440         * lib/vma-iter.h: New file.
17441         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17442         * modules/vma-iter: New file.
17443         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17444         for get_rusage_as_via_iterator.
17445         (vma_iterate_callback): New function.
17446         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17447         * modules/get-rusage-as (Depends-on): Add vma-iter.
17448
17449 2011-01-23  Bruno Haible  <bruno@clisp.org>
17450
17451         uninorm: Tweak includes.
17452         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17453         Reported by Jim Meyering.
17454
17455 2011-01-23  Bruno Haible  <bruno@clisp.org>
17456
17457         get-rusage-as: Improve on NetBSD.
17458         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17459         /proc, like on FreeBSD.
17460
17461 2011-01-23  Jim Meyering  <meyering@redhat.com>
17462
17463         xreadlink.h: remove unnecessary #include
17464         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17465
17466         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17467         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17468
17469 2011-01-23  Bruno Haible  <bruno@clisp.org>
17470
17471         get-rusage-as: Fix bug.
17472         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17473         original limit when aborting the first loop.
17474
17475 2011-01-23  Bruno Haible  <bruno@clisp.org>
17476
17477         wctype: Ensure valid C syntax.
17478         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17479         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17480
17481 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17482
17483         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17485         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17486         as they are needed only for configure's test case.
17487         This removes two unnecessary symbols from config.h.
17488
17489         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17490         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17492         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17493         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17494         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17495         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17496         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17497         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17498         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17499         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17500         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17501         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17502         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17503         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17504         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17505         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17506         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17507
17508 2011-01-21  Eric Blake  <eblake@redhat.com>
17509
17510         maintainer-makefile: work with older git for submodule check
17511         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17512         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17513         Reported by Matthias Bolte.
17514
17515         bootstrap: minor portability fixes
17516         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17517         (usage): Omit leading capital and trailing . on help phrases, per
17518         GNU Coding Standards.
17519         (check_versions, top level): Prefix messages with script name.
17520
17521 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17522
17523         bootstrap: support --no-git option
17524         * build-aux/bootstrap: Add --no-git option, to be used when
17525         --gnulib-srcdir points to the exact desired checkout.
17526
17527 2011-01-21  Eric Blake  <eblake@redhat.com>
17528
17529         strerror_r-posix: work with glibc 2.13
17530         * lib/strerror_r.c (strerror_r): Fix return type.
17531
17532 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17533             Bruno Haible  <bruno@clisp.org>
17534
17535         uN_strstr: New unit tests.
17536         * modules/unistr/u8-strstr-tests: New file.
17537         * modules/unistr/u16-strstr-tests: New file.
17538         * modules/unistr/u32-strstr-tests: New file.
17539         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17540         * tests/unistr/test-u8-strstr.c: New file.
17541         * tests/unistr/test-u16-strstr.c: New file.
17542         * tests/unistr/test-u32-strstr.c: New file.
17543
17544 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17545             Bruno Haible  <bruno@clisp.org>
17546
17547         Make uN_strstr functions O(n) worst-case.
17548         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17549         16-bit and 32-bit unit cases, use the unibyte algorithm from
17550         lib/mbsstr.c.
17551         * lib/unistr/u8-strstr.c: Include <string.h>.
17552         (UNIT_IS_UINT8_T): New macro.
17553         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17554         (U_STRLEN, U_STRNLEN): New macros.
17555         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17556         (U_STRLEN, U_STRNLEN): New macros.
17557         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17558         (configure.ac): Update required libunistring version.
17559         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17560         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17561         malloca.
17562         (configure.ac): Update required libunistring version.
17563         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17564         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17565         malloca.
17566         (configure.ac): Update required libunistring version.
17567
17568 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17569             Bruno Haible  <bruno@clisp.org>
17570
17571         Prepare for faster uN_strstr functions.
17572         * lib/str-kmp.h: Support definable UNITs.
17573         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17574         needle_len argument.
17575         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17576         * lib/mbscasestr.c (mbscasestr): Likewise.
17577
17578 2011-01-21  Pádraig Brady <P@draigBrady.com>
17579
17580         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17581         * tests/test-malloca.c (main): Unset the environment variable
17582         to greatly speed up the test.
17583         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17584         * modules/malloca-tests: Depend on unsetenv.
17585
17586 2011-01-21  Pádraig Brady <P@draigBrady.com>
17587
17588         ignore-value: remove stdint dependency
17589         * lib/ignore-value.h: Remove <stdint.h>
17590         * modules/ignore-value: Remove stdint dependency.
17591
17592 2011-01-21  Jim Meyering  <meyering@redhat.com>
17593
17594         maint.mk: adjust variable name to be consistent with other gl_ vars
17595         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17596         to be lower case.
17597
17598 2011-01-20  Jim Meyering  <meyering@redhat.com>
17599
17600         maint.mk: make "check" depend on public-submodule-commit by default
17601         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17602
17603 2011-01-20  Bruno Haible  <bruno@clisp.org>
17604
17605         mbfile, mbiter: Complete change from 2008-12-21.
17606         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17607         * m4/mbiter.m4 (gl_MBITER): Likewise.
17608
17609 2011-01-20  Jim Meyering  <meyering@redhat.com>
17610
17611         init.sh: insert space between each function name and "()"
17612         * tests/init.sh: Make it a little easier to see that a function's
17613         name is "warn_", and not "warn" when looking at the first part of
17614         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17615
17616 2011-01-20  Jim Meyering  <meyering@redhat.com>
17617
17618         mountlist: clean up code formatting
17619         * lib/mountlist.c (read_file_system_list): Split a long line,
17620         correct bracing style, use NULL in place of "(struct statfs *)0",
17621         don't parenthesize return value, add spaces around "=" and after
17622         ";-in-for-stmt".
17623
17624 2011-01-14  Markus Duft <mduft@gentoo.org>
17625
17626         mountlist: add support for Interix
17627         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17628         Apply statvfs to all entries of /dev/fs.
17629         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17630         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17631
17632 2011-01-20  Jim Meyering  <meyering@redhat.com>
17633
17634         maint.mk: improve the public-submodule-commit rule
17635         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17636         to suppress printing of its commands... unless V=1.
17637         Add git submodule's --quiet option to suppress printing of e.g.,
17638         "Entering gnulib" output.
17639         "cd" into $(srcdir) before running git submodule.
17640
17641 2011-01-20  Bruno Haible  <bruno@clisp.org>
17642
17643         include_next: Fix bug introduced on 2011-01-18.
17644         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17645         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17646         ac_cv_header_... variable if the second argument is not 'check'.
17647         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17648         gl_NEXT_HEADERS_INTERNAL.
17649
17650 2011-01-20  Bruno Haible  <bruno@clisp.org>
17651
17652         Allow the user to avoid the GNULIB_TEST_* macros.
17653         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17654         Suggested by Paul Eggert.
17655
17656 2011-01-14  Jim Meyering  <meyering@redhat.com>
17657
17658         bootstrap: avoid failure when there is no .gitmodules file
17659         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17660         has been assigned to, even when its value is the empty string.
17661         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17662         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17663         Reported by John W. Eaton <jwe@gnu.org>.
17664
17665 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17666
17667         assume <ctype.h>, ..., <time.h> exist
17668         For years gnulib has been assuming the existence of the headers
17669         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17670         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17671         them, since they don't appear to be needed.
17672         * README (Portability guidelines): Document this.
17673         * lib/flock.c: Assume <fcntl.h> exists.
17674         * lib/regex_internal.h: Assume <locale.h> exists.
17675         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17676         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17677         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17678         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17679         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17680         * m4/regex.m4 (gl_REGEX): Likewise.
17681         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17682         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17683         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17684         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17685         * tests/test-argp.c: Likewise.
17686         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17687
17688         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17689         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17690         AA_APPLE_UNIVERSAL_BUILD.  See
17691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17692         * NEWS: Document this.
17693
17694 2011-01-19  Eric Blake  <eblake@redhat.com>
17695
17696         c-stack: assume stack overflow if SA_SIGINFO unsupported
17697         * lib/c-stack.c (SIGACTION_WORKS): Rename...
17698         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
17699         sigaction will work.
17700         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
17701         behavior match Linux.
17702         * tests/test-c-stack.c (main): Prefer NULL for pointers.
17703
17704         stdbool-tests: accomodate Haiku
17705         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
17706
17707         binary-io: fix O_TEXT on Haiku
17708         * modules/binary-io (Depends-on): Add fcntl-h.
17709         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
17710         than blindly undefining O_TEXT.
17711         Reported by Scott McCreary.
17712
17713 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17714
17715         include_next: do not check for standard headers like stddef.h
17716
17717         I found this problem when modifying Emacs to use gnulib.
17718         I noticed that it added HAVE_STDDEF_H to config.h, even though
17719         gnulib always assumes <stddef.h> exists as per README and this
17720         symbol is unnecessary.
17721         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
17722         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
17723         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
17724         faster for headers like stddef.h that are known to exist.
17725         (gl_CHECK_NEXT_HEADERS): Use it.
17726         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
17727         rather than gl_CHECK_NEXT_HEADERS.
17728         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17729         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
17730
17731 2011-01-18  Eric Blake  <eblake@redhat.com>
17732
17733         ansi-c++-opt: skip C++ dependency style if C++ is unused
17734         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
17735         tests when we know C++ compilation is not desired.
17736         Reported by Scott McCreary.
17737
17738 2011-01-18  Bruno Haible  <bruno@clisp.org>
17739
17740         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
17741         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
17742         (main): Perform test also when getrlimit and setrlimit don't exist or
17743         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
17744         limiting the address space size using setrlimit, compare the address
17745         space size before and after the the test.
17746         * tests/test-dprintf-posix2.c: Likewise.
17747         * tests/test-fprintf-posix3.sh: Update skip messages.
17748         * tests/test-dprintf-posix2.sh: Likewise.
17749         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
17750         * modules/dprintf-posix-tests (Depends-on): Likewise.
17751         Reported by Bruce Korb <bkorb@gnu.org> and
17752         Gary V. Vaughan <gary@gnu.org>.
17753
17754 2011-01-18  Bruno Haible  <bruno@clisp.org>
17755
17756         get-rusage-as: Improvement for Cygwin.
17757         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17758         areas that are merely reserved.
17759
17760 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17761
17762         strftime: remove dependencies on multibyte modules
17763
17764         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17765         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17766         only if __osf__ is defined, and I suspect OSF doesn't need these
17767         other modules.  If my guess is wrong, we'll need to come up with a
17768         variant of strftime that doesn't need the multibyte modules.
17769
17770         I discovered this problem when attempting modify Emacs to use the
17771         strftime module.  With the previous gnulib, this caused Emacs to
17772         need 31 new files, ranging from lib/config.charset to
17773         m4/wint_t.m4.  This was overkill and I expect would be offputting
17774         to the Emacs maintainers.  After this change, only 6 new files are
17775         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
17776         stdbool.m4, and tm_gmtoff.m4.
17777
17778         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17779         Suggested by Bruno Haible in
17780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17781         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17782         and do not check for wchar.h.
17783         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17784         (Depends-on): Remove mbrlen, mbsinit, wchar.
17785
17786 2011-01-18  Bruno Haible  <bruno@clisp.org>
17787
17788         Tests for module 'get-rusage-as'.
17789         * modules/get-rusage-as-tests: New file.
17790         * tests/test-get-rusage-as.c: New file.
17791
17792         New module 'get-rusage-as'.
17793         * modules/get-rusage-as: New file.
17794         * lib/resource-ext.h: New file.
17795         * lib/get-rusage-as.c: New file.
17796
17797 2011-01-17  Eric Blake  <eblake@redhat.com>
17798
17799         sigaction: relax license from LGPLv3+ to LGPLv2+
17800         * modules/sigaction (License): Relax to LGPLv2+.
17801
17802 2011-01-14  Bruno Haible  <bruno@clisp.org>
17803
17804         filemode: Make function declarations usable in C++ mode.
17805         * lib/filemode.h: Enclose function declarations in extern "C" block.
17806         Reported by John W. Eaton <jwe@gnu.org>.
17807
17808 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17809
17810         save-cwd: no longer include "xgetcwd.h"
17811         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17812         This avoids a compilation failure in projects that use save-cwd
17813         without also using the xgetcwd module.
17814
17815 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17816
17817         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17818         This is so that a program like Emacs, which needs only dtoastr,
17819         does not have to bother with distributing and compiling ftoastr
17820         and ldtoastr.
17821         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17822         * modules/dtoastr, modules/ldtoastr: New files.
17823         * modules/ftoastr: Now works just for 'float'.
17824         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17825         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17826         dtoastr.c, ldtoastr.c.
17827
17828 2011-01-11  Jim Meyering  <meyering@redhat.com>
17829
17830         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17831         There is no need to work around the lack of the fchdir function,
17832         since gnulib can now provide a replacement when required.
17833         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17834         * modules/save-cwd (Depends-on): Add fchdir.
17835
17836 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17837
17838         openat, save-cwd: avoid xmalloc
17839
17840         This removes a direct (but undocumented) dependency of openat on
17841         xalloc, along with an indirect dependency via save-cwd.  It also
17842         removes a dependency of save-cwd on xgetcwd, and thereby
17843         indirectly on xalloc.  This change causes the openat substitute
17844         to fall back on save_cwd when memory is tight, and for save_cwd to
17845         fail instead of dying when memory is tight, but that's good enough.
17846         Problem and initial idea for fix reported by Bastien Roucaries in
17847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17848
17849         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17850         xalloc.h (for xmalloc).
17851         (openat_proc_name): Use malloc, not xmalloc.
17852         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17853         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17854
17855         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17856         This avoids heap allocation for file names whose lengths are in
17857         the range 512..1023, with the upper bound increasing to at most
17858         4031 depending on the platform's PATH_MAX.  (We do not want
17859         pathmax.h here as it might supply a non-constant PATH_MAX.)
17860         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17861         Perhaps they should be moved to malloca.h?
17862         (OPENAT_BUFFER_SIZE): Use them.
17863
17864 2011-01-10  Bruno Haible  <bruno@clisp.org>
17865
17866         doc: Update users.txt.
17867         * users.txt: Add recutils.
17868
17869 2011-01-09  Karl Berry  <karl@gnu.org>
17870
17871         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17872
17873         * doc/configmake.texi: New file.
17874         * doc/gnulib.texi: Include it.
17875         * modules/configmake: Move documentation from here.
17876
17877 2011-01-09  Bruno Haible  <bruno@clisp.org>
17878
17879         Update to Unicode 6.0.0.
17880         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17881         (get_lbp): Update for Unicode 6.0.0.
17882         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17883         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17884         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17885         U+11001, U+11038..U+11046. Remove U+06DE.
17886         (uc_width): Fix bounds of planes.
17887         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17888         lib/uniwidth/width.c.
17889         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17890         trailing whitespace removed.
17891         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17892         without comments, but with the original copyright notice.
17893         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17894         * lib/unicase/ignorable.h: Likewise.
17895         * lib/unicase/tocasefold.h: Likewise.
17896         * lib/unicase/tolower.h: Likewise.
17897         * lib/unicase/totitle.h: Likewise.
17898         * lib/unicase/toupper.h: Likewise.
17899         * lib/unictype/bidi_of.h: Likewise.
17900         * lib/unictype/blocks.h: Likewise.
17901         * lib/unictype/categ_C.h: Likewise.
17902         * lib/unictype/categ_Cn.h: Likewise.
17903         * lib/unictype/categ_L.h: Likewise.
17904         * lib/unictype/categ_Ll.h: Likewise.
17905         * lib/unictype/categ_Lm.h: Likewise.
17906         * lib/unictype/categ_Lo.h: Likewise.
17907         * lib/unictype/categ_Lu.h: Likewise.
17908         * lib/unictype/categ_M.h: Likewise.
17909         * lib/unictype/categ_Mc.h: Likewise.
17910         * lib/unictype/categ_Me.h: Likewise.
17911         * lib/unictype/categ_Mn.h: Likewise.
17912         * lib/unictype/categ_N.h: Likewise.
17913         * lib/unictype/categ_Nd.h: Likewise.
17914         * lib/unictype/categ_No.h: Likewise.
17915         * lib/unictype/categ_P.h: Likewise.
17916         * lib/unictype/categ_Po.h: Likewise.
17917         * lib/unictype/categ_S.h: Likewise.
17918         * lib/unictype/categ_Sc.h: Likewise.
17919         * lib/unictype/categ_Sk.h: Likewise.
17920         * lib/unictype/categ_Sm.h: Likewise.
17921         * lib/unictype/categ_So.h: Likewise.
17922         * lib/unictype/categ_of.h: Likewise.
17923         * lib/unictype/combining.h: Likewise.
17924         * lib/unictype/ctype_alnum.h: Likewise.
17925         * lib/unictype/ctype_alpha.h: Likewise.
17926         * lib/unictype/ctype_graph.h: Likewise.
17927         * lib/unictype/ctype_lower.h: Likewise.
17928         * lib/unictype/ctype_print.h: Likewise.
17929         * lib/unictype/ctype_punct.h: Likewise.
17930         * lib/unictype/ctype_upper.h: Likewise.
17931         * lib/unictype/decdigit.h: Likewise.
17932         * lib/unictype/digit.h: Likewise.
17933         * lib/unictype/numeric.h: Likewise.
17934         * lib/unictype/pr_alphabetic.h: Likewise.
17935         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17936         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17937         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17938         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17939         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17940         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17941         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17942         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17943         * lib/unictype/pr_case_ignorable.h: Likewise.
17944         * lib/unictype/pr_cased.h: Likewise.
17945         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17946         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17947         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17948         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17949         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17950         * lib/unictype/pr_combining.h: Likewise.
17951         * lib/unictype/pr_composite.h: Likewise.
17952         * lib/unictype/pr_currency_symbol.h: Likewise.
17953         * lib/unictype/pr_decimal_digit.h: Likewise.
17954         * lib/unictype/pr_deprecated.h: Likewise.
17955         * lib/unictype/pr_format_control.h: Likewise.
17956         * lib/unictype/pr_grapheme_base.h: Likewise.
17957         * lib/unictype/pr_grapheme_extend.h: Likewise.
17958         * lib/unictype/pr_grapheme_link.h: Likewise.
17959         * lib/unictype/pr_id_continue.h: Likewise.
17960         * lib/unictype/pr_id_start.h: Likewise.
17961         * lib/unictype/pr_ideographic.h: Likewise.
17962         * lib/unictype/pr_lowercase.h: Likewise.
17963         * lib/unictype/pr_math.h: Likewise.
17964         * lib/unictype/pr_numeric.h: Likewise.
17965         * lib/unictype/pr_other_alphabetic.h: Likewise.
17966         * lib/unictype/pr_other_id_continue.h: Likewise.
17967         * lib/unictype/pr_other_math.h: Likewise.
17968         * lib/unictype/pr_punctuation.h: Likewise.
17969         * lib/unictype/pr_sentence_terminal.h: Likewise.
17970         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17971         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17972         * lib/unictype/pr_unified_ideograph.h: Likewise.
17973         * lib/unictype/pr_uppercase.h: Likewise.
17974         * lib/unictype/pr_xid_continue.h: Likewise.
17975         * lib/unictype/pr_xid_start.h: Likewise.
17976         * lib/unictype/scripts.h: Likewise.
17977         * lib/unictype/scripts_byname.gperf: Likewise.
17978         * lib/unictype/sy_java_ident.h: Likewise.
17979         * lib/unigbrk/gbrkprop.h: Likewise.
17980         * lib/unilbrk/lbrkprop1.h: Likewise.
17981         * lib/unilbrk/lbrkprop2.h: Likewise.
17982         * lib/uninorm/decomposition-table2.h: Likewise.
17983         * lib/uniwbrk/wbrkprop.h: Likewise.
17984         * tests/unicase/test-cased.c: Likewise.
17985         * tests/unicase/test-ignorable.c: Likewise.
17986         * tests/unicase/test-uc_tolower.c: Likewise.
17987         * tests/unicase/test-uc_totitle.c: Likewise.
17988         * tests/unicase/test-uc_toupper.c: Likewise.
17989         * tests/unictype/test-categ_C.c: Likewise.
17990         * tests/unictype/test-categ_Cn.c: Likewise.
17991         * tests/unictype/test-categ_L.c: Likewise.
17992         * tests/unictype/test-categ_Ll.c: Likewise.
17993         * tests/unictype/test-categ_Lm.c: Likewise.
17994         * tests/unictype/test-categ_Lo.c: Likewise.
17995         * tests/unictype/test-categ_Lu.c: Likewise.
17996         * tests/unictype/test-categ_M.c: Likewise.
17997         * tests/unictype/test-categ_Mc.c: Likewise.
17998         * tests/unictype/test-categ_Me.c: Likewise.
17999         * tests/unictype/test-categ_Mn.c: Likewise.
18000         * tests/unictype/test-categ_N.c: Likewise.
18001         * tests/unictype/test-categ_Nd.c: Likewise.
18002         * tests/unictype/test-categ_No.c: Likewise.
18003         * tests/unictype/test-categ_P.c: Likewise.
18004         * tests/unictype/test-categ_Po.c: Likewise.
18005         * tests/unictype/test-categ_S.c: Likewise.
18006         * tests/unictype/test-categ_Sc.c: Likewise.
18007         * tests/unictype/test-categ_Sk.c: Likewise.
18008         * tests/unictype/test-categ_Sm.c: Likewise.
18009         * tests/unictype/test-categ_So.c: Likewise.
18010         * tests/unictype/test-ctype_alnum.c: Likewise.
18011         * tests/unictype/test-ctype_alpha.c: Likewise.
18012         * tests/unictype/test-ctype_graph.c: Likewise.
18013         * tests/unictype/test-ctype_lower.c: Likewise.
18014         * tests/unictype/test-ctype_print.c: Likewise.
18015         * tests/unictype/test-ctype_punct.c: Likewise.
18016         * tests/unictype/test-ctype_upper.c: Likewise.
18017         * tests/unictype/test-decdigit.h: Likewise.
18018         * tests/unictype/test-digit.h: Likewise.
18019         * tests/unictype/test-numeric.h: Likewise.
18020         * tests/unictype/test-pr_alphabetic.c: Likewise.
18021         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18022         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18023         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18024         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18025         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18026         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18027         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18028         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18029         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18030         * tests/unictype/test-pr_cased.c: Likewise.
18031         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18032         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18033         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18034         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18035         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18036         * tests/unictype/test-pr_combining.c: Likewise.
18037         * tests/unictype/test-pr_composite.c: Likewise.
18038         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18039         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18040         * tests/unictype/test-pr_deprecated.c: Likewise.
18041         * tests/unictype/test-pr_format_control.c: Likewise.
18042         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18043         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18044         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18045         * tests/unictype/test-pr_id_continue.c: Likewise.
18046         * tests/unictype/test-pr_id_start.c: Likewise.
18047         * tests/unictype/test-pr_ideographic.c: Likewise.
18048         * tests/unictype/test-pr_lowercase.c: Likewise.
18049         * tests/unictype/test-pr_math.c: Likewise.
18050         * tests/unictype/test-pr_numeric.c: Likewise.
18051         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18052         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18053         * tests/unictype/test-pr_other_math.c: Likewise.
18054         * tests/unictype/test-pr_punctuation.c: Likewise.
18055         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18056         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18057         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18058         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18059         * tests/unictype/test-pr_uppercase.c: Likewise.
18060         * tests/unictype/test-pr_xid_continue.c: Likewise.
18061         * tests/unictype/test-pr_xid_start.c: Likewise.
18062         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18063         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18064         changes.
18065         * lib/unictype/categ_Cc.h: Likewise.
18066         * lib/unictype/categ_Cf.h: Likewise.
18067         * lib/unictype/categ_Co.h: Likewise.
18068         * lib/unictype/categ_Cs.h: Likewise.
18069         * lib/unictype/categ_Lt.h: Likewise.
18070         * lib/unictype/categ_Nl.h: Likewise.
18071         * lib/unictype/categ_Pc.h: Likewise.
18072         * lib/unictype/categ_Pd.h: Likewise.
18073         * lib/unictype/categ_Pe.h: Likewise.
18074         * lib/unictype/categ_Pf.h: Likewise.
18075         * lib/unictype/categ_Pi.h: Likewise.
18076         * lib/unictype/categ_Ps.h: Likewise.
18077         * lib/unictype/categ_Z.h: Likewise.
18078         * lib/unictype/categ_Zl.h: Likewise.
18079         * lib/unictype/categ_Zp.h: Likewise.
18080         * lib/unictype/categ_Zs.h: Likewise.
18081         * lib/unictype/ctype_blank.h: Likewise.
18082         * lib/unictype/ctype_cntrl.h: Likewise.
18083         * lib/unictype/ctype_digit.h: Likewise.
18084         * lib/unictype/ctype_space.h: Likewise.
18085         * lib/unictype/ctype_xdigit.h: Likewise.
18086         * lib/unictype/mirror.h: Likewise.
18087         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18088         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18089         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18090         * lib/unictype/pr_bidi_control.h: Likewise.
18091         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18092         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18093         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18094         * lib/unictype/pr_bidi_pdf.h: Likewise.
18095         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18096         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18097         * lib/unictype/pr_dash.h: Likewise.
18098         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18099         * lib/unictype/pr_diacritic.h: Likewise.
18100         * lib/unictype/pr_extender.h: Likewise.
18101         * lib/unictype/pr_hex_digit.h: Likewise.
18102         * lib/unictype/pr_hyphen.h: Likewise.
18103         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18104         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18105         * lib/unictype/pr_ignorable_control.h: Likewise.
18106         * lib/unictype/pr_iso_control.h: Likewise.
18107         * lib/unictype/pr_join_control.h: Likewise.
18108         * lib/unictype/pr_left_of_pair.h: Likewise.
18109         * lib/unictype/pr_line_separator.h: Likewise.
18110         * lib/unictype/pr_logical_order_exception.h: Likewise.
18111         * lib/unictype/pr_non_break.h: Likewise.
18112         * lib/unictype/pr_not_a_character.h: Likewise.
18113         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18114         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18115         * lib/unictype/pr_other_id_start.h: Likewise.
18116         * lib/unictype/pr_other_lowercase.h: Likewise.
18117         * lib/unictype/pr_other_uppercase.h: Likewise.
18118         * lib/unictype/pr_paired_punctuation.h: Likewise.
18119         * lib/unictype/pr_paragraph_separator.h: Likewise.
18120         * lib/unictype/pr_pattern_syntax.h: Likewise.
18121         * lib/unictype/pr_pattern_white_space.h: Likewise.
18122         * lib/unictype/pr_private_use.h: Likewise.
18123         * lib/unictype/pr_quotation_mark.h: Likewise.
18124         * lib/unictype/pr_radical.h: Likewise.
18125         * lib/unictype/pr_soft_dotted.h: Likewise.
18126         * lib/unictype/pr_space.h: Likewise.
18127         * lib/unictype/pr_titlecase.h: Likewise.
18128         * lib/unictype/pr_variation_selector.h: Likewise.
18129         * lib/unictype/pr_white_space.h: Likewise.
18130         * lib/unictype/pr_zero_width.h: Likewise.
18131         * lib/unictype/sy_c_ident.h: Likewise.
18132         * lib/unictype/sy_c_whitespace.h: Likewise.
18133         * lib/unictype/sy_java_whitespace.h: Likewise.
18134         * lib/uninorm/composition-table.gperf: Likewise.
18135         * lib/uninorm/decomposition-table1.h: Likewise.
18136         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18137         LB8.
18138         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18139         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18140         * modules/unictype/*: Bump version number of expected libunistring
18141         version.
18142
18143 2011-01-09  Bruno Haible  <bruno@clisp.org>
18144
18145         Update to Unicode 5.2.0.
18146         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18147         trailing whitespace removed.
18148
18149 2011-01-09  Bruno Haible  <bruno@clisp.org>
18150
18151         New Unicode character properties, from Unicode 5.2.0.
18152         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18153         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18154         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18155         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18156         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18157         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18158         uc_is_property_cased, uc_is_property_case_ignorable,
18159         uc_is_property_changes_when_lowercased,
18160         uc_is_property_changes_when_uppercased,
18161         uc_is_property_changes_when_titlecased,
18162         uc_is_property_changes_when_casefolded,
18163         uc_is_property_changes_when_casemapped): New declarations.
18164         * lib/unictype/pr_byname.gperf: Add the new properties.
18165         * modules/unictype/property-byname (Depends-on): Depend on the new
18166         properties modules.
18167         * modules/unictype/property-all (Depends-on): Likewise.
18168         * MODULES.html.sh (Unicode string functions): Add
18169         unictype/property-case-ignorable, unictype/property-cased,
18170         unictype/property-changes-when-casefolded,
18171         unictype/property-changes-when-casemapped,
18172         unictype/property-changes-when-lowercased,
18173         unictype/property-changes-when-titlecased,
18174         unictype/property-changes-when-uppercased.
18175
18176         New module 'unictype/property-changes-when-casemapped'.
18177         * modules/unictype/property-changes-when-casemapped: New file.
18178         * lib/unictype/pr_changes_when_casemapped.c: New file.
18179         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18180         generated by gen-uni-tables.
18181         * modules/unictype/property-changes-when-casemapped-tests: New file.
18182         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18183         automatically generated by gen-uni-tables.
18184
18185         New module 'unictype/property-changes-when-casefolded'.
18186         * modules/unictype/property-changes-when-casefolded: New file.
18187         * lib/unictype/pr_changes_when_casefolded.c: New file.
18188         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18189         generated by gen-uni-tables.
18190         * modules/unictype/property-changes-when-casefolded-tests: New file.
18191         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18192         automatically generated by gen-uni-tables.
18193
18194         New module 'unictype/property-changes-when-titlecased'.
18195         * modules/unictype/property-changes-when-titlecased: New file.
18196         * lib/unictype/pr_changes_when_titlecased.c: New file.
18197         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18198         generated by gen-uni-tables.
18199         * modules/unictype/property-changes-when-titlecased-tests: New file.
18200         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18201         automatically generated by gen-uni-tables.
18202
18203         New module 'unictype/property-changes-when-uppercased'.
18204         * modules/unictype/property-changes-when-uppercased: New file.
18205         * lib/unictype/pr_changes_when_uppercased.c: New file.
18206         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18207         generated by gen-uni-tables.
18208         * modules/unictype/property-changes-when-uppercased-tests: New file.
18209         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18210         automatically generated by gen-uni-tables.
18211
18212         New module 'unictype/property-changes-when-lowercased'.
18213         * modules/unictype/property-changes-when-lowercased: New file.
18214         * lib/unictype/pr_changes_when_lowercased.c: New file.
18215         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18216         generated by gen-uni-tables.
18217         * modules/unictype/property-changes-when-lowercased-tests: New file.
18218         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18219         automatically generated by gen-uni-tables.
18220
18221         New module 'unictype/property-case-ignorable'.
18222         * modules/unictype/property-case-ignorable: New file.
18223         * lib/unictype/pr_case_ignorable.c: New file.
18224         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18225         by gen-uni-tables.
18226         * modules/unictype/property-case-ignorable-tests: New file.
18227         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18228         generated by gen-uni-tables.
18229
18230         New module 'unictype/property-cased'.
18231         * modules/unictype/property-cased: New file.
18232         * lib/unictype/pr_cased.c: New file.
18233         * lib/unictype/pr_cased.h: New file, automatically generated by
18234         gen-uni-tables.
18235         * modules/unictype/property-cased-tests: New file.
18236         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18237         gen-uni-tables.
18238
18239 2011-01-09  Bruno Haible  <bruno@clisp.org>
18240
18241         Update to Unicode 5.2.0.
18242         * lib/gen-uni-tables.c (output_predicate, output_category,
18243         output_combclass, output_bidi_category, output_decimal_digit_test,
18244         output_decimal_digit, output_digit_test, output_digit,
18245         output_numeric_test, output_numeric, output_mirror, output_scripts,
18246         output_scripts_byname, output_blocks, output_ident_category): Fix
18247         comment header.
18248         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18249         get_wbp.
18250         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18251         items.
18252         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18253         Changes_When_Lowercased, Changes_When_Uppercased,
18254         Changes_When_Titlecased, Changes_When_Casefolded,
18255         Changes_When_Casemapped.
18256         (is_property_alphabetic, is_property_default_ignorable_code_point):
18257         Update for Unicode 5.2.0.
18258         (is_property_cased, is_property_case_ignorable,
18259         is_property_changes_when_lowercased,
18260         is_property_changes_when_uppercased,
18261         is_property_changes_when_titlecased,
18262         is_property_changes_when_casefolded,
18263         is_property_changes_when_casemapped): New functions.
18264         (output_properties): Output also the properties cased, case_ignorable,
18265         changes_when_lowercased, changes_when_uppercased,
18266         changes_when_titlecased, changes_when_casefolded,
18267         changes_when_casemapped.
18268         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18269         Unicode TR#11 revision 17 -> 19.
18270         (LBP_CP): New enumeration value.
18271         (LBP_*): Adjust values accordingly.
18272         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18273         TR#14 revision 22 -> 24.
18274         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18275         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18276         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18277         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18278         is_WBP_MIDLETTER.
18279         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18280         the code1 and code2 of each composition rule.
18281         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18282         * lib/unicase/ignorable.h: Likewise.
18283         * lib/unicase/tocasefold.h: Likewise.
18284         * lib/unicase/tolower.h: Likewise.
18285         * lib/unicase/totitle.h: Likewise.
18286         * lib/unicase/toupper.h: Likewise.
18287         * lib/unictype/bidi_of.h: Likewise.
18288         * lib/unictype/blocks.h: Likewise.
18289         * lib/unictype/categ_C.h: Likewise.
18290         * lib/unictype/categ_Cf.h: Likewise.
18291         * lib/unictype/categ_Cn.h: Likewise.
18292         * lib/unictype/categ_L.h: Likewise.
18293         * lib/unictype/categ_Ll.h: Likewise.
18294         * lib/unictype/categ_Lm.h: Likewise.
18295         * lib/unictype/categ_Lo.h: Likewise.
18296         * lib/unictype/categ_Lu.h: Likewise.
18297         * lib/unictype/categ_M.h: Likewise.
18298         * lib/unictype/categ_Mc.h: Likewise.
18299         * lib/unictype/categ_Mn.h: Likewise.
18300         * lib/unictype/categ_N.h: Likewise.
18301         * lib/unictype/categ_Nd.h: Likewise.
18302         * lib/unictype/categ_Nl.h: Likewise.
18303         * lib/unictype/categ_No.h: Likewise.
18304         * lib/unictype/categ_P.h: Likewise.
18305         * lib/unictype/categ_Pd.h: Likewise.
18306         * lib/unictype/categ_Po.h: Likewise.
18307         * lib/unictype/categ_S.h: Likewise.
18308         * lib/unictype/categ_Sc.h: Likewise.
18309         * lib/unictype/categ_So.h: Likewise.
18310         * lib/unictype/categ_of.h: Likewise.
18311         * lib/unictype/combining.h: Likewise.
18312         * lib/unictype/ctype_alnum.h: Likewise.
18313         * lib/unictype/ctype_alpha.h: Likewise.
18314         * lib/unictype/ctype_graph.h: Likewise.
18315         * lib/unictype/ctype_lower.h: Likewise.
18316         * lib/unictype/ctype_print.h: Likewise.
18317         * lib/unictype/ctype_punct.h: Likewise.
18318         * lib/unictype/ctype_upper.h: Likewise.
18319         * lib/unictype/decdigit.h: Likewise.
18320         * lib/unictype/digit.h: Likewise.
18321         * lib/unictype/numeric.h: Likewise.
18322         * lib/unictype/pr_alphabetic.h: Likewise.
18323         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18324         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18325         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18326         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18327         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18328         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18329         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18330         * lib/unictype/pr_combining.h: Likewise.
18331         * lib/unictype/pr_composite.h: Likewise.
18332         * lib/unictype/pr_currency_symbol.h: Likewise.
18333         * lib/unictype/pr_dash.h: Likewise.
18334         * lib/unictype/pr_decimal_digit.h: Likewise.
18335         * lib/unictype/pr_deprecated.h: Likewise.
18336         * lib/unictype/pr_diacritic.h: Likewise.
18337         * lib/unictype/pr_extender.h: Likewise.
18338         * lib/unictype/pr_grapheme_base.h: Likewise.
18339         * lib/unictype/pr_grapheme_extend.h: Likewise.
18340         * lib/unictype/pr_grapheme_link.h: Likewise.
18341         * lib/unictype/pr_id_continue.h: Likewise.
18342         * lib/unictype/pr_id_start.h: Likewise.
18343         * lib/unictype/pr_ideographic.h: Likewise.
18344         * lib/unictype/pr_ignorable_control.h: Likewise.
18345         * lib/unictype/pr_logical_order_exception.h: Likewise.
18346         * lib/unictype/pr_lowercase.h: Likewise.
18347         * lib/unictype/pr_numeric.h: Likewise.
18348         * lib/unictype/pr_other_alphabetic.h: Likewise.
18349         * lib/unictype/pr_punctuation.h: Likewise.
18350         * lib/unictype/pr_sentence_terminal.h: Likewise.
18351         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18352         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18353         * lib/unictype/pr_unified_ideograph.h: Likewise.
18354         * lib/unictype/pr_uppercase.h: Likewise.
18355         * lib/unictype/pr_xid_continue.h: Likewise.
18356         * lib/unictype/pr_xid_start.h: Likewise.
18357         * lib/unictype/pr_zero_width.h: Likewise.
18358         * lib/unictype/scripts.h: Likewise.
18359         * lib/unictype/scripts_byname.gperf: Likewise.
18360         * lib/unictype/sy_java_ident.h: Likewise.
18361         * lib/unigbrk/gbrkprop.h: Likewise.
18362         * lib/unilbrk/lbrkprop1.h: Likewise.
18363         * lib/unilbrk/lbrkprop2.h: Likewise.
18364         * lib/unilbrk/lbrktables.h: Likewise.
18365         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18366         LBP_CP. Implement rule LB30.
18367         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18368         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18369         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18370         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18371         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18372         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18373         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18374         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18375         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18376         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18377         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18378         bits instead of 16 bits in the code1 and code2 of each composition
18379         rule.
18380         (uc_composition): Update for Unicode 5.2.0.
18381         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18382         * lib/uninorm/decomposition-table2.h: Likewise.
18383         * lib/uniwbrk/wbrkprop.h: Likewise.
18384         * tests/unicase/test-cased.c: Likewise.
18385         * tests/unicase/test-ignorable.c: Likewise.
18386         * tests/unicase/test-uc_tolower.c: Likewise.
18387         * tests/unicase/test-uc_totitle.c: Likewise.
18388         * tests/unicase/test-uc_toupper.c: Likewise.
18389         * tests/unictype/test-categ_C.c: Likewise.
18390         * tests/unictype/test-categ_Cf.c: Likewise.
18391         * tests/unictype/test-categ_Cn.c: Likewise.
18392         * tests/unictype/test-categ_L.c: Likewise.
18393         * tests/unictype/test-categ_Ll.c: Likewise.
18394         * tests/unictype/test-categ_Lm.c: Likewise.
18395         * tests/unictype/test-categ_Lo.c: Likewise.
18396         * tests/unictype/test-categ_Lu.c: Likewise.
18397         * tests/unictype/test-categ_M.c: Likewise.
18398         * tests/unictype/test-categ_Mc.c: Likewise.
18399         * tests/unictype/test-categ_Mn.c: Likewise.
18400         * tests/unictype/test-categ_N.c: Likewise.
18401         * tests/unictype/test-categ_Nd.c: Likewise.
18402         * tests/unictype/test-categ_Nl.c: Likewise.
18403         * tests/unictype/test-categ_No.c: Likewise.
18404         * tests/unictype/test-categ_P.c: Likewise.
18405         * tests/unictype/test-categ_Pd.c: Likewise.
18406         * tests/unictype/test-categ_Po.c: Likewise.
18407         * tests/unictype/test-categ_S.c: Likewise.
18408         * tests/unictype/test-categ_Sc.c: Likewise.
18409         * tests/unictype/test-categ_So.c: Likewise.
18410         * tests/unictype/test-ctype_alnum.c: Likewise.
18411         * tests/unictype/test-ctype_alpha.c: Likewise.
18412         * tests/unictype/test-ctype_graph.c: Likewise.
18413         * tests/unictype/test-ctype_lower.c: Likewise.
18414         * tests/unictype/test-ctype_print.c: Likewise.
18415         * tests/unictype/test-ctype_punct.c: Likewise.
18416         * tests/unictype/test-ctype_upper.c: Likewise.
18417         * tests/unictype/test-decdigit.h: Likewise.
18418         * tests/unictype/test-digit.h: Likewise.
18419         * tests/unictype/test-numeric.h: Likewise.
18420         * tests/unictype/test-pr_alphabetic.c: Likewise.
18421         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18422         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18423         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18424         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18425         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18426         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18427         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18428         * tests/unictype/test-pr_combining.c: Likewise.
18429         * tests/unictype/test-pr_composite.c: Likewise.
18430         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18431         * tests/unictype/test-pr_dash.c: Likewise.
18432         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18433         * tests/unictype/test-pr_deprecated.c: Likewise.
18434         * tests/unictype/test-pr_diacritic.c: Likewise.
18435         * tests/unictype/test-pr_extender.c: Likewise.
18436         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18437         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18438         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18439         * tests/unictype/test-pr_id_continue.c: Likewise.
18440         * tests/unictype/test-pr_id_start.c: Likewise.
18441         * tests/unictype/test-pr_ideographic.c: Likewise.
18442         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18443         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18444         * tests/unictype/test-pr_lowercase.c: Likewise.
18445         * tests/unictype/test-pr_numeric.c: Likewise.
18446         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18447         * tests/unictype/test-pr_punctuation.c: Likewise.
18448         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18449         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18450         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18451         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18452         * tests/unictype/test-pr_uppercase.c: Likewise.
18453         * tests/unictype/test-pr_xid_continue.c: Likewise.
18454         * tests/unictype/test-pr_xid_start.c: Likewise.
18455         * tests/unictype/test-pr_zero_width.c: Likewise.
18456         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18457         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18458         changed behaviour: line breaking is now disallowed between a letter
18459         or '=' and '('.
18460         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18461         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18462         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18463         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18464         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18465         lib/uniwidth/width.c.
18466         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18467         without comments, but with the original copyright notice.
18468         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18469         changes.
18470         * lib/unictype/categ_Cc.h: Likewise.
18471         * lib/unictype/categ_Co.h: Likewise.
18472         * lib/unictype/categ_Cs.h: Likewise.
18473         * lib/unictype/categ_Lt.h: Likewise.
18474         * lib/unictype/categ_Me.h: Likewise.
18475         * lib/unictype/categ_Pc.h: Likewise.
18476         * lib/unictype/categ_Pe.h: Likewise.
18477         * lib/unictype/categ_Pf.h: Likewise.
18478         * lib/unictype/categ_Pi.h: Likewise.
18479         * lib/unictype/categ_Ps.h: Likewise.
18480         * lib/unictype/categ_Sk.h: Likewise.
18481         * lib/unictype/categ_Sm.h: Likewise.
18482         * lib/unictype/categ_Z.h: Likewise.
18483         * lib/unictype/categ_Zl.h: Likewise.
18484         * lib/unictype/categ_Zp.h: Likewise.
18485         * lib/unictype/categ_Zs.h: Likewise.
18486         * lib/unictype/ctype_blank.h: Likewise.
18487         * lib/unictype/ctype_cntrl.h: Likewise.
18488         * lib/unictype/ctype_digit.h: Likewise.
18489         * lib/unictype/ctype_space.h: Likewise.
18490         * lib/unictype/ctype_xdigit.h: Likewise.
18491         * lib/unictype/mirror.h: Likewise.
18492         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18493         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18494         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18495         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18496         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18497         * lib/unictype/pr_bidi_control.h: Likewise.
18498         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18499         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18500         * lib/unictype/pr_bidi_pdf.h: Likewise.
18501         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18502         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18503         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18504         * lib/unictype/pr_format_control.h: Likewise.
18505         * lib/unictype/pr_hex_digit.h: Likewise.
18506         * lib/unictype/pr_hyphen.h: Likewise.
18507         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18508         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18509         * lib/unictype/pr_iso_control.h: Likewise.
18510         * lib/unictype/pr_join_control.h: Likewise.
18511         * lib/unictype/pr_left_of_pair.h: Likewise.
18512         * lib/unictype/pr_line_separator.h: Likewise.
18513         * lib/unictype/pr_math.h: Likewise.
18514         * lib/unictype/pr_non_break.h: Likewise.
18515         * lib/unictype/pr_not_a_character.h: Likewise.
18516         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18517         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18518         * lib/unictype/pr_other_id_continue.h: Likewise.
18519         * lib/unictype/pr_other_id_start.h: Likewise.
18520         * lib/unictype/pr_other_lowercase.h: Likewise.
18521         * lib/unictype/pr_other_math.h: Likewise.
18522         * lib/unictype/pr_other_uppercase.h: Likewise.
18523         * lib/unictype/pr_paired_punctuation.h: Likewise.
18524         * lib/unictype/pr_paragraph_separator.h: Likewise.
18525         * lib/unictype/pr_pattern_syntax.h: Likewise.
18526         * lib/unictype/pr_pattern_white_space.h: Likewise.
18527         * lib/unictype/pr_private_use.h: Likewise.
18528         * lib/unictype/pr_quotation_mark.h: Likewise.
18529         * lib/unictype/pr_radical.h: Likewise.
18530         * lib/unictype/pr_soft_dotted.h: Likewise.
18531         * lib/unictype/pr_space.h: Likewise.
18532         * lib/unictype/pr_titlecase.h: Likewise.
18533         * lib/unictype/pr_variation_selector.h: Likewise.
18534         * lib/unictype/pr_white_space.h: Likewise.
18535         * lib/unictype/sy_c_ident.h: Likewise.
18536         * lib/unictype/sy_c_whitespace.h: Likewise.
18537         * lib/unictype/sy_java_whitespace.h: Likewise.
18538         * modules/uni*/*: Bump version number of expected libunistring version.
18539         Reported by Simon Josefsson.
18540
18541 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18542
18543         useless-if-before-free: fix typo in --help and make the internal,
18544         automatic version date update process work once again.
18545         --help output contained a NUL character instead of the
18546         backslash-zero that was intended.  Also, the "must lie within
18547         the first 8 lines" line is on line 9, and hence not getting
18548         automatically updated.
18549         * build-aux/useless-if-before-free: Fix the former by adding a
18550         backslash, and the latter by condensing the three lines of what-it-does
18551         to a single line, leaving one line of slack for the future.
18552
18553 2011-01-09  Bruno Haible  <bruno@clisp.org>
18554
18555         uniwidth/width: Fix width of U+1D173..U+1D17A.
18556         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18557         symbolic_width, output_width_property_test): New functions.
18558         (main): Invoke output_nonspacing_property, output_width_property_test.
18559         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18560         U+1D173..U+1D17A.
18561         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18562         1.
18563         * modules/uniwidth/*: Bump version number of expected libunistring
18564         version.
18565         * modules/unilbrk/*: Likewise.
18566
18567 2011-01-08  Bruno Haible  <bruno@clisp.org>
18568
18569         uninorm tests: Preserve copyright of Unicode data file.
18570         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18571         Mention modifications.
18572
18573 2011-01-08  Bruno Haible  <bruno@clisp.org>
18574
18575         gen-uni-tables: Prepare for Unicode 5.2.0.
18576         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18577         (debug_output_lbp, output_lbp): Update.
18578
18579 2011-01-08  Bruno Haible  <bruno@clisp.org>
18580
18581         unilbrk: Clarify gen-uni-tables.c code.
18582         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18583         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18584         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18585
18586 2011-01-07  Bruno Haible  <bruno@clisp.org>
18587
18588         strtod: Restore errno when successfully parsing Infinity or NaN.
18589         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18590         restore the original errno.
18591
18592 2011-01-07  Bruno Haible  <bruno@clisp.org>
18593
18594         remove test: Avoid failure on HP-UX 11.
18595         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18596
18597 2011-01-07  Bruno Haible  <bruno@clisp.org>
18598
18599         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18600         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18601         error code.
18602
18603 2011-01-07  Pádraig Brady <P@draigBrady.com>
18604
18605         ignore-value: fixup comments, and add Eric Blake
18606         as an author since he rewrote the macros.
18607         * lib/ignore-value.h (ignore_value):  State that
18608         we now support aggregates.  Also specify exactly
18609         when the GCC warn_unused_result feature was added.
18610
18611 2011-01-06  Eric Blake  <eblake@redhat.com>
18612
18613         ignore-value: support aggregate types
18614         * lib/ignore-value.h (ignore_value): Provide separate gcc
18615         definition.
18616         * modules/ignore-value-tests: New test module.
18617         * tests/test-ignore-value.c: New test.
18618
18619         maint.mk: improve sc_prohibit_strcmp regex
18620         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18621         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18622         definition of STRNEQ.
18623
18624         signal: work around Haiku issue with SIGBUS
18625         * lib/siglist.h: Add comment.
18626         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18627         strsignal's favoring of SIGSEGV.
18628         * tests/test-signal.c (main): Avoid test failure.
18629         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18630         Reported by Scott McCreary.
18631
18632         maint.mk: add pre-release check to ensure submodule commits are public
18633         * top/maint.mk (public-submodule-commit): New rule.
18634         (submodule-checks): New variable.
18635         (alpha beta stable): Depend on the variable.
18636
18637 2011-01-05  Pádraig Brady <P@draigBrady.com>
18638         and Jim Meyering  <meyering@redhat.com>
18639
18640         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18641         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18642         (ATTRIBUTE_DEPRECATED): Define.
18643         (_ignore_case): New function.
18644         (ignore_value): New macro, to replace the old function.
18645         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18646         * modules/ignore-value (Depends-on): Add stdint.
18647
18648 2011-01-04  Eric Blake  <eblake@redhat.com>
18649
18650         doc: regenerate INSTALL
18651         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18652         @firstparagraphindent support, now that autoconf dropped it.
18653         (INSTALL_PRELUDE): Reinstate old macro.
18654         * doc/install.texi: Resync from autoconf.
18655         * doc/INSTALL: Reflect recent autoconf update.
18656         * doc/INSTALL.ISO: Likewise.
18657         * doc/INSTALL.UTF-8: Likewise.
18658         Reported by Karl Berry.
18659
18660 2011-01-04  Bruce Korb  <address@hidden>
18661
18662         git-version-gen: avoid a sub-shell
18663         * build-aux/git-version-gen: Redirect stderr in `...` via
18664         "exec 2>...", rather than via an added sub-shell.
18665
18666 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18667
18668         git-version-gen: use (...) rather than sh -c '...'
18669         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18670         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18671
18672 2011-01-03  Jim Meyering  <meyering@redhat.com>
18673
18674         git-version-gen: convert leading TABs to spaces
18675         * build-aux/git-version-gen: Expand leading TABs.
18676
18677         git-version-gen: handle failed "git rev-list"
18678         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18679         from git and proceeding as if it had succeeded but printed no SHA1
18680         checksums, suppress the diagnostic and handle the failure.
18681         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18682
18683         git-version-gen: include command name in one more diagnostic
18684         * build-aux/git-version-gen: When the required .tarball-version file
18685         was missing or unreadable, you might see the diagnostic from "cat",
18686         but no trace of the name of the invoking script.  Now, you still see
18687         the diagnostic from cat, but also get one from "git-version-gen: ".
18688         Inspired by a patch from Bruce Korb.
18689
18690         update-copyright: adjust test to match changed code
18691         * tests/test-update-copyright.sh: Change test's expected output
18692         to match new actual output.
18693
18694 2011-01-02  Bruno Haible  <bruno@clisp.org>
18695
18696         getlogin_r: Avoid test failure on HP-UX 11.
18697         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
18698         ERANGE when the second argument is zero.
18699         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
18700         portability problem.
18701
18702 2011-01-02  Bruce Korb  <bkorb@gnu.org>
18703
18704         * build-aux/update-copyright: doc Simon's changes
18705
18706 2011-01-02  Simon Josefsson  <simon@josefsson.org>
18707
18708         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
18709         environment variable.
18710
18711 2011-01-02  Bruno Haible  <bruno@clisp.org>
18712
18713         unigbrk: Avoid gcc warnings.
18714         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
18715         unused variable.
18716         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
18717         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
18718         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
18719         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
18720         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
18721         Change type of first argument to 'const char *'.
18722         (main): Remove unused variable.
18723         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
18724         type of first argument to 'const char *'.
18725         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
18726         Likewise.
18727         (main): Change type of variable 's'.
18728         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
18729         to 'int'.
18730
18731 2011-01-02  Bruno Haible  <bruno@clisp.org>
18732
18733         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
18734         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
18735         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
18736         bug.
18737         * lib/pwrite.c: Undo 2010-12-31 patch.
18738         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
18739
18740 2011-01-02  Bruno Haible  <bruno@clisp.org>
18741
18742         pread: Fix test whether it works.
18743         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
18744
18745 2011-01-02  Bruno Haible  <bruno@clisp.org>
18746
18747         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
18748         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
18749         ends in "6". Don't require a specific month name. Try also the locale
18750         names found on HP-UX 11 and Solaris 7.
18751
18752 2011-01-02  Bruno Haible  <bruno@clisp.org>
18753
18754         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18755         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18756         C linkage.
18757         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18758
18759 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18760
18761         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18762         for consistency, since the "cluster" term is not used elsewhere.
18763         * lib/unigbrk.in.h: Update name.
18764         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18765         * lib/unigbrk/u16-grapheme-next.c: Update name.
18766         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18767         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18768         * lib/unigbrk/u32-grapheme-next.c: Update name.
18769         * lib/unigbrk/u32-grapheme-prev.c: Update name.
18770         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
18771         * lib/unigbrk/u8-grapheme-next.c: Update name.
18772         * lib/unigbrk/u8-grapheme-prev.c: Update name.
18773         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
18774         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
18775         Suggested by Bruno Haible.
18776
18777 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18778
18779         Remove module 'u8-grapheme-len' as too redundant with
18780         'u8-grapheme-next'.
18781         * modules/unigbrk/u8-grapheme-len: Delete file.
18782         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18783         * lib/unigbrk.in.h: Remove prototype for deleted function.
18784         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18785         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18786
18787         Remove module 'u16-grapheme-len' as too redundant with
18788         'u16-grapheme-next'.
18789         * modules/unigbrk/u16-grapheme-len: Delete file.
18790         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18791         * lib/unigbrk.in.h: Remove prototype for deleted function.
18792         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18793         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18794
18795         Remove module 'u32-grapheme-len' as too redundant with
18796         'u32-grapheme-next'.
18797         * modules/unigbrk/u32-grapheme-len: Delete file.
18798         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18799         * lib/unigbrk.in.h: Remove prototype for deleted function.
18800         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18801         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18802
18803         Suggested by Bruno Haible.
18804
18805 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18806
18807         * unigbrk.in.h: Fix typo: "ben" => "been".
18808         Reported by Bruno Haible.
18809
18810 2011-01-01  Jim Meyering  <meyering@redhat.com>
18811
18812         maint: update almost all copyright ranges to include 2011
18813         Run the new "make update-copyright" rule.
18814
18815 2011-01-01  Jim Meyering  <meyering@redhat.com>
18816
18817         maint: update-copyright: exempt doc/INSTALL*
18818         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18819         since they are generated.  Suggested by Bruno Haible.
18820
18821 2011-01-01  Jim Meyering  <meyering@redhat.com>
18822
18823         maint: refine the update-copyright rule
18824         * Makefile (update-copyright): Also exclude any file that includes
18825         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18826         code that merely generates the comment.
18827
18828 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18829
18830         New module 'u8-grapheme-len'.
18831         * modules/unigbrk/u8-grapheme-len: New file.
18832         * modules/unigbrk/u8-grapheme-len-tests: New file.
18833         * lib/unigbrk.in.h: Add prototype for new function.
18834         * lib/unigbrk/u8-grapheme-len.c: New file.
18835         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18836
18837         New module 'u16-grapheme-len'.
18838         * modules/unigbrk/u16-grapheme-len: New file.
18839         * modules/unigbrk/u16-grapheme-len-tests: New file.
18840         * lib/unigbrk.in.h: Add prototype for new function.
18841         * lib/unigbrk/u16-grapheme-len.c: New file.
18842         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18843
18844         New module 'u32-grapheme-len'.
18845         * modules/unigbrk/u32-grapheme-len: New file.
18846         * modules/unigbrk/u32-grapheme-len-tests: New file.
18847         * lib/unigbrk.in.h: Add prototype for new function.
18848         * lib/unigbrk/u32-grapheme-len.c: New file.
18849         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18850
18851         New module 'u8-grapheme-next'.
18852         * modules/unigbrk/u8-grapheme-next: New file.
18853         * modules/unigbrk/u8-grapheme-next-tests: New file.
18854         * lib/unigbrk.in.h: Add prototype for new function.
18855         * lib/unigbrk/u8-grapheme-next.c: New file.
18856         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18857
18858         New module 'u16-grapheme-next'.
18859         * modules/unigbrk/u16-grapheme-next: New file.
18860         * modules/unigbrk/u16-grapheme-next-tests: New file.
18861         * lib/unigbrk.in.h: Add prototype for new function.
18862         * lib/unigbrk/u16-grapheme-next.c: New file.
18863         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18864
18865         New module 'u32-grapheme-next'.
18866         * modules/unigbrk/u32-grapheme-next: New file.
18867         * modules/unigbrk/u32-grapheme-next-tests: New file.
18868         * lib/unigbrk.in.h: Add prototype for new function.
18869         * lib/unigbrk/u32-grapheme-next.c: New file.
18870         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18871
18872         New module 'u8-grapheme-prev'.
18873         * modules/unigbrk/u8-grapheme-prev: New file.
18874         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18875         * lib/unigbrk.in.h: Add prototype for new function.
18876         * lib/unigbrk/u8-grapheme-prev.c: New file.
18877         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18878
18879         New module 'u16-grapheme-prev'.
18880         * modules/unigbrk/u16-grapheme-prev: New file.
18881         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18882         * lib/unigbrk.in.h: Add prototype for new function.
18883         * lib/unigbrk/u16-grapheme-prev.c: New file.
18884         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18885
18886         New module 'u32-grapheme-prev'.
18887         * modules/unigbrk/u32-grapheme-prev: New file.
18888         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18889         * lib/unigbrk.in.h: Add prototype for new function.
18890         * lib/unigbrk/u32-grapheme-prev.c: New file.
18891         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18892
18893         New module 'u8-grapheme-breaks'.
18894         * modules/unigbrk/u8-grapheme-breaks: New file.
18895         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18896         * lib/unigbrk.in.h: Add prototype for new function.
18897         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18898         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18899
18900         New module 'u16-grapheme-breaks'.
18901         * modules/unigbrk/u16-grapheme-breaks: New file.
18902         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18903         * lib/unigbrk.in.h: Add prototype for new function.
18904         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18905         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18906
18907         New module 'u32-grapheme-breaks'.
18908         * modules/unigbrk/u32-grapheme-breaks: New file.
18909         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18910         * lib/unigbrk.in.h: Add prototype for new function.
18911         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18912         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18913
18914         New module 'ulc-grapheme-breaks'.
18915         * modules/unigbrk/ulc-grapheme-breaks: New file.
18916         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18917         * m4/locale-ar.m4: New file.
18918         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18919         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18920         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18921
18922 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18923
18924         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18925         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18926         modified how this file was generated before I initially submitted
18927         the module, but failed to regenerate it.  This meant that several
18928         of the level2 entries were wrong.
18929         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18930         Remove the division-by-2 that is folded into the table now that
18931         gbrkprop.h has been regenerated properly.  Now -1 entries are
18932         handled correctly.
18933
18934         New module 'unigbrk/uc-gbrk-prop-tests'.
18935         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18936         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18937         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18938         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18939
18940 2011-01-01  Bruno Haible  <bruno@clisp.org>
18941
18942         Avoid use of hexadecimal escapes.
18943         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18944         instead of hexadecimal escapes.
18945
18946 2011-01-01  Jim Meyering  <meyering@redhat.com>
18947
18948         maint: new rule to update copyright year ranges
18949         * Makefile (update-copyright): New rule.
18950
18951         maint: indent with TABs in Makefile
18952         * Makefile: Expand leading sequences of spaces to TABs
18953
18954         version-etc: update the copyright year it reports
18955         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18956
18957 2010-12-31  Bruno Haible  <bruno@clisp.org>
18958
18959         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18960         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18961         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18962         zero.
18963
18964 2010-12-31  Bruno Haible  <bruno@clisp.org>
18965
18966         pwrite: Work around HP-UX 11.11 bug.
18967         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18968         works and set REPLACE_PWRITE if not.
18969         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18970         function.
18971         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18972
18973 2010-12-31  Bruno Haible  <bruno@clisp.org>
18974
18975         pread: Work around HP-UX 11 bugs.
18976         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18977         and set REPLACE_PREAD if not.
18978         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18979
18980 2010-12-31  Eric Blake  <eblake@redhat.com>
18981
18982         nl_langinfo: fix YESEXPR on Irix 6.5
18983         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18984         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18985         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18986         it.
18987
18988 2010-12-31  Bruno Haible  <bruno@clisp.org>
18989
18990         iconv: Document HP-UX 11 bug.
18991         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18992
18993 2010-12-31  Bruno Haible  <bruno@clisp.org>
18994
18995         ldexpl: Fix link error on HP-UX 11.
18996         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18997         LDEXPL_LIBM, using $ISNANL_LIBM.
18998
18999 2010-12-31  Eric Blake  <eblake@redhat.com>
19000
19001         ftello: avoid compilation failure with SunStudio c89
19002         * lib/ftello.c (ftello): Use lseek, not llseek.
19003
19004         tests: avoid failing coreutils tests on cygwin
19005         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19006         (create_exe_shims_): Return 0 when skipping.
19007
19008 2010-12-31  Bruno Haible  <bruno@clisp.org>
19009
19010         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19011         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19012
19013 2010-12-31  Bruno Haible  <bruno@clisp.org>
19014
19015         waitpid: Fix link error in C++ mode.
19016         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19017
19018 2010-12-31  Bruno Haible  <bruno@clisp.org>
19019
19020         isnan: Use GCC built-ins when possible.
19021         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19022         __builtin_isnan.
19023         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19024         (isnan): Define using GCC built-ins for GCC >= 4.0.
19025
19026 2010-12-31  Bruno Haible  <bruno@clisp.org>
19027
19028         isnand: Fix mistake.
19029         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19030         __builtin_isnand.
19031
19032 2010-12-31  Bruno Haible  <bruno@clisp.org>
19033
19034         open: Avoid C++ error on HP-UX 11.
19035         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19036
19037 2010-12-31  Bruno Haible  <bruno@clisp.org>
19038
19039         time_r: Add missing declarations on HP-UX 11.
19040         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19041         instead of HAVE_LOCALTIME_R.
19042         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19043         HAVE_LOCALTIME_R always.
19044         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19045         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19046         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19047         HAVE_LOCALTIME_R.
19048         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19049         * doc/posix-functions/localtime_r.texi: Likewise.
19050
19051 2010-12-29  Eric Blake  <eblake@redhat.com>
19052
19053         mountlist: tweak previous commit
19054         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19055         Reported by Paul Eggert.
19056
19057         mountlist: fix local drive detection on cygwin
19058         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19059         that works for cygwin.
19060
19061 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19062
19063         ftoastr, snprintf: ftoastr + snprintf module
19064         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19065         since the snprintf module now should be good enough here.
19066         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19067         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19068         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19069         GNULIB_SNPRINTF only for the test directory, and the latter
19070         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19071         seems to suffice by itself.
19072
19073 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19074
19075         alloca: one step towards thread-safety
19076         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19077         need for a static variable.  All callers changed.  This does not
19078         make the alloca replacement thread-safe, but it's one step.
19079
19080         tests: minor indenting change
19081         * tests/init.sh: Sync from coreutils housekeeping patch
19082         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19083         to keep lines within 80 columns.
19084
19085 2010-12-28  Jim Meyering  <meyering@redhat.com>
19086
19087         regex: don't infloop on persistent failing calloc
19088         * lib/regexec.c (build_trtable): Return failure indication upon
19089         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19090         In glibc, this was fixed for version 2.13:
19091         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19092
19093 2010-12-28  Bruno Haible  <bruno@clisp.org>
19094             Paul Eggert <eggert@cs.ucla.edu>
19095
19096         linkat: Make implementation robust against system behaviour variations.
19097         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19098         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19099         way, and to -2 if it needs a generic runtime test.
19100         * lib/linkat.c (solaris_optimized_link_immediate,
19101         solaris_optimized_link_follow): New functions.
19102         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19103         (check_same_link): Use it.
19104
19105 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19106
19107         New module 'unigbrk/base'.
19108         * modules/unigbrk/base: New file.
19109         * lib/unigbrk.in.h: New file.
19110
19111         New module 'unigbrk/uc-gbrk-prop'.
19112         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19113         * modules/unigbrk/uc-gbrk-prop: New file.
19114         * lib/unigbrk/gbrkprop.h: New file.
19115         * lib/unigbrk/uc-gbrk-prop.c: New file.
19116
19117         New module 'unigbrk/uc-is-grapheme-break'.
19118         * modules/unigbrk/uc-is-grapheme-break: New file.
19119         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19120         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19121         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19122         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19123         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19124
19125         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19126
19127 2010-12-27  Bruno Haible  <bruno@clisp.org>
19128
19129         linkat test: Avoid failure on Solaris 11 2010-11.
19130         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19131
19132 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19133
19134         utimens: work around glibc rounding bug on more platforms
19135         * lib/utimens.c (fdutimens): Work around rounding bug even if
19136         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19137         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19138
19139 2010-12-27  Bruno Haible  <bruno@clisp.org>
19140
19141         select tests: Improve comments.
19142         * tests/test-select.c (do_select): Add comments.
19143
19144 2010-12-27  Bruno Haible  <bruno@clisp.org>
19145
19146         select tests: Safer way of handling timeout.
19147         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19148         at every invocation.
19149
19150 2010-12-27  Bruno Haible  <bruno@clisp.org>
19151
19152         select tests: Use 'bool' where appropriate.
19153         * tests/test-select.c (connect_to_socket): Change argument type to
19154         'bool'.
19155
19156 2010-12-27  Bruno Haible  <bruno@clisp.org>
19157
19158         select tests: Use existing modules.
19159         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19160         (configure.ac): Don't test for unistd.h.
19161         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19162         declared in <unistd.h>.
19163
19164 2010-12-27  Bruno Haible  <bruno@clisp.org>
19165
19166         mbrtowc: Work around a Solaris 7 bug.
19167         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19168         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19169         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19170         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19171         MBRTOWC_NULL_ARG1_BUG.
19172         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19173         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19174         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19175         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19176
19177 2010-12-27  Jim Meyering  <meyering@redhat.com>
19178
19179         read-file.c: tweak syntax
19180         * lib/read-file.c (fread_file): Remove space after "*" in function
19181         definitions.
19182
19183 2010-12-27  Bruno Haible  <bruno@clisp.org>
19184
19185         times test: Avoid gcc warnings on OSF/1.
19186         * tests/test-times.c (main): Cast printf arguments from clock_t to
19187         'long int'.
19188
19189 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19190
19191         utimens: work around glibc rounding bug on older Linux kernels
19192         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19193         on Linux with a glibc whose utimes might not work, then work
19194         around a longstanding glibc bug involving rounding rather than
19195         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19196         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19197
19198 2010-12-26  Bruno Haible  <bruno@clisp.org>
19199
19200         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19201         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19202         _GL_CXXALIAS_SYS.
19203         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19204
19205 2010-12-26  Bruno Haible  <bruno@clisp.org>
19206
19207         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19208         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19209         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19210         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19211         looking for the declaration.
19212         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19213         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19214         problem.
19215         * doc/posix-functions/inet_pton.texi: Likewise.
19216
19217 2010-12-26  Bruno Haible  <bruno@clisp.org>
19218
19219         arpa_inet: Use the common idioms with C++ support.
19220         * lib/arpa_inet.in.h: Include c++defs.h.
19221         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19222         support.
19223         * modules/arpa_inet (Depends-on): Add c++defs.
19224         (Makefile.am): Substitute the contents of c++defs.h.
19225         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19226         * modules/arpa_inet-c++-tests: New file.
19227         * tests/test-arpa_inet-c++.cc: New file.
19228
19229 2010-12-25  Bruno Haible  <bruno@clisp.org>
19230
19231         Fix more C++ link errors on Solaris 8.
19232         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19233         $(LIB_EACCESS).
19234         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19235         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19236         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19237         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19238         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19239
19240 2010-12-25  Bruno Haible  <bruno@clisp.org>
19241
19242         printf-posix: Fix link error when a non-GCC compiler is used.
19243         * lib/stdio.in.h (printf): When not using GCC, override printf
19244         correctly.
19245         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19246
19247 2010-12-25  Bruno Haible  <bruno@clisp.org>
19248
19249         strerror_r-posix: Update doc.
19250         * doc/posix-functions/strerror_r.texi: Update doc about the return
19251         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19252
19253 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19254
19255         utimens: simplify the logic of the previous change
19256         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19257         This should not affect whether the test succeeds or fails.
19258
19259         utimens: configure better on hosts with NFS clock skew
19260         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19261         uses the clock of the local host.  It might use the clock of the
19262         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19263         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19264
19265 2010-12-25  Bruno Haible  <bruno@clisp.org>
19266
19267         ptsname test: Avoid failure on Solaris.
19268         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19269         open a pseudo-terminal; don't use BSD-style ptys.
19270         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19271
19272 2010-12-25  Bruno Haible  <bruno@clisp.org>
19273
19274         ptsname: Avoid ERANGE failure on some systems.
19275         * lib/ptsname.c (buffer): Increase size.
19276
19277 2010-12-25  Bruno Haible  <bruno@clisp.org>
19278
19279         rename, renameat: Avoid test failures at NFS mounted locations.
19280         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19281         so that subsequent mkdir calls succeed.
19282
19283 2010-12-25  Bruno Haible  <bruno@clisp.org>
19284
19285         iswblank: Fix C++ link error on Solaris 8.
19286         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19287         _GL_FUNCDECL_SYS.
19288
19289 2010-12-25  Bruno Haible  <bruno@clisp.org>
19290
19291         unistd: Fix C++ link error on Solaris 8.
19292         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19293
19294 2010-12-25  Bruno Haible  <bruno@clisp.org>
19295
19296         readlink doc: Mention an old glibc bug.
19297         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19298
19299 2010-12-25  Bruno Haible  <bruno@clisp.org>
19300
19301         fcntl-h: Fix for use of C++ on glibc systems.
19302         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19303         also on glibc systems in C++ mode.
19304         Reported by Gary V. Vaughan <gary@gnu.org>.
19305
19306 2010-12-25  Bruno Haible  <bruno@clisp.org>
19307
19308         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19309         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19310
19311 2010-12-25  Bruno Haible  <bruno@clisp.org>
19312
19313         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19314         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19315         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19316         test whether truncl works according to ISO C 99 with IEC 60559.
19317         * m4/truncl-ieee.m4: New file.
19318         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19319         m4/signbit.m4.
19320         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19321
19322 2010-12-25  Bruno Haible  <bruno@clisp.org>
19323
19324         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19325         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19326         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19327         test whether ceill works according to ISO C 99 with IEC 60559.
19328         * m4/ceill-ieee.m4: New file.
19329         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19330         m4/signbit.m4.
19331         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19332
19333 2010-12-25  Bruno Haible  <bruno@clisp.org>
19334
19335         Ensure all prerequisites of <wchar.h> are included.
19336         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19337         before <wchar.h>.
19338         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19339         gl_MBRLEN_NUL_RETVAL): Likewise.
19340         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19341         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19342         AC_FUNC_MBRTOWC): Likewise.
19343         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19344         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19345         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19346         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19347         Likewise.
19348         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19349         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19350         (gl_WCHAR_H): Improve comments.
19351         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19352
19353 2010-12-25  Bruno Haible  <bruno@clisp.org>
19354
19355         strtok_r: Fix C syntax error in autoconf macro.
19356         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19357         characters in test program.
19358
19359 2010-12-24  Bruno Haible  <bruno@clisp.org>
19360
19361         ceil, trunc, round: Fix gcc warnings.
19362         * lib/ceil.c (MIN): Undefine before redefining.
19363         * lib/trunc.c (MIN): Likewise.
19364         * lib/round.c (MIN): Likewise.
19365         Include <math.h> first.
19366
19367 2010-12-24  Bruno Haible  <bruno@clisp.org>
19368
19369         select tests: Avoid failures on OSF/1 5.1.
19370         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19371         failure of closing the last socket; it may fail with ECONNRESET.
19372
19373 2010-12-24  Eric Blake  <eblake@redhat.com>
19374
19375         stdint: avoid HP-UX 10.20 preprocessor bug
19376         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19377         than #if.
19378         * tests/test-floor2.c (main): Likewise.
19379         Reported by Peter O'Gorman.
19380
19381         pipe: make obsoletion transition easier
19382         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19383         * modules/pipe (Files): Include revived file.
19384         (Include): Drop reference, to mirror getdate's behavior.
19385
19386 2010-12-24  Bruno Haible  <bruno@clisp.org>
19387
19388         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19389         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19390         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19391         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19392
19393 2010-12-24  Bruno Haible  <bruno@clisp.org>
19394
19395         gethostname: Ensure declaration on NonStop Kernel.
19396         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19397         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19398
19399 2010-12-24  Bruno Haible  <bruno@clisp.org>
19400
19401         sys_select: Ensure all necessary types on NonStop Kernel.
19402         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19403         include <sys/time.h>.
19404         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19405         NonStop Kernel.
19406         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19407
19408 2010-12-24  Bruno Haible  <bruno@clisp.org>
19409
19410         sys_select: Remove unneeded include.
19411         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19412         have <sys/select.h>.
19413
19414 2010-12-24  Bruno Haible  <bruno@clisp.org>
19415
19416         gethostname: Provide a fallback for HOST_NAME_MAX.
19417         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19418         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19419         instead.
19420         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19421
19422 2010-12-24  Bruno Haible  <bruno@clisp.org>
19423
19424         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19425         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19426         (SA_RESTART): Likewise.
19427         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19428
19429 2010-12-24  Bruno Haible  <bruno@clisp.org>
19430
19431         signal: Define NSIG.
19432         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19433         * tests/test-signal.c (nsig): New variable.
19434         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19435
19436 2010-12-24  Bruno Haible  <bruno@clisp.org>
19437
19438         rename, renameat: Avoid test failures on OSF/1 5.1.
19439         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19440         alternative error codes.
19441         * tests/test-renameat.c (main): Likewise.
19442
19443 2010-12-24  Bruno Haible  <bruno@clisp.org>
19444
19445         *printf: Detect large precisions bug on Solaris 10/SPARC.
19446         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19447         by Paul Eggert.
19448         * tests/test-snprintf-posix.h (test_function): Add this test code here
19449         too.
19450         * tests/test-sprintf-posix.h (test_function): Likewise.
19451         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19452         * tests/test-vasprintf-posix.c (test_function): Likewise.
19453         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19454         around by gnulib.
19455         * doc/posix-functions/printf.texi: Likewise.
19456         * doc/posix-functions/snprintf.texi: Likewise.
19457         * doc/posix-functions/sprintf.texi: Likewise.
19458         * doc/posix-functions/vfprintf.texi: Likewise.
19459         * doc/posix-functions/vprintf.texi: Likewise.
19460         * doc/posix-functions/vsnprintf.texi: Likewise.
19461         * doc/posix-functions/vsprintf.texi: Likewise.
19462         * doc/posix-functions/dprintf.texi: Undo last commit.
19463         * doc/posix-functions/vdprintf.texi: Likewise.
19464
19465 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19466
19467         tests: port test-fdutimensat.c to Solaris 8
19468         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19469         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19470         On Solaris 8, it fails with errno == ENOSYS, because there is no
19471         futimens (so it can't use the fd), and there is no lutimens (so it
19472         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19473
19474         vsnprintf: make more consistent with snprintf; doc fixes
19475
19476         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19477         the byte count return problem was promoted from the snprintf-posix
19478         to the snprintf module.
19479         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19480         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19481         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19482         * tests/test-snprintf.c (main): Check the byte count returned.
19483         * tests/test-vsnprintf.c (main): Likewise.
19484
19485 2010-12-23  Eric Blake  <eblake@redhat.com>
19486
19487         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19488         * modules/sigpipe (License): Relax license.
19489
19490 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19491
19492         doc: document Solaris printf bug with large float precisions
19493         * doc/posix-functions/dprintf.texi (dprintf):
19494         * doc/posix-functions/fprintf.texi (fprintf):
19495         * doc/posix-functions/printf.texi (printf):
19496         * doc/posix-functions/snprintf.texi (snprintf):
19497         * doc/posix-functions/sprintf.texi (sprintf):
19498         * doc/posix-functions/vdprintf.texi (vdprintf):
19499         * doc/posix-functions/vfprintf.texi (vfprintf):
19500         * doc/posix-functions/vprintf.texi (vprintf):
19501         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19502         * doc/posix-functions/vsprintf.texi (vsprintf):
19503         Mention that these functions mishandle large floating point
19504         precisions on Solaris 10.  The same bug is also present in Solaris
19505         8, and I assume earlier.  This causes "cd gnulib-tests; make
19506         check" to fail on Solaris 8 (and I assume, later) when building
19507         the latest coreutils, in test-vasprintf-posix's call to
19508         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19509         the wide flavors (e.g., wprintf) so this patch just updates the
19510         documentation for the narrow ones.
19511
19512         test-posixtm.c: add two tests
19513         * tests/test-posixtm.c: Add two tests, to highlight the
19514         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19515         around this bug; this is merely to document it.
19516
19517 2010-12-22  Bruno Haible  <bruno@clisp.org>
19518
19519         getlogin_r: Work around portability problem on OSF/1.
19520         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19521         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19522         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19523         test for a truncated result.
19524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19525         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19526         * modules/getlogin_r (Depends-on): Add memchr.
19527         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19528
19529 2010-12-22  Bruno Haible  <bruno@clisp.org>
19530
19531         ptsname: Avoid test failure on OSF/1 5.1.
19532         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19533         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19534         (same_slave): New function.
19535         (main): Use it to compare ptsname's result with the expected file name.
19536
19537 2010-12-22  Bruno Haible  <bruno@clisp.org>
19538
19539         Port extended stdio modules to HP NonStop Kernel.
19540         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19541         macros.
19542         * lib/fbufmode.c: Update comments.
19543         * lib/fflush.c: Likewise.
19544         * lib/fpurge.c: Likewise.
19545         * lib/freadable.c: Likewise.
19546         * lib/freadahead.c: Likewise.
19547         * lib/freading.c: Likewise.
19548         * lib/freadptr.c: Likewise.
19549         * lib/freadseek.c: Likewise.
19550         * lib/fseeko.c: Likewise.
19551         * lib/fseterr.c: Likewise.
19552         * lib/fwritable.c: Likewise.
19553         * lib/fwriting.c: Likewise.
19554         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19555
19556 2010-12-22  Bruno Haible  <bruno@clisp.org>
19557
19558         ttyname_r: Work around bug on OSF/1 5.1.
19559         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19560         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19561         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19562         present.
19563         * lib/ttyname_r.c (ttyname_r): Update comments.
19564
19565 2010-12-22  Bruno Haible  <bruno@clisp.org>
19566
19567         round: Implement result sign according to IEEE 754.
19568         * lib/round.c (MIN, MINUS_ZERO): New macros.
19569         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19570         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19571         * tests/test-round-ieee.c (main): Likewise.
19572         * tests/test-roundl-ieee.c (main): Likewise.
19573
19574         trunc: Implement result sign according to IEEE 754.
19575         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19576         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19577         * tests/test-trunc2.c: Include minus-zero.h.
19578         (MINUS_ZERO): New macro.
19579         (trunc_reference): Keep in sync with lib/trunc.c.
19580         * tests/test-truncf2.c: Include minus-zero.h.
19581         (MINUS_ZERO): New macro.
19582         (truncf_reference): Keep in sync with lib/trunc.c.
19583         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19584         * tests/test-trunc-ieee.c (main): Likewise.
19585         * tests/test-truncl-ieee.c (main): Likewise.
19586
19587         ceil: Implement result sign according to IEEE 754.
19588         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19589         (FUNC): Return -0.0 for -1 < x < 0.
19590         * tests/test-ceil2.c: Include minus-zero.h.
19591         (MINUS_ZERO): New macro.
19592         (ceil_reference): Keep in sync with lib/ceil.c.
19593         * tests/test-ceilf2.c: Include minus-zero.h.
19594         (MINUS_ZERO): New macro.
19595         (ceilf_reference): Keep in sync with lib/ceil.c.
19596         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19597         * tests/test-ceil-ieee.c (main): Likewise.
19598         * tests/test-ceill-ieee.c (main): Likewise.
19599
19600         floor: Implement result sign according to IEEE 754.
19601         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19602         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19603         * tests/test-floorf2.c (floorf_reference): Likewise.
19604         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19605         * tests/test-floor-ieee.c (main): Likewise.
19606         * tests/test-floorl-ieee.c (main): Likewise.
19607
19608 2010-12-22  Bruno Haible  <bruno@clisp.org>
19609
19610         getaddrinfo: Update doc.
19611         * doc/posix-functions/gai_strerror.texi: Return type is also different
19612         on AIX and HP-UX.
19613
19614 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19615
19616         getaddrinfo, inet_ntop: Update doc for Solaris.
19617         * doc/posix-functions/gai_strerror.texi: Return type is also an
19618         issue on Solaris 9 and earlier.
19619         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19620         on Solaris 10 and earlier.
19621
19622 2010-12-21  Bruno Haible  <bruno@clisp.org>
19623
19624         New module 'roundl-ieee'.
19625         * modules/roundl-ieee: New file.
19626         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19627         test whether roundl works according to ISO C 99 with IEC 60559.
19628         * m4/roundl-ieee.m4: New file.
19629         * modules/roundl-ieee-tests: New file.
19630         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19631         * tests/test-roundl.c (main): Remove signbit tests.
19632         * modules/roundl-tests (Depends-on): Remove signbit.
19633         * doc/posix-functions/roundl.texi: Mention the new module.
19634
19635 2010-12-21  Bruno Haible  <bruno@clisp.org>
19636
19637         New module 'truncl-ieee'.
19638         * modules/truncl-ieee: New file.
19639         * modules/truncl-ieee-tests: New file.
19640         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19641         * tests/test-truncl.c (main): Remove signbit tests.
19642         * modules/truncl-tests (Depends-on): Remove signbit.
19643         * doc/posix-functions/truncl.texi: Mention the new module.
19644
19645 2010-12-21  Bruno Haible  <bruno@clisp.org>
19646
19647         New module 'ceill-ieee'.
19648         * modules/ceill-ieee: New file.
19649         * modules/ceill-ieee-tests: New file.
19650         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19651         * tests/test-ceill.c (main): Remove signbit tests.
19652         * modules/ceill-tests (Depends-on): Remove signbit.
19653         * doc/posix-functions/ceill.texi: Mention the new module.
19654
19655 2010-12-21  Bruno Haible  <bruno@clisp.org>
19656
19657         New module 'floorl-ieee'.
19658         * modules/floorl-ieee: New file.
19659         * modules/floorl-ieee-tests: New file.
19660         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19661         * tests/test-floorl.c (main): Remove signbit tests.
19662         * modules/floorl-tests (Depends-on): Remove signbit.
19663         * doc/posix-functions/floorl.texi: Mention the new module.
19664
19665 2010-12-21  Bruno Haible  <bruno@clisp.org>
19666
19667         New module 'round-ieee'.
19668         * modules/round-ieee: New file.
19669         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19670         whether round works according to ISO C 99 with IEC 60559.
19671         * m4/round-ieee.m4: New file.
19672         * modules/round-ieee-tests: New file.
19673         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19674         * tests/test-round1.c (main): Remove signbit tests.
19675         * modules/round-tests (Depends-on): Remove 'signbit'.
19676         * doc/posix-functions/round.texi: Mention the new module.
19677
19678 2010-12-21  Bruno Haible  <bruno@clisp.org>
19679
19680         New module 'trunc-ieee'.
19681         * modules/trunc-ieee: New file.
19682         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19683         whether trunc works according to ISO C 99 with IEC 60559.
19684         * m4/trunc-ieee.m4: New file.
19685         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19687         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19688         * modules/trunc-ieee-tests: New file.
19689         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19690         * tests/test-trunc1.c (main): Remove signbit tests.
19691         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19692         * doc/posix-functions/trunc.texi: Mention the new module.
19693
19694 2010-12-21  Bruno Haible  <bruno@clisp.org>
19695
19696         New module 'ceil-ieee'.
19697         * modules/ceil-ieee: New file.
19698         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
19699         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
19700         ISO C 99 with IEC 60559.
19701         * m4/ceil-ieee.m4: New file.
19702         * modules/ceil (Files): Add lib/ceil.c.
19703         (Depends-on): Add 'float'.
19704         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19705         * lib/math.in.h (ceil): New declaration.
19706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
19707         REPLACE_CEIL.
19708         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
19709         * modules/ceil-ieee-tests: New file.
19710         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
19711         * tests/test-math-c++.cc: Check the signature of 'ceil'.
19712         * doc/posix-functions/ceil.texi: Mention the new module.
19713
19714 2010-12-21  Bruno Haible  <bruno@clisp.org>
19715
19716         New module 'floor-ieee'.
19717         * modules/floor-ieee: New file.
19718         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
19719         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
19720         ISO C 99 with IEC 60559.
19721         * m4/floor-ieee.m4: New file.
19722         * modules/floor (Files): Add lib/floor.c.
19723         (Depends-on): Add 'float'.
19724         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19725         * lib/math.in.h (floor): New declaration.
19726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
19727         REPLACE_FLOOR.
19728         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
19729         * modules/floor-ieee-tests: New file.
19730         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
19731         * tests/test-math-c++.cc: Check the signature of 'floor'.
19732         * doc/posix-functions/floor.texi: Mention the new module.
19733
19734 2010-12-21  Bruno Haible  <bruno@clisp.org>
19735
19736         New module 'roundf-ieee'.
19737         * modules/roundf-ieee: New file.
19738         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
19739         test whether roundf works according to ISO C 99 with IEC 60559.
19740         * m4/roundf-ieee.m4: New file.
19741         * modules/roundf-ieee-tests: New file.
19742         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
19743         * tests/test-roundf1.c (main): Remove signbit tests.
19744         * modules/roundf-tests (Depends-on): Remove 'signbit'.
19745         * doc/posix-functions/roundf.texi: Mention the new module.
19746
19747 2010-12-21  Bruno Haible  <bruno@clisp.org>
19748
19749         New module 'truncf-ieee'.
19750         * modules/truncf-ieee: New file.
19751         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
19752         test whether truncf works according to ISO C 99 with IEC 60559.
19753         * m4/truncf-ieee.m4: New file.
19754         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19756         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19757         * modules/truncf-ieee-tests: New file.
19758         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19759         * tests/test-truncf1.c (main): Remove signbit tests.
19760         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19761         * doc/posix-functions/truncf.texi: Mention the new module.
19762
19763 2010-12-21  Bruno Haible  <bruno@clisp.org>
19764
19765         New module 'ceilf-ieee'.
19766         * modules/ceilf-ieee: New file.
19767         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19768         test whether ceilf works according to ISO C 99 with IEC 60559.
19769         * m4/ceilf-ieee.m4: New file.
19770         * modules/ceilf-ieee-tests: New file.
19771         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
19772         * tests/test-ceilf1.c (main): Remove signbit tests.
19773         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
19774         * doc/posix-functions/ceilf.texi: Mention the new module.
19775
19776 2010-12-21  Bruno Haible  <bruno@clisp.org>
19777
19778         New module 'floorf-ieee'.
19779         * modules/floorf-ieee: New file.
19780         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19781         test whether floorf works according to ISO C 99 with IEC 60559.
19782         * m4/floorf-ieee.m4: New file.
19783         * modules/floorf-ieee-tests: New file.
19784         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19785         * tests/test-floorf1.c (main): Remove signbit tests.
19786         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19787         * doc/posix-functions/floorf.texi: Mention the new module.
19788
19789 2010-12-21  Bruno Haible  <bruno@clisp.org>
19790
19791         Support for minus zero in autoconf macros.
19792         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19793         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19794         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19795         * tests/minus-zero.h: Update comments.
19796
19797 2010-12-21  Bruno Haible  <bruno@clisp.org>
19798
19799         Tests for module 'ceil'.
19800         * modules/ceil-tests: New file.
19801         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19802         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19803
19804 2010-12-21  Bruno Haible  <bruno@clisp.org>
19805
19806         Tests for module 'floor'.
19807         * modules/floor-tests: New file.
19808         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19809         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19810
19811 2010-12-21  Bruno Haible  <bruno@clisp.org>
19812
19813         math: Fix indentation.
19814         * lib/math.in.h (floorf): Fix indentation.
19815
19816 2010-12-21  Bruno Haible  <bruno@clisp.org>
19817
19818         Fix cross-compilation guesses on Solaris.
19819         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19820         not match "solaris2.10".
19821         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19822         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19823         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19824
19825 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19826
19827         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19828         This fixes a problem observed with the latest coreutils snapshot
19829         that caused a test to fail on Solaris 8.  src/csplit.c's call
19830         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19831         earlier, instead of returning the number of bytes that would have
19832         been generated; this causes csplit to incorrectly report memory
19833         exhaustion.
19834         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19835         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19836         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19837         comments to match.
19838         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19839         Fix typo in matching older versions of Solaris: "solaris2.10"
19840         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19841         only for guessing while cross-compiling.
19842         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19843
19844 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19845
19846         ftoastr: fix comment again
19847         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19848         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19849         Also, simplify example a bit by using flags = 0.
19850
19851 2010-12-20  Bruno Haible  <bruno@clisp.org>
19852
19853         round*, trunc*: Update documentation regarding glibc.
19854         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19855         * doc/posix-functions/round.texi: Likewise.
19856         * doc/posix-functions/roundl.texi: Likewise.
19857         * doc/posix-functions/truncf.texi: Likewise.
19858         * doc/posix-functions/trunc.texi: Likewise.
19859         * doc/posix-functions/truncl.texi: Likewise.
19860
19861 2010-12-20  Bruno Haible  <bruno@clisp.org>
19862
19863         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19864         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19865         * doc/posix-functions/round.texi: Likewise.
19866         * doc/posix-functions/roundl.texi: Likewise.
19867
19868 2010-12-20  Bruno Haible  <bruno@clisp.org>
19869
19870         ttyname_r: Add missing declaration on HP-UX 11.
19871         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19872         HAVE_TTYNAME_R.
19873         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19874         declared. Set HAVE_TTYNAME_R always.
19875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19876         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19877         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19878         HAVE_TTYNAME_R.
19879         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19880
19881 2010-12-20  Bruno Haible  <bruno@clisp.org>
19882
19883         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19884         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19885         * doc/posix-functions/getlogin_r.texi: Likewise.
19886         * tests/test-getlogin.c: Include <errno.h>.
19887         (main): Avoid test failure on HP-UX 11.11.
19888         * tests/test-getlogin_r.c (main): Likewise.
19889
19890 2010-12-20  Bruno Haible  <bruno@clisp.org>
19891
19892         getlogin_r: Add missing declaration on HP-UX 11.
19893         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19894         declared also when it exists as a function.
19895         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19896
19897 2010-12-20  Bruno Haible  <bruno@clisp.org>
19898
19899         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19900         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19901         through wcrtomb.
19902
19903 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19904
19905         ftoastr: fix comment
19906         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19907         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19908
19909 2010-12-19  Bruno Haible  <bruno@clisp.org>
19910
19911         isnan: Ensure it is a macro.
19912         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19913         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19914         Solaris.
19915
19916 2010-12-19  Bruno Haible  <bruno@clisp.org>
19917
19918         ldexpl test: Fix link error on OSF/1 5.1.
19919         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19920
19921 2010-12-19  Bruno Haible  <bruno@clisp.org>
19922
19923         wctype: Make it work in C++ mode on OSF/1 5.1.
19924         * lib/wctype.in.h (iswblank): Declare but not define here.
19925         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19926         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19927         * modules/wctype (Files): Add lib/iswblank.c.
19928
19929 2010-12-19  Bruno Haible  <bruno@clisp.org>
19930
19931         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19932         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19933         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19934
19935 2010-12-19  Bruno Haible  <bruno@clisp.org>
19936
19937         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19938         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19939         _POSIX_PII_SOCKET.
19940         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19941         * doc/posix-functions/recvfrom.texi: Likewise.
19942         * doc/posix-functions/send.texi: Likewise.
19943         * doc/posix-functions/sendto.texi: Likewise.
19944
19945 2010-12-19  Bruno Haible  <bruno@clisp.org>
19946
19947         tcgetsid: Add missing declaration on OSF/1 5.1.
19948         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19949         HAVE_TCGETSID.
19950         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19951         Don't set HAVE_TCGETSID.
19952         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19953         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19954         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19955         HAVE_TCGETSID.
19956         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19957
19958 2010-12-19  Bruno Haible  <bruno@clisp.org>
19959
19960         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19961         * lib/stdio.in.h: During the include_next statement, let recursive
19962         includes of this file include only the system header file.
19963
19964 2010-12-19  Bruno Haible  <bruno@clisp.org>
19965
19966         iconv_open: Fix regression from 2010-12-04.
19967         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19968         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19969
19970 2010-12-19  Bruno Haible  <bruno@clisp.org>
19971
19972         stdbool test: Avoid a gcc warning.
19973         * tests/test-stdbool.c (main): Fail if e1 is false.
19974         Reported by Jim Meyering.
19975
19976 2010-12-19  Jim Meyering  <meyering@redhat.com>
19977
19978         setenv: restore to working order
19979         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19980         mistakenly removed.
19981         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19982         HAVE_SETENV.
19983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19984         HAVE_SETENV.
19985
19986 2010-12-19  Bruno Haible  <bruno@clisp.org>
19987
19988         Document some different function declarations on OSF/1 5.1.
19989         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19990         * doc/posix-functions/inet_ntop.texi: Likewise.
19991         * doc/posix-functions/gethostname.texi: Likewise.
19992         * lib/unistd.in.h (gethostname): Update comment.
19993
19994 2010-12-19  Bruno Haible  <bruno@clisp.org>
19995
19996         doc: Mention vasprintf-posix module.
19997         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19998         the 'vasprintf-posix' module.
19999         * doc/glibc-functions/vasprintf.texi: Likewise.
20000
20001 2010-12-19  Bruno Haible  <bruno@clisp.org>
20002
20003         unsetenv: Add missing declaration on OSF/1 5.1.
20004         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20005         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20006         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20008         not HAVE_UNSETENV.
20009         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20010         HAVE_UNSETENV.
20011         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20012
20013 2010-12-19  Bruno Haible  <bruno@clisp.org>
20014
20015         setenv: Add missing declaration on OSF/1 5.1.
20016         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20017         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20018         declared. Don't set HAVE_SETENV.
20019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20020         not HAVE_SETENV.
20021         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20022         HAVE_SETENV.
20023         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20024
20025 2010-12-19  Bruno Haible  <bruno@clisp.org>
20026
20027         nl_langinfo tests: Avoid gcc warning.
20028         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20029
20030 2010-12-19  Bruno Haible  <bruno@clisp.org>
20031
20032         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20033         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20034         _GL_CXXALIAS_SYS.
20035
20036 2010-12-19  Bruno Haible  <bruno@clisp.org>
20037
20038         stdbool: Relax test.
20039         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20040         address to 'bool' work in static initializer, for compilers other than
20041         GCC.
20042
20043 2010-12-19  Bruno Haible  <bruno@clisp.org>
20044
20045         ftello: Add missing declaration on OSF/1 5.1.
20046         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20047         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20049         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20050         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20051
20052 2010-12-19  Bruno Haible  <bruno@clisp.org>
20053
20054         fseeko: Add missing declaration on OSF/1 5.1.
20055         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20056         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20058         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20059         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20060
20061 2010-12-19  Bruno Haible  <bruno@clisp.org>
20062
20063         fchdir: Add missing declaration on OSF/1 5.1.
20064         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20067         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20068         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20069
20070 2010-12-19  Bruno Haible  <bruno@clisp.org>
20071
20072         relocatable-prog-wrapper: Separate from relocatable-prog.
20073         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20074         uninstall-relocwrapper rule here.
20075         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20076         Reported by Ian Beckwith <ianb@erislabs.net>.
20077
20078 2010-12-19  Bruno Haible  <bruno@clisp.org>
20079
20080         unistr/u8-mbsnlen: Add missing dependency.
20081         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20082         Reported by Ian Beckwith <ianb@erislabs.net>.
20083
20084 2010-12-19  Bruno Haible  <bruno@clisp.org>
20085
20086         iconv: Make it possible again to use this module without 'iconv-h'.
20087         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20088         if it is not defined.
20089         Reported by Ian Beckwith <ianb@erislabs.net>.
20090
20091 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20092
20093         acl: port to Solaris 8 when copying from tmpfs to ufs
20094         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20095         error number.  Problem observed on Solaris 8 with latest
20096         coreutils, with "mv A B", where A is on a tmpfs file system and B
20097         is on a ufs file system.  This caused coreutils' mv/part-symlink
20098         test to fail.
20099
20100         tests: set fail=0 at start
20101         * tests/init.sh (setup_): Move fail=0 initialization here ...
20102         (mktempd_): ... from here, so that tests can rely on fail being
20103         set to 0 initially.  This fixes a problem in coreutils; see:
20104         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20105
20106 2010-12-18  Bruno Haible  <bruno@clisp.org>
20107
20108         memmem-simple: Stylistic changes.
20109         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20110         Fix preprocessor directive indentation.
20111
20112 2010-12-15  Pádraig Brady <P@draigBrady.com>
20113
20114         memmem, memmem-simple: reorganize and expand empty needle check
20115         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20116         functional checks to memmem-simple so that one has a fully functional
20117         memmem by using just this module.
20118         Restrict the performance only check to the memmem module.
20119         Also expand the empty needle check to ensure the correct
20120         pointer is returned, not just a non NULL pointer.
20121         * doc/glibc-functions/memmem.texi: Rearrange the portability
20122         documentation to correlate with the rearranged checks.
20123         Clarify exactly how the memmem and memmem-simple modules
20124         relate to each other.
20125
20126 2010-12-15  Pádraig Brady <P@draigBrady.com>
20127             Bruno Haible  <bruno@clisp.org>
20128
20129         Improve cross-compilation guesses for uClibc.
20130         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20131         that uClibc does not have the glibc bug.
20132         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20133         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20134
20135 2010-12-14  Eric Blake  <eblake@redhat.com>
20136
20137         configmake: provide fallbacks for oldest supported autotools
20138         * m4/configmake.m4: New file.
20139         * modules/configmake (Files): Ship it.
20140         (configure.ac): Use it to guarantee fallbacks.
20141
20142 2010-12-13  Pádraig Brady <P@draigBrady.com>
20143
20144         read-file: Improve handling of large files
20145         * lib/read-file.c (fread_file): Minimize realloc()s
20146         for regular files, and better manage sizes around SIZE_MAX.
20147
20148 2010-12-13  Eric Blake  <eblake@redhat.com>
20149
20150         cloexec, fcntl: relax license
20151         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20152         consent from all contributors.
20153         * modules/fcntl (License): Likewise.
20154
20155 2010-12-10  Bruno Haible  <bruno@clisp.org>
20156
20157         Tests for module 'pipe-posix'.
20158         * modules/pipe-posix-tests: New file.
20159         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20160
20161 2010-12-10  Bruno Haible  <bruno@clisp.org>
20162
20163         pipe-posix: Make it work in C++ mode.
20164         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20165         (pipe): Use common idiom, not a macro definition.
20166         * lib/pipe.c: New file.
20167         * m4/pipe.m4: New file.
20168         * modules/pipe-posix (Description): Enhance.
20169         (Files): Add lib/pipe.c, m4/pipe.m4.
20170         (configure.ac): Invoke gl_FUNC_PIPE.
20171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20172         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20173         * tests/test-unistd-c++.cc: Check the signature of pipe.
20174
20175 2010-12-10  Bruno Haible  <bruno@clisp.org>
20176
20177         Rename module 'pipe' to 'spawn-pipe'.
20178         * modules/spawn-pipe: New file, renamed from modules/pipe.
20179         (Files, configure.ac, Makefile.am): Update.
20180         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20181         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20182         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20183         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20184         "spawn-pipe.h" instead of "pipe.h".
20185         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20186         to gl_SPAWN_PIPE.
20187         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20188         (Files, Makefile.am): Update.
20189         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20190         Update.
20191         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20192         Include "spawn-pipe.h" instead of "pipe.h".
20193         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20194         * lib/javacomp.c: Likewise.
20195         * lib/javaversion.c: Likewise.
20196         * lib/pipe-filter-gi.c: Likewise.
20197         * lib/pipe-filter-ii.c: Likewise.
20198         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20199         * modules/javacomp (Depends-on): Likewise.
20200         * modules/javaversion (Depends-on): Likewise.
20201         * modules/pipe-filter-gi (Depends-on): Likewise.
20202         * modules/pipe-filter-ii (Depends-on): Likewise.
20203         * MODULES.html.sh (Executing programs): Update.
20204         * NEWS: Mention the change.
20205
20206 2010-12-10  Eric Blake  <eblake@redhat.com>
20207
20208         pipe-posix: new module
20209         * modules/pipe-posix: New file.
20210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20211         (gl_UNISTD_H): Check for declaration.
20212         * modules/unistd (Makefile.am): Substitute it.
20213         * lib/unistd.in.h (pipe): Provide it for mingw.
20214         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20215         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20216
20217 2010-12-07  Bruno Haible  <bruno@clisp.org>
20218
20219         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20220         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20221         u8_strcmp_gnu.
20222         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20223
20224 2010-12-06  Bruno Haible  <bruno@clisp.org>
20225
20226         Update internal documentation.
20227         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20228
20229 2010-12-04  Bruno Haible  <bruno@clisp.org>
20230
20231         Put more information about failed tests into the test return codes.
20232         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20233         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20234         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20235         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20236         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20237         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20238         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20239         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20240         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20241         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20242         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20243         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20244         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20245         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20246         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20247         returns a bit mask.
20248         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20249         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20250         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20251         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20252         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20253         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20254         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20256         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20257         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20258         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20259         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20260         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20261         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20262         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20263         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20264         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20265         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20266         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20267         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20268         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20269         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20270         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20271         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20272         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20273         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20274         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20275         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20276         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20277         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20278         gl_PRINTF_PRECISION): Likewise.
20279         * m4/regex.m4 (gl_REGEX): Likewise.
20280         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20281         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20282         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20283         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20286         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20287         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20288         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20289         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20290         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20291         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20292         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20293         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20294         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20295         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20296         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20297         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20299         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20300         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20301         enumerated value.
20302         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20303
20304 2010-12-04  Bruno Haible  <bruno@clisp.org>
20305
20306         Update for Solaris 11 2010-11.
20307         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20308         Express, released in November 2010.
20309
20310 2010-12-04  Bruno Haible  <bruno@clisp.org>
20311
20312         nproc: Relax license.
20313         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20314         and Paul Eggert.
20315         Requested by Ludovic Courtès <ludo@gnu.org>.
20316
20317 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20318
20319         utimecmp: fine-grained src to nearby coarse-grained dest
20320
20321         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20322         and the source is on a file system with higher-resolution time
20323         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20324         not work, and the time stamps are close together, the algorithm to
20325         determine the exact resolution from the read-back mtime was buggy:
20326         it had a "!=" where it should have had an "==".  This bug has been
20327         in the code ever since it was introduced to gnulib.
20328         Problem reported by Dan Jacobson in
20329         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20330
20331 2010-11-30  Bruno Haible  <bruno@clisp.org>
20332
20333         strerror_r-posix: Fix autoconf test.
20334         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20335
20336 2010-11-28  Bruno Haible  <bruno@clisp.org>
20337             Paul Eggert  <eggert@cs.ucla.edu>
20338
20339         Tests for module 'getdomainname'.
20340         * modules/getdomainname-tests: New file.
20341         * tests/test-getdomainname.c: New file, based on
20342         tests/test-gethostname.c.
20343
20344 2010-11-28  Bruno Haible  <bruno@clisp.org>
20345             Paul Eggert  <eggert@cs.ucla.edu>
20346
20347         getdomainname: Use the system function when possible.
20348         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20349         (getdomainname): Replace if needed. Provide the declaration if it is
20350         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20351         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20352         (getdomainname): When the system has getdomainname, call the system
20353         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20354         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20355         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20356         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20357         the function if its second argument is of type 'int' or if it is found
20358         in libnsl.
20359         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20360         <sys/systeminfo.h> and sysinfo().
20361         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20363         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20364         HAVE_GETDOMAINNAME.
20365         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20366         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20367         * doc/glibc-functions/getdomainname.texi: Document the problems with
20368         the getdomainname declaration.
20369
20370 2010-11-28  Bruno Haible  <bruno@clisp.org>
20371
20372         sys_socket: Ensure ss_family field on AIX.
20373         * lib/sys_socket.in.h (ss_family): New macro definition.
20374         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20375         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20376         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20377         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20378         * modules/sys_socket (Makefile.am): Substitute
20379         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20380         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20381
20382 2010-11-27  Bruno Haible  <bruno@clisp.org>
20383
20384         readline: Improve configure output.
20385         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20386         "checking for readline..." result understandable.
20387
20388 2010-11-27  Bruno Haible  <bruno@clisp.org>
20389
20390         *printf-posix: Detect a bug on Solaris 10/x86.
20391         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20392         for floating-point output.
20393         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20394         directive.
20395         * tests/test-snprintf-posix.h (test_function): Likewise.
20396         * tests/test-sprintf-posix.h (test_function): Likewise.
20397         * tests/test-vasprintf-posix.c (test_function): Likewise.
20398         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20399         * doc/posix-functions/printf.texi: Likewise.
20400         * doc/posix-functions/snprintf.texi: Likewise.
20401         * doc/posix-functions/sprintf.texi: Likewise.
20402         * doc/posix-functions/vfprintf.texi: Likewise.
20403         * doc/posix-functions/vprintf.texi: Likewise.
20404         * doc/posix-functions/vsnprintf.texi: Likewise.
20405         * doc/posix-functions/vsprintf.texi: Likewise.
20406         * doc/glibc-functions/obstack_printf.texi: Likewise.
20407         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20408
20409 2010-11-27  Bruno Haible  <bruno@clisp.org>
20410
20411         Fix link error when module libunistring-optional is in use.
20412         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20413         * modules/striconveha-tests (Makefile.am): Likewise.
20414
20415 2010-11-27  Bruno Haible  <bruno@clisp.org>
20416
20417         regex: Mention link dependencies.
20418         * modules/regex (Link): New section.
20419         * modules/rpmatch (Link): Likewise.
20420         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20421
20422 2010-11-27  Bruno Haible  <bruno@clisp.org>
20423
20424         ftoastr: Fix compilation error on Solaris.
20425         * lib/ftoastr.c: Include <config.h>.
20426
20427 2010-11-27  Bruno Haible  <bruno@clisp.org>
20428
20429         getloadavg: Update documentation.
20430         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20431
20432 2010-11-27  Bruno Haible  <bruno@clisp.org>
20433
20434         sys_socket: Fix test whether the functions are declared.
20435         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20436         not <sys/select.h>.
20437
20438 2010-11-27  Bruno Haible  <bruno@clisp.org>
20439
20440         getpass: Make sure to get system declaration on some platforms.
20441         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20442         gl_USE_SYSTEM_EXTENSIONS.
20443         * modules/getpass (Depends-on): Add extensions.
20444
20445 2010-11-26  Bruno Haible  <bruno@clisp.org>
20446
20447         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20448         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20449         'iconv' module is present.
20450         (ICONV_CONST): New macro.
20451         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20452         ICONV_CONST.
20453         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20454         set ICONV_CONST.
20455         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20456         here.
20457         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20458         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20459         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20460         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20461         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20462         present.
20463
20464 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20465
20466         ftoastr: comment fix
20467         * lib/ftoastr.c: "little" -> "little or no" in comment
20468
20469 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20470
20471         stdint: port to GCC 4.3 + OSX + Octave
20472         On this platform, stdint.h is buggy and defines int64_t to long
20473         long int.  The replacement defined it to long int, causing
20474         problems with C++ style name mangling.  Instead, trust the system
20475         definition if INT64_MAX is defined, and likewise for the unsigned
20476         variant.   Problem reported by Jarno Rajahalme in
20477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20478         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20479         and don't mess with int64_t and INT64_MAX in this case.
20480         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20481
20482 2010-11-24  Bruno Haible  <bruno@clisp.org>
20483
20484         doc: Corrections regarding MacOS X 10.4 and 10.5.
20485         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20486         MacOS X.
20487         Reported by Simon Josefsson.
20488
20489 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20490
20491         Uninstall ".bin" files installed by relocwrapper.
20492         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20493         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20494         unless it is already there.
20495
20496 2010-11-21  Bruno Haible  <bruno@clisp.org>
20497
20498         Update for NetBSD 5.0.
20499         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20500         NetBSD; the test fails on NetBSD 5.0.
20501         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20502         about NetBSD.
20503
20504 2010-11-21  Bruno Haible  <bruno@clisp.org>
20505
20506         Update for HP-UX 11.23 and HP-UX 11.31.
20507         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20508         HP-UX.
20509
20510 2010-11-21  Bruno Haible  <bruno@clisp.org>
20511
20512         Update for MacOS X 10.5.
20513         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20514         MacOS X; the test fails on MacOS X 10.5.8.
20515         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20516         about MacOS X.
20517
20518 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20519
20520         bootstrap: add bootstrap_sync option.
20521         See discussion at
20522         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20523         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20524         * build-aux/bootstrap: Accept --bootstrap-sync to update
20525         bootstrap if it is not identical to the local gnulib's
20526         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20527         enable this by default.  Accept --no-bootstrap-sync to disable
20528         it.
20529
20530 2010-11-20  Bruno Haible  <bruno@clisp.org>
20531
20532         Ensure that <features.h> is included before __GLIBC__ is tested.
20533         * lib/printf-parse.h: Include <features.h>.
20534         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20535         Reported by Mike Frysinger <vapier@gentoo.org>.
20536
20537         Ensure that <features.h> is included before __GLIBC__ is tested.
20538         * lib/wchar.in.h: Include <features.h>.
20539         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20540         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20541         Reported by Mike Frysinger <vapier@gentoo.org>.
20542
20543         Ensure that <features.h> is included before __GLIBC__ is tested.
20544         * lib/arpa_inet.in.h: Include <features.h>.
20545         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20546         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20547         Reported by Mike Frysinger <vapier@gentoo.org>.
20548
20549         Ensure that <features.h> is included before __GLIBC__ is tested.
20550         * build-aux/link-warning.h: Include <features.h>.
20551         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20552         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20553         Reported by Mike Frysinger <vapier@gentoo.org>.
20554
20555         Ensure that <features.h> is included before __GLIBC__ is tested.
20556         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20557         Reported by Mike Frysinger <vapier@gentoo.org>.
20558
20559 2010-11-20  Bruno Haible  <bruno@clisp.org>
20560
20561         memmem: Fix autoconf test.
20562         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20563
20564 2010-11-20  Bruno Haible  <bruno@clisp.org>
20565
20566         Port to uClibc.
20567         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20568         * lib/fcntl.in.h: Likewise.
20569         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20570         * lib/mbrtowc.c (mbrtowc): Likewise.
20571         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20572         * lib/strerror_r.c: Likewise.
20573         * lib/unistr/u8-strnlen.c: Likewise.
20574         * lib/vasnprintf.c (decimal_point_char): Likewise.
20575         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20576         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20577         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20578         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20579         * tests/test-sigaction.c (handler, main): Likewise.
20580         * lib/freading.h: Treat uClibc like a non-glibc platform.
20581         * lib/freading.c: Likewise.
20582         * lib/gettext.h: Likewise.
20583         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20584         Likewise.
20585         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20586         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20587         * lib/propername.c (proper_name_utf8): Likewise.
20588         * lib/spawn.in.h: Likewise.
20589         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20590         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20591         mem_cd_iconveh_internal): Likewise.
20592         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20593         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20594         strstr, strcasestr): Likewise.
20595         * lib/unicodeio.c (unicode_to_mb): Likewise.
20596         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20597         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20598         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20599         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20600         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20601         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20602         * lib/unistr/u8-stpncpy.c: Likewise.
20603         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20604         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20605         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20606         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20607         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20608         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20609         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20610         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20612         Likewise.
20613         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20614         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20615         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20618         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20619         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20620         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20621         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20622         * tests/test-striconveha.c (main): Likewise.
20623         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20624         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20625         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20626         * doc/posix-functions/getline.texi: Likewise.
20627         Reported by Mike Frysinger <vapier@gentoo.org>.
20628
20629 2010-11-20  Bruno Haible  <bruno@clisp.org>
20630
20631         nproc: Fix condition.
20632         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20633         HAVE_PTHREAD_AFFINITY_NP.
20634
20635 2010-11-20  Bruno Haible  <bruno@clisp.org>
20636
20637         Fix a comment.
20638         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20639
20640 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20641
20642         ftoastr: don't assume snprintf
20643         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20644         Implement a subset of snprintf here, by using sprintf safely.
20645         * modules/ftoastr (Depends-on): Remove snprintf.
20646
20647 2010-11-19  Jim Meyering  <meyering@redhat.com>
20648
20649         test-rename.h: fix compilation failure
20650         * tests/test-rename.h (test_rename): Add omitted "}".
20651
20652 2010-11-17  Jim Meyering  <meyering@redhat.com>
20653
20654         maint.mk: add a URL discussing the no-@acronym policy
20655         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20656
20657 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20658
20659         ftoastr: depend on snprintf, improve comments
20660         * lib/ftoastr.c: Also mention Loitsch's draft.
20661         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20662         needed in the current implementation, but it might simplify
20663         speeding up the code later.
20664         * modules/ftoastr: Depend on snprintf; this improves portability.
20665         Suggested by Bruno Haible in the same email.
20666
20667         ftoastr: port to hosts lacking strtof and strtold
20668         Problem reported by Bruno Haible in
20669         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20670         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20671         environment and strtold (and presumably strtof) are not available.
20672         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20673         (configure.ac): Require gl_C99_STRTOLD.
20674
20675 2010-11-18  Bruno Haible  <bruno@clisp.org>
20676
20677         c-strtold: Avoid link error on AIX 7.
20678         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20679         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20680         (gl_C_STRTOLD): Test whether strtold_l exists.
20681         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20682
20683 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20684
20685         intprops: new macro INT_BITS_STRLEN_BOUND
20686         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20687         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20688         not exposed.  Also, it uses a slightly tighter bound than before;
20689         though this makes no practical difference, we might as well be as
20690         tight as we easily can.
20691
20692         ftoastr: new module, for lossless conversion of floats to short strings
20693         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20694         * modules/ftoastr: New files.
20695
20696 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20697
20698         bootstrap: port to Solaris sed
20699         * build-aux/bootstrap (get_version): Port to Solaris sed.
20700         See Ralf Wildenhues's note in
20701         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
20702
20703 2010-11-14  Jim Meyering  <meyering@redhat.com>
20704
20705         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
20706         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
20707         and move definition closer to sole use.
20708
20709 2010-11-13  Jim Meyering  <meyering@redhat.com>
20710
20711         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
20712         Now we require at least autoconf-2.59, which means the work-around
20713         is no longer needed.
20714         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
20715         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20716         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20717         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20718         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20719
20720 2010-11-13  Bruno Haible  <bruno@clisp.org>
20721
20722         rename, renameat: Avoid test failures at NFS mounted locations.
20723         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
20724         functions.
20725         (test_rename): Use assert_nonexistent.
20726         * tests/test-rename.c: Include <dirent.h>.
20727         * tests/test-renameat.c: Likewise.
20728         Reported by Gary V. Vaughan <gary@gnu.org>.
20729
20730         rename, renameat: Document Linux bug with NFS
20731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
20732         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
20733         * doc/posix-functions/renameat.texi: Likewise.
20734         Suggested by Eric Blake.
20735
20736 2010-11-13  Bruno Haible  <bruno@clisp.org>
20737
20738         rename test: Add comments.
20739         * tests/test-rename.h (test_rename): Add structure and comments.
20740
20741 2010-11-13  Eric Blake  <eblake@redhat.com>
20742
20743         maintainer-makefile: cover a few more files
20744         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
20745         scripts generated within C files, for libvirt.
20746
20747 2010-11-13  Bruno Haible  <bruno@clisp.org>
20748
20749         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
20750         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
20751         character, return the number of bytes that belong together, not always
20752         1.
20753         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20754         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20755         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20756         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20757         number of bytes of an invalid character.
20758         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20759         (main): Invoke it.
20760         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20761         results.
20762         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20763         malformed byte sequences.
20764         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20765         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20766         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20767         Reported by Ben Pfaff and Paolo Bonzini.
20768
20769 2010-11-13  Bruno Haible  <bruno@clisp.org>
20770
20771         openat: Work around glibc bug with fchownat() and empty file names.
20772         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
20773         (gl_FUNC_FCHOWNAT): Invoke it.
20774         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
20775         * doc/posix-functions/fchownat.texi: Document the glibc bug.
20776         Reported by Gary V. Vaughan <gary@gnu.org>.
20777
20778 2010-11-13  Bruno Haible  <bruno@clisp.org>
20779
20780         openat: Ensure autoconf macro ordering.
20781         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20782         gl_USE_SYSTEM_EXTENSIONS.
20783         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20784
20785 2010-11-13  Bruno Haible  <bruno@clisp.org>
20786
20787         Update comments.
20788         * lib/unistr/u8-check.c: Update file name in comments.
20789         * lib/unistr/u8-mblen.c: Likewise.
20790         * lib/unistr/u8-prev.c: Likewise.
20791         * lib/unistr/u8-strmblen.c: Likewise.
20792         * lib/unistr/u8-strmbtouc.c: Likewise.
20793
20794 2010-11-13  Jim Meyering  <meyering@redhat.com>
20795
20796         tests: avoid test failure on Solaris 10 due to lack of PATH export
20797         * tests/test-update-copyright.sh: Don't forget to export PATH.
20798
20799         init.sh: ensure that IFS is defined, just in case...
20800         * tests/init.sh (setup_): Ensure that IFS is defined,
20801         so that saving and restoring it works as expected.  This
20802         appears to be useful at least for an old version of dash
20803         from a long time ago (RH 6).  See here for details:
20804         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20805
20806         maint.mk: tighten "test a == b" check
20807         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20808         test to files that contain something like #!/bin/sh.
20809         Without this, coreutils would get two false positives in
20810         the comments of C source files.
20811
20812 2010-11-12  Eric Blake  <eblake@redhat.com>
20813
20814         bootstrap: fix typo in previous attempt
20815         * build-aux/bootstrap (buildreq): Correct the grouping.
20816         Reported by Paul Eggert.
20817
20818         maintainer-makefile: prohibit test x == x
20819         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20820         Based on a report by Matthias Bolte.
20821
20822         bootstrap: allow FreeBSD gzip
20823         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20824         which has no '.' and goes to stderr.
20825         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20826         Reported by Matthias Bolte.
20827
20828         maintainer-makefile: check for i18n setup
20829         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20830         will likely work.
20831
20832 2010-11-12  Bruno Haible  <bruno@clisp.org>
20833
20834         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20835         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20836         * lib/nanosleep.c (nanosleep): Likewise.
20837
20838 2010-11-11  Bruno Haible  <bruno@clisp.org>
20839
20840         fcntl-h: Fix for use of C++ on glibc systems.
20841         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20842         also on glibc systems in C++ mode.
20843         Reported by Gary V. Vaughan <gary@gnu.org>.
20844
20845 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20846
20847         mknod: avoid false failure with dash
20848         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20849
20850 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20851
20852         unlink: Fix "is it should" typo in diagnostic.
20853         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20854         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20855
20856 2010-11-11  Bruno Haible  <bruno@clisp.org>
20857
20858         Tests for module 'strerror_r-posix'.
20859         * modules/strerror_r-posix-tests: New file.
20860         * tests/test-strerror_r.c: New file.
20861         * tests/test-string-c++.cc: Check the signature of strerror_r.
20862
20863         New module 'strerror_r-posix'.
20864         * lib/string.in.h (strerror_r): New declaration.
20865         * lib/strerror_r.c: New file.
20866         * m4/strerror_r.m4: New file.
20867         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20868         of strerror_r.
20869         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20870         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20871         * modules/strerror_r-posix: New file.
20872         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20873         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20874         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20875         portability problems.
20876
20877 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20878
20879         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20880         line is also considered for output. Quoted function name in shell
20881         command, so temporary files for functions like MyClass::operator()
20882         are removed correctly without errors.
20883
20884 2010-11-09  Bruno Haible  <bruno@clisp.org>
20885
20886         * doc/posix-functions/strerror.texi: List more failing platforms.
20887
20888         * doc/posix-functions/strerror.texi: Add a comment.
20889
20890 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20891
20892         fdopendir: fix bug on MacOS X when low on file descriptors
20893
20894         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20895         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20896         All callers changed.
20897         (fdopendir): Invoke save_cwd at the top level, not after using
20898         multiple dup() calls to use up file descriptors.  Then retry
20899         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20900         less than the maximum number of open file descriptors, because
20901         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20902         on Mac OS X 10.6.4 for tar 1.24
20903         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20904         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20905         and for tar 1.25
20906         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20907
20908 2010-11-07  Bruno Haible  <bruno@clisp.org>
20909
20910         vasnprintf: Support I flag on glibc systems.
20911         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20912         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20913         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20914         snprintf function.
20915         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20916         glibc systems.
20917         * tests/test-vasnprintf-posix3.c: New file.
20918         * modules/vasnprintf-posix-tests (Files): Add it.
20919         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20920
20921 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20922
20923         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20924         * MODULES.html.sh: For compiler warnings, use name
20925         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20926
20927 2010-11-05  Eric Blake  <eblake@redhat.com>
20928
20929         ceil, floor: avoid spurious failure with icc
20930         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20931         [denormals-as-zero] when optimizing without -mieee-fp option.
20932         * tests/test-floorf2.c (floorf_reference): Likewise.
20933         * tests/test-ceilf1.c (dummy): New function.
20934         (main): Use it to outsmart icc's optimization.
20935         * tests/test-floorf1.c (dummy, main): Likewise.
20936
20937         tests: require working signbit
20938         * modules/ceilf-tests (Depends-on): Add signbit.
20939         * modules/ceill-tests (Depends-on): Likewise.
20940         * modules/floorf-tests (Depends-on): Likewise.
20941         * modules/floorl-tests (Depends-on): Likewise.
20942         * modules/round-tests (Depends-on): Likewise.
20943         * modules/roundf-tests (Depends-on): Likewise.
20944         * modules/roundl-tests (Depends-on): Likewise.
20945         * modules/trunc-tests (Depends-on): Likewise.
20946         * modules/truncf-tests (Depends-on): Likewise.
20947         * modules/truncl-tests (Depends-on): Likewise.
20948
20949         strtod: work around icc bug
20950         * lib/strtod.c (minus_zero): Define to working value.
20951         (strtod): Use it to avoid icc bug.
20952
20953         copysign: enhance tests
20954         * modules/copysign-tests (Files): Add minus-zero.h.
20955         * tests/test-copysign.c (main): Also test zeros.
20956
20957 2010-11-04  Eric Blake  <eblake@redhat.com>
20958
20959         ceil, floor, round, trunc: enhance tests of -0
20960         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20961         * tests/test-ceill.c (main): Likewise.
20962         * tests/test-floorf1.c (main): Likewise.
20963         * tests/test-floorl.c (main): Likewise.
20964         * tests/test-round1.c (main): Likewise.
20965         * tests/test-roundf1.c (main): Likewise.
20966         * tests/test-roundl.c (main): Likewise.
20967         * tests/test-trunc1.c (main): Likewise.
20968         * tests/test-truncf1.c (main): Likewise.
20969         * tests/test-truncl.c (main): Likewise.
20970
20971 2010-11-04  Eric Blake  <eblake@redhat.com>
20972
20973         frexp, tests: work around ICC bug with -zero
20974         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20975         works with more compilers.
20976         * tests/minus-zero.h: New file.
20977         * modules/ceilf-tests (Files): Include it.
20978         * modules/ceill-tests (Files): Likewise.
20979         * modules/floorf-tests (Files): Likewise.
20980         * modules/floorl-tests (Files): Likewise.
20981         * modules/frexp-nolibm-tests (Files): Likewise.
20982         * modules/frexp-tests (Files): Likewise.
20983         * modules/frexpl-nolibm-tests (Files): Likewise.
20984         * modules/frexpl-tests (Files): Likewise.
20985         * modules/isnan-tests (Files): Likewise.
20986         * modules/isnand-nolibm-tests (Files): Likewise.
20987         * modules/isnand-tests (Files): Likewise.
20988         * modules/isnanf-nolibm-tests (Files): Likewise.
20989         * modules/isnanf-tests (Files): Likewise.
20990         * modules/isnanl-nolibm-tests (Files): Likewise.
20991         * modules/isnanl-tests (Files): Likewise.
20992         * modules/round-tests (Files): Likewise.
20993         * modules/roundf-tests (Files): Likewise.
20994         * modules/roundl-tests (Files): Likewise.
20995         * modules/ldexpl-tests (Files): Likewise.
20996         * modules/signbit-tests (Files): Likewise.
20997         * modules/snprintf-posix-tests (Files): Likewise.
20998         * modules/sprintf-posix-tests (Files): Likewise.
20999         * modules/strtod-tests (Files): Likewise.
21000         * modules/trunc-tests (Files): Likewise.
21001         * modules/truncf-tests (Files): Likewise.
21002         * modules/truncl-tests (Files): Likewise.
21003         * modules/vsnprintf-posix-tests (Files): Likewise.
21004         * modules/vsprintf-posix-tests (Files): Likewise.
21005         * modules/vasnprintf-posix-tests (Files): Likewise.
21006         * modules/vasprintf-posix-tests (Files): Likewise.
21007         * tests/test-ceilf1.c (main): Use it.
21008         * tests/test-ceill.c (main): Likewise.
21009         * tests/test-floorf1.c (main): Likewise.
21010         * tests/test-floorl.c (main): Likewise.
21011         * tests/test-frexp.c (main): Likewise.
21012         * tests/test-frexpl.c (main): Likewise.
21013         * tests/test-isnan.c (main): Likewise.
21014         * tests/test-isnand.h (main): Likewise.
21015         * tests/test-isnanf.h (main): Likewise.
21016         * tests/test-isnanl.h (main): Likewise.
21017         * tests/test-ldexpl.c (main): Likewise.
21018         * tests/test-round.c (main): Likewise.
21019         * tests/test-roundf.c (main): Likewise.
21020         * tests/test-roundl.c (main): Likewise.
21021         * tests/test-signbit.c (test_signbitf, test_signbitd)
21022         (test_signbitl): Likewise.
21023         * tests/test-snprintf-posix.h (test_function): Likewise.
21024         * tests/test-sprintf-posix.h (test_function): Likewise.
21025         * tests/test-strtod.c (main): Likewise.
21026         * tests/test-trunc1.c (main): Likewise.
21027         * tests/test-truncf1.c (main): Likewise.
21028         * tests/test-truncl.c (main): Likewise.
21029
21030         isnanl: work around icc bug
21031         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21032
21033 2010-11-03  Eric Blake  <eblake@redhat.com>
21034
21035         tests: fix compiler warnings
21036         * tests/test-getopt.h (test_getopt): Fix condition.
21037         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21038         * tests/test-pipe2.c (main): Likewise.
21039         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21040
21041         utimens: fix broken m4 test
21042         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21043
21044 2010-10-28  Bruno Haible  <bruno@clisp.org>
21045
21046         posix_spawn*, getdtablesize: Relax license.
21047         * modules/posix_spawn (License): Change to LGPLv2+.
21048         * modules/posix_spawnp (License): Likewise.
21049         * modules/posix_spawn-internal (License): Likewise.
21050         * modules/posix_spawnattr_init (License): Likewise.
21051         * modules/posix_spawnattr_getflags (License): Likewise.
21052         * modules/posix_spawnattr_setflags (License): Likewise.
21053         * modules/posix_spawnattr_getpgroup (License): Likewise.
21054         * modules/posix_spawnattr_setpgroup (License): Likewise.
21055         * modules/posix_spawnattr_getschedparam (License): Likewise.
21056         * modules/posix_spawnattr_setschedparam (License): Likewise.
21057         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21058         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21059         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21060         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21061         * modules/posix_spawnattr_getsigmask (License): Likewise.
21062         * modules/posix_spawnattr_setsigmask (License): Likewise.
21063         * modules/posix_spawnattr_destroy (License): Likewise.
21064         * modules/posix_spawn_file_actions_init (License): Likewise.
21065         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21066         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21067         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21068         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21069         * modules/getdtablesize (License): Likewise.
21070         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21071
21072 2010-10-26  Bruno Haible  <bruno@clisp.org>
21073
21074         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21075         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21076         Cygwin and mingw.
21077         Suggested by Eric Blake.
21078
21079 2010-10-26  Bruno Haible  <bruno@clisp.org>
21080
21081         stdio: Work around compilation error due to renameat() on Solaris 10.
21082         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21083         * lib/renameat.c: Don't include <unistd.h> here.
21084         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21085         Reported by Paul Eggert and Eric Blake.
21086
21087 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21088
21089         renameat: port to Solaris 10, which declares renameat in unistd.h
21090
21091         * lib/renameat.c: Include unistd.h before stdio.h, because
21092         Solaris 10 declares renameat in unistd.h.  Problem encountered
21093         when building GNU tar 1.24 on Solaris 10.
21094
21095 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21096
21097         fdopendir: fix C89 compilation
21098         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21099         compilers.
21100
21101 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21102
21103         inttostr: simplify by removing unnecessary redundancy
21104         * lib/anytostr.c: Don't include verify.h.
21105         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21106         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21107         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21108         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21109         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21110         Likewise.
21111         * modules/inttostr (Depends-on): Remove 'verify'.
21112
21113 2010-10-23  Bruno Haible  <bruno@clisp.org>
21114
21115         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21116         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21117         Reported by Eric Blake.
21118
21119 2010-10-23  Bruno Haible  <bruno@clisp.org>
21120
21121         Tests: Fix LOCALE_JA on MirBSD 10.
21122         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21123         to an UTF-8 locale.
21124         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21125         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21126         Reported by Eric Blake.
21127
21128 2010-10-21  Bruno Haible  <bruno@clisp.org>
21129
21130         nl_langinfo test: Avoid test failure on NetBSD 5.
21131         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21132         Reported by Eric Blake.
21133
21134 2010-10-21  Eric Blake  <eblake@redhat.com>
21135
21136         c-stack: work around libsigsegv 2.8 bug
21137         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21138         overflow on at least PowerPC64.
21139
21140 2010-10-17  Bruno Haible  <bruno@clisp.org>
21141
21142         userspec: Drop redundant file.
21143         * modules/userspec (Files): Remove lib/inttostr.h.
21144
21145 2010-10-17  Bruno Haible  <bruno@clisp.org>
21146
21147         nl_langinfo tests: Silence some warnings.
21148         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21149         Reported by Jim Meyering.
21150
21151 2010-10-17  Bruno Haible  <bruno@clisp.org>
21152
21153         Make use of GCC's attribute __alloc_size__.
21154         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21155         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21156         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21157         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21158         __alloc_size__.
21159         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21160         Suggested by Jim Meyering.
21161
21162 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21163
21164         bootstrap: anchor .gitignore entries.
21165         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21166         with...
21167         (insert_vc_ignore): ... this new function, which prepends `/' to
21168         all .gitignore entries before passing them to
21169         insert_sorted_if_absent.
21170
21171 2010-10-16  Bruno Haible  <bruno@clisp.org>
21172
21173         nextafter: Fix configure check.
21174         * modules/nextafter (configure.ac): Correct expected prototype.
21175
21176 2010-10-16  Bruno Haible  <bruno@clisp.org>
21177
21178         termios: Update documentation.
21179         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21180
21181 2010-10-16  Bruno Haible  <bruno@clisp.org>
21182
21183         tests: Make them compile with TinyCC.
21184         * tests/test-strstr.c (main): Remove parentheses around array
21185         initializer.
21186
21187 2010-10-15  Eric Blake  <eblake@redhat.com>
21188
21189         ignore-value: make header idempotent
21190         * lib/ignore-value.h: Add double-inclusion guards.
21191         Reported by Stefan Berger.
21192
21193 2010-10-15  Jim Meyering  <meyering@redhat.com>
21194
21195         GNUmakefile: handle "stable" target, not "major"
21196         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21197         lists in maint.mk and announce-gen.  Without this, "make stable"
21198         would fail to ensure that $(VERSION) is up to date.
21199
21200 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21201
21202         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21203         & co.
21204
21205 2010-10-14  Bruno Haible  <bruno@clisp.org>
21206
21207         vasnprintf: Don't set errno to 0.
21208         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21209         block that sets it to 0.
21210         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21211
21212 2010-10-14  Bruno Haible  <bruno@clisp.org>
21213
21214         socketlib: Fix.
21215         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21216         gl_PREREQ_SYS_H_WINSOCK2.
21217         Reported by Ian Beckwith <ianb@erislabs.net>.
21218
21219 2010-10-13  Jim Meyering  <meyering@redhat.com>
21220
21221         test-select-stdin.c: avoid warn_unused_result warnings
21222         * tests/test-select-stdin.c: Include "macros.h".
21223         ASSERT that read and fflush succeed.
21224
21225 2010-10-13  Jim Meyering  <meyering@redhat.com>
21226
21227         git-version-gen: do require git-VC'd files in cwd
21228         * build-aux/git-version-gen: Reject a git version string
21229         if there are no commits associated with the current directory.
21230         This avoids an unlikely false-positive (unrelated dir whose parent
21231         repository also contains a tag matching v*), as pointed out
21232         by Giuseppe Scrivano in
21233         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21234
21235 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21236
21237         argv-iter: omit nonconforming declaration
21238         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21239         enum arg_iter_err declaration, which doesn't conform to C99.
21240         Solaris 10 cc warns about this.
21241
21242 2010-10-13  Eric Blake  <eblake@redhat.com>
21243
21244         termios: fix compilation on mingw
21245         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21246         (gl_TERMIOS_H): Adjust it on mingw.
21247         * modules/termios (Makefile.am): Substitute new key.
21248         * lib/termios.in.h (includes): Make include_next conditional.
21249         * doc/posix-headers/termios.texi (termios.h): Update
21250         documentation.
21251         Reported by Daniel P. Berrange.
21252
21253 2010-10-13  Jim Meyering  <meyering@redhat.com>
21254
21255         git-version-gen: don't require that .git/ be in the current dir
21256         * build-aux/git-version-gen: Adjust this script so that it works
21257         when run from any working directory beneath the top-level .git/-
21258         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21259         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21260
21261         test-select: avoid warn_unused_result warnings
21262         * tests/test-select.c: Include "macros.h".
21263         ASSERT that each call to read, write, and pipe succeeds.
21264         While not technically required, also check each "close".
21265         * modules/select-tests (Files): Add tests/macros.h.
21266
21267         test-symlinkat: remove declaration of unused local
21268         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21269
21270         test-inttostr: avoid shadowing warnings
21271         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21272         and use malloc rather than the stack for the same reason as
21273         mentioned in the comment justifying the other allocation.
21274
21275 2010-10-11  Bruno Haible  <bruno@clisp.org>
21276
21277         stdlib: Allow multiple gnulib generated replacements to coexist.
21278         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21279         Reported by Sam Steingold <sds@gnu.org>.
21280
21281 2010-10-11  Jim Meyering  <meyering@redhat.com>
21282
21283         fix a documentation typo
21284         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21285
21286 2010-10-11  Eric Blake  <eblake@redhat.com>
21287
21288         futimens: work around Solaris 11 bug
21289         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21290         * tests/test-futimens.h (test_futimens): Enhance, rather than
21291         weaken test.
21292         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21293
21294 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21295
21296         Indentation.
21297         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21298         higher-level operators more to the left.
21299
21300 2010-10-11  Jim Meyering  <meyering@redhat.com>
21301
21302         test-futimens: avoid unwarranted test failure on Solaris 5.11
21303         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21304         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21305         because it tries to dereference the NULL name argument.
21306
21307 2010-10-11  Bruno Haible  <bruno@clisp.org>
21308
21309         Indentation.
21310         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21311         indentation.
21312
21313 2010-10-11  Jim Meyering  <meyering@redhat.com>
21314
21315         spawn.in.h: make indentation consistent with parentheses
21316         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21317         Make indentation consistent with parentheses.
21318
21319 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21320
21321         Fix mismatched parens in previous commit
21322         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21323         parens.
21324
21325 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21326
21327         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21328
21329         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21330         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21331         * lib/malloca.c: Include "verify.h".
21332         (verify1): Remove, replacing with a verify call.
21333         * lib/relocwrapper.c (verify1): Likewise.
21334         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21335         Likewise.
21336         * modules/malloca (Depends-on): Add 'verify'.
21337         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21338         * modules/vasnprintf (Depends-on): Add 'verify'.
21339         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21340         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21341         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21342         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21343         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21344         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21345         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21346
21347         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21348
21349         Formerly the style was sometimes 2*X - 1, because the C standard
21350         was wrongly thought to disallow ?: in integral constant expressions.
21351         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21352         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21353         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21354         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21355         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21356         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21357         verify that time_t cannot be floating.
21358
21359 2010-10-08  Eric Blake  <eblake@redhat.com>
21360
21361         time: enforce recent POSIX ruling that time_t is integral
21362         * lib/time.in.h (__time_t_must_be_integral): Detect any
21363         problematic systems, allowing the rest of gnulib to assume POSIX.
21364
21365 2010-10-08  Jim Meyering  <meyering@redhat.com>
21366
21367         fdopendir: fix a bug on systems lacking openat and /proc support
21368         OpenBSD 4.7 is one such system.  The most noticeable effect was
21369         failure of any application making nontrivial use of fts: rm, du,
21370         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21371           ./rm: traversal failed: `a': Bad file descriptor
21372         Debugging that, you see that even though FD 6 was closed just
21373         prior to the opendir call in fd_clone_opendir, its resulting
21374         dir->dd_fd was 8, rather than the expected value of 6:
21375
21376         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21377         93                close (fd);
21378         (gdb) n
21379         94                dir = fd_clone_opendir (dupfd);
21380         (gdb) n
21381         95                saved_errno = errno;
21382         (gdb) p dir->dd_fd
21383         $11 = 8
21384
21385         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21386         The problem is that on OpenBSD, fd_clone_opendir has to resort
21387         to using the old-style save/restore CWD mechanism, due to its
21388         lack of openat/proc support, and *that* would steal the FD (6)
21389         that opendir was supposed to use.
21390
21391         The fix is to squirrel away the desired FD so that save_cwd uses a
21392         different one, and then free the dest FD right before calling opendir.
21393         That guarantees opendir will use the required file descriptor.
21394
21395         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21396
21397 2010-10-08  Bruno Haible  <bruno@clisp.org>
21398
21399         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21400         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21401
21402 2010-10-08  Bruno Haible  <bruno@clisp.org>
21403
21404         nanosleep: Make replacement POSIX compliant.
21405         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21406         is out of range.
21407         Reported by Jim Meyering.
21408
21409 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21410
21411         bootstrap: add hook for altering gnulib.mk, for Bison
21412         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21413         the Bison bootstrapping process can rewrite file names and variables
21414         in this file before later parts of 'bootstrap' use the file.
21415         Bison wants to include lib/gnulib.mk from the top-level makefile,
21416         so it needs the file names in this file to be relative to the top
21417         level, not relative to lib; plus it needs variable names to be
21418         rewritten.
21419         (slurp): Use the new function.
21420
21421         bootstrap: reformat for readability
21422         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21423
21424 2010-10-08  Eric Blake  <eblake@redhat.com>
21425
21426         docs: update cygwin progress
21427         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21428         1.7.7.
21429         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21430         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21431         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21432         * doc/posix-functions/carg.texi (carg): Likewise.
21433         * doc/posix-functions/cargf.texi (cargf): Likewise.
21434         * doc/posix-functions/casin.texi (casin): Likewise.
21435         * doc/posix-functions/casinf.texi (casinf): Likewise.
21436         * doc/posix-functions/casinh.texi (casinh): Likewise.
21437         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21438         * doc/posix-functions/catan.texi (catan): Likewise.
21439         * doc/posix-functions/catanf.texi (catanf): Likewise.
21440         * doc/posix-functions/catanh.texi (catanh): Likewise.
21441         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21442         * doc/posix-functions/ccos.texi (ccos): Likewise.
21443         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21444         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21445         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21446         * doc/posix-functions/cexp.texi (cexp): Likewise.
21447         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21448         * doc/posix-functions/cimag.texi (cimag): Likewise.
21449         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21450         * doc/posix-functions/clog.texi (clog): Likewise.
21451         * doc/posix-functions/clogf.texi (clogf): Likewise.
21452         * doc/posix-functions/conj.texi (conj): Likewise.
21453         * doc/posix-functions/conjf.texi (conjf): Likewise.
21454         * doc/posix-functions/cpow.texi (cpow): Likewise.
21455         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21456         * doc/posix-functions/cproj.texi (cproj): Likewise.
21457         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21458         * doc/posix-functions/creal.texi (creal): Likewise.
21459         * doc/posix-functions/crealf.texi (crealf): Likewise.
21460         * doc/posix-functions/csin.texi (csin): Likewise.
21461         * doc/posix-functions/csinf.texi (csinf): Likewise.
21462         * doc/posix-functions/csinh.texi (csinh): Likewise.
21463         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21464         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21465         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21466         * doc/posix-functions/ctan.texi (ctan): Likewise.
21467         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21468         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21469         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21470         * doc/posix-headers/complex.texi (complex.h): Likewise.
21471
21472 2010-10-07  Jim Meyering  <meyering@redhat.com>
21473
21474         parse-datetime: avoid compilation failure on OpenBSD 4.7
21475         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21476         This works around a compilation failure on OpenBSD 4.7:
21477         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21478
21479 2010-10-07  Eric Blake  <eblake@redhat.com>
21480
21481         docs: update cygwin progress
21482         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21483         1.7.6.
21484         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21485         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21486         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21487         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21488         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21489         Likewise.
21490         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21491         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21492         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21493         Likewise.
21494         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21495         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21496         Likewise.
21497         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21498         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21499         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21500         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21501         Likewise.
21502         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21503         Likewise.
21504         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21505
21506         docs: update parse-datetime history
21507         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21508         documentation of this function's history and alternatives.
21509
21510         cygwin: use more robust version check
21511         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21512         exclude an eventual cygwin 1.9.1.
21513         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21514         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21515         (gl_FUNC_STRCASESTR): Likewise.
21516         Reported by Bruno Haible.
21517
21518 2010-10-06  Bruno Haible  <bruno@clisp.org>
21519
21520         string, sys_select: Avoid #including large headers unless necessary.
21521         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21522         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21523         OSF/1, BeOS, Haiku.
21524         Reported by Jim Meyering.
21525
21526 2010-10-05  Eric Blake  <eblake@redhat.com>
21527
21528         memmem, strstr, strcasestr: fix bug with long periodic needle
21529         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21530         periodic needle having false positive.
21531         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21532         and cygwin 1.7.7.
21533         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21534         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21535         (gl_FUNC_STRCASESTR): Likewise.
21536         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21537         * tests/test-memmem.c (main): Expose the bug.
21538         * tests/test-strcasestr.c (main): Likewise.
21539         * tests/test-strstr.c (main): Likewise.
21540         * tests/test-c-strcasestr.c (main): Likewise.
21541         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21542         * doc/posix-functions/strstr.texi (strstr): Likewise.
21543         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21544         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21545
21546 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21547
21548         parse-datetime: do some more renaming
21549         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21550         parse_datetime, not get_date.  Mention the renaming.
21551         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21552         in comments.
21553         * m4/bison.m4: Likewise.
21554
21555 2010-10-05  Eric Blake  <eblake@redhat.com>
21556
21557         parse-datetime: better name than get_date
21558         * NEWS: Reword the deprecation notice.
21559         * modules/get_date: Rename to modules/parse-datetime.
21560         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21561         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21562         * lib/get_date.y: Rename to lib/parse-datetime.y.
21563         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21564         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21565         * doc/getdate.texi: Provide fallback wrapper.
21566         * lib/getdate.h: Move guts, and wrap...
21567         * lib/parse-datetime.h: ...new file.
21568         * lib/parse-datetime.y (get_date): Rename...
21569         (parse_datetime): ...to this.
21570         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21571         (gl_PARSE_DATETIME): ...to this.
21572         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21573         documentation.
21574         * modules/getdate (Files): Provide fallback docs and header.
21575         (Notice, Depends-on): Update references.
21576         * tests/test-parse-datetime.c: Likewise.
21577         * DEPENDENCIES: Likewise.
21578         * MODULES.html.sh (Date and time <time.h>): Likewise.
21579         * doc/parse-datetime.texi (Date input formats)
21580         (Authors of parse_datetime): Likewise.
21581         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21582         (Include): Likewise.
21583         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21584         * gnulib-tool: Likewise.
21585         * m4/bison.m4 (gl_BISON): Likewise.
21586         Suggested by Bruno Haible.
21587
21588 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21589
21590         more ports to Solaris tr, which needs [] around ranges
21591         * gnulib-tool: Solaris tr needs [] around ranges.
21592         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21593         * tests/test-pipe-filter-gi1.c (main): Likewise.
21594         * tests/test-pipe-filter-ii1.c (main): Likewise.
21595
21596 2010-10-05  Eric Blake  <eblake@redhat.com>
21597
21598         bootstrap: fix Solaris regression
21599         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21600         around ranges.
21601         Reported by Pádraig Brady.
21602
21603         bootstrap: work with pkg-config
21604         * build-aux/bootstrap (check_versions): Also transliterate - in
21605         prerequisite name.
21606         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21607         prerequisites that were already found, to avoid confusion.
21608         Reported by Justin Clift.
21609
21610         faccessat: remove unused wrappers
21611         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21612         presence of these wrappers dragged in -lgen on Solaris.
21613         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21614
21615 2010-10-05  Jim Meyering  <meyering@redhat.com>
21616
21617         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21618         * Makefile (sc_pragma_columns): New syntax-check rule.
21619
21620 2010-10-04  Bruno Haible  <bruno@clisp.org>
21621
21622         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21623         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21624         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21625         Reported by Bruce Korb and Eric Blake.
21626
21627 2010-10-04  Bruno Haible  <bruno@clisp.org>
21628
21629         threadlib: Make option --with-libpth-prefix work.
21630         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21631         use $LIBPTH, not just -lpth.
21632
21633 2010-10-04  Bruno Haible  <bruno@clisp.org>
21634
21635         Avoid line length limitation from HP NonStop system header files.
21636         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21637         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21638         * lib/ctype.in.h: Likewise.
21639         * lib/dirent.in.h: Likewise.
21640         * lib/errno.in.h: Likewise.
21641         * lib/fcntl.in.h: Likewise.
21642         * lib/float.in.h: Likewise.
21643         * lib/getopt.in.h: Likewise.
21644         * lib/iconv.in.h: Likewise.
21645         * lib/inttypes.in.h: Likewise.
21646         * lib/langinfo.in.h: Likewise.
21647         * lib/locale.in.h: Likewise.
21648         * lib/math.in.h: Likewise.
21649         * lib/netdb.in.h: Likewise.
21650         * lib/netinet_in.in.h: Likewise.
21651         * lib/poll.in.h: Likewise.
21652         * lib/pthread.in.h: Likewise.
21653         * lib/pty.in.h: Likewise.
21654         * lib/sched.in.h: Likewise.
21655         * lib/se-selinux.in.h: Likewise.
21656         * lib/search.in.h: Likewise.
21657         * lib/signal.in.h: Likewise.
21658         * lib/spawn.in.h: Likewise.
21659         * lib/stdarg.in.h: Likewise.
21660         * lib/stddef.in.h: Likewise.
21661         * lib/stdint.in.h: Likewise.
21662         * lib/stdio.in.h: Likewise.
21663         * lib/stdlib.in.h: Likewise.
21664         * lib/string.in.h: Likewise.
21665         * lib/strings.in.h: Likewise.
21666         * lib/sys_file.in.h: Likewise.
21667         * lib/sys_ioctl.in.h: Likewise.
21668         * lib/sys_select.in.h: Likewise.
21669         * lib/sys_socket.in.h: Likewise.
21670         * lib/sys_stat.in.h: Likewise.
21671         * lib/sys_time.in.h: Likewise.
21672         * lib/sys_times.in.h: Likewise.
21673         * lib/sys_utsname.in.h: Likewise.
21674         * lib/sys_wait.in.h: Likewise.
21675         * lib/sysexits.in.h: Likewise.
21676         * lib/termios.in.h: Likewise.
21677         * lib/time.in.h: Likewise.
21678         * lib/unistd.in.h: Likewise.
21679         * lib/wchar.in.h: Likewise.
21680         * lib/wctype.in.h: Likewise.
21681         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21682         * modules/ctype (Makefile.am): Likewise.
21683         * modules/dirent (Makefile.am): Likewise.
21684         * modules/errno (Makefile.am): Likewise.
21685         * modules/fcntl-h (Makefile.am): Likewise.
21686         * modules/float (Makefile.am): Likewise.
21687         * modules/getopt-posix (Makefile.am): Likewise.
21688         * modules/iconv-h (Makefile.am): Likewise.
21689         * modules/inttypes (Makefile.am): Likewise.
21690         * modules/langinfo (Makefile.am): Likewise.
21691         * modules/locale (Makefile.am): Likewise.
21692         * modules/math (Makefile.am): Likewise.
21693         * modules/netdb (Makefile.am): Likewise.
21694         * modules/netinet_in (Makefile.am): Likewise.
21695         * modules/poll-h (Makefile.am): Likewise.
21696         * modules/pthread (Makefile.am): Likewise.
21697         * modules/pty (Makefile.am): Likewise.
21698         * modules/sched (Makefile.am): Likewise.
21699         * modules/search (Makefile.am): Likewise.
21700         * modules/selinux-h (Makefile.am): Likewise.
21701         * modules/signal (Makefile.am): Likewise.
21702         * modules/spawn (Makefile.am): Likewise.
21703         * modules/stdarg (Makefile.am): Likewise.
21704         * modules/stddef (Makefile.am): Likewise.
21705         * modules/stdint (Makefile.am): Likewise.
21706         * modules/stdio (Makefile.am): Likewise.
21707         * modules/stdlib (Makefile.am): Likewise.
21708         * modules/string (Makefile.am): Likewise.
21709         * modules/strings (Makefile.am): Likewise.
21710         * modules/sys_file (Makefile.am): Likewise.
21711         * modules/sys_ioctl (Makefile.am): Likewise.
21712         * modules/sys_select (Makefile.am): Likewise.
21713         * modules/sys_socket (Makefile.am): Likewise.
21714         * modules/sys_stat (Makefile.am): Likewise.
21715         * modules/sys_time (Makefile.am): Likewise.
21716         * modules/sys_times (Makefile.am): Likewise.
21717         * modules/sys_utsname (Makefile.am): Likewise.
21718         * modules/sys_wait (Makefile.am): Likewise.
21719         * modules/sysexits (Makefile.am): Likewise.
21720         * modules/termios (Makefile.am): Likewise.
21721         * modules/time (Makefile.am): Likewise.
21722         * modules/unistd (Makefile.am): Likewise.
21723         * modules/wchar (Makefile.am): Likewise.
21724         * modules/wctype (Makefile.am): Likewise.
21725
21726 2010-10-04  Bruno Haible  <bruno@clisp.org>
21727
21728         read-file tests: Avoid a test failure on NonStop Kernel.
21729         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
21730         a regular file.
21731         Reported by Joachim Schmitz <schmitz@hp.com>.
21732
21733 2010-10-03  Bruno Haible  <bruno@clisp.org>
21734
21735         gnulib-tool: Fixes for --create-testdir with --libtool.
21736         * gnulib-tool (func_get_automake_snippet): Don't augment
21737         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
21738         an executable.
21739         (func_create_testdir): Handle module 'alloca' like func_import.
21740         Reported by Bruce Korb <bruce.korb@gmail.com>.
21741
21742 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21743
21744         Avoid some lines longer than 80 characters.
21745         * lib/stdint.in.h: Break long comment lines.
21746         * lib/math.in.h: Likewise.
21747         (_GL_NUM_UINT_WORDS): New macro, for readability.
21748         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
21749         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
21750         * lib/stdlib.in.h: Likewise.
21751         * lib/spawn.in.h: Likewise.
21752         * lib/sys_socket.in.h: Update an URL.
21753         * lib/sys_stat.in.h: Break long line.
21754
21755 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21756
21757         Improve pmccabe2html.
21758         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21759         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21760         when the sources change. Remove the line in the HTML about "Used
21761         ranges" (which implied that there might be other unused ranges),
21762         rename "Resume" to "Summary" (easier to understand for more users).
21763         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21764         styles, and some unnecessary blank lines.
21765
21766 2010-10-03  Bruno Haible  <bruno@clisp.org>
21767             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21768
21769         acl: Add support for ACLs on NonStop Kernel.
21770         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
21771         Check whether the function aclsort() exists.
21772         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
21773         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
21774         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21775         (acl_nontrivial [HAVE_ACLSORT]: New function.
21776         (file_has_acl): Implement for NonStop Kernel.
21777         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21778         (qset_acl): Implement for NonStop Kernel.
21779         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21780         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21781         (main): Implement for NonStop Kernel.
21782         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21783         Kernel. Handle this flavor.
21784         * tests/test-set-mode-acl.sh: Likewise.
21785         * tests/test-copy-acl.sh: Likewise.
21786         * tests/test-copy-file.sh: Likewise.
21787
21788 2010-10-03  Bruno Haible  <bruno@clisp.org>
21789
21790         Info about ACLs on NonStop Kernel.
21791         * doc/acl-resources.txt: Add info about NonStop Kernel.
21792         References by Joachim Schmitz <schmitz@hp.com>.
21793
21794 2010-10-02  Bruno Haible  <bruno@clisp.org>
21795
21796         Define missing EDQUOT on NonStop Kernel.
21797         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21798         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21799         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21800         missing.
21801         * doc/posix-headers/errno.texi: Mention the NSK bug.
21802         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21803         Reported by Joachim Schmitz <schmitz@hp.com>.
21804
21805 2010-10-02  Bruno Haible  <bruno@clisp.org>
21806
21807         Update doc for POSIX:2008.
21808         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21809         Update URL of POSIX specification.
21810
21811 2010-10-02  Bruno Haible  <bruno@clisp.org>
21812
21813         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21814         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21815         from gnulib, not from Automake.
21816
21817 2010-10-02  Bruno Haible  <bruno@clisp.org>
21818
21819         New module 'system-posix'.
21820         * modules/system-posix: New file.
21821         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21822         module is present.
21823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21824         GNULIB_SYSTEM_POSIX.
21825         * modules/stdlib (Depends-on): Remove sys_wait.
21826         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21827         * doc/posix-functions/system.texi: Mention the new module.
21828         * doc/posix-headers/stdlib.texi: Likewise.
21829         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21830         define test_sys_wait_macros to a no-op.
21831         Reported by Sam Steingold <sds@gnu.org>.
21832
21833 2010-09-30  Bruno Haible  <bruno@clisp.org>
21834
21835         More renaming from 'getdate' to 'get_date'.
21836         * doc/get_date.texi: Renamed from doc/getdate.texi.
21837         * modules/get_date (Files): Update.
21838         * MODULES.html.sh (Date and time <time.h>): Update.
21839         * DEPENDENCIES: Update.
21840         * gnulib-tool: Update comment.
21841         * m4/bison.m4 (gl_BISON): Likewise.
21842         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21843
21844 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21845
21846         bootstrap: support ACLOCAL_FLAGS during aclocal
21847         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21848         can add additional -I dir for third-party .m4 files.
21849
21850 2010-09-30  Eric Blake  <eblake@redhat.com>
21851
21852         bootstrap: use glibtoolize on MacOS
21853         * build-aux/bootstrap (check_versions): Convert libtool into
21854         libtoolize.
21855         (tool search): Move libtool check earlier, and look for
21856         glibtoolize for MacOS.
21857         (gnulib_tool_options): Auto-add --libtool when appropriate.
21858         Reported by Justin Clift.
21859
21860         poll: fix typo that broke test on MacOS
21861         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21862         Reported by Justin Clift.
21863
21864         getdate: rename to get_date
21865         Note: getdate.h is not renamed, to minimize client impact.
21866         * modules/getdate: Mark obsolete.  Move old contents...
21867         * modules/get_date: ...to new module name.
21868         * modules/getdate-tests: Move...
21869         * modules/get_date-tests: ...here.
21870         * m4/getdate.m4: Move...
21871         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21872         * lib/getdate.y: Move...
21873         * lib/get_date.y: ...here.
21874         * tests/test-getdate.c: Move...
21875         * tests/test-get_date.c: ...here.
21876         * doc/posix-functions/getdate.texi (getdate): Update name.
21877         * NEWS: Mention the change.
21878
21879 2010-09-29  Bruno Haible  <bruno@clisp.org>
21880
21881         Separate the module 'waitpid' from the module 'sys_wait'.
21882         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21883         present.
21884         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21885         gl_MODULE_INDICATOR_FOR_TESTS.
21886         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21887         * modules/sys_wait (Depends-on): Remove waitpid.
21888         (Makefile.am): Substitute GNULIB_WAITPID.
21889         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21890         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21891         signature only if the 'waitpid' module is present.
21892         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21893         * NEWS: Mention the change.
21894         * modules/grantpt (Depends-on): Add waitpid.
21895         * modules/wait-process (Depends-on): Likewise.
21896
21897 2010-09-29  Bruno Haible  <bruno@clisp.org>
21898
21899         More tests for module 'sys_wait'.
21900         * modules/sys_wait-c++-tests: New file.
21901         * tests/test-sys_wait-c++.cc: New file.
21902         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21903         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21904
21905 2010-09-29  Bruno Haible  <bruno@clisp.org>
21906
21907         New module 'waitpid'.
21908         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21909         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21910         Don't include <process.h>.
21911         (waitpid): Declare only, using modern idiom.
21912         * m4/waitpid.m4: New file.
21913         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21914         * modules/waitpid: New file.
21915         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21916         (Makefile.am): Update.
21917         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21918
21919 2010-09-28  Bruno Haible  <bruno@clisp.org>
21920
21921         poll: Assume ANSI C.
21922         * lib/poll.c (poll): Use an ANSI C declaration.
21923
21924 2010-09-28  Bruno Haible  <bruno@clisp.org>
21925
21926         poll-h: Create poll.h on all platforms.
21927         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21928         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21929         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21930         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21931         (gl_REPLACE_POLL_H): Don't set POLL_H.
21932         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21933         * modules/poll-h (Depends-on): Add include_next.
21934         (Makefile.am): Create poll.h unconditionally. Substitute also
21935         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21936
21937 2010-09-28  Bruno Haible  <bruno@clisp.org>
21938
21939         Tests for module 'poll-h'.
21940         * modules/poll-h-c++-tests: New file.
21941         * tests/test-poll-h-c++.cc: New file.
21942
21943         Tests for module 'poll-h'.
21944         * modules/poll-h-tests: New file.
21945         * tests/test-poll-h.c: New file.
21946
21947 2010-09-28  Bruno Haible  <bruno@clisp.org>
21948
21949         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21950         * modules/poll-h (Depends-on): Add 'extensions'.
21951
21952 2010-09-28  Bruno Haible  <bruno@clisp.org>
21953
21954         New module 'poll-h'.
21955         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21956         (poll): Use modern idiom.
21957         * modules/poll-h: New file.
21958         * modules/poll (Files): Remove lib/poll.in.h.
21959         (Depends-on): Add poll-h.
21960         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21961         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21962         * m4/poll_h.m4: New file.
21963         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21964         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21965         and invoke gl_REPLACE_POLL_H.
21966         * lib/poll.c: Use common idiom.
21967         * tests/test-poll.c: Likewise.
21968         * doc/posix-headers/poll.texi: Mention the poll-h module.
21969         Suggested by Eric Blake.
21970
21971 2010-09-26  Bruno Haible  <bruno@clisp.org>
21972
21973         sys_wait: Implement WSTOPSIG.
21974         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21975         Reported by Simon Josefsson.
21976
21977 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21978
21979         stdlib, sys_wait: Avoid compilation error on mingw.
21980         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21981
21982 2010-09-26  Bruno Haible  <bruno@clisp.org>
21983
21984         stdlib tests: Avoid code duplication.
21985         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21986         * modules/sys_wait-tests (Files): Likewise.
21987         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21988         * tests/test-stdlib.c: Include test-sys_wait.h.
21989         (main): Invoke test_sys_wait_macros.
21990         * tests/test-sys_wait.c: Include test-sys_wait.h.
21991         (main): Invoke test_sys_wait_macros.
21992
21993 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21994
21995         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21996         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21997         sure Windows sockets are working before calling getaddrinfo.
21998         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21999         * doc/gnulib.texi (Windows sockets): Fix typo.
22000
22001 2010-09-25  Bruno Haible  <bruno@clisp.org>
22002
22003         Tests for module 'regex-quote'.
22004         * modules/regex-quote-tests: New file.
22005         * tests/test-regex-quote.c: New file.
22006
22007         New module 'regex-quote'.
22008         * lib/regex-quote.h: New file.
22009         * lib/regex-quote.c: New file.
22010         * modules/regex-quote: New file.
22011         Suggested by Reuben Thomas <rrt@sc3d.org>.
22012
22013 2010-09-24  Bruno Haible  <bruno@clisp.org>
22014
22015         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22016         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22017
22018 2010-09-23  Bruno Haible  <bruno@clisp.org>
22019
22020         setenv: Relax license.
22021         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22022         Blake.
22023         Requested by Eric Blake.
22024
22025 2010-09-22  Bruno Haible  <bruno@clisp.org>
22026
22027         termios: Relax license.
22028         * modules/termios (License): Change to LGPLv2+.
22029         Requested by Eric Blake.
22030
22031 2010-09-22  Bruno Haible  <bruno@clisp.org>
22032
22033         threadlib: Allow the package to change the default to 'no'.
22034         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22035         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22036         Reported by Paul Eggert.
22037
22038 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22039             Bruno Haible  <bruno@clisp.org>
22040
22041         Fix endless loop in mbmemcasecoll.
22042         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22043         byte.
22044         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22045
22046 2010-09-22  Bruno Haible  <bruno@clisp.org>
22047
22048         Tests for module 'memcoll'.
22049         * modules/memcoll-tests: New file.
22050         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22051
22052         memcoll, xmemcoll: Clarify size vs. length.
22053         * modules/memcoll.c (memcoll0): Clarify specification.
22054         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22055         passed to collate_error.
22056
22057 2010-09-22  Bruno Haible  <bruno@clisp.org>
22058
22059         Tests for module 'memcasecmp'.
22060         * modules/memcasecmp-tests: New file.
22061         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22062
22063 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22064
22065         * lib/pthread.in.h: Add split double-inclusion guard, and include
22066         system <pthread.h> if there is one.  Use @@-style as in other
22067         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22068         pthread.h doesn't.
22069         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22070         (pthread_mutexattr_settype, pthread_mutex_trylock):
22071         New static inline functions, if there's no system <pthread.h>.
22072         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22073         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22074         Approximate with mutexes if the system lacks spinlocks, as in
22075         MacOS.
22076         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22077         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22078         @@-style.  Check for spinlocks separately.
22079         (gl_PTHREAD_DEFAULTS): New macro.
22080         * modules/pthread: Redo to use a more typical style for in.h files.
22081
22082 2010-09-21  Eric Blake  <eblake@redhat.com>
22083
22084         net_if: enhance tests
22085         * tests/test-net_if.c (main): Move signature checks earlier.
22086         Print failures to stderr.
22087         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22088         Document the bug that we do not yet fix.
22089
22090 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22091
22092         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22093         about gnulib, not GSS.
22094
22095 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22096
22097         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22098         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22099         for Emacs.
22100         * build-aux/pmccabe2html: Make Makefile.am example code more
22101         cut-and-paste friendly.
22102
22103 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22104
22105         * tests/test-net_if.c: New file.
22106         * modules/net_if-tests: New file.
22107
22108 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22109
22110         pthread: add pthread_spin_destroy
22111         * lib/pthread.in.h (pthread_spin_destroy): New function.
22112
22113 2010-09-19  Bruno Haible  <bruno@clisp.org>
22114
22115         gnulib-tool: Fix --help output.
22116         * gnulib-tool (func_usage): Fix help message.
22117         Reported by Reuben Thomas <rrt@sc3d.org>.
22118
22119 2010-09-18  Jim Meyering  <meyering@redhat.com>
22120
22121         maint.mk: avoid unexpanded \n in two diagnostics
22122         * top/maint.mk (sc_prohibit_always_true_header_tests):
22123         Don't use a literal \n in a halt=... assignment.  It would not be
22124         expanded, and the two \n bytes would appear in the diagnostic output
22125         rather than the desired newline.  Use halt=$$(printf ... instead.
22126         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22127
22128 2010-09-18  Bruno Haible  <bruno@clisp.org>
22129
22130         netinet_in: Doc tweak.
22131         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22132         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22133
22134 2010-09-18  Jim Meyering  <meyering@redhat.com>
22135
22136         init.sh: correct an outdated comment
22137         * tests/init.sh (create_exe_shims_):  s/function/alias/
22138
22139         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22140         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22141         a file named "*.exe" is removed between the glob expansion and the
22142         processing of that oddly named file.
22143
22144 2010-09-17  Eric Blake  <eblake@redhat.com>
22145
22146         mirbsd: add some more support
22147         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22148         in BSD family.
22149         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22150         devices as OpenBSD.
22151         * m4/host-os.m4 (mirbsd): Add MirBSD.
22152
22153         tests: fix unportable assumption on sys/wait.h
22154         * tests/test-sys_wait.c (main): Relax test.
22155         * tests/test-stdlib.c (main): Likewise.
22156
22157         init.sh: accomodate directory with no .exes
22158         * tests/init.sh: Accomodate directory containing only scripts.
22159
22160         tests: avoid compiler warning
22161         * tests/test-stdlib.c (main): Use the variable.
22162
22163         fdutimens, fdutimensat: update signature, again
22164         * lib/utimens.h (gl_futimens): Delete, and move signature...
22165         (fdutimens): ...here.
22166         (fdutimensat): Rearrange signature.
22167         (lutimensat): Rename variable for clarity.
22168         * lib/fdutimensat.c (fdutimensat): Update signature.
22169         * lib/utimens.c (fdutimens): Likewise.
22170         (gl_futimens): Delete.
22171         (utimens, lutimens): Update callers.
22172         * lib/futimens.c (futimens): Likewise.
22173         * tests/test-fdutimensat.c: Likewise.
22174         * tests/test-utimens.c: Likewise.
22175         * tests/test-futimens.h: Update comment.
22176         * NEWS: Mention this.
22177         Suggested by Paul Eggert.
22178
22179 2010-09-17  Bruno Haible  <bruno@clisp.org>
22180
22181         Take over the maintenance of some older macros from Autoconf.
22182         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22183         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22184         GNU Autoconf.
22185         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22186         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22187
22188 2010-09-17  Eric Blake  <eblake@redhat.com>
22189
22190         fdutimensat: drop atflag validation
22191         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22192         with valid fd, to close a race scenario where futimens is
22193         unsupported and FILE was replaced by a symlink.
22194         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22195         accordingly.
22196         Suggested by Paul Eggert.
22197
22198 2010-09-16  Bruno Haible  <bruno@clisp.org>
22199
22200         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22201         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22202
22203 2010-09-16  Bruno Haible  <bruno@clisp.org>
22204
22205         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22206         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22207         login_tty exists.
22208         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22209
22210 2010-09-16  Bruno Haible  <bruno@clisp.org>
22211
22212         login_tty: Make the replacement code work on BSD systems.
22213         * lib/login_tty.c: Include <sys/ioctl.h>.
22214         (login_tty): Use ioctl TIOCSCTTY when available.
22215         * modules/login_tty (Depends-on): Add sys_ioctl.
22216         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22217
22218 2010-09-16  Bruno Haible  <bruno@clisp.org>
22219
22220         login_tty: Stricter unit test.
22221         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22222         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22223         and tcgetsid() after login_tty.
22224         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22225
22226 2010-09-16  Bruno Haible  <bruno@clisp.org>
22227
22228         New module 'tcgetsid'.
22229         * lib/tcgetsid.c: New file.
22230         * m4/tcgetsid.m4: New file.
22231         * modules/tcgetsid: New file.
22232         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22233         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22234         GNULIB_TCGETSID, HAVE_TCGETSID.
22235         * lib/termios.in.h: Include <sys/types.h>.
22236         (tcgetsid): New declaration.
22237         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22238         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22239         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22240         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22241
22242 2010-09-16  Bruno Haible  <bruno@clisp.org>
22243
22244         Tests for module 'termios'.
22245         * modules/termios-c++-tests: New file.
22246         * modules/termios-tests: New file.
22247         * tests/test-termios-c++.cc: New file.
22248         * tests/test-termios.c: New file.
22249
22250         New module 'termios'.
22251         * modules/termios: New file.
22252         * lib/termios.in.h: New file.
22253         * m4/termios_h.m4: New file.
22254         * doc/posix-headers/termios.texi: Mention the new module.
22255
22256 2010-09-16  Eric Blake  <eblake@redhat.com>
22257
22258         fdutimensat: add an atflag parameter
22259         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22260         * lib/utimens.h (fdutimensat): Update prototype.
22261         * tests/test-fdutimensat.c: Adjust test to match.
22262         * NEWS: Document the change.
22263         Suggested by Paul Eggert.
22264
22265 2010-09-16  Bruno Haible  <bruno@clisp.org>
22266
22267         Fix typos in comments.
22268         * lib/striconveh.h: Fix typo in comment.
22269         * lib/login_tty.c (login_tty): Likewise.
22270
22271 2010-09-15  Bruno Haible  <bruno@clisp.org>
22272
22273         stdlib: clarify MirBSD WEXITSTATUS bug
22274         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22275         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22276
22277 2010-09-15  Eric Blake  <eblake@redhat.com>
22278
22279         stdlib: work around MirBSD WEXITSTATUS bug
22280         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22281         * modules/stdlib (Depends-on): Add sys_wait.
22282         * tests/test-sys_wait.c (main): Enhance test.
22283         * tests/test-stdlib.c (main): Likewise.
22284         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22285
22286         docs: mention MacOS issue with WEXITSTATUS(constant)
22287         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22288         issue.
22289         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22290
22291         strnlen: add tests
22292         * modules/strnlen-tests: New file.
22293         * tests/test-strnlen.c: Likewise.
22294
22295 2010-09-14  Bruno Haible  <bruno@clisp.org>
22296
22297         unistr/base: Avoid link errors when module 'libunistring' is also used.
22298         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22299         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22300         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22301         Declare also when HAVE_LIBUNISTRING is set.
22302         Reported by Pádraig Brady <P@draigbrady.com>.
22303
22304 2010-09-14  Eric Blake  <eblake@redhat.com>
22305
22306         test-rawmemchr: make more robust
22307         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22308         (Depends-on, configure.ac): Add needed prerequisites to use it.
22309         * modules/memchr-tests (Files, Depends-on, configure.ac):
22310         Likewise, to avoid implicit reliance on memchr module prereqs.
22311         * tests/test-memchr.c (main): Ensure proper masking.
22312         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22313         reads.
22314
22315         memchr: detect glibc Alpha bug
22316         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22317         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22318         Alpha.
22319         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22320         * tests/test-memchr.c (main): Enhance test.
22321         Reported by Nelson H. F. Beebe.
22322
22323 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22324
22325         fts, getcwd, glob: audit for dirfd returning -1
22326         * lib/fts.c (opendir): Remove #define; no longer used.
22327         (opendirat): New arg PDIR_FD.  All callers changed.
22328         (fts_build, _opendir2): Use new opendirat to avoid the need for
22329         dirfd, or for checking whether dirfd returns a negative value.
22330         Don't use opendir; always use openat followed by fdopendir.
22331         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22332         it.
22333         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22334         returns -1 here.
22335         * modules/fts (Depends-on): Remove dirfd.
22336         * modules/getcwd (Depends-on): Likewise.
22337
22338 2010-09-13  Eric Blake  <eblake@redhat.com>
22339
22340         float: fix broken MirBSD header
22341         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22342         * doc/posix-headers/float.texi (float.h): Document it.
22343
22344 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22345
22346         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22347         * lib/fts.c (opendirat): New arg extra_flags.
22348         (__opendir2): Use it to avoid following symlinks when opening
22349         a directory, if symlinks are not supposed to be followed.  See
22350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22351
22352         fdopendir: preserve argument fd before returning
22353         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22354         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22355         (fdopendir): Use them, arranging for FD to be open to the same
22356         directory that it was when it started.  (It might be temporarily
22357         closed while fdopendir is running, so this not thread- or
22358         signal-safe.)  Be careful to do the right thing even when file
22359         descriptors are scarce and dup fails with errno == EMFILE.  See
22360         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22361
22362 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22363
22364         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22365         * NEWS: Document change.
22366         * m4/regex.m4: Disable test for regoff_t size.
22367
22368 2010-09-13  Jim Meyering  <meyering@redhat.com>
22369
22370         fts: don't operate on an invalid file descriptor after failed dup
22371         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22372         negative file descriptor.
22373
22374 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22375
22376         savedir: add streamsavedir, deprecate fdsavedir
22377         * NEWS: Mention deprecation of fdsavedir.
22378         * lib/savedir.c (streamsavedir): New extern function, whose name
22379         ends in "savedir" to be consistent with the others.  This differs
22380         from savedirstream in that it doesn't close its argument.  The
22381         next version of GNU tar will use this instead of fdsavedir, to
22382         avoid some race conditions and conserve file descriptors.
22383         (savedirstream): Reimplement as a wrapper around streamsavedir.
22384         (fdsavedir): Add a comment deprecating this function.  As far as
22385         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22386         * lib/savedir.h (streamsavedir): New decl.
22387         (fdsavedir): Add a comment deprecating this.
22388
22389 2010-09-10  Bruno Haible  <bruno@clisp.org>
22390
22391         langinfo: Fix last commit.
22392         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22393         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22395
22396 2010-09-10  Bruno Haible  <bruno@clisp.org>
22397
22398         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22399         * lib/progreloc.c (O_EXEC): Define fallback.
22400
22401 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22402
22403         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22404         * NEWS: Document recent changes to fcntl-h.
22405         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22406         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22407         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22408         Similarly for O_SEARCH; this last was already true, but not documented.
22409         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22410         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22411         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22412         Likewise.
22413         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22414         is zero, not whether it is defined.
22415         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22416         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22417         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22418
22419 2010-09-10  Bruno Haible  <bruno@clisp.org>
22420
22421         langinfo, nl_langinfo: Fix for IRIX 5.3.
22422         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22423         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22424         HAVE_LANGINFO_YESEXPR.
22425         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22426         HAVE_LANGINFO_YESEXPR.
22427         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22428         HAVE_LANGINFO_T_FMT_AMPM is 0.
22429         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22430         HAVE_LANGINFO_YESEXPR is 0.
22431         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22432         NOEXPR.
22433         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22434         * doc/posix-functions/nl_langinfo.texi: Likewise.
22435         Reported by Eric Blake.
22436
22437 2010-09-10  Bruno Haible  <bruno@clisp.org>
22438
22439         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22440         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22441         on FreeBSD 8.0 and OpenBSD 4.6.
22442         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22443         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22444         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22445         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22446         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22447         ac_includes_default.
22448         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22449
22450 2010-09-09  Eric Blake  <eblake@redhat.com>
22451
22452         strsignal: work around NetBSD bug
22453         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22454         * lib/string.in.h (includes): Likewise.
22455         * doc/posix-functions/strsignal.texi (strsignal): Document the
22456         bug.
22457         Reported by Nelson H. F. Beebe.
22458
22459         gnulib-tool: work with NetBSD /bin/sh
22460         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22461         (func_get_description, func_get_comment, func_get_status)
22462         (func_get_notice, func_get_applicability, func_get_filelist)
22463         (func_get_dependencies, func_get_autoconf_early_snippet)
22464         (func_get_autoconf_snippet, func_get_automake_snippet)
22465         (func_get_include_directive, func_get_link_directive)
22466         (func_get_license, func_get_maintainer, func_import): Avoid
22467         shell syntax errors from parsing syntax extensions.
22468
22469 2010-09-09  Bruno Haible  <bruno@clisp.org>
22470
22471         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22472         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22473         a reliable way to determine whether the 'alias' command works.
22474
22475 2010-09-08  Jim Meyering  <meyering@redhat.com>
22476
22477         init.sh: penalize a set-x-impaired shell; don't disqualify it
22478         * tests/init.sh: Too many shells corrupt application stderr when
22479         you set -x, so we can't afford to disqualify them, since at least
22480         on Irix-6.5, that would disqualify all bourne shells.
22481         Instead, use a two-pass approach.
22482         On the first pass, try to find a shell that meets the stricter
22483         condition that set -x does not corrupt stderr.
22484         If no shell meets the stricter condition, retest each candidate
22485         shell, but without that extra condition.  Finally, when
22486         VERBOSE=yes is requested and set -x might cause trouble, simply
22487         issue a warning and refrain from enabling debug output.
22488
22489 2010-09-08  Eric Blake  <eblake@redhat.com>
22490
22491         unsetenv: fix OpenBSD bug
22492         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22493         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22494         documentation.
22495         Reported by Jim Meyering.
22496
22497         strtod: work around IRIX 6.5 bug
22498         * lib/strtod.c (strtod): Reparse number on shorter string if
22499         exponent parse was invalid.
22500         * tests/test-strtod.c (main): Add check for "0x1p 2".
22501         Reported by Tom G. Christensen.
22502
22503         getopt: optimize previous patch
22504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22505         empty variable.  Speed up awk script.
22506         Reported by Paolo Bonzini.
22507
22508 2010-09-08  Jim Meyering  <meyering@redhat.com>
22509
22510         test.sh: disqualify shells for which set -x corrupts stderr
22511         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22512         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22513         appear in stderr output.  For example, this command:
22514             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22515         prints "P=1" on those two systems:
22516
22517 2010-09-08  Bruno Haible  <bruno@clisp.org>
22518
22519         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22520         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22521         commands, because some shells ignore redirections when there is an
22522         error in the command lookup.
22523         Reported by Eric Blake.
22524
22525 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22526
22527         * lib/regex.h: Fix a mention of `regex_compile' (should be
22528         `re_compile_pattern').
22529         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22530         (re_set_registers): Correct name of parameter in comment.
22531
22532         * doc/regex.texi: Add documentation for missing syntax flags.
22533         Remove commented-out documentation of defunct syntax option
22534         RE_NO_EMPTY_ALTS.
22535         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22536         Add documentation of re_set_registers.
22537         Document trick to re-use a pattern buffer by setting fastmap manually.
22538         Update documentation of struct re_pattern_buffer per public members.
22539         Uncomment documentation of equivalence class operators and
22540         collating symbol operators, since they are now implemented,
22541         Explain leftmost-longest matching in relation to alternatives.
22542         Tidy documentation of substring matching.
22543         Remove POSIX documentation, which is done better in
22544         glibc, and refer the reader there. Keep BSD API documentation, as
22545         that is not readily available elsewhere.
22546
22547 2010-09-07  Eric Blake  <eblake@redhat.com>
22548
22549         getopt: handle POSIXLY_CORRECT set but not exported
22550         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22551         export state of POSIXLY_CORRECT, due to bash set -o posix.
22552         Reported by Dustin J. Mitchell.
22553
22554 2010-09-05  Bruno Haible  <bruno@clisp.org>
22555
22556         gnulib-tool: Highlight the changed options.
22557         * gnulib-tool (func_usage): Display the --import, --add-import,
22558         --remove-import explanations in bold font.
22559
22560 2010-09-06  Karl Berry  <karl@gnu.org>
22561
22562         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22563
22564 2010-09-05  Bruno Haible  <bruno@clisp.org>
22565
22566         uniwidth/width: Update comment.
22567         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22568         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22569
22570 2010-09-05  Bruno Haible  <bruno@clisp.org>
22571
22572         isinf, isnan: Relax license.
22573         * modules/isinf (License): Change from GPL to LGPL, with consent from
22574         Ben Pfaff.
22575         * modules/isnan (License): Likewise.
22576         Requested by Ludovic Courtès.
22577
22578 2010-09-04  Bruno Haible  <bruno@clisp.org>
22579
22580         gnulib-tool: Help migration from --import to --add-import or --update.
22581         * gnulib-tool: Emit a verbose error message when --import is used
22582         without any module name.
22583
22584 2010-09-04  Bruno Haible  <bruno@clisp.org>
22585
22586         Update doc about gnulib-tool.
22587         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22588         'gnulib-tool --update' in more detail.
22589         Reported by Eric Blake.
22590
22591 2010-09-04  Bruno Haible  <bruno@clisp.org>
22592
22593         gnulib-tool: Change --import. New options --add/remove-import.
22594         * gnulib-tool: New options --add-import, --remove-import.
22595         (func_usage): Document them.
22596         (have_associative): Define always.
22597         (func_import): In import mode, don't merge the specified settings with
22598         the cached settings. Implement remove-import mode.
22599         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22600         Explain when to use them versus --import.
22601         (Simple update): Use --add-import instead of --import.
22602         * NEWS: Mention the change.
22603
22604 2010-09-04  Bruno Haible  <bruno@clisp.org>
22605
22606         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22607         separate gnulib.mk.
22608
22609 2010-09-04  Bruno Haible  <bruno@clisp.org>
22610
22611         gnulib-tool: Don't talk about CVS any more.
22612         * gnulib-tool (func_usage, func_import): Write "version control"
22613         instead of CVS.
22614
22615 2010-09-04  Jim Meyering  <meyering@redhat.com>
22616
22617         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22618         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22619         false positives (whose names may be ill-chosen) when searching
22620         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22621         would cause a false-positive.
22622
22623         avoid coreutils "make distcheck" failure
22624         Coreutils tests with an absolute build directory name that contains
22625         a space.  Not quoting this directory name caused a failure.
22626         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22627         * tests/test-vc-list-files-cvs.sh: Likewise.
22628
22629 2010-09-04  Bruno Haible  <bruno@clisp.org>
22630
22631         gnulib-tool: Avoid error when run in a package without Makefile.am.
22632         * gnulib-tool: When collecting the m4dirs in a package that does not
22633         have a Makefile.am, eliminate those directories that contain no
22634         gnulib-cache.m4. Fix expression that counts these directories.
22635
22636 2010-09-04  Bruno Haible  <bruno@clisp.org>
22637
22638         update-copyright test: Improve output when perl is missing or too old.
22639         * tests/test-update-copyright.sh: Move test of Perl version down after
22640         the test whether Perl exists. Provide an explanation relating Perl's
22641         error message to Automake's SKIP: message.
22642
22643 2010-09-04  Bruno Haible  <bruno@clisp.org>
22644
22645         Don't augment PATH in TESTS_ENVIRONMENT.
22646         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22647         set abs_aux_dir instead of augmenting PATH.
22648         * modules/vc-list-files-tests (Makefile.am): Likewise.
22649         * tests/test-update-copyright.sh: Augment PATH here.
22650         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22651         path_prepend_.
22652         * tests/test-vc-list-files-git.sh: Likewise.
22653
22654 2010-09-04  Jim Meyering  <meyering@redhat.com>
22655
22656         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22657         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22658
22659 2010-09-04  Bruno Haible  <bruno@clisp.org>
22660
22661         strdup: Fix compilation error in C++ mode.
22662         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22663         the macro.
22664
22665 2010-09-04  Bruno Haible  <bruno@clisp.org>
22666
22667         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22668         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22669         macro into a function.
22670         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22671
22672 2010-09-04  Bruno Haible  <bruno@clisp.org>
22673
22674         Set PATH_SEPARATOR the same way autoconf does.
22675         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22676         the value of PATH_SEPARATOR the same way autoconf-generated configure
22677         scripts do.
22678         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22679         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22680
22681 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22682
22683         Set PATH_SEPARATOR the same way autoconf does.
22684         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22685         the same way autoconf-generated configure scripts do.
22686         * posix-modules: Likewise.
22687
22688 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22689
22690         hash: fix safe_hasher const typo
22691         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22692         const; otherwise, there is a type error later.
22693
22694 2010-09-02  Jim Meyering  <meyering@redhat.com>
22695
22696         test-update-copyright.sh: require perl 5.8.0
22697         * tests/test-update-copyright.sh: Require 5.8.0,
22698         which Tom G. Christensen has confirmed is adequate,
22699         while 5.6.1 is not.
22700
22701 2010-09-02  Eric Blake  <eblake@redhat.com>
22702
22703         tests: init.sh improvements for re-exec'ing with zsh
22704         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
22705         -vx through shell re-exec.
22706         Reported by Tom G. Christensen.
22707
22708         wctype: fix typo in previous commit
22709         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
22710         Reported by Ludovic Courtès.
22711
22712 2010-09-02  Jim Meyering  <meyering@redhat.com>
22713
22714         test-update-copyright.sh: skip test if Perl is too old
22715         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
22716         Reported by Tom G. Christensen.
22717
22718 2010-09-02  Bruno Haible  <bruno@clisp.org>
22719
22720         wctype: Avoid compilation error on IRIX 6.5.30.
22721         * lib/wctype.in.h (iswblank): Declare with a replacement if
22722         REPLACE_ISWBLANK is set.
22723         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
22724         declared. Set REPLACE_ISWBLANK.
22725         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
22726         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
22727         * doc/posix-headers/wctype.texi: Likewise.
22728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22729
22730 2010-09-01  Bruno Haible  <bruno@clisp.org>
22731
22732         New module 'socketlib'.
22733         * modules/socketlib: New file.
22734         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
22735         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
22736         * modules/sockets (Depends-on): Add socketlib.
22737         Suggested by Sam Steingold <sds@gnu.org>.
22738
22739 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22740
22741         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
22742
22743         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
22744         when one needs search access to a directory but not read access.
22745         On systems where it is available, it works in some cases where
22746         O_RDONLY does not, namely on directories that are searchable but
22747         not readable, and which need only to be searchable.  If O_SEARCH
22748         is not available, fall back to the traditional method of using
22749         O_RDONLY.
22750
22751         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
22752         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
22753         when opening a directory that needs only to be searchable.
22754         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22755         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22756         * lib/openat-proc.c (openat_proc_name): Likewise.
22757         * lib/openat.c (openat_needs_fchdir): Likewise.
22758         * lib/save-cwd.c (save_cwd): Likewise.
22759         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22760
22761 2010-08-28  Bruno Haible  <bruno@clisp.org>
22762
22763         New module 'host-cpu-c-abi'.
22764         * modules/host-cpu-c-abi: New file.
22765         * m4/host-cpu-c-abi.m4: New file, based on part of
22766         clisp/src/m4/general.m4.
22767         Requested by Sam Steingold <sds@gnu.org>.
22768
22769 2010-08-31  Eric Blake  <eblake@redhat.com>
22770         and Jim Meyering  <meyering@redhat.com>
22771
22772         hash: factor, and guard against misbehaving hasher function
22773         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
22774         of table->hasher's return value.  Also protect against a hash value
22775         so large that adding it to table->bucket results in a NULL pointer.
22776         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
22777         Use it in place of open-coded check-and-abort.
22778
22779 2010-08-30  Bruno Haible  <bruno@clisp.org>
22780
22781         hash: silence spurious clang warning
22782         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22783         Reported by Eric Blake.
22784
22785 2010-08-30  Eric Blake  <eblake@redhat.com>
22786
22787         strstr, memmem, strcasestr: avoid leaked shell message
22788         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22789         FreeBSD.
22790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22791         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22792
22793         tests: silence clang warning
22794         * tests/test-malloca.c (do_allocation): Avoid dead store.
22795
22796 2010-08-29  Bruno Haible  <bruno@clisp.org>
22797
22798         gettext: Fix recent mistake.
22799         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22800
22801 2010-08-29  Bruno Haible  <bruno@clisp.org>
22802
22803         selinux-h: Offer a --without-selinux option.
22804         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22805         --without-selinux was specified, skip all tests and define
22806         HAVE_SELINUX_SELINUX_H to 0.
22807         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22808         set LIB_SELINUX to empty.
22809         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22810         gl_LIBSELINUX. If --without-selinux was specified, replace
22811         selinux/context.h.
22812         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22813
22814 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22815             Bruno Haible  <bruno@clisp.org>
22816
22817         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22818         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22819         of HAVE_REALLOC.
22820         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22821         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22822         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22823         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22824
22825 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22826             Bruno Haible  <bruno@clisp.org>
22827
22828         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22829         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22830         HAVE_CALLOC.
22831         * lib/xmalloc.c: Update accordingly.
22832         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22833         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22834         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22835
22836 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22837             Bruno Haible  <bruno@clisp.org>
22838
22839         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22840         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22841         HAVE_MALLOC.
22842         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22843         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22844         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22845
22846 2010-08-29  Bruno Haible  <bruno@clisp.org>
22847
22848         Update modules list.
22849         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22850         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22851         (String handling <string.h>): Add astrxfrm.
22852         (File system functions): Add readlinkat.
22853
22854 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22855
22856         Tests for module 'realloc-gnu'.
22857         * modules/realloc-gnu-tests: New file.
22858         * tests/test-realloc-gnu.c: New file.
22859
22860         Tests for module 'calloc-gnu'.
22861         * modules/calloc-gnu-tests: New file.
22862         * tests/test-calloc-gnu.c: New file.
22863
22864         Tests for module 'malloc-gnu'.
22865         * modules/malloc-gnu-tests: New file.
22866         * tests/test-malloc-gnu.c: New file.
22867
22868 2010-08-28  Bruno Haible  <bruno@clisp.org>
22869
22870         Rename module 'realloc' -> 'realloc-gnu'.
22871         * modules/realloc-gnu: New file, copied from modules/realloc.
22872         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22873         obsolete.
22874         * modules/mgetgroups (Depends-on): Update.
22875         * doc/posix-functions/realloc.texi: Update.
22876         * NEWS: Mention the change.
22877
22878         Rename module 'calloc' -> 'calloc-gnu'.
22879         * modules/calloc-gnu: New file, copied from modules/calloc.
22880         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22881         obsolete.
22882         * doc/posix-functions/calloc.texi: Update.
22883         * NEWS: Mention the change.
22884
22885         Rename module 'malloc' -> 'malloc-gnu'.
22886         * modules/malloc-gnu: New file, copied from modules/malloc.
22887         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22888         obsolete.
22889         * modules/argp (Depends-on): Update.
22890         * modules/regex (Depends-on): Update.
22891         * doc/posix-functions/malloc.texi: Update.
22892         * NEWS: Mention the change.
22893
22894 2010-08-28  Eric Blake  <eblake@redhat.com>
22895
22896         pread, pwrite: add missing dependency
22897         * modules/pread (Depends-on): Add extensions.
22898         * modules/pwrite (Depends-on): Likewise.
22899
22900 2010-08-28  Bruno Haible  <bruno@clisp.org>
22901
22902         unistr/u*-strchr: Fix tests dependencies.
22903         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22904         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22905         Reported by Ian Beckwith <ianb@erislabs.net>.
22906
22907 2010-08-28  Bruno Haible  <bruno@clisp.org>
22908
22909         read-file: Don't occupy too much unused memory.
22910         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22911
22912 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22913             Eric Blake  <eblake@redhat.com>
22914             Bruno Haible  <bruno@clisp.org>
22915
22916         read-file: Avoid memory reallocations with regular files.
22917         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22918         (fread_file): With regular files, use the remaining length as the
22919         initial buffer size.  Check against overflow.
22920         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22921         sys_stat.
22922
22923 2010-08-28  Bruno Haible  <bruno@clisp.org>
22924
22925         ftello: Relax license.
22926         * modules/ftello (License): Relax to LGPLv2+.
22927         Reported by Eric Blake.
22928
22929 2010-08-28  Bruno Haible  <bruno@clisp.org>
22930
22931         Avoid relocwrapper link errors due to gnulib replacement functions.
22932         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22933         function.
22934         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22935
22936 2010-08-28  Bruno Haible  <bruno@clisp.org>
22937
22938         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22939         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22940         defined.
22941         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22942         Suggested by Eric Blake.
22943
22944 2010-08-28  Bruno Haible  <bruno@clisp.org>
22945
22946         sys_socket, netdb: Ensure socklen_t gets defined.
22947         * modules/sys_socket (Depends-on): Add socklen.
22948         * modules/netdb (Depends-on): Likewise.
22949         * modules/getaddrinfo (Depends-on): Remove socklen.
22950         * modules/getsockopt (Depends-on): Likewise.
22951         * modules/setsockopt (Depends-on): Likewise.
22952         * tests/test-sys_socket.c: Check that socklen_t is defined.
22953         * tests/test-netdb.c: Likewise.
22954         * m4/socklen.m4: Update comments.
22955         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22956
22957 2010-08-27  Eric Blake  <eblake@redhat.com>
22958
22959         login_tty: add missing dependency
22960         * modules/login_tty (Depends-on): Add pty.
22961
22962 2010-08-26  Eric Blake  <eblake@redhat.com>
22963
22964         lib-symbol-versions: fix m4 quoting
22965         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22966         format for AC_LINK_IFELSE.
22967
22968         glob: fix compile test
22969         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22970
22971         btowc: fix missing file
22972         * modules/btowc (Files): Also ship locale-fr.m4.
22973
22974         lseek: fix link test
22975         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22976         AC_LINK_IFELSE.
22977
22978         include_next: silence autoconf 2.68 warning
22979         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22980         AC_COMPILE_IFELSE as special.
22981         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22982         autoconf < 2.68.
22983
22984         acl: fix compilation test
22985         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22986         AC_COMPILE_IFELSE.
22987
22988 2010-08-26  Bruno Haible  <bruno@clisp.org>
22989
22990         Modernize AC_TRY_RUN invocations.
22991         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22992         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22993         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22994         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22995         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22996         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22997         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22998         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22999         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23000         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23001         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23002         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23003         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23004         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23005         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23006         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23007         gl_MBRLEN_NUL_RETVAL): Likewise.
23008         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23009         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23010         Likewise.
23011         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23012         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23013         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23014         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23015         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23016         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23017         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23018         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23019         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23020         Likewise.
23021         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23022         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23023         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23024         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23025         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23026         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23027         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23028         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23029         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23031
23032 2010-08-26  Bruno Haible  <bruno@clisp.org>
23033
23034         Modernize AC_TRY_LINK invocations.
23035         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23036         AC_TRY_LINK.
23037         * m4/argp.m4 (gl_ARGP): Likewise.
23038         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23039         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23040         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23041         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23042         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23043         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23044         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23045         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23046         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23047         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23048         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23049         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23050         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23051         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23052         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23053         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23054         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23055         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23056         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23057         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23058         Likewise.
23059         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23060         Likewise.
23061         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23062         Likewise.
23063         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23064         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23065         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23066         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23067         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23068         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23069         * m4/servent.m4 (gl_SERVENT): Likewise.
23070         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23071         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23072         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23073         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23074         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23075         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23076         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23077         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23078         * modules/tsearch-tests (configure.ac): Likewise.
23079
23080 2010-08-26  Bruno Haible  <bruno@clisp.org>
23081
23082         Modernize AC_TRY_COMPILE invocations.
23083         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23084         AC_TRY_COMPILE.
23085         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23086         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23087         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23088         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23089         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23090         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23091         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23092         * m4/lock.m4 (gl_LOCK): Likewise.
23093         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23094         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23095         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23096         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23097         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23098         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23099         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23100         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23101         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23102         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23103         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23104         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23105         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23106         extraneous semicolon.
23107
23108 2010-08-26  Jim Meyering  <meyering@redhat.com>
23109
23110         stat-time: relax license LGPL
23111         * modules/stat-time (License): Change from GPL to LGPL,
23112         with consent from all contributors, for use in libguile.
23113         Requested by Ludovic Courtès.
23114
23115 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23116
23117         poll: return immediately on POLLHUP.
23118         * lib/poll.c (poll): Always set timeout before wait_timeout is
23119         computed.
23120
23121 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23122
23123         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23124         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23125         rmdir ("dir/.//"), unlinkat.
23126
23127 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23128
23129         stdbool: avoid spurious failure with modern xlc
23130         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23131
23132 2010-08-24  Bruno Haible  <bruno@clisp.org>
23133
23134         getloadavg: simplify code
23135         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23136         gl_have_func. Update comments.
23137
23138 2010-08-24  Eric Blake  <eblake@redhat.com>
23139
23140         getloadavg: don't define SVR4 on cygwin
23141         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23142         only define SVR4 when -lkvm is required.
23143         Reported by Yaakov Selkowitz.
23144
23145 2010-08-24  Bruno Haible  <bruno@clisp.org>
23146
23147         priv-set: fix comment
23148         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23149
23150 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23151
23152         priv-set: fix comments
23153         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23154         to match code, as suggested by David Bartley in:
23155         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23156
23157 2010-08-23  Eric Blake  <eblake@redhat.com>
23158
23159         stdbool: avoid rejecting clang
23160         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23161         * tests/test-stdbool.c: Enable more tests if using the system
23162         <stdbool.h> instead of the gnulib replacement.
23163         (main): Move xlc bug test to a runtime test for all compilers.
23164         Reported by Anders Kaseorg.
23165
23166         argz: fix shell quoting issue
23167         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23168         Reported by Charles Wilson.
23169
23170 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23171             Erik Faye-Lund <kusmabite@gmail.com>
23172
23173         poll, select: handle ERROR_BROKEN_PIPE.
23174         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23175         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23176         * lib/select.c (win32_compute_revents): Do not mark a pipe
23177         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23178
23179 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23180
23181         fts: allow compilation with C++
23182         * lib/fts_.h: Specify extern "C" linkage with C++.
23183
23184 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23185
23186         Fix gnulib-tool sed script de-commentation for AIX sed.
23187         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23188         sed.
23189
23190 2010-08-17  Eric Blake  <eblake@redhat.com>
23191
23192         test-stddef: test for (some) offsetof bugs
23193         * tests/test-stddef.c: Enhance test to ensure correct type of
23194         offsetof.
23195         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23196         that we are not fixing at this time.
23197
23198 2010-08-15  Bruno Haible  <bruno@clisp.org>
23199
23200         stpncpy: Allow stpncpy to be defined as a macro.
23201         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23202         if it's already correctly declared.
23203         * lib/string.in.h (stpncpy): Undefine before redefining.
23204         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23205
23206 2010-08-14  Bruno Haible  <bruno@clisp.org>
23207
23208         Rename module 'memxfrm' to 'amemxfrm'.
23209         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23210         (amemxfrm): Renamed from memxfrm.
23211         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23212         (amemxfrm): Renamed from memxfrm.
23213         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23214         * NEWS: Mention the change.
23215         * MODULES.html.sh (String handling <string.h>): Update.
23216         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23217         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23218         * lib/unicase/u16-casexfrm.c: Likewise.
23219         * lib/unicase/u32-casexfrm.c: Likewise.
23220         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23221         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23222         * lib/uninorm/u16-normxfrm.c: Likewise.
23223         * lib/uninorm/u32-normxfrm.c: Likewise.
23224         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23225         memxfrm.
23226         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23227         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23228         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23229         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23230         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23231         Suggested by Paul Eggert.
23232
23233 2010-08-14  Bruno Haible  <bruno@clisp.org>
23234
23235         Tests for module 'astrxfrm'.
23236         * modules/astrxfrm-tests: New file.
23237         * tests/test-astrxfrm.c: New file.
23238
23239         New module 'astrxfrm'.
23240         * lib/astrxfrm.h: New file.
23241         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23242         * modules/astrxfrm: New file.
23243
23244 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23245
23246         regex: Tweak doc.
23247         * doc/regex.texi (Overview): Don't mention regex.c.
23248         (GNU Regular Expression Compiling): Likewise.
23249         (Match-end-of-line Operator): Mention 'not_eol'.
23250
23251 2010-08-14  Brian Gough  <bjg@gnu.org>
23252             Bruno Haible  <bruno@clisp.org>
23253
23254         git-merge-changelog: add doc relating to use with bzr and hg.
23255         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23256
23257 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23258
23259         pthread: fix pthread.h creation for srcdir != builddir
23260         * modules/pthread (Makefile.am): Fix the rule to work also in a
23261         non-srcdir build.
23262
23263 2010-08-13  Karl Berry  <karl@gnu.org>
23264
23265         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23266         * doc/posix-*/*: force line break before @url of POSIX
23267         specifications.
23268         Suggested by Werner Lemberg.
23269
23270 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23271
23272         strtod: fix const diagnostic
23273         * lib/strtod.c (strtod): Don't assign const char * to char *,
23274         as this elicits a warning from GCC when warnings are enabled.
23275
23276 2010-08-10  Pádraig Brady <P@draigbrady.com>
23277         and Eric Blake  <eblake@redhat.com>
23278
23279         copy-acl: ignore ENOTSUP on HP-UX
23280         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23281         so that it is available for HP-UX.
23282         * lib/copy-acl.c (qcopy_acl): Use it.
23283         Reported by Patrick M. Callahan.
23284
23285 2010-08-10  Eric Blake  <eblake@redhat.com>
23286
23287         open, chown: relax license
23288         * modules/open (License): Change to LGPLv2+, with consent by all
23289         authors, for use in augeas.
23290         * modules/chown (License): Likewise.
23291         * modules/lchown (Likewise): Likewise.
23292         Requested by Adam Stokes.
23293
23294 2010-08-09  Karl Berry  <karl@gnu.org>
23295
23296         * build-aux/ar-lib: new file, import from Automake.
23297         * config/srclist.txt: autocheck for updates.
23298
23299 2010-08-09  Eric Blake  <eblake@redhat.com>
23300
23301         readlinkat: adjust client modules
23302         * modules/areadlinkat (Depends-on): Use readlinkat, not
23303         symlinkat.
23304         * modules/areadlinkat-with-size (Depends-on): Likewise.
23305
23306         mknod: be more vocal about danger of running tests as root
23307         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23308         root, since that is just asking for problems.
23309         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23310
23311         readlinkat: split into its own module
23312         * modules/symlinkat: Split readlinkat...
23313         * modules/readlinkat: ...into separate module.
23314         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23315         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23316         * lib/symlinkat.c (readlinkat): Move...
23317         * lib/readlinkat.c: ...into new file.
23318         * modules/symlinkat-tests: Split readlinkat test...
23319         * modules/readlinkat-tests: ...into separate module.
23320         * tests/test-symlinkat.c: Split...
23321         * tests/test-readlinkat.c: ...into new file.
23322         * NEWS: Document the split.
23323         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23324         * lib/unistd.in.h (readlinkat): Likewise.
23325         Suggested by Bruno Haible.
23326
23327 2010-08-08  Bruno Haible  <bruno@clisp.org>
23328
23329         memxfrm: Speed up.
23330         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23331         that usually only one call to strxfrm is necessary for each string
23332         part.
23333         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23334
23335 2010-08-07  Karl Berry  <karl@gnu.org>
23336
23337         * doc/posix-headers/limits.texi,
23338         * doc/posix-functions/malloc.texi,
23339         * doc/posix-functions/strsignal.texi: missing @item.
23340         * doc/ld-version-script.texi: spurious leading i.
23341         * doc/regex.texi (Interval Operators): no commas inside @var.
23342
23343 2010-08-01  Bruno Haible  <bruno@clisp.org>
23344
23345         Integrate the regex documentation.
23346         * doc/gnulib.texi: Define 'cn' index.
23347         (Regular expressions): New a chapter that includes regex.texi and
23348         regexprops-generic.texi.
23349         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23350         syntax.
23351
23352         Whitespace cleanup.
23353         * doc/regex.texi: Remove trailing spaces.
23354
23355         Add regex documentation.
23356         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23357         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23358         Written by Kathy A. Hargreaves and Karl Berry.
23359
23360 2010-08-01  Bruno Haible  <bruno@clisp.org>
23361
23362         link: Update documentation.
23363         * doc/posix-functions/link.texi: Update regarding Solaris.
23364
23365 2010-07-31  Bruno Haible  <bruno@clisp.org>
23366
23367         Update modules list.
23368         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23369         (String handling <string.h>): Add memcmp2, memxfrm.
23370         (Container data structures): Add xlist, xsublist, xoset.
23371         (Core language properties): Add alignof, unused-parameter.
23372         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23373         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23374         (Unibyte characters <ctype.h>): New section.
23375         (String handling <string.h>): New section.
23376         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23377         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23378         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23379         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23380         tan, tanh, tanl, y0, y1, yn.
23381         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23382         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23383         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23384         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23385         unlockpt, vdprintf, vdprintf-posix.
23386         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23387         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23388         xconcat-filename.
23389         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23390         getdtablesize, pipe2, pipe2-safer.
23391         (Security): New section.
23392         (Networking functions): Add accept4.
23393         (Signal handling): Add sigpipe.
23394         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23395         mbmemcasecoll.
23396         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23397         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23398         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23399         pipe-filter-ii.
23400         (Misc): Add argp-version-etc, login_tty, parse-duration.
23401
23402 2010-07-31  Bruno Haible  <bruno@clisp.org>
23403
23404         Improve doc in MODULES.html.
23405         * modules/linkat (Description): Add the word "function".
23406         * modules/mkfifo (Description): Likewise.
23407         * modules/mknod (Description): Likewise.
23408         * modules/remove (Description): Likewise.
23409         * modules/renameat (Description): Likewise.
23410         * modules/stat (Description): Likewise.
23411         * modules/symlink (Description): Likewise.
23412         * modules/unlink (Description): Likewise.
23413
23414 2010-07-31  Bruno Haible  <bruno@clisp.org>
23415
23416         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23417         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23418         option --enable/disable-c++ instead of --enable/disable-cxx.
23419         * NEWS: Mention the change.
23420
23421 2010-07-31  Bruno Haible  <bruno@clisp.org>
23422
23423         readlink, areadlink: Relax test a bit.
23424         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23425         alternative to ENOTDIR.
23426         * tests/test-areadlink.h (test_areadlink): Likewise.
23427         Reported by Rainer Tammer.
23428
23429 2010-07-31  Bruno Haible  <bruno@clisp.org>
23430
23431         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23432         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23433         character, perform the search using U_STRCHR.
23434         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23435         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23436         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23437         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23438         Suggested by Paolo Bonzini.
23439
23440 2010-07-31  Bruno Haible  <bruno@clisp.org>
23441
23442         unistr/u*-strstr: Fix dependencies.
23443         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23444         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23445         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23446
23447 2010-07-31  Bruno Haible  <bruno@clisp.org>
23448
23449         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23450         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23451         the beginning of the loop.
23452         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23453         cases in 'switch' statement.
23454
23455         unistr/u8-strchr: Fix several bugs.
23456         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23457         the string. When not found, return NULL, not a pointer near the end.
23458
23459         More tests for unistr/u8-strchr.
23460         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23461         that the function does not read past the first occurrence of the byte
23462         being searched.
23463         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23464         * tests/unistr/test-u16-strchr.c (main): New function.
23465         * tests/unistr/test-u32-strchr.c (main): New function.
23466
23467 2010-07-31  Bruno Haible  <bruno@clisp.org>
23468
23469         posix-modules: Ignore backup files of documentation files.
23470         * posix-modules: grep only through files named *.texi.
23471
23472 2010-07-31  Bruno Haible  <bruno@clisp.org>
23473
23474         symlinkat: Fix documentation.
23475         * doc/posix-functions/readlinkat.texi: Fix module name.
23476
23477 2010-07-31  Bruno Haible  <bruno@clisp.org>
23478
23479         fchownat: Replace also when chown has the trailing slash bug.
23480         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23481         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23482         introduced on 2010-04-10.
23483         Reported by Rainer Tammer.
23484
23485 2010-07-31  Bruno Haible  <bruno@clisp.org>
23486
23487         linkat: Work around AIX 7.1 bug.
23488         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23489         whether linkat handles trailing slash correctly. If not, replace linkat
23490         and define LINKAT_TRAILING_SLASH_BUG.
23491         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23492         check whether (fd1,file1) points to a directory if file1 or file2 ends
23493         in a slash. Code taken from lib/link.c.
23494         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23495         Reported by Rainer Tammer.
23496
23497 2010-07-31  Bruno Haible  <bruno@clisp.org>
23498
23499         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23500         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23501         This disables an xlc optimization that was causing wrong test results.
23502         Reported by Rainer Tammer.
23503
23504 2010-07-31  Bruno Haible  <bruno@clisp.org>
23505
23506         iconv: Work around AIX 6.1..7.1 bug.
23507         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23508         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23509         cross-compiling, guess no on all versions of AIX.
23510         Reported by Rainer Tammer.
23511
23512 2010-07-31  Bruno Haible  <bruno@clisp.org>
23513
23514         readlink: Relax test a bit.
23515         * tests/test-readlink.h (test_readlink): Allow different errno value
23516         when readlink is called with a file name that ends in / and refers to
23517         a file.
23518         Suggested by Eric Blake.
23519         Reported by Rainer Tammer.
23520
23521 2010-07-31  Bruno Haible  <bruno@clisp.org>
23522
23523         copysign: Does not require -lm on glibc systems.
23524         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23525         gl_COMMON_DOUBLE_MATHFUNC.
23526         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23527
23528 2010-07-31  Bruno Haible  <bruno@clisp.org>
23529
23530         duplocale: Work around AIX 7.1 bug.
23531         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23532         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23533         * lib/duplocale.c (rpl_duplocale): Update comment.
23534         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23535         Reported by Rainer Tammer.
23536
23537 2010-07-30  Bruno Haible  <bruno@clisp.org>
23538
23539         dirfd: Avoid link error on AIX 7.1.
23540         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23541         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23542         exist, set REPLACE_DIRFD.
23543         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23544         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23545         * doc/posix-functions/dirfd.texi: Update.
23546         Reported by Rainer Tammer.
23547
23548 2010-07-30  Eric Blake  <eblake@redhat.com>
23549
23550         strtod: next round of AIX fixes
23551         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23552         exponent.
23553         * tests/test-strtod.c (main): Enhance tests.
23554         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23555         Reported by Rainer Tammer.
23556
23557         futimens: fix configure check
23558         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23559         Reported by Bruno Haible.
23560
23561 2010-07-30  Bruno Haible  <bruno@clisp.org>
23562
23563         getline: Update regarding AIX.
23564         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23565         Reported by Rainer Tammer.
23566
23567 2010-07-30  Bruno Haible  <bruno@clisp.org>
23568
23569         wcwidth: Drop replacement on AIX 7.
23570         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23571         AIX 7.
23572         Reported by Rainer Tammer.
23573
23574 2010-07-30  Bruno Haible  <bruno@clisp.org>
23575
23576         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23577         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23578         a 'char *'.
23579         Reported by Rainer Tammer.
23580
23581 2010-07-30  Bruno Haible  <bruno@clisp.org>
23582
23583         unlink: Update regarding AIX.
23584         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23585         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23586         Reported by Rainer Tammer.
23587
23588 2010-07-30  Bruno Haible  <bruno@clisp.org>
23589
23590         symlink: Update regarding AIX.
23591         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23592         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23593         Reported by Rainer Tammer.
23594
23595 2010-07-30  Bruno Haible  <bruno@clisp.org>
23596
23597         strndup: Update regarding AIX.
23598         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23599         AIX 7.
23600         Reported by Rainer Tammer.
23601
23602 2010-07-30  Bruno Haible  <bruno@clisp.org>
23603
23604         stat: Update regarding AIX.
23605         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23606         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23607         Reported by Rainer Tammer.
23608
23609 2010-07-30  Bruno Haible  <bruno@clisp.org>
23610
23611         truncl: Fix autoconf test.
23612         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23613         whether truncl works.
23614         Reported by Rainer Tammer.
23615
23616 2010-07-30  Bruno Haible  <bruno@clisp.org>
23617
23618         round: Update regarding AIX.
23619         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23620         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23621         Reported by Rainer Tammer.
23622
23623 2010-07-30  Bruno Haible  <bruno@clisp.org>
23624
23625         rename: Update regarding AIX.
23626         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23627         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23628         Reported by Rainer Tammer.
23629
23630 2010-07-30  Bruno Haible  <bruno@clisp.org>
23631
23632         printf.m4: Update regarding AIX.
23633         * m4/printf.m4: Update comments regarding AIX.
23634         Reported by Rainer Tammer.
23635
23636 2010-07-30  Bruno Haible  <bruno@clisp.org>
23637
23638         iconv: Update regarding AIX.
23639         * m4/iconv.m4 (AM_ICONV_LINK): 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         getopt: Update regarding AIX.
23646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23647         no on AIX.
23648         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23649         Reported by Rainer Tammer.
23650
23651 2010-07-30  Bruno Haible  <bruno@clisp.org>
23652
23653         ldexpl; Update regarding AIX.
23654         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23655         on AIX 7.
23656         Reported by Rainer Tammer.
23657
23658 2010-07-30  Bruno Haible  <bruno@clisp.org>
23659
23660         frexpl: Update regarding AIX.
23661         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23662         on AIX 7.
23663         Reported by Rainer Tammer.
23664
23665 2010-07-30  Bruno Haible  <bruno@clisp.org>
23666
23667         open, fopen: Update regarding AIX.
23668         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23669         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23670         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23671         * doc/posix-functions/fopen.texi: Likewise.
23672         Reported by Rainer Tammer.
23673
23674 2010-07-30  Bruno Haible  <bruno@clisp.org>
23675
23676         chown: Update doc regarding AIX.
23677         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23678         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23679         Reported by Rainer Tammer.
23680
23681 2010-07-30  Eric Blake  <eblake@redhat.com>
23682
23683         strtod: fix bug in replacement function on AIX
23684         * lib/strtod.c (strtod): Special case broken "0x" parse in
23685         underlying strtod.
23686         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23687         * doc/posix-functions/strtod.texi (strtod): Likewise.
23688         Reported by Rainer Tammer.
23689
23690 2010-07-30  Bruno Haible  <bruno@clisp.org>
23691
23692         mbrlen: Fix cross-compilation guess for AIX.
23693         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23694         guess. Leftover from 2008-12-22.
23695
23696 2010-07-30  Bruno Haible  <bruno@clisp.org>
23697
23698         mbrtowc: Fix cross-compilation guess for AIX.
23699         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
23700         guess. Leftover from 2008-12-21.
23701
23702 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
23703
23704         init.sh: work around trap limitation of some shells
23705         * tests/init.sh (setup_): Move exit trap outside of shell function.
23706
23707 2010-07-29  Eric Blake  <eblake@redhat.com>
23708
23709         strtod: aid debugging
23710         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
23711         understanding why strtod is rejected.
23712
23713 2010-07-28  Bruno Haible  <bruno@clisp.org>
23714
23715         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
23716         * lib/unistr/u8-chr.c: Include <string.h>.
23717         * tests/unistr/test-u8-chr.c: Likewise.
23718         * tests/unistr/test-u16-chr.c: Likewise.
23719         * tests/unistr/test-u32-chr.c: Likewise.
23720         * tests/unistr/test-u8-strchr.c: Likewise.
23721         * tests/unistr/test-u16-strchr.c: Likewise.
23722         * tests/unistr/test-u32-strchr.c: Likewise.
23723         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
23724         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
23725         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
23726         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
23727
23728 2010-07-28  Bruno Haible  <bruno@clisp.org>
23729
23730         Use spaces for indentation, not tabs.
23731         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23732
23733 2010-07-27  Bruno Haible  <bruno@clisp.org>
23734
23735         mbspcasecmp: Fix function specification.
23736         * lib/string.in.h (mbspcasecmp): Fix specification comment.
23737         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
23738         Reported by Eric Blake <eblake@redhat.com>.
23739
23740 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
23741
23742         timespec: use cast and not conditional, as truncation isn't possible
23743         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
23744         instead of a conditional.  Comment about the situation in more detail.
23745         This undoes most of the 2009-10-29 patch.
23746
23747 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
23748
23749         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
23750         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
23751         * lib/unistr/u8-strchr.c: Likewise.
23752         * modules/unistr/u8-chr: Depend on memchr.
23753
23754         unistr/u*-strchr: add tests
23755         * modules/unistr/u8-strchr-tests: New file.
23756         * modules/unistr/u16-strchr-tests: New file.
23757         * modules/unistr/u32-strchr-tests: New file.
23758         * tests/unistr/test-strchr.h: New file.
23759         * tests/unistr/test-u8-strchr.c: New file.
23760         * tests/unistr/test-u16-strchr.c: New file.
23761         * tests/unistr/test-u32-strchr.c: New file.
23762
23763         unistr/u*-chr: test multibyte sequences more
23764         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23765         test vector.
23766         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23767         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23768         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23769
23770         unistr/u*-chr: test multibyte sequences
23771         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
23772
23773         unistr/u*-chr: prepare for multibyte tests
23774         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
23775         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
23776         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
23777         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23778         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23779         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23780
23781 2010-07-18  Bruno Haible  <bruno@clisp.org>
23782
23783         unistr/u8-strchr: Optimize non-ASCII argument case.
23784         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23785         because the first byte often matches anyway.
23786         Reported by Pádraig Brady <P@draigbrady.com>.
23787
23788 2010-07-15  Karl Berry  <karl@gnu.org>
23789
23790         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23791
23792 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23793
23794         getcwd: on Solaris, work better if ancestors are inaccessible
23795         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23796         buffer and size, try again with a large buffer.  This works better
23797         on Solaris, since its getcwd succeeds even if the path to the root
23798         is inaccessible, and this is helpful in common cases such as .zfs
23799         hidden directories.  Problem reported by J Chapman Flack in
23800         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23801         Use system getcwd if it's declared, not merely if it's partly
23802         working; use the partly-working test only to avoid needless effort
23803         if the system getcwd fails.
23804         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23805         comment that was already obsolete and is now even more obsolete.
23806         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23807         now might call strdup.
23808
23809 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23810
23811         pthread: Add enough so that coreutils/src/sort.c compiles.
23812         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23813         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23814         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23815         Include <sys/types.h>, in case it defines pthread_t.
23816         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23817         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23818         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23819         (pthread_rwlockattr_t, pthread_spinlock_t):
23820         New typedefs, if HAVE_PTHREAD_T is not defined.
23821         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23822         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23823         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23824         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23825         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23826         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23827         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23828         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23829         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23830         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23831         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23832         New macros.
23833         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23834         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23835         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23836         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23837         (pthread_spin_unlock): New dummy functions.
23838         (pthread_create): Return EAGAIN; don't set errno.
23839         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23840         require AC_C_INLINE.
23841         * modules/pthread (Depends-on): Add sched, time.
23842         (pthread.h): Use AM_V_GEN.
23843
23844 2010-07-13  Bruno Haible  <bruno@clisp.org>
23845
23846         striconveh: Don't malloc memory if the result buffer is sufficient.
23847         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23848         buffer if its size is sufficient.
23849         Reported by Ludovic Courtès <ludo@gnu.org>.
23850
23851 2010-07-13  Bruno Haible  <bruno@clisp.org>
23852
23853         strtod: Add safety check.
23854         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23855
23856 2010-07-12  Bruno Haible  <bruno@clisp.org>
23857
23858         Unify tests that set gl_cv_func_ldexpl_no_libm.
23859         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23860         gl_FUNC_LDEXPL.
23861         (gl_FUNC_LDEXPL): Invoke it.
23862         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23863
23864 2010-07-12  Bruno Haible  <bruno@clisp.org>
23865
23866         Unify tests that set gl_cv_func_ldexp_no_libm.
23867         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23868         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23869         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23870         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23871         * modules/strtod (Files): Add m4/ldexp.m4.
23872
23873 2010-07-12  Bruno Haible  <bruno@clisp.org>
23874
23875         Unify tests that set gl_cv_func_frexpl_no_libm.
23876         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23877         gl_FUNC_FREXPL_NO_LIBM.
23878         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23879         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23880
23881 2010-07-12  Bruno Haible  <bruno@clisp.org>
23882
23883         Unify tests that set gl_cv_func_frexp_no_libm.
23884         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23885         gl_FUNC_FREXP_NO_LIBM.
23886         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23887         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23888
23889 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23890
23891         memcoll: clarify sizes versus lengths, document better, and tweak perf
23892         * lib/memcoll.c (strcoll_loop, memcoll0):
23893         Improve quality of descriptive comments.  Name variables
23894         consistently as to whether they are lengths (which do not include
23895         terminating null) versus sizes (which do).
23896         * lib/xmemcoll.c (xmemcoll0): Likewise.
23897         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23898         returned when s1size == 0; this is easier to compile and saves
23899         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23900
23901 2010-07-12  Bruno Haible  <bruno@clisp.org>
23902
23903         Tests for module '_Exit'.
23904         * modules/_Exit-tests: New file.
23905         * tests/test-_Exit.sh: New file.
23906         * tests/test-_Exit.c: New file.
23907
23908         New module '_Exit'.
23909         * lib/stdlib.in.h (__attribute__): New macro.
23910         (_Exit): New declaration.
23911         * lib/_Exit.c: New file.
23912         * m4/_Exit.m4: New file.
23913         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23914         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23915         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23916         * modules/_Exit: New file.
23917         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23918         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23919
23920 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23921
23922         strtod: make it more-accurate typically, and don't require libm
23923         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23924         Include limits.h.  Don't include string.h.
23925         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23926         (locale_isspace): New function, so that no casts are needed to
23927         check whether *s is a space.
23928         (ldexp): Provide an unused dummy if not available.
23929         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23930         (strtod): Use them.  This implementation prefers to use the
23931         underlying strtod if available, falling back on our own code
23932         only to fix known bugs.  This is more likely to produce an
23933         accurate result.  Also, it avoids the use of libm functions.
23934         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23935         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23936         was absent, but it caused a test failure with coreutils.
23937         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23938         with libm.
23939         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23940         * modules/strtod-tests (Makefile.am): Likewise.
23941
23942 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23943             Bruno Haible  <bruno@clisp.org>
23944
23945         unistr/u8-strchr: Optimize ASCII argument case.
23946         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23947
23948 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23949
23950         (x)memcoll: minor tweaks
23951         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23952         is after the type that it qualifies.
23953         (memcoll0): Likewise.
23954         * lib/memcoll.h (memcoll0): Likewise.
23955         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23956         * lib/xmemcoll.h (xmemcoll0): Likewise.
23957         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23958         differs from memcoll in that the NUL byte is part of the argument.
23959         Omit the abort-checks, as performance is a real issue here.  Plus,
23960         the checks were wrong anyway (an off-by-one error).  Omit local
23961         variable 'diff', as it's a bit clearer that way.
23962         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23963         no longer needed.
23964
23965 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23966
23967         (x)memcoll: speedup when input is known to be NUL delimited
23968         * lib/memcoll.c: Include stdlib.
23969         (memcoll0): New function.
23970         (strcoll_loop): New function, refactored for use in both memcoll
23971         and memcoll0.
23972         * lib/memcoll.h (memcoll0): Add prototype.
23973         * lib/xmemcoll.c (xmemcoll0): New function.
23974         (collate_error): New function, refactored for use in both xmemcoll
23975         and xmemcoll0.
23976         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23977         * m4/memcoll.m4: add inline invocation.
23978
23979 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23980
23981         * build-aux/bootstrap: Remove any local translations
23982         from the translation project synchronization directory,
23983         so that local only translations are not distributed.
23984
23985 2010-07-04  Bruno Haible  <bruno@clisp.org>
23986
23987         fsusage: Clarify which code applies to which platforms.
23988         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23989         platform.
23990         * lib/fsusage.c (get_fs_usage): Likewise.
23991
23992 2010-07-04  Bruno Haible  <bruno@clisp.org>
23993
23994         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23995         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23996         Reported by Martin Lambers <marlam@marlam.de>.
23997
23998 2010-07-04  Jim Meyering  <meyering@redhat.com>
23999
24000         hash: once again explicitly disallow insertion of NULL
24001         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24002         inserting a NULL pointer cannot work with these functions.
24003         Add a comment with details.
24004         This reverts part of the 2010-07-01 commit, 5bef1a35
24005         "hash: extend module to deal with non-pointer keys".
24006
24007 2010-07-01  Bruno Haible  <bruno@clisp.org>
24008
24009         stdbool: Update doc.
24010         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24011         Info from Christian Weisgerber <naddy@mips.inka.de>.
24012
24013 2010-07-01  Jim Meyering  <meyering@redhat.com>
24014
24015         hash: extend module to deal with non-pointer keys
24016         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24017         but that allows insertion of non-pointer entries.
24018         Do not disallow an ENTRY value of NULL.
24019         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24020         * lib/hash.h (hash_insert0): Declare.
24021
24022 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24023
24024         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24025         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24026         not present (i.e. with autoconf 2.59 and when using gettextize, not
24027         gnulib), require AC_GNU_SOURCE instead.
24028
24029 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24030
24031         idpriv-drop: Fix tests.
24032         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24033         not to the test-idpriv-droptemp program.
24034
24035 2010-06-29  Bruno Haible  <bruno@clisp.org>
24036
24037         string: Fix syntax error with g++ 2.96.
24038         * lib/string.in.h (__pure__): Remove definition.
24039         (_GL_ATTRIBUTE_PURE): New macro.
24040         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24041         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24042         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24043
24044 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24045
24046         unitypes: Fix bug introduced on 2010-05-18.
24047         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24048
24049 2010-06-22  Eric Blake  <eblake@redhat.com>
24050
24051         memmem: slight optimization
24052         * lib/str-two-way.h (critical_factorization): Update comments.
24053         Reduce work during factorization phase.
24054         Reported by Carlos Bueno <carlos@bueno.org>.
24055
24056 2010-06-21  Bruno Haible  <bruno@clisp.org>
24057
24058         Fix HAVE_CALLOC_POSIX misnomer.
24059         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24060         !HAVE_CALLOC_POSIX.
24061         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24062         HAVE_CALLOC_POSIX.
24063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24064         instead of HAVE_CALLOC_POSIX.
24065         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24066         HAVE_CALLOC_POSIX.
24067
24068         Use modern idiom for calloc() replacement.
24069         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24070         AC_FUNC_CALLOC.
24071         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24072         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24073         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24074         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24075         (gl_REPLACE_CALLOC): New macro.
24076
24077 2010-06-21  Bruno Haible  <bruno@clisp.org>
24078
24079         Fix HAVE_REALLOC_POSIX misnomer.
24080         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24081         !HAVE_REALLOC_POSIX.
24082         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24083         HAVE_REALLOC_POSIX.
24084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24085         instead of HAVE_REALLOC_POSIX.
24086         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24087         HAVE_REALLOC_POSIX.
24088
24089         Use modern idiom for realloc() replacement.
24090         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24091         AC_FUNC_REALLOC.
24092         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24093         Autoconf's AC_FUNC_REALLOC.
24094         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24095         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24096         (gl_REPLACE_REALLOC): New macro.
24097         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24098
24099 2010-06-21  Bruno Haible  <bruno@clisp.org>
24100
24101         Fix HAVE_MALLOC_POSIX misnomer.
24102         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24103         !HAVE_MALLOC_POSIX.
24104         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24105         HAVE_MALLOC_POSIX.
24106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24107         instead of HAVE_MALLOC_POSIX.
24108         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24109         HAVE_MALLOC_POSIX.
24110
24111         Use modern idiom for malloc() replacement.
24112         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24113         AC_FUNC_MALLOC.
24114         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24115         Autoconf's AC_FUNC_MALLOC.
24116         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24117         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24118         (gl_REPLACE_MALLOC): New macro.
24119         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24120
24121 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24122
24123         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24124         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24125         This macro takes 3 arguments, not 4.
24126
24127 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24128
24129         ipv6: fix detection under mingw
24130         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24131         in6_addr.
24132
24133 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24134
24135         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24136         that strtod() works when cross-compiling to a glibc version known
24137         to work.
24138
24139 2010-06-15  Bruno Haible  <bruno@clisp.org>
24140
24141         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24142
24143 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24144
24145         select: Correct timeout.
24146         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24147
24148 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24149
24150         git-version-gen: init shell var to avoid env var influence
24151         * build-aux/git-version-gen (v): Init shell var to empty.
24152
24153 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24154
24155         priv-set: Don't assume that priv.h exists merely because getppriv does.
24156         See Jan Andersen's bug report about AIX 5L in
24157         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24158         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24159         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24160         * lib/priv-set.h: Likewise.
24161         * tests/test-priv-set.c: Likewise.
24162
24163 2010-06-13  Bruno Haible  <bruno@clisp.org>
24164
24165         relocatable: Make it easier to test whether to install wrappers.
24166         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24167         RELOCATABLE_VIA_WRAPPER.
24168
24169 2010-06-13  Bruno Haible  <bruno@clisp.org>
24170
24171         gnulib-tool: Display specified modules and dependencies differently.
24172         * gnulib-tool (func_show_module_list): New function.
24173         (func_import, func_create_testdir): Invoke it.
24174         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24175
24176 2010-06-13  Bruno Haible  <bruno@clisp.org>
24177
24178         gnulib-tool: Align code of func_import and func_create_testdir.
24179         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24180         specified_modules.
24181
24182 2010-06-12  Jim Meyering  <meyering@redhat.com>
24183
24184         test-inttostr: avoid spurious failure on Solaris 9
24185         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24186         to accept "%ju".  Reported by Bruno Haible.
24187
24188 2010-06-11  Jim Meyering  <meyering@redhat.com>
24189
24190         test-sys_socket: mark variables as used more readably
24191         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24192         as "used" explicitly via (void) statement casts.  This is more
24193         readable than using them in an artificial return expression.
24194         Suggestion from Bruno Haible.
24195
24196 2010-06-11  Bruno Haible  <bruno@clisp.org>
24197
24198         Avoid some more warnings from "gcc -Wwrite-strings".
24199         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24200         to 'const char *'.
24201         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24202         * tests/test-c-strcasestr.c (main): Likewise.
24203         * tests/test-mbscasestr1.c (main): Likewise.
24204         * tests/test-mbscasestr2.c (main): Likewise.
24205         * tests/test-memmem.c (main): Likewise.
24206         * tests/test-strstr.c (main): Likewise.
24207         * tests/test-strcasestr.c (main): Likewise.
24208
24209 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24210
24211         init.sh: change framework_failure_ to fail with status 99, not 1
24212         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24213         automake's parallel-tests rule that this is an unexpected failure,
24214         even if the test is listed in XFAIL_TESTS.
24215
24216 2010-06-11  Jim Meyering  <meyering@redhat.com>
24217
24218         test-inttostr: avoid warnings about 4-6KB literal strings
24219         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24220         Include "macros.h", for its definition of ASSERT.
24221         (CK): s/assert/ASSERT/
24222         * modules/inttostr-tests (Files): Add macros.h.
24223
24224         init.sh: don't use $ME_ or skip_ before they are defined
24225         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24226         their first uses.  Also hoist their companions: warn_, fail_,
24227         framework_failure_, $stderr_fileno.  Prompted by a patch from
24228         Stefano Lattarini.
24229
24230         test-sys_socket: avoid set-but-not-used warnings from gcc
24231         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24232         avoid warning about set-but-not-used variables.
24233
24234         test-xvasprintf: avoid 'const' discard warnings
24235         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24236         "const" when assigning from literal strings.
24237         (test_xasprintf): Add "void" in function argument list to placate
24238         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24239
24240         tests: avoid compilation warnings in argmatch and exclude tests...
24241         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24242         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24243         Since it always exits, declare with the "noreturn" attribute.
24244         * tests/test-argmatch.c: Likewise.
24245
24246         tests: avoid 'const' discard warnings in mbsstr tests
24247         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24248         * tests/test-mbsstr2.c (main): Likewise.
24249
24250         test-verify: avoid warning from gcc's -Wmissing-declarations
24251         * tests/test-verify.c (function): Declare to be static.
24252
24253         test-inttostr.c: include <string.h> for use of strcmp
24254         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24255
24256         test-linkat: avoid failed assertion on "other" architectures
24257         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24258         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24259         sparc: https://bugs.launchpad.net/bugs/591968
24260
24261 2010-06-11  Jim Meyering  <meyering@redhat.com>
24262
24263         printf.m4: avoid autoconf's "Expanded Before Required" warning
24264         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24265         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24266         autoconf warning.
24267
24268 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24269
24270         Replacement header templates are now named with ".in", not "_".
24271         * doc/gnulib-intro.texi: Correct.
24272
24273 2010-06-10  Jim Meyering  <meyering@redhat.com>
24274
24275         inttostr-tests: depend on snprintf, not snprintf-posix
24276         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24277         snprintf-posix, to avoid this aclocal failure:
24278           missing file gnulib-tests/vasnprintf.c
24279           configure.ac:45: error: expected source file, required through \
24280           AC_LIBSOURCES, not found
24281
24282 2010-06-10  Jim Meyering  <meyering@redhat.com>
24283
24284         inttostr: add a new function, inttostr, and tests
24285         The namesake function was not available.  The existence of the
24286         template file, inttostr.c makes its addition nontrivial.
24287         * lib/anytostr.c: Rename from inttostr.c.
24288         (anytostr): Rename from inttostr.
24289         * lib/inttostr.c: New file.
24290         * modules/inttostr (Files): Add anytostr.c.
24291         (Makefile.am): Set lib_SOURCES instead of ...
24292         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24293         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24294         * lib/offtostr.c: Likewise.
24295         * lib/uinttostr.c: Likewise.
24296         * lib/umaxtostr.c: Likewise.
24297         * modules/inttostr-tests: New file.
24298         * tests/test-inttostr.c: New file.  Test these functions.
24299
24300 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24301             Bruno Haible  <bruno@clisp.org>
24302
24303         Add "Extending Gnulib" chapter to manual.
24304         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24305         chapter.
24306         (Extending Gnulib): New chapter.
24307         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24308         chapter.
24309
24310 2010-06-09  Bruno Haible  <bruno@clisp.org>
24311
24312         Avoid relocwrapper link errors due to gnulib replacement functions.
24313         * lib/areadlink.c: Use the system's malloc, realloc functions.
24314         (areadlink): Set errno to ENOMEM explicitly.
24315         * modules/areadlink (Depends-on): Remove malloc-posix.
24316         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24317
24318 2010-06-09  Bruno Haible  <bruno@clisp.org>
24319
24320         Avoid relocwrapper link errors due to gnulib replacement functions.
24321         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24322         * lib/malloca.c: Likewise.
24323         * lib/relocatable.c: Likewise.
24324         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24325         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24326         * lib/setenv.c: Use the system's malloc, realloc functions.
24327         * lib/strerror.c: Use the system's sprintf function.
24328         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24329
24330 2010-06-04  Bruno Haible  <bruno@clisp.org>
24331
24332         Prefer documented low-level autoconf macro names.
24333         * m4/lib-link.m4: Use m4_translit instead of translit.
24334         * m4/environ.m4: Likewise.
24335         * m4/mathfunc.m4: Likewise.
24336         * m4/onceonly.m4: Likewise.
24337         * m4/stdint.m4: Likewise.
24338         Suggested by Eric Blake.
24339
24340 2010-06-04  Martin Lambers  <marlam@marlam.de>
24341             Bruno Haible  <bruno@clisp.org>
24342
24343         havelib: Allow library names with '+' characters.
24344         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24345         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24346
24347 2010-06-09  Bruno Haible  <bruno@clisp.org>
24348
24349         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24350         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24351         realloc failed.
24352
24353 2010-06-08  Peter Simons  <simons@cryp.to>
24354
24355         maint.mk: make the news-check rule more configurable
24356         * top/maint.mk (news-check-lines-spec): New variable.
24357         (news-check): Use "sed -n 1,10p" in place of "head".
24358
24359 2010-06-07  Jim Meyering  <meyering@redhat.com>
24360
24361         do-release-commit-and-tag: fix typo in --help
24362         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24363
24364         regex: avoid new dead-code warning with gcc-4.6.0
24365         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24366         if-block containing a while-loop.  It's been unused for at least
24367         5 years.
24368
24369 2010-06-05  Bruno Haible  <bruno@clisp.org>
24370
24371         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24372         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24373
24374 2010-06-04  Bruno Haible  <bruno@clisp.org>
24375
24376         Update to GNU gettext 0.18.1.
24377         * modules/gettext (configure.ac): Require gettext infrastructure from
24378         version 0.18.1.
24379
24380 2010-06-03  Bruno Haible  <bruno@clisp.org>
24381
24382         Don't use AC_LIBOBJ with file names in subdirectories.
24383         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24384         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24385         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24386         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24387         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24388         gl_LIBUNISTRING_LIBSOURCE.
24389         (Makefile.am): Augment lib_SOURCES here, conditionally.
24390         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24391
24392 2010-06-03  Bruno Haible  <bruno@clisp.org>
24393
24394         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24395         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24396         expansion does not end with a newline.
24397         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24398         unnecessary newline.
24399
24400 2010-06-03  Bruno Haible  <bruno@clisp.org>
24401
24402         Reduce dependencies.
24403         * tests/test-quotearg.h: New file, extracted from
24404         tests/test-quotearg.c.
24405         * tests/test-quotearg-simple.c: New file, extracted from
24406         tests/test-quotearg.c.
24407         * tests/test-quotearg.c: Don't include <ctype.h>.
24408         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24409         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24410         use_quote_double_quotes, use_quotearg_colon): Moved to
24411         tests/test-quotearg.h.
24412         (results_g, flag_results, custom_quotes, custom_results): Moved
24413         to tests/test-quotearg-simple.c.
24414         (main): Moved the part that does not depend on gettext to
24415         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24416         performed.
24417         * modules/quotearg-simple: New file.
24418         * modules/quotearg-simple-tests: New file.
24419         * modules/quotearg (Depends-on): Add quotearg-simple.
24420         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24421         (Files): Add tests/test-quotearg.h.
24422         Reported by Paolo Bonzini.
24423
24424 2010-06-03  Bruno Haible  <bruno@clisp.org>
24425
24426         Reduce dependencies.
24427         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24428
24429 2010-06-03  Bruno Haible  <bruno@clisp.org>
24430
24431         time: Undefine more broken macros.
24432         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24433         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24434         Reported by Eric Blake.
24435
24436 2010-06-03  Bruno Haible  <bruno@clisp.org>
24437
24438         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24439         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24440         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24441         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24442         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24443         Reported by Ludovic Courtès <ludo@gnu.org>.
24444
24445 2010-06-02  Eric Blake  <eblake@redhat.com>
24446
24447         time: work with mingw + pthreads-win32 library
24448         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24449         if timespec is defined only in pthread.h.
24450         * modules/time (Makefile.am): Substitute it.
24451         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24452         <pthread.h>, when needed.
24453         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24454         from the library.
24455
24456 2010-05-31  Bruno Haible  <bruno@clisp.org>
24457
24458         Avoid expanding two macros in the wrong order.
24459         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24460         gl_LIBUNISTRING if it is defined.
24461         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24462         autoconf >= 2.64.
24463         Reported by Ludovic Courtès <ludo@gnu.org>.
24464
24465 2010-05-27  Jim Meyering  <meyering@redhat.com>
24466
24467         maint.mk: also prohibit "#undef" of always-defined symbols
24468         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24469         Allow more than one space before the symbol name.
24470         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24471         the regexp uses alternation.
24472
24473 2010-05-26  Eric Blake  <eblake@redhat.com>
24474
24475         maint.mk: avoid echo -e
24476         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24477         Convert all uses of echo -* to printf.
24478         Reported by Matthias Bolte.
24479
24480 2010-05-25  Bruno Haible  <bruno@clisp.org>
24481
24482         Update to GNU gettext 0.18, part 2.
24483         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24484         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24485
24486 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24487
24488         Add missing include in test-pwrite.c.
24489         * tests/test-pwrite.c: Include string.h, for strcmp.
24490
24491 2010-05-24  Bruno Haible  <bruno@clisp.org>
24492
24493         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24494
24495 2010-05-24  Bruno Haible  <bruno@clisp.org>
24496
24497         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24498         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24499         iconveh_error argument.
24500         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24501         U_STRCONV_TO_LOCALE.
24502         * lib/unistr/u16-strcoll.c: Likewise.
24503         * lib/unistr/u32-strcoll.c: Likewise.
24504         * modules/unistr/u8-strcoll (Depends-on): Add
24505         uniconv/u8-strconv-to-enc, localcharset. Remove
24506         uniconv/u8-strconv-to-locale.
24507         (configure.ac): Bump version number.
24508         * modules/unistr/u16-strcoll (Depends-on): Add
24509         uniconv/u16-strconv-to-enc, localcharset. Remove
24510         uniconv/u16-strconv-to-locale.
24511         (configure.ac): Bump version number.
24512         * modules/unistr/u32-strcoll (Depends-on): Add
24513         uniconv/u32-strconv-to-enc, localcharset. Remove
24514         uniconv/u32-strconv-to-locale.
24515         (configure.ac): Bump version number.
24516
24517 2010-05-24  Bruno Haible  <bruno@clisp.org>
24518
24519         Avoid a test failure on NetBSD 5.0.
24520         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24521         an iconv() bug.
24522
24523 2010-05-24  Bruno Haible  <bruno@clisp.org>
24524
24525         Adjust #include directive style.
24526         * modules/regex (Includes): Recommend to write <regex.h>.
24527
24528 2010-05-24  Bruno Haible  <bruno@clisp.org>
24529
24530         regex: Don't require alloca.
24531         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24532         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24533         only inside if (0).
24534
24535 2010-05-23  Jim Meyering  <meyering@redhat.com>
24536
24537         test-renameat.c: include <sys/stat.h>
24538         * tests/test-renameat.c: Include <sys/stat.h>; required for
24539         definition of S_IS* macros.
24540
24541 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24542
24543         Update maintainer documentation for 'relocatable-prog' module.
24544         * doc/relocatable-maint.texi: Update.
24545         Comments by Bruno Haible.
24546
24547 2010-05-23  Bruno Haible  <bruno@clisp.org>
24548
24549         git-merge-changelog: Enable --split-merged-entry by default.
24550         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24551         (usage): Don't mention this option any more.
24552         Reported by Ralf Wildenhues.
24553
24554 2010-05-23  Jim Meyering  <meyering@redhat.com>
24555
24556         test-pwrite: do not leave behind a test file named "out"
24557         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24558         The trivial-looking use of init.sh is really necessary.
24559         It ensures that the temporary file, "out", is created in
24560         a temporary directory, and removed upon termination.
24561         * tests/test-pwrite.sh: Re-add file.
24562         * modules/pwrite-tests: Reference it.
24563
24564 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24565
24566         Fix output redirection buglet in init.sh.
24567         * tests/init.sh: Fix redirection of stderr.
24568
24569 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24570
24571         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24572
24573 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24574
24575         * modules/valgrind-tests: New file.
24576         * m4/valgrind-tests.m4: New file.
24577         * doc/valgrind-tests.texi: New file.
24578         * doc/gnulib.texi (Running self-tests under valgrind): New
24579         section.
24580
24581 2010-05-19  Bruno Haible  <bruno@clisp.org>
24582
24583         Clean up dead code in recent commit.
24584         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24585         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24586         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24587         Suggested by Paolo Bonzini.
24588
24589 2010-05-19  Bruno Haible  <bruno@clisp.org>
24590
24591         Avoid valgrind error reports from libunistring.
24592         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24593         * modules/libunistring (Files): Add it.
24594         * modules/libunistring-optional (Files): Likewise.
24595
24596 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24597             Bruno Haible  <bruno@clisp.org>
24598
24599         New module 'libunistring-optional'.
24600         * modules/libunistring-optional: New file.
24601         * m4/libunistring-base.m4: New file.
24602         * m4/libunistring-optional.m4: New file.
24603         * lib/unicase.in.h: Renamed from lib/unicase.h.
24604         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24605         * lib/unictype.in.h: Renamed from lib/unictype.h.
24606         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24607         * lib/uniname.in.h: Renamed from lib/uniname.h.
24608         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24609         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24610         * lib/unistr.in.h: Renamed from lib/unistr.h.
24611         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24612         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24613         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24614         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24615         gl_LIBUNISTRING. If the library was found, determine the installed
24616         version and set LIBUNISTRING_VERSION.
24617         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24618         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24619         handle a configuration option --with-included-libunistring.
24620         * modules/libunistring (Files): Add m4/absolute-header.m4.
24621         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24622         Add m4/libunistring-base.m4.
24623         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24624         (Makefile.am): Build unicase.h from unicase.in.h.
24625         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24626         Add m4/libunistring-base.m4.
24627         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24628         (Makefile.am): Build uniconv.h from uniconv.in.h.
24629         * modules/unictype/base (Files): Use unictype.in.h instead of
24630         unictype.h. Add m4/libunistring-base.m4.
24631         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24632         (Makefile.am): Build unictype.h from unictype.in.h.
24633         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24634         Add m4/libunistring-base.m4.
24635         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24636         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24637         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24638         Add m4/libunistring-base.m4.
24639         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24640         (Makefile.am): Build uniname.h from uniname.in.h.
24641         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24642         Add m4/libunistring-base.m4.
24643         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24644         (Makefile.am): Build uninorm.h from uninorm.in.h.
24645         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24646         unistdio.h. Add m4/libunistring-base.m4.
24647         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24648         (Makefile.am): Build unistdio.h from unistdio.in.h.
24649         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24650         Add m4/libunistring-base.m4.
24651         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24652         (Makefile.am): Build unistr.h from unistr.in.h.
24653         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24654         Add m4/libunistring-base.m4.
24655         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24656         (Makefile.am): Build unitypes.h from unitypes.in.h.
24657         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24658         Add m4/libunistring-base.m4.
24659         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24660         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24661         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24662         uniwidth.h. Add m4/libunistring-base.m4.
24663         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24664         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24665         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24666         instead of augmenting lib_SOURCES.
24667         * modules/unicase/empty-suffix-context: Likewise.
24668         * modules/unicase/locale-language: Likewise.
24669         * modules/unicase/tolower: Likewise.
24670         * modules/unicase/totitle: Likewise.
24671         * modules/unicase/toupper: Likewise.
24672         * modules/unicase/u8-casecmp: Likewise.
24673         * modules/unicase/u8-casecoll: Likewise.
24674         * modules/unicase/u8-casefold: Likewise.
24675         * modules/unicase/u8-casexfrm: Likewise.
24676         * modules/unicase/u8-ct-casefold: Likewise.
24677         * modules/unicase/u8-ct-tolower: Likewise.
24678         * modules/unicase/u8-ct-totitle: Likewise.
24679         * modules/unicase/u8-ct-toupper: Likewise.
24680         * modules/unicase/u8-is-cased: Likewise.
24681         * modules/unicase/u8-is-casefolded: Likewise.
24682         * modules/unicase/u8-is-lowercase: Likewise.
24683         * modules/unicase/u8-is-titlecase: Likewise.
24684         * modules/unicase/u8-is-uppercase: Likewise.
24685         * modules/unicase/u8-prefix-context: Likewise.
24686         * modules/unicase/u8-suffix-context: Likewise.
24687         * modules/unicase/u8-tolower: Likewise.
24688         * modules/unicase/u8-totitle: Likewise.
24689         * modules/unicase/u8-toupper: Likewise.
24690         * modules/unicase/u16-casecmp: Likewise.
24691         * modules/unicase/u16-casecoll: Likewise.
24692         * modules/unicase/u16-casefold: Likewise.
24693         * modules/unicase/u16-casexfrm: Likewise.
24694         * modules/unicase/u16-ct-casefold: Likewise.
24695         * modules/unicase/u16-ct-tolower: Likewise.
24696         * modules/unicase/u16-ct-totitle: Likewise.
24697         * modules/unicase/u16-ct-toupper: Likewise.
24698         * modules/unicase/u16-is-cased: Likewise.
24699         * modules/unicase/u16-is-casefolded: Likewise.
24700         * modules/unicase/u16-is-lowercase: Likewise.
24701         * modules/unicase/u16-is-titlecase: Likewise.
24702         * modules/unicase/u16-is-uppercase: Likewise.
24703         * modules/unicase/u16-prefix-context: Likewise.
24704         * modules/unicase/u16-suffix-context: Likewise.
24705         * modules/unicase/u16-tolower: Likewise.
24706         * modules/unicase/u16-totitle: Likewise.
24707         * modules/unicase/u16-toupper: Likewise.
24708         * modules/unicase/u32-casecmp: Likewise.
24709         * modules/unicase/u32-casecoll: Likewise.
24710         * modules/unicase/u32-casefold: Likewise.
24711         * modules/unicase/u32-casexfrm: Likewise.
24712         * modules/unicase/u32-ct-casefold: Likewise.
24713         * modules/unicase/u32-ct-tolower: Likewise.
24714         * modules/unicase/u32-ct-totitle: Likewise.
24715         * modules/unicase/u32-ct-toupper: Likewise.
24716         * modules/unicase/u32-is-cased: Likewise.
24717         * modules/unicase/u32-is-casefolded: Likewise.
24718         * modules/unicase/u32-is-lowercase: Likewise.
24719         * modules/unicase/u32-is-titlecase: Likewise.
24720         * modules/unicase/u32-is-uppercase: Likewise.
24721         * modules/unicase/u32-prefix-context: Likewise.
24722         * modules/unicase/u32-suffix-context: Likewise.
24723         * modules/unicase/u32-tolower: Likewise.
24724         * modules/unicase/u32-totitle: Likewise.
24725         * modules/unicase/u32-toupper: Likewise.
24726         * modules/unicase/ulc-casecmp: Likewise.
24727         * modules/unicase/ulc-casecoll: Likewise.
24728         * modules/unicase/ulc-casexfrm: Likewise.
24729         * modules/uniconv/u8-conv-from-enc: Likewise.
24730         * modules/uniconv/u8-conv-to-enc: Likewise.
24731         * modules/uniconv/u8-strconv-from-enc: Likewise.
24732         * modules/uniconv/u8-strconv-from-locale: Likewise.
24733         * modules/uniconv/u8-strconv-to-enc: Likewise.
24734         * modules/uniconv/u8-strconv-to-locale: Likewise.
24735         * modules/uniconv/u16-conv-from-enc: Likewise.
24736         * modules/uniconv/u16-conv-to-enc: Likewise.
24737         * modules/uniconv/u16-strconv-from-enc: Likewise.
24738         * modules/uniconv/u16-strconv-from-locale: Likewise.
24739         * modules/uniconv/u16-strconv-to-enc: Likewise.
24740         * modules/uniconv/u16-strconv-to-locale: Likewise.
24741         * modules/uniconv/u32-conv-from-enc: Likewise.
24742         * modules/uniconv/u32-conv-to-enc: Likewise.
24743         * modules/uniconv/u32-strconv-from-enc: Likewise.
24744         * modules/uniconv/u32-strconv-from-locale: Likewise.
24745         * modules/uniconv/u32-strconv-to-enc: Likewise.
24746         * modules/uniconv/u32-strconv-to-locale: Likewise.
24747         * modules/unictype/bidicategory-byname: Likewise.
24748         * modules/unictype/bidicategory-name: Likewise.
24749         * modules/unictype/bidicategory-of: Likewise.
24750         * modules/unictype/bidicategory-test: Likewise.
24751         * modules/unictype/block-list: Likewise.
24752         * modules/unictype/block-test: Likewise.
24753         * modules/unictype/category-C: Likewise.
24754         * modules/unictype/category-Cc: Likewise.
24755         * modules/unictype/category-Cf: Likewise.
24756         * modules/unictype/category-Cn: Likewise.
24757         * modules/unictype/category-Co: Likewise.
24758         * modules/unictype/category-Cs: Likewise.
24759         * modules/unictype/category-L: Likewise.
24760         * modules/unictype/category-Ll: Likewise.
24761         * modules/unictype/category-Lm: Likewise.
24762         * modules/unictype/category-Lo: Likewise.
24763         * modules/unictype/category-Lt: Likewise.
24764         * modules/unictype/category-Lu: Likewise.
24765         * modules/unictype/category-M: Likewise.
24766         * modules/unictype/category-Mc: Likewise.
24767         * modules/unictype/category-Me: Likewise.
24768         * modules/unictype/category-Mn: Likewise.
24769         * modules/unictype/category-N: Likewise.
24770         * modules/unictype/category-Nd: Likewise.
24771         * modules/unictype/category-Nl: Likewise.
24772         * modules/unictype/category-No: Likewise.
24773         * modules/unictype/category-P: Likewise.
24774         * modules/unictype/category-Pc: Likewise.
24775         * modules/unictype/category-Pd: Likewise.
24776         * modules/unictype/category-Pe: Likewise.
24777         * modules/unictype/category-Pf: Likewise.
24778         * modules/unictype/category-Pi: Likewise.
24779         * modules/unictype/category-Po: Likewise.
24780         * modules/unictype/category-Ps: Likewise.
24781         * modules/unictype/category-S: Likewise.
24782         * modules/unictype/category-Sc: Likewise.
24783         * modules/unictype/category-Sk: Likewise.
24784         * modules/unictype/category-Sm: Likewise.
24785         * modules/unictype/category-So: Likewise.
24786         * modules/unictype/category-Z: Likewise.
24787         * modules/unictype/category-Zl: Likewise.
24788         * modules/unictype/category-Zp: Likewise.
24789         * modules/unictype/category-Zs: Likewise.
24790         * modules/unictype/category-and: Likewise.
24791         * modules/unictype/category-and-not: Likewise.
24792         * modules/unictype/category-byname: Likewise.
24793         * modules/unictype/category-name: Likewise.
24794         * modules/unictype/category-none: Likewise.
24795         * modules/unictype/category-of: Likewise.
24796         * modules/unictype/category-or: Likewise.
24797         * modules/unictype/category-test: Likewise.
24798         * modules/unictype/combining-class: Likewise.
24799         * modules/unictype/ctype-alnum: Likewise.
24800         * modules/unictype/ctype-alpha: Likewise.
24801         * modules/unictype/ctype-blank: Likewise.
24802         * modules/unictype/ctype-cntrl: Likewise.
24803         * modules/unictype/ctype-digit: Likewise.
24804         * modules/unictype/ctype-graph: Likewise.
24805         * modules/unictype/ctype-lower: Likewise.
24806         * modules/unictype/ctype-print: Likewise.
24807         * modules/unictype/ctype-punct: Likewise.
24808         * modules/unictype/ctype-space: Likewise.
24809         * modules/unictype/ctype-upper: Likewise.
24810         * modules/unictype/ctype-xdigit: Likewise.
24811         * modules/unictype/decimal-digit: Likewise.
24812         * modules/unictype/digit: Likewise.
24813         * modules/unictype/mirror: Likewise.
24814         * modules/unictype/numeric: Likewise.
24815         * modules/unictype/property-alphabetic: Likewise.
24816         * modules/unictype/property-ascii-hex-digit: Likewise.
24817         * modules/unictype/property-bidi-arabic-digit: Likewise.
24818         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24819         * modules/unictype/property-bidi-block-separator: Likewise.
24820         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24821         * modules/unictype/property-bidi-common-separator: Likewise.
24822         * modules/unictype/property-bidi-control: Likewise.
24823         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24824         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24825         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24826         * modules/unictype/property-bidi-european-digit: Likewise.
24827         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24828         * modules/unictype/property-bidi-left-to-right: Likewise.
24829         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24830         * modules/unictype/property-bidi-other-neutral: Likewise.
24831         * modules/unictype/property-bidi-pdf: Likewise.
24832         * modules/unictype/property-bidi-segment-separator: Likewise.
24833         * modules/unictype/property-bidi-whitespace: Likewise.
24834         * modules/unictype/property-byname: Likewise.
24835         * modules/unictype/property-combining: Likewise.
24836         * modules/unictype/property-composite: Likewise.
24837         * modules/unictype/property-currency-symbol: Likewise.
24838         * modules/unictype/property-dash: Likewise.
24839         * modules/unictype/property-decimal-digit: Likewise.
24840         * modules/unictype/property-default-ignorable-code-point: Likewise.
24841         * modules/unictype/property-deprecated: Likewise.
24842         * modules/unictype/property-diacritic: Likewise.
24843         * modules/unictype/property-extender: Likewise.
24844         * modules/unictype/property-format-control: Likewise.
24845         * modules/unictype/property-grapheme-base: Likewise.
24846         * modules/unictype/property-grapheme-extend: Likewise.
24847         * modules/unictype/property-grapheme-link: Likewise.
24848         * modules/unictype/property-hex-digit: Likewise.
24849         * modules/unictype/property-hyphen: Likewise.
24850         * modules/unictype/property-id-continue: Likewise.
24851         * modules/unictype/property-id-start: Likewise.
24852         * modules/unictype/property-ideographic: Likewise.
24853         * modules/unictype/property-ids-binary-operator: Likewise.
24854         * modules/unictype/property-ids-trinary-operator: Likewise.
24855         * modules/unictype/property-ignorable-control: Likewise.
24856         * modules/unictype/property-iso-control: Likewise.
24857         * modules/unictype/property-join-control: Likewise.
24858         * modules/unictype/property-left-of-pair: Likewise.
24859         * modules/unictype/property-line-separator: Likewise.
24860         * modules/unictype/property-logical-order-exception: Likewise.
24861         * modules/unictype/property-lowercase: Likewise.
24862         * modules/unictype/property-math: Likewise.
24863         * modules/unictype/property-non-break: Likewise.
24864         * modules/unictype/property-not-a-character: Likewise.
24865         * modules/unictype/property-numeric: Likewise.
24866         * modules/unictype/property-other-alphabetic: Likewise.
24867         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24868         * modules/unictype/property-other-grapheme-extend: Likewise.
24869         * modules/unictype/property-other-id-continue: Likewise.
24870         * modules/unictype/property-other-id-start: Likewise.
24871         * modules/unictype/property-other-lowercase: Likewise.
24872         * modules/unictype/property-other-math: Likewise.
24873         * modules/unictype/property-other-uppercase: Likewise.
24874         * modules/unictype/property-paired-punctuation: Likewise.
24875         * modules/unictype/property-paragraph-separator: Likewise.
24876         * modules/unictype/property-pattern-syntax: Likewise.
24877         * modules/unictype/property-pattern-white-space: Likewise.
24878         * modules/unictype/property-private-use: Likewise.
24879         * modules/unictype/property-punctuation: Likewise.
24880         * modules/unictype/property-quotation-mark: Likewise.
24881         * modules/unictype/property-radical: Likewise.
24882         * modules/unictype/property-sentence-terminal: Likewise.
24883         * modules/unictype/property-soft-dotted: Likewise.
24884         * modules/unictype/property-space: Likewise.
24885         * modules/unictype/property-terminal-punctuation: Likewise.
24886         * modules/unictype/property-test: Likewise.
24887         * modules/unictype/property-titlecase: Likewise.
24888         * modules/unictype/property-unassigned-code-value: Likewise.
24889         * modules/unictype/property-unified-ideograph: Likewise.
24890         * modules/unictype/property-uppercase: Likewise.
24891         * modules/unictype/property-variation-selector: Likewise.
24892         * modules/unictype/property-white-space: Likewise.
24893         * modules/unictype/property-xid-continue: Likewise.
24894         * modules/unictype/property-xid-start: Likewise.
24895         * modules/unictype/property-zero-width: Likewise.
24896         * modules/unictype/scripts: Likewise.
24897         * modules/unictype/syntax-c-ident: Likewise.
24898         * modules/unictype/syntax-c-whitespace: Likewise.
24899         * modules/unictype/syntax-java-ident: Likewise.
24900         * modules/unictype/syntax-java-whitespace: Likewise.
24901         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24902         * modules/unilbrk/u8-width-linebreaks: Likewise.
24903         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24904         * modules/unilbrk/u16-width-linebreaks: Likewise.
24905         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24906         * modules/unilbrk/u32-width-linebreaks: Likewise.
24907         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24908         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24909         * modules/uniname/uniname: Likewise.
24910         * modules/uninorm/canonical-decomposition: Likewise.
24911         * modules/uninorm/composition: Likewise.
24912         * modules/uninorm/decomposing-form: Likewise.
24913         * modules/uninorm/decomposition: Likewise.
24914         * modules/uninorm/filter: Likewise.
24915         * modules/uninorm/nfc: Likewise.
24916         * modules/uninorm/nfd: Likewise.
24917         * modules/uninorm/nfkc: Likewise.
24918         * modules/uninorm/nfkd: Likewise.
24919         * modules/uninorm/u8-normalize: Likewise.
24920         * modules/uninorm/u8-normcmp: Likewise.
24921         * modules/uninorm/u8-normcoll: Likewise.
24922         * modules/uninorm/u8-normxfrm: Likewise.
24923         * modules/uninorm/u16-normalize: Likewise.
24924         * modules/uninorm/u16-normcmp: Likewise.
24925         * modules/uninorm/u16-normcoll: Likewise.
24926         * modules/uninorm/u16-normxfrm: Likewise.
24927         * modules/uninorm/u32-normalize: Likewise.
24928         * modules/uninorm/u32-normcmp: Likewise.
24929         * modules/uninorm/u32-normcoll: Likewise.
24930         * modules/uninorm/u32-normxfrm: Likewise.
24931         * modules/unistdio/u8-asnprintf: Likewise.
24932         * modules/unistdio/u8-asprintf: Likewise.
24933         * modules/unistdio/u8-snprintf: Likewise.
24934         * modules/unistdio/u8-sprintf: Likewise.
24935         * modules/unistdio/u8-u8-asnprintf: Likewise.
24936         * modules/unistdio/u8-u8-asprintf: Likewise.
24937         * modules/unistdio/u8-u8-snprintf: Likewise.
24938         * modules/unistdio/u8-u8-sprintf: Likewise.
24939         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24940         * modules/unistdio/u8-u8-vasprintf: Likewise.
24941         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24942         * modules/unistdio/u8-u8-vsprintf: Likewise.
24943         * modules/unistdio/u8-vasnprintf: Likewise.
24944         * modules/unistdio/u8-vasprintf: Likewise.
24945         * modules/unistdio/u8-vsnprintf: Likewise.
24946         * modules/unistdio/u8-vsprintf: Likewise.
24947         * modules/unistdio/u16-asnprintf: Likewise.
24948         * modules/unistdio/u16-asprintf: Likewise.
24949         * modules/unistdio/u16-snprintf: Likewise.
24950         * modules/unistdio/u16-sprintf: Likewise.
24951         * modules/unistdio/u16-u16-asnprintf: Likewise.
24952         * modules/unistdio/u16-u16-asprintf: Likewise.
24953         * modules/unistdio/u16-u16-snprintf: Likewise.
24954         * modules/unistdio/u16-u16-sprintf: Likewise.
24955         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24956         * modules/unistdio/u16-u16-vasprintf: Likewise.
24957         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24958         * modules/unistdio/u16-u16-vsprintf: Likewise.
24959         * modules/unistdio/u16-vasnprintf: Likewise.
24960         * modules/unistdio/u16-vasprintf: Likewise.
24961         * modules/unistdio/u16-vsnprintf: Likewise.
24962         * modules/unistdio/u16-vsprintf: Likewise.
24963         * modules/unistdio/u32-asnprintf: Likewise.
24964         * modules/unistdio/u32-asprintf: Likewise.
24965         * modules/unistdio/u32-snprintf: Likewise.
24966         * modules/unistdio/u32-sprintf: Likewise.
24967         * modules/unistdio/u32-u32-asnprintf: Likewise.
24968         * modules/unistdio/u32-u32-asprintf: Likewise.
24969         * modules/unistdio/u32-u32-snprintf: Likewise.
24970         * modules/unistdio/u32-u32-sprintf: Likewise.
24971         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24972         * modules/unistdio/u32-u32-vasprintf: Likewise.
24973         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24974         * modules/unistdio/u32-u32-vsprintf: Likewise.
24975         * modules/unistdio/u32-vasnprintf: Likewise.
24976         * modules/unistdio/u32-vasprintf: Likewise.
24977         * modules/unistdio/u32-vsnprintf: Likewise.
24978         * modules/unistdio/u32-vsprintf: Likewise.
24979         * modules/unistdio/ulc-asnprintf: Likewise.
24980         * modules/unistdio/ulc-asprintf: Likewise.
24981         * modules/unistdio/ulc-fprintf: Likewise.
24982         * modules/unistdio/ulc-snprintf: Likewise.
24983         * modules/unistdio/ulc-sprintf: Likewise.
24984         * modules/unistdio/ulc-vasnprintf: Likewise.
24985         * modules/unistdio/ulc-vasprintf: Likewise.
24986         * modules/unistdio/ulc-vfprintf: Likewise.
24987         * modules/unistdio/ulc-vsnprintf: Likewise.
24988         * modules/unistdio/ulc-vsprintf: Likewise.
24989         * modules/unistr/u8-check: Likewise.
24990         * modules/unistr/u8-chr: Likewise.
24991         * modules/unistr/u8-cmp: Likewise.
24992         * modules/unistr/u8-cmp2: Likewise.
24993         * modules/unistr/u8-cpy: Likewise.
24994         * modules/unistr/u8-cpy-alloc: Likewise.
24995         * modules/unistr/u8-endswith: Likewise.
24996         * modules/unistr/u8-mblen: Likewise.
24997         * modules/unistr/u8-mbsnlen: Likewise.
24998         * modules/unistr/u8-mbtouc: Likewise.
24999         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25000         * modules/unistr/u8-mbtoucr: Likewise.
25001         * modules/unistr/u8-move: Likewise.
25002         * modules/unistr/u8-next: Likewise.
25003         * modules/unistr/u8-prev: Likewise.
25004         * modules/unistr/u8-set: Likewise.
25005         * modules/unistr/u8-startswith: Likewise.
25006         * modules/unistr/u8-stpcpy: Likewise.
25007         * modules/unistr/u8-stpncpy: Likewise.
25008         * modules/unistr/u8-strcat: Likewise.
25009         * modules/unistr/u8-strchr: Likewise.
25010         * modules/unistr/u8-strcmp: Likewise.
25011         * modules/unistr/u8-strcoll: Likewise.
25012         * modules/unistr/u8-strcpy: Likewise.
25013         * modules/unistr/u8-strcspn: Likewise.
25014         * modules/unistr/u8-strdup: Likewise.
25015         * modules/unistr/u8-strlen: Likewise.
25016         * modules/unistr/u8-strmblen: Likewise.
25017         * modules/unistr/u8-strmbtouc: Likewise.
25018         * modules/unistr/u8-strncat: Likewise.
25019         * modules/unistr/u8-strncmp: Likewise.
25020         * modules/unistr/u8-strncpy: Likewise.
25021         * modules/unistr/u8-strnlen: Likewise.
25022         * modules/unistr/u8-strpbrk: Likewise.
25023         * modules/unistr/u8-strrchr: Likewise.
25024         * modules/unistr/u8-strspn: Likewise.
25025         * modules/unistr/u8-strstr: Likewise.
25026         * modules/unistr/u8-strtok: Likewise.
25027         * modules/unistr/u8-to-u16: Likewise.
25028         * modules/unistr/u8-to-u32: Likewise.
25029         * modules/unistr/u8-uctomb: Likewise.
25030         * modules/unistr/u16-check: Likewise.
25031         * modules/unistr/u16-chr: Likewise.
25032         * modules/unistr/u16-cmp: Likewise.
25033         * modules/unistr/u16-cmp2: Likewise.
25034         * modules/unistr/u16-cpy: Likewise.
25035         * modules/unistr/u16-cpy-alloc: Likewise.
25036         * modules/unistr/u16-endswith: Likewise.
25037         * modules/unistr/u16-mblen: Likewise.
25038         * modules/unistr/u16-mbsnlen: Likewise.
25039         * modules/unistr/u16-mbtouc: Likewise.
25040         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25041         * modules/unistr/u16-mbtoucr: Likewise.
25042         * modules/unistr/u16-move: Likewise.
25043         * modules/unistr/u16-next: Likewise.
25044         * modules/unistr/u16-prev: Likewise.
25045         * modules/unistr/u16-set: Likewise.
25046         * modules/unistr/u16-startswith: Likewise.
25047         * modules/unistr/u16-stpcpy: Likewise.
25048         * modules/unistr/u16-stpncpy: Likewise.
25049         * modules/unistr/u16-strcat: Likewise.
25050         * modules/unistr/u16-strchr: Likewise.
25051         * modules/unistr/u16-strcmp: Likewise.
25052         * modules/unistr/u16-strcoll: Likewise.
25053         * modules/unistr/u16-strcpy: Likewise.
25054         * modules/unistr/u16-strcspn: Likewise.
25055         * modules/unistr/u16-strdup: Likewise.
25056         * modules/unistr/u16-strlen: Likewise.
25057         * modules/unistr/u16-strmblen: Likewise.
25058         * modules/unistr/u16-strmbtouc: Likewise.
25059         * modules/unistr/u16-strncat: Likewise.
25060         * modules/unistr/u16-strncmp: Likewise.
25061         * modules/unistr/u16-strncpy: Likewise.
25062         * modules/unistr/u16-strnlen: Likewise.
25063         * modules/unistr/u16-strpbrk: Likewise.
25064         * modules/unistr/u16-strrchr: Likewise.
25065         * modules/unistr/u16-strspn: Likewise.
25066         * modules/unistr/u16-strstr: Likewise.
25067         * modules/unistr/u16-strtok: Likewise.
25068         * modules/unistr/u16-to-u32: Likewise.
25069         * modules/unistr/u16-to-u8: Likewise.
25070         * modules/unistr/u16-uctomb: Likewise.
25071         * modules/unistr/u32-check: Likewise.
25072         * modules/unistr/u32-chr: Likewise.
25073         * modules/unistr/u32-cmp: Likewise.
25074         * modules/unistr/u32-cmp2: Likewise.
25075         * modules/unistr/u32-cpy: Likewise.
25076         * modules/unistr/u32-cpy-alloc: Likewise.
25077         * modules/unistr/u32-endswith: Likewise.
25078         * modules/unistr/u32-mblen: Likewise.
25079         * modules/unistr/u32-mbsnlen: Likewise.
25080         * modules/unistr/u32-mbtouc: Likewise.
25081         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25082         * modules/unistr/u32-mbtoucr: Likewise.
25083         * modules/unistr/u32-move: Likewise.
25084         * modules/unistr/u32-next: Likewise.
25085         * modules/unistr/u32-prev: Likewise.
25086         * modules/unistr/u32-set: Likewise.
25087         * modules/unistr/u32-startswith: Likewise.
25088         * modules/unistr/u32-stpcpy: Likewise.
25089         * modules/unistr/u32-stpncpy: Likewise.
25090         * modules/unistr/u32-strcat: Likewise.
25091         * modules/unistr/u32-strchr: Likewise.
25092         * modules/unistr/u32-strcmp: Likewise.
25093         * modules/unistr/u32-strcoll: Likewise.
25094         * modules/unistr/u32-strcpy: Likewise.
25095         * modules/unistr/u32-strcspn: Likewise.
25096         * modules/unistr/u32-strdup: Likewise.
25097         * modules/unistr/u32-strlen: Likewise.
25098         * modules/unistr/u32-strmblen: Likewise.
25099         * modules/unistr/u32-strmbtouc: Likewise.
25100         * modules/unistr/u32-strncat: Likewise.
25101         * modules/unistr/u32-strncmp: Likewise.
25102         * modules/unistr/u32-strncpy: Likewise.
25103         * modules/unistr/u32-strnlen: Likewise.
25104         * modules/unistr/u32-strpbrk: Likewise.
25105         * modules/unistr/u32-strrchr: Likewise.
25106         * modules/unistr/u32-strspn: Likewise.
25107         * modules/unistr/u32-strstr: Likewise.
25108         * modules/unistr/u32-strtok: Likewise.
25109         * modules/unistr/u32-to-u16: Likewise.
25110         * modules/unistr/u32-to-u8: Likewise.
25111         * modules/unistr/u32-uctomb: Likewise.
25112         * modules/uniwbrk/u8-wordbreaks: Likewise.
25113         * modules/uniwbrk/u16-wordbreaks: Likewise.
25114         * modules/uniwbrk/u32-wordbreaks: Likewise.
25115         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25116         * modules/uniwbrk/wordbreak-property: Likewise.
25117         * modules/uniwidth/u8-strwidth: Likewise.
25118         * modules/uniwidth/u8-width: Likewise.
25119         * modules/uniwidth/u16-strwidth: Likewise.
25120         * modules/uniwidth/u16-width: Likewise.
25121         * modules/uniwidth/u32-strwidth: Likewise.
25122         * modules/uniwidth/u32-width: Likewise.
25123         * modules/uniwidth/width: Likewise.
25124         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25125         with $(LIBUNISTRING).
25126         * modules/unicase/ignorable-tests: Likewise.
25127         * modules/unicase/locale-language-tests: Likewise.
25128         * modules/unicase/tolower-tests: Likewise.
25129         * modules/unicase/totitle-tests: Likewise.
25130         * modules/unicase/toupper-tests: Likewise.
25131         * modules/unicase/u8-casecmp-tests: Likewise.
25132         * modules/unicase/u8-casecoll-tests: Likewise.
25133         * modules/unicase/u8-casefold-tests: Likewise.
25134         * modules/unicase/u8-is-cased-tests: Likewise.
25135         * modules/unicase/u8-is-casefolded-tests: Likewise.
25136         * modules/unicase/u8-is-lowercase-tests: Likewise.
25137         * modules/unicase/u8-is-titlecase-tests: Likewise.
25138         * modules/unicase/u8-is-uppercase-tests: Likewise.
25139         * modules/unicase/u8-tolower-tests: Likewise.
25140         * modules/unicase/u8-totitle-tests: Likewise.
25141         * modules/unicase/u8-toupper-tests: Likewise.
25142         * modules/unicase/u16-casecmp-tests: Likewise.
25143         * modules/unicase/u16-casecoll-tests: Likewise.
25144         * modules/unicase/u16-casefold-tests: Likewise.
25145         * modules/unicase/u16-is-cased-tests: Likewise.
25146         * modules/unicase/u16-is-casefolded-tests: Likewise.
25147         * modules/unicase/u16-is-lowercase-tests: Likewise.
25148         * modules/unicase/u16-is-titlecase-tests: Likewise.
25149         * modules/unicase/u16-is-uppercase-tests: Likewise.
25150         * modules/unicase/u16-tolower-tests: Likewise.
25151         * modules/unicase/u16-totitle-tests: Likewise.
25152         * modules/unicase/u16-toupper-tests: Likewise.
25153         * modules/unicase/u32-casecmp-tests: Likewise.
25154         * modules/unicase/u32-casecoll-tests: Likewise.
25155         * modules/unicase/u32-casefold-tests: Likewise.
25156         * modules/unicase/u32-is-cased-tests: Likewise.
25157         * modules/unicase/u32-is-casefolded-tests: Likewise.
25158         * modules/unicase/u32-is-lowercase-tests: Likewise.
25159         * modules/unicase/u32-is-titlecase-tests: Likewise.
25160         * modules/unicase/u32-is-uppercase-tests: Likewise.
25161         * modules/unicase/u32-tolower-tests: Likewise.
25162         * modules/unicase/u32-totitle-tests: Likewise.
25163         * modules/unicase/u32-toupper-tests: Likewise.
25164         * modules/unicase/ulc-casecmp-tests: Likewise.
25165         * modules/unicase/ulc-casecoll-tests: Likewise.
25166         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25167         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25168         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25169         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25170         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25171         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25172         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25173         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25174         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25175         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25176         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25177         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25178         * modules/unictype/bidicategory-byname-tests: Likewise.
25179         * modules/unictype/bidicategory-name-tests: Likewise.
25180         * modules/unictype/bidicategory-of-tests: Likewise.
25181         * modules/unictype/bidicategory-test-tests: Likewise.
25182         * modules/unictype/block-list-tests: Likewise.
25183         * modules/unictype/block-of-tests: Likewise.
25184         * modules/unictype/block-test-tests: Likewise.
25185         * modules/unictype/category-C-tests: Likewise.
25186         * modules/unictype/category-Cc-tests: Likewise.
25187         * modules/unictype/category-Cf-tests: Likewise.
25188         * modules/unictype/category-Cn-tests: Likewise.
25189         * modules/unictype/category-Co-tests: Likewise.
25190         * modules/unictype/category-Cs-tests: Likewise.
25191         * modules/unictype/category-L-tests: Likewise.
25192         * modules/unictype/category-Ll-tests: Likewise.
25193         * modules/unictype/category-Lm-tests: Likewise.
25194         * modules/unictype/category-Lo-tests: Likewise.
25195         * modules/unictype/category-Lt-tests: Likewise.
25196         * modules/unictype/category-Lu-tests: Likewise.
25197         * modules/unictype/category-M-tests: Likewise.
25198         * modules/unictype/category-Mc-tests: Likewise.
25199         * modules/unictype/category-Me-tests: Likewise.
25200         * modules/unictype/category-Mn-tests: Likewise.
25201         * modules/unictype/category-N-tests: Likewise.
25202         * modules/unictype/category-Nd-tests: Likewise.
25203         * modules/unictype/category-Nl-tests: Likewise.
25204         * modules/unictype/category-No-tests: Likewise.
25205         * modules/unictype/category-P-tests: Likewise.
25206         * modules/unictype/category-Pc-tests: Likewise.
25207         * modules/unictype/category-Pd-tests: Likewise.
25208         * modules/unictype/category-Pe-tests: Likewise.
25209         * modules/unictype/category-Pf-tests: Likewise.
25210         * modules/unictype/category-Pi-tests: Likewise.
25211         * modules/unictype/category-Po-tests: Likewise.
25212         * modules/unictype/category-Ps-tests: Likewise.
25213         * modules/unictype/category-S-tests: Likewise.
25214         * modules/unictype/category-Sc-tests: Likewise.
25215         * modules/unictype/category-Sk-tests: Likewise.
25216         * modules/unictype/category-Sm-tests: Likewise.
25217         * modules/unictype/category-So-tests: Likewise.
25218         * modules/unictype/category-Z-tests: Likewise.
25219         * modules/unictype/category-Zl-tests: Likewise.
25220         * modules/unictype/category-Zp-tests: Likewise.
25221         * modules/unictype/category-Zs-tests: Likewise.
25222         * modules/unictype/category-and-not-tests: Likewise.
25223         * modules/unictype/category-and-tests: Likewise.
25224         * modules/unictype/category-byname-tests: Likewise.
25225         * modules/unictype/category-name-tests: Likewise.
25226         * modules/unictype/category-none-tests: Likewise.
25227         * modules/unictype/category-of-tests: Likewise.
25228         * modules/unictype/category-or-tests: Likewise.
25229         * modules/unictype/category-test-withtable-tests: Likewise.
25230         * modules/unictype/combining-class-tests: Likewise.
25231         * modules/unictype/ctype-alnum-tests: Likewise.
25232         * modules/unictype/ctype-alpha-tests: Likewise.
25233         * modules/unictype/ctype-blank-tests: Likewise.
25234         * modules/unictype/ctype-cntrl-tests: Likewise.
25235         * modules/unictype/ctype-digit-tests: Likewise.
25236         * modules/unictype/ctype-graph-tests: Likewise.
25237         * modules/unictype/ctype-lower-tests: Likewise.
25238         * modules/unictype/ctype-print-tests: Likewise.
25239         * modules/unictype/ctype-punct-tests: Likewise.
25240         * modules/unictype/ctype-space-tests: Likewise.
25241         * modules/unictype/ctype-upper-tests: Likewise.
25242         * modules/unictype/ctype-xdigit-tests: Likewise.
25243         * modules/unictype/decimal-digit-tests: Likewise.
25244         * modules/unictype/digit-tests: Likewise.
25245         * modules/unictype/mirror-tests: Likewise.
25246         * modules/unictype/numeric-tests: Likewise.
25247         * modules/unictype/property-alphabetic-tests: Likewise.
25248         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25249         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25250         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25251         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25252         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25253         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25254         * modules/unictype/property-bidi-control-tests: Likewise.
25255         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25256         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25257         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25258         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25259         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25260         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25261         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25262         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25263         * modules/unictype/property-bidi-pdf-tests: Likewise.
25264         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25265         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25266         * modules/unictype/property-byname-tests: Likewise.
25267         * modules/unictype/property-combining-tests: Likewise.
25268         * modules/unictype/property-composite-tests: Likewise.
25269         * modules/unictype/property-currency-symbol-tests: Likewise.
25270         * modules/unictype/property-dash-tests: Likewise.
25271         * modules/unictype/property-decimal-digit-tests: Likewise.
25272         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25273         * modules/unictype/property-deprecated-tests: Likewise.
25274         * modules/unictype/property-diacritic-tests: Likewise.
25275         * modules/unictype/property-extender-tests: Likewise.
25276         * modules/unictype/property-format-control-tests: Likewise.
25277         * modules/unictype/property-grapheme-base-tests: Likewise.
25278         * modules/unictype/property-grapheme-extend-tests: Likewise.
25279         * modules/unictype/property-grapheme-link-tests: Likewise.
25280         * modules/unictype/property-hex-digit-tests: Likewise.
25281         * modules/unictype/property-hyphen-tests: Likewise.
25282         * modules/unictype/property-id-continue-tests: Likewise.
25283         * modules/unictype/property-id-start-tests: Likewise.
25284         * modules/unictype/property-ideographic-tests: Likewise.
25285         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25286         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25287         * modules/unictype/property-ignorable-control-tests: Likewise.
25288         * modules/unictype/property-iso-control-tests: Likewise.
25289         * modules/unictype/property-join-control-tests: Likewise.
25290         * modules/unictype/property-left-of-pair-tests: Likewise.
25291         * modules/unictype/property-line-separator-tests: Likewise.
25292         * modules/unictype/property-logical-order-exception-tests: Likewise.
25293         * modules/unictype/property-lowercase-tests: Likewise.
25294         * modules/unictype/property-math-tests: Likewise.
25295         * modules/unictype/property-non-break-tests: Likewise.
25296         * modules/unictype/property-not-a-character-tests: Likewise.
25297         * modules/unictype/property-numeric-tests: Likewise.
25298         * modules/unictype/property-other-alphabetic-tests: Likewise.
25299         * modules/unictype/property-other-default-ignorable-code-point-tests:
25300         Likewise.
25301         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25302         * modules/unictype/property-other-id-continue-tests: Likewise.
25303         * modules/unictype/property-other-id-start-tests: Likewise.
25304         * modules/unictype/property-other-lowercase-tests: Likewise.
25305         * modules/unictype/property-other-math-tests: Likewise.
25306         * modules/unictype/property-other-uppercase-tests: Likewise.
25307         * modules/unictype/property-paired-punctuation-tests: Likewise.
25308         * modules/unictype/property-paragraph-separator-tests: Likewise.
25309         * modules/unictype/property-pattern-syntax-tests: Likewise.
25310         * modules/unictype/property-pattern-white-space-tests: Likewise.
25311         * modules/unictype/property-private-use-tests: Likewise.
25312         * modules/unictype/property-punctuation-tests: Likewise.
25313         * modules/unictype/property-quotation-mark-tests: Likewise.
25314         * modules/unictype/property-radical-tests: Likewise.
25315         * modules/unictype/property-sentence-terminal-tests: Likewise.
25316         * modules/unictype/property-soft-dotted-tests: Likewise.
25317         * modules/unictype/property-space-tests: Likewise.
25318         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25319         * modules/unictype/property-test-tests: Likewise.
25320         * modules/unictype/property-titlecase-tests: Likewise.
25321         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25322         * modules/unictype/property-unified-ideograph-tests: Likewise.
25323         * modules/unictype/property-uppercase-tests: Likewise.
25324         * modules/unictype/property-variation-selector-tests: Likewise.
25325         * modules/unictype/property-white-space-tests: Likewise.
25326         * modules/unictype/property-xid-continue-tests: Likewise.
25327         * modules/unictype/property-xid-start-tests: Likewise.
25328         * modules/unictype/property-zero-width-tests: Likewise.
25329         * modules/unictype/scripts-tests: Likewise.
25330         * modules/unictype/syntax-c-ident-tests: Likewise.
25331         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25332         * modules/unictype/syntax-java-ident-tests: Likewise.
25333         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25334         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25335         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25336         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25337         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25338         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25339         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25340         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25341         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25342         * modules/uniname/uniname-tests: Likewise.
25343         * modules/uninorm/canonical-decomposition-tests: Likewise.
25344         * modules/uninorm/compat-decomposition-tests: Likewise.
25345         * modules/uninorm/composition-tests: Likewise.
25346         * modules/uninorm/decomposing-form-tests: Likewise.
25347         * modules/uninorm/decomposition-tests: Likewise.
25348         * modules/uninorm/filter-tests: Likewise.
25349         * modules/uninorm/nfc-tests: Likewise.
25350         * modules/uninorm/nfd-tests: Likewise.
25351         * modules/uninorm/nfkc-tests: Likewise.
25352         * modules/uninorm/nfkd-tests: Likewise.
25353         * modules/uninorm/u8-normcmp-tests: Likewise.
25354         * modules/uninorm/u8-normcoll-tests: Likewise.
25355         * modules/uninorm/u16-normcmp-tests: Likewise.
25356         * modules/uninorm/u16-normcoll-tests: Likewise.
25357         * modules/uninorm/u32-normcmp-tests: Likewise.
25358         * modules/uninorm/u32-normcoll-tests: Likewise.
25359         * modules/unistdio/u8-asnprintf-tests: Likewise.
25360         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25361         * modules/unistdio/u8-vasprintf-tests: Likewise.
25362         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25363         * modules/unistdio/u8-vsprintf-tests: Likewise.
25364         * modules/unistdio/u16-asnprintf-tests: Likewise.
25365         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25366         * modules/unistdio/u16-vasprintf-tests: Likewise.
25367         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25368         * modules/unistdio/u16-vsprintf-tests: Likewise.
25369         * modules/unistdio/u32-asnprintf-tests: Likewise.
25370         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25371         * modules/unistdio/u32-vasprintf-tests: Likewise.
25372         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25373         * modules/unistdio/u32-vsprintf-tests: Likewise.
25374         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25375         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25376         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25377         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25378         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25379         * modules/unistr/u8-check-tests: Likewise.
25380         * modules/unistr/u8-chr-tests: Likewise.
25381         * modules/unistr/u8-cmp-tests: Likewise.
25382         * modules/unistr/u8-cmp2-tests: Likewise.
25383         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25384         * modules/unistr/u8-cpy-tests: Likewise.
25385         * modules/unistr/u8-mblen-tests: Likewise.
25386         * modules/unistr/u8-mbsnlen-tests: Likewise.
25387         * modules/unistr/u8-mbtouc-tests: Likewise.
25388         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25389         * modules/unistr/u8-mbtoucr-tests: Likewise.
25390         * modules/unistr/u8-move-tests: Likewise.
25391         * modules/unistr/u8-next-tests: Likewise.
25392         * modules/unistr/u8-prev-tests: Likewise.
25393         * modules/unistr/u8-set-tests: Likewise.
25394         * modules/unistr/u8-stpcpy-tests: Likewise.
25395         * modules/unistr/u8-stpncpy-tests: Likewise.
25396         * modules/unistr/u8-strcat-tests: Likewise.
25397         * modules/unistr/u8-strcmp-tests: Likewise.
25398         * modules/unistr/u8-strcoll-tests: Likewise.
25399         * modules/unistr/u8-strcpy-tests: Likewise.
25400         * modules/unistr/u8-strdup-tests: Likewise.
25401         * modules/unistr/u8-strlen-tests: Likewise.
25402         * modules/unistr/u8-strmblen-tests: Likewise.
25403         * modules/unistr/u8-strmbtouc-tests: Likewise.
25404         * modules/unistr/u8-strncat-tests: Likewise.
25405         * modules/unistr/u8-strncmp-tests: Likewise.
25406         * modules/unistr/u8-strncpy-tests: Likewise.
25407         * modules/unistr/u8-strnlen-tests: Likewise.
25408         * modules/unistr/u8-to-u16-tests: Likewise.
25409         * modules/unistr/u8-to-u32-tests: Likewise.
25410         * modules/unistr/u8-uctomb-tests: Likewise.
25411         * modules/unistr/u16-check-tests: Likewise.
25412         * modules/unistr/u16-chr-tests: Likewise.
25413         * modules/unistr/u16-cmp-tests: Likewise.
25414         * modules/unistr/u16-cmp2-tests: Likewise.
25415         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25416         * modules/unistr/u16-cpy-tests: Likewise.
25417         * modules/unistr/u16-mblen-tests: Likewise.
25418         * modules/unistr/u16-mbsnlen-tests: Likewise.
25419         * modules/unistr/u16-mbtouc-tests: Likewise.
25420         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25421         * modules/unistr/u16-mbtoucr-tests: Likewise.
25422         * modules/unistr/u16-move-tests: Likewise.
25423         * modules/unistr/u16-next-tests: Likewise.
25424         * modules/unistr/u16-prev-tests: Likewise.
25425         * modules/unistr/u16-set-tests: Likewise.
25426         * modules/unistr/u16-stpcpy-tests: Likewise.
25427         * modules/unistr/u16-stpncpy-tests: Likewise.
25428         * modules/unistr/u16-strcat-tests: Likewise.
25429         * modules/unistr/u16-strcmp-tests: Likewise.
25430         * modules/unistr/u16-strcoll-tests: Likewise.
25431         * modules/unistr/u16-strcpy-tests: Likewise.
25432         * modules/unistr/u16-strdup-tests: Likewise.
25433         * modules/unistr/u16-strlen-tests: Likewise.
25434         * modules/unistr/u16-strmblen-tests: Likewise.
25435         * modules/unistr/u16-strmbtouc-tests: Likewise.
25436         * modules/unistr/u16-strncat-tests: Likewise.
25437         * modules/unistr/u16-strncmp-tests: Likewise.
25438         * modules/unistr/u16-strncpy-tests: Likewise.
25439         * modules/unistr/u16-strnlen-tests: Likewise.
25440         * modules/unistr/u16-to-u32-tests: Likewise.
25441         * modules/unistr/u16-to-u8-tests: Likewise.
25442         * modules/unistr/u16-uctomb-tests: Likewise.
25443         * modules/unistr/u32-check-tests: Likewise.
25444         * modules/unistr/u32-chr-tests: Likewise.
25445         * modules/unistr/u32-cmp-tests: Likewise.
25446         * modules/unistr/u32-cmp2-tests: Likewise.
25447         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25448         * modules/unistr/u32-cpy-tests: Likewise.
25449         * modules/unistr/u32-mblen-tests: Likewise.
25450         * modules/unistr/u32-mbsnlen-tests: Likewise.
25451         * modules/unistr/u32-mbtouc-tests: Likewise.
25452         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25453         * modules/unistr/u32-mbtoucr-tests: Likewise.
25454         * modules/unistr/u32-move-tests: Likewise.
25455         * modules/unistr/u32-next-tests: Likewise.
25456         * modules/unistr/u32-prev-tests: Likewise.
25457         * modules/unistr/u32-set-tests: Likewise.
25458         * modules/unistr/u32-stpcpy-tests: Likewise.
25459         * modules/unistr/u32-stpncpy-tests: Likewise.
25460         * modules/unistr/u32-strcat-tests: Likewise.
25461         * modules/unistr/u32-strcmp-tests: Likewise.
25462         * modules/unistr/u32-strcoll-tests: Likewise.
25463         * modules/unistr/u32-strcpy-tests: Likewise.
25464         * modules/unistr/u32-strdup-tests: Likewise.
25465         * modules/unistr/u32-strlen-tests: Likewise.
25466         * modules/unistr/u32-strmblen-tests: Likewise.
25467         * modules/unistr/u32-strmbtouc-tests: Likewise.
25468         * modules/unistr/u32-strncat-tests: Likewise.
25469         * modules/unistr/u32-strncmp-tests: Likewise.
25470         * modules/unistr/u32-strncpy-tests: Likewise.
25471         * modules/unistr/u32-strnlen-tests: Likewise.
25472         * modules/unistr/u32-to-u16-tests: Likewise.
25473         * modules/unistr/u32-to-u8-tests: Likewise.
25474         * modules/unistr/u32-uctomb-tests: Likewise.
25475         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25476         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25477         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25478         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25479         * modules/uniwidth/u8-strwidth-tests: Likewise.
25480         * modules/uniwidth/u8-width-tests: Likewise.
25481         * modules/uniwidth/u16-strwidth-tests: Likewise.
25482         * modules/uniwidth/u16-width-tests: Likewise.
25483         * modules/uniwidth/u32-strwidth-tests: Likewise.
25484         * modules/uniwidth/u32-width-tests: Likewise.
25485         * modules/uniwidth/width-tests: Likewise.
25486
25487 2010-05-18  Richard Jones  <rjones@redhat.com>
25488
25489         doc: users.txt: list hivex
25490         * users.txt: Add hivex.
25491
25492 2010-05-18  Richard Jones  <rjones@redhat.com>
25493
25494         doc: users.txt: list febootstrap
25495         * users.txt: Add febootstrap.
25496
25497 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25498
25499         bootstrap: fix an error when gnulib is not used as a git submodule
25500         * build-aux/bootstrap (gnulib_path): If its length is zero then
25501         assign "gnulib" to it.
25502         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25503
25504 2010-05-16  Bruno Haible  <bruno@clisp.org>
25505
25506         Avoid autoconf warnings about AM_ICONV.
25507         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25508         2.64.
25509
25510 2010-05-16  Bruno Haible  <bruno@clisp.org>
25511
25512         absolute-header: Make the macro usable in more situations.
25513         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25514         from gl_ABSOLUTE_HEADER.
25515         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25516
25517 2010-05-16  James Youngman  <jay@gnu.org>
25518
25519         doc: update users.txt
25520         * users.txt: Add CSSC.
25521
25522 2010-05-16  Jim Meyering  <meyering@redhat.com>
25523
25524         init.sh: fix an error in the previous change; add more comments
25525         * tests/init.sh: Compare exit code in loop against 9, not 2.
25526         Patch by Bruno Haible.
25527         Make the two tests more similar by adding an empty "then" clause.
25528         Add comments.
25529
25530         init.sh: avoid unnecessary shell re-exec
25531         * tests/init.sh: Improve the re-exec-required check to first test the
25532         current shell.  If it passes the test, do not search for a shell that
25533         does pass, and do not re-exec.  This test is particularly contorted to
25534         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25535         of $(...) evokes a syntax error and causes immediate shell exit with
25536         status 2.  Bruno Haible reported that the re-exec made it impossible
25537         to single-step through any init.sh-using script.
25538
25539 2010-05-16  Bruno Haible  <bruno@clisp.org>
25540
25541         Fix collision between gnulib's and libintl's printf replacements.
25542         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25543         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25544         (printf): When using GNU C, map the __printf__ function to rpl_printf
25545         via __asm__. When not using GNU C, define rpl_printf instead of
25546         __printf__.
25547         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25548         commit.
25549         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25550         commit.
25551         * m4/asm-underscore.m4: New file.
25552         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25553         * modules/stdio (Files): Add m4/asm-underscore.m4.
25554         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25555         Reported by Ben Pfaff.
25556
25557 2010-05-16  Bruno Haible  <bruno@clisp.org>
25558
25559         verify: Avoid skipping the test on openSUSE 11.0.
25560         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25561
25562 2010-05-13  Bruno Haible  <bruno@clisp.org>
25563
25564         Avoid useless warnings from G++.
25565         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25566         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25567         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25568
25569 2010-05-11  Jim Meyering  <meyering@redhat.com>
25570
25571         maint.mk: tweak preceding change
25572         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25573         regexps tighter by anchoring at EOL, and make the new group "shy"
25574         for slightly decreased overhead.
25575
25576 2010-05-11  Eric Blake  <eblake@redhat.com>
25577
25578         maint.mk: gnulib doesn't guarantee NSIG
25579         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25580
25581 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25582
25583         test-pwrite.c: Remove unused variable declaration.
25584         * tests/test-pwrite.c (main): Remove read_buf declaration.
25585
25586         Remove useless test-pwrite.sh file.
25587         * tests/test-pwrite.sh: Delete file.
25588         * modules/pwrite-tests: Remove references.
25589         Reported by Bruno Haible.
25590
25591 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25592
25593         init.sh: fix a typo
25594         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25595
25596 2010-05-10  Jim Meyering  <meyering@redhat.com>
25597
25598         maint.mk: avoid using a temporary file in the always-defined-macros check
25599         * top/maint.mk (.re-defmac): Remove rule.
25600         (gl_trap_): Remove definition.
25601         (sc_prohibit_always-defined_macros): Rewrite not to create and
25602         depend on a temporary file.  Instead, depend on GNU grep's ability
25603         to read a list of regular expressions from stdin when given "-f -".
25604
25605 2010-05-09  Bruno Haible  <bruno@clisp.org>
25606
25607         Update to GNU gettext 0.18, part 1.
25608         * m4/gettext.m4: Update to GNU gettext 0.18.
25609         * m4/intl.m4: Likewise.
25610         * m4/po.m4: Likewise.
25611         * modules/gettext (Files): Add m4/fcntl-o.m4.
25612         (configure.ac): Require gettext infrastructure from version 0.18.
25613
25614 2010-05-09  Jim Meyering  <meyering@redhat.com>
25615
25616         init.sh: enable MALLOC_PERTURB_
25617         * tests/init.sh: Enable glibc's malloc-perturbing option.
25618
25619         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25620         With my recent change in init.sh from the two-line form:
25621             -#   : ${srcdir=.}
25622             -#   . "$srcdir/init.sh"; path_prepend_ .
25623             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25624         I noticed that using the one-line form would cause this test
25625         to fail with a false-positive, or to stop working altogether,
25626         depending on whether help-version changed or all the tests did.
25627         * top/maint.mk (_hv_regex): Remove this definition.
25628         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25629         (_hv_regex_strong): Use a stronger regex to check for conformance.
25630         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25631         Give a separate diagnostic for lack of conforming use.
25632
25633         maint.mk: prohibit definition of symbols defined by gnulib
25634         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25635         definition of symbols defined by gnulib.
25636
25637 2010-05-09  Bruno Haible  <bruno@clisp.org>
25638
25639         acl: Avoid test failure on Cygwin-hosted mingw.
25640         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25641
25642 2010-05-09  Bruno Haible  <bruno@clisp.org>
25643
25644         error: Use system's fcntl function.
25645         * lib/error.c (fcntl): Undefine.
25646
25647 2010-05-09  Jim Meyering  <meyering@redhat.com>
25648
25649         verify: adjust formatting to be more consistent
25650         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25651         argument-list '('s, and after one comma.
25652
25653 2010-05-09  Bruno Haible  <bruno@clisp.org>
25654
25655         error: More reliable output on mingw.
25656         * lib/error.c: Include <windows.h>.
25657         (is_open): New function.
25658         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25659         defined.
25660
25661 2010-05-09  Bruno Haible  <bruno@clisp.org>
25662
25663         vasnprintf: Fix syntax errors in libintl build on mingw.
25664         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25665         pad_ourselves and prec_ourselves after use.
25666
25667 2010-05-08  Bruno Haible  <bruno@clisp.org>
25668
25669         * lib/config.charset: Update comments for Cygwin 1.7.
25670         * lib/localcharset.c: Likewise.
25671
25672 2010-05-07  Jim Meyering  <meyering@redhat.com>
25673
25674         init.sh: improve comments
25675         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25676         . "${srcdir=.}/init.sh"; path_prepend_ .
25677         Add a note about path_prepend_ and the alternative of using
25678         TESTS_ENVIRONMENT.
25679
25680 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25681
25682         exclude: Unescape hashed patterns in wildcard mode.
25683         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25684         to the hash list.
25685         * tests/test-exclude8.sh: New test case.
25686         * modules/exclude-tests: Add new test.
25687
25688 2010-05-05  Eric Blake  <eblake@redhat.com>
25689
25690         verify: automate tests
25691         * modules/verify-tests: New module.
25692         * tests/test-verify.sh: New file.
25693         * tests/test-verify.c: Guard each negative test with a unique id.
25694         Also avoid warning about unused left hand of comma expressions.
25695
25696 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25697
25698         Further improvements to verify.h, suggested by Eric Blake.
25699         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
25700         the GL_* versions, to avoid collision with OpenGL.
25701         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
25702         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
25703         than testing merely whether it's defined.
25704
25705         Modify verify.h to pacify gcc -Wredundant_decls.
25706         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
25707         These use the prefix "GL_" since they're likely to be useful elsewhere.
25708         We may need to break them out into a different .h file.
25709         (__COUNTER__): Define to 0 if the compiler doesn't support it.
25710         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
25711         of verify_function__.
25712
25713 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25714
25715         Tests for module pwrite.
25716         * modules/pwrite-tests: New file.
25717         * tests/test-pwrite.sh: New file.
25718         * tests/test-pwrite.c: New file.
25719
25720         New module pwrite.
25721         * lib/unistd.in.h (pwrite): New declaration.
25722         * lib/pwrite.c: New file, from glibc with modifications.
25723         * m4/pwrite.m4: New file.
25724         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
25725         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
25726         REPLACE_PWRITE.
25727         * modules/pwrite: New file.
25728         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
25729         REPLACE_PWRITE.
25730         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
25731         * doc/posix-functions/pwrite.texi: Mention the new module.
25732
25733 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25734
25735         pread: Update documentation.
25736         * doc/posix-functions/pread.texi: Mention the 'pread' module.
25737
25738 2010-05-04  Eric Blake  <eblake@redhat.com>
25739
25740         docs: update cygwin progress
25741         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
25742         this bug.
25743         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
25744         Added in cygwin 1.7.2.
25745         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
25746         Likewise.
25747         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
25748         Likewise.
25749         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25750         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25751         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25752         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
25753         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25754         Mention nproc module.
25755         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25756         bug in cygwin 1.7.5 addition.
25757         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25758         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25759         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25760         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25761         1.7.5.
25762         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25763         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25764         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25765         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25766         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25767         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25768         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25769         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
25770         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
25771         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
25772         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
25773         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
25774         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
25775         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
25776         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
25777         Likewise.
25778         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25779         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25780         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25781         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25782         Likewise.
25783         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25784         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25785         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25786         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25787         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25788         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25789         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25790         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25791         Likewise.
25792         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25793         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25794         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25795         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25796         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25797         Likewise.
25798         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25799         Likewise.
25800         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25801         Likewise.
25802         * doc/glibc-functions/xdrrec_endofrecord.texi
25803         (xdrrec_endofrecord): Likewise.
25804         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25805         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25806         Likewise.
25807         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25808         Likewise.
25809
25810 2010-05-04  Jim Meyering  <meyering@redhat.com>
25811
25812         gendocs.sh: make its "-s FILE" option more useful
25813         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25814         $PACKAGE to reflect the probably-different basename of "FILE".
25815
25816 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25817
25818         bootstrap: don't ignore download_po_files failure
25819         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25820         failure.
25821
25822 2010-05-03  Jim Meyering  <meyering@redhat.com>
25823
25824         maint.mk: allow to pass options to gendocs.sh
25825         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25826         (gendocs_options_): New overridable variable.
25827
25828         gnu-web-doc-update: don't ignore configure or build failure
25829         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25830
25831         announce-gen: backslash-escape '@'s in --help output
25832         * build-aux/announce-gen: Fix syntax errors.
25833
25834         maint.mk, announce-gen: allow project-specific announcement mail headers
25835         * top/maint.mk (translation_project_): Define default.
25836         (announcement_Cc_, announcement_mail_headers_): Likewise.
25837         (announcement): Invoke announce-gen with new --mail-headers option.
25838         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25839
25840         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25841         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25842         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25843         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25844         line in the "err2" output file when running "make check" in verbose
25845         mode (i.e., with set -x enabled).
25846
25847 2010-05-03  Bruno Haible  <bruno@clisp.org>
25848
25849         wctob: Fix for weird platforms.
25850         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25851         argument value.
25852
25853 2010-05-03  Jim Meyering  <meyering@redhat.com>
25854
25855         maint.mk: prohibit unwarranted use of <strings.h>
25856         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25857         strings.h in a file that does not also use strcasecmp, strncasecmp,
25858         ffs or ffsll.
25859
25860         maint.mk: remove obsolete comments
25861         * top/maint.mk: Remove stale, commented-out rules.
25862
25863 2010-05-02  Bruno Haible  <bruno@clisp.org>
25864
25865         wcwidth: Declare also when it's aliased.
25866         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25867         macro.
25868
25869 2010-05-02  Bruno Haible  <bruno@clisp.org>
25870
25871         Fix regression from 2010-04-25.
25872         * gnulib-tool (func_modules_transitive_closure): Check the status of
25873         all modules, not only of the tests that are of the form foo-tests where
25874         foo is a module.
25875
25876 2010-05-02  Bruno Haible  <bruno@clisp.org>
25877
25878         wctob: Work around nasty Cygwin 1.7.2 bug.
25879         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25880         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25881
25882 2010-05-01  Bruno Haible  <bruno@clisp.org>
25883
25884         fpurge: Sharper test.
25885         * tests/test-fpurge.c (main): Add one more ftell check.
25886         * modules/fpurge-tests (Depends-on): Add ftell.
25887         Suggested by Eric Blake.
25888
25889 2010-05-01  Bruno Haible  <bruno@clisp.org>
25890
25891         ftello: Another test.
25892         * tests/test-ftello3.c: New file.
25893         * modules/ftello-tests (Files): Add it.
25894         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25895         MOSTLYCLEANFILES.
25896
25897         ftell: Another test.
25898         * tests/test-ftell3.c: New file.
25899         * modules/ftell-tests (Files): Add it.
25900         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25901         MOSTLYCLEANFILES.
25902
25903 2010-05-01  Bruno Haible  <bruno@clisp.org>
25904
25905         ftell, ftello: Work around Solaris bug.
25906         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25907         * lib/ftello.c: Include stdio-impl.h.
25908         (ftello): On Solaris, when _IOWRT is set, compute the result without
25909         looking at _IOREAD.
25910         * modules/ftello (Files): Add lib/stdio-impl.h.
25911         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25912         * doc/posix-functions/ftello.texi: Likewise.
25913         Reported by Eric Blake.
25914
25915 2010-05-01  Bruno Haible  <bruno@clisp.org>
25916
25917         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25918         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25919         the _IOWRT flag is also set.
25920
25921 2010-05-01  Bruno Haible  <bruno@clisp.org>
25922
25923         Fix doc about a HP-UX stdio bug.
25924         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25925         * doc/posix-functions/ftello.texi: Likewise.
25926
25927 2010-05-01  Bruno Haible  <bruno@clisp.org>
25928
25929         lseek test: Fix failure on Solaris.
25930         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25931         output.
25932
25933 2010-04-30  Jim Meyering  <meyering@redhat.com>
25934
25935         bootstrap: don't ignore failure to generate po*/Makevars
25936         * build-aux/bootstrap (with_gettext): Don't ignore failure
25937         to create po/Makevars or runtime-po/Makevars.
25938
25939 2010-04-29  Eric Blake  <eblake@redhat.com>
25940
25941         headers: relax license to LGPLv2+
25942         * modules/fcntl-h (License): Relax license.
25943         * modules/getopt-posix (License): Likewise.
25944         * modules/locale (License): Likewise.
25945         * modules/math (License): Likewise.
25946         * modules/pty (License): Likewise.
25947         * modules/sched (License): Likewise.
25948         * modules/search (License): Likewise.
25949         * modules/spawn (License): Likewise.
25950         * modules/stdarg (License): Likewise.
25951         * modules/sysexits (License): Likewise.
25952
25953 2010-04-29  Jim Meyering  <meyering@redhat.com>
25954
25955         inttypes: relax license to LGPLv2+
25956         * modules/inttypes (License): Relax license.
25957
25958 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25959
25960         * top/maint.mk (indent): Run twice to produce idempotent results.
25961
25962 2010-04-28  Bruno Haible  <bruno@clisp.org>
25963
25964         getdate: Generate getdate.c in the source directory.
25965         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25966         MOSTLYCLEANFILES.
25967         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25968
25969 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25970
25971         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25972         is not declared as a const *; avoid warnings in that case.
25973
25974 2010-04-28  Eric Blake  <eblake@redhat.com>
25975
25976         canonicalize-lgpl: avoid compiler warning
25977         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25978         declaration' / 'extraneous semicolon' warning with some compilers.
25979         Reported by Andreas Gruenbacher.
25980
25981 2010-04-28  Jim Meyering  <meyering@redhat.com>
25982
25983         init.sh: ensure a more reliable exit status when exiting via trap
25984         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25985         Inspired by patches from Dmitry V. Levin.
25986         Also trap on signal 3 (SIGQUIT).
25987
25988 2010-04-27  Bruno Haible  <bruno@clisp.org>
25989
25990         Update doc about utimes().
25991         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25992         'utimens' module.
25993         Reported by Andreas Gruenbacher <agruen@suse.de>.
25994
25995 2010-04-27  Eric Blake  <eblake@redhat.com>
25996
25997         full-read, full-write: relax license
25998         * modules/full-read (License): Drop to LGPLv2+.
25999         * modules/full-write (License): Likewise.
26000         * modules/safe-read (License): Likewise.
26001         * modules/safe-write (License): Likewise.
26002
26003         pthread: mention library for linking
26004         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26005
26006 2010-04-27  Jim Meyering  <meyering@redhat.com>
26007
26008         maint.mk: fix a bug introduced in last change
26009         * top/maint.mk (gl_assured_headers_): Now that all names are on
26010         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26011         is not anchored to end of word, it should be adequate.
26012
26013         maint.mk: avoid side-effect in latest syntax-check
26014         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26015         to run commands via $(shell...), and hence to incur cost only when
26016         the new rule is actually run.
26017
26018         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26019         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26020         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26021         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26022         (gl_assured_headers_, az_, AZ_): Define.
26023         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26024
26025 2010-04-26  Jim Meyering  <jim@meyering.net>
26026             Bruno Haible  <bruno@clisp.org>
26027
26028         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26029         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26030         Prompted by an exchange with Gilles Espinasse.
26031
26032 2010-04-26  Jim Meyering  <meyering@redhat.com>
26033
26034         git-version-gen: aesthetic tweak
26035         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26036         so that the command remains on a single line.
26037
26038 2010-04-26  Eric Blake  <eblake@redhat.com>
26039
26040         git-version-gen: allow use on EBCDIC hosts
26041         * build-aux/git-version-gen (dirty): Use literal rather than tying
26042         ourselves to ascii.
26043         Reported by Steve Goetze.
26044
26045 2010-04-25  Bruno Haible  <bruno@clisp.org>
26046
26047         netdb: Add support for GNULIB_POSIXCHECK.
26048         * lib/netdb.in.h: Include warn-on-use.h.
26049         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26050         functions are used when GNULIB_POSIXCHECK is defined and the
26051         getaddrinfo module is not in use.
26052         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26053         freeaddrinfo, gai_strerror, getnameinfo are declared.
26054         * modules/netdb (Depends-on): Add warn-on-use.
26055         (Makefile.am): Include warn-on-use.h in netdb.h.
26056
26057 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26058
26059         build: avoid "make check" failure without .git/ directory
26060         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26061         there is no .git/ directory.
26062
26063 2010-04-25  Bruno Haible  <bruno@clisp.org>
26064
26065         ptsname: Fix misuse of ttyname_r.
26066         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26067         of errno.
26068
26069 2010-04-25  Bruno Haible  <bruno@clisp.org>
26070
26071         ttyname_r: Make it work on Solaris 10.
26072         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26073         if the system function has the POSIX declaration. Test whether the
26074         function fails if the buffer is less than 128 bytes large.
26075         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26076         system's ttyname_r function. Provide a reasonably large buffer.
26077         * modules/ttyname_r (Depends-on): Add extensions.
26078         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26079
26080 2010-04-25  Bruno Haible  <bruno@clisp.org>
26081
26082         Use the 'extensions' module for some more functions on Solaris.
26083         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26084         module.
26085         * doc/posix-functions/ctime_r.texi: Likewise.
26086         * doc/posix-functions/getgrgid_r.texi: Likewise.
26087         * doc/posix-functions/getgrnam_r.texi: Likewise.
26088         * doc/posix-functions/getpwnam_r.texi: Likewise.
26089         * doc/posix-functions/getpwuid_r.texi: Likewise.
26090         * doc/posix-functions/readdir_r.texi: Likewise.
26091         * doc/posix-functions/sigwait.texi: Likewise.
26092         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26093         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26094
26095 2010-04-25  Bruno Haible  <bruno@clisp.org>
26096
26097         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26098         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26099         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26100         * lib/ttyname_r.c: Include <limits.h>.
26101         (ttyname_r): Define using the system's ttyname_r function, if it exists
26102         and not on Solaris.
26103         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26104         set.
26105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26106         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26107         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26108         Reported by Simon Josefsson.
26109
26110 2010-04-25  Bruno Haible  <bruno@clisp.org>
26111
26112         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26113         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26114         * doc/posix-functions/ctime_r.texi: Likewise.
26115         * doc/posix-functions/getgrgid_r.texi: Likewise.
26116         * doc/posix-functions/getgrnam_r.texi: Likewise.
26117         * doc/posix-functions/getlogin_r.texi: Likewise.
26118         * doc/posix-functions/getpwnam_r.texi: Likewise.
26119         * doc/posix-functions/getpwuid_r.texi: Likewise.
26120         * doc/posix-functions/readdir_r.texi: Likewise.
26121         * doc/posix-functions/sigwait.texi: Likewise.
26122         * doc/posix-functions/ttyname_r.texi: Likewise.
26123         Reported by Simon Josefsson.
26124
26125 2010-04-25  Bruno Haible  <bruno@clisp.org>
26126
26127         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26128         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26129         also to --create-testdir.
26130         (func_acceptable): Don't consider the status of *-tests modules here.
26131         (func_modules_transitive_closure): Consider it here, before including a
26132         test module.
26133         (func_import, func_create_testdir): Set inc_all_direct_tests,
26134         inc_all_indirect_tests.
26135         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26136         --create-testdir and --create-megatestdir.
26137
26138 2010-04-25  Bruno Haible  <bruno@clisp.org>
26139
26140         gnulib-tool: Add --without-*-tests options.
26141         * gnulib-tool (func_usage): Document the --without-*-tests options.
26142         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26143         excl_unportable_tests): New variables.
26144         Fail if they are specified with --import or --update.
26145         (func_acceptable): Respect the excl_*_tests variables.
26146         (func_import): Set the excl_*_tests variables to empty.
26147
26148 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26149             Bruno Haible  <bruno@clisp.org>
26150
26151         Work around a MacOS X 10.4 bug with openpty.
26152         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26153         * tests/test-openpty.c (main): Close the master side explicitly.
26154
26155 2010-04-25  Bruno Haible  <bruno@clisp.org>
26156
26157         strnlen: Fix a C++ test error on MacOS X and Solaris.
26158         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26159         the function is not declared.
26160         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26161         Simon Josefsson.
26162
26163 2010-04-24  Bruno Haible  <bruno@clisp.org>
26164
26165         Avoid a gcc warning.
26166         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26167         of correct type for %08lx directive.
26168         Reported by Eric Blake.
26169
26170 2010-04-24  Bruno Haible  <bruno@clisp.org>
26171
26172         vasnprintf: Correct errno value in case of out-of-memory.
26173         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26174         or sprintf. Use the errno value from SNPRINTF or sprintf.
26175         Reported by Ian Beckwith <ianb@erislabs.net>.
26176
26177 2010-04-24  Bruno Haible  <bruno@clisp.org>
26178
26179         ansi-c++-opt: Find correct compiler when cross-compiling.
26180         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26181         AC_CHECK_PROGS.
26182         Reported by Simon Josefsson.
26183
26184 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26185
26186         vc-list-files: Add support for subversion
26187         * build-aux/vc-list-files: Use "svn list" to generate the list of
26188         files controlled by subversion.
26189
26190 2010-04-23  Jim Meyering  <meyering@redhat.com>
26191
26192         vc-list-files tests: convert to use init.sh
26193         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26194         path_prepend_.
26195         Use Exit, not exit.
26196         Use skip_ rather than open coding it.
26197         Remove trap set-up and compare definitions.
26198         * tests/test-vc-list-files-git.sh: Likewise.
26199         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26200
26201 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26202
26203         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26204         backup files.
26205
26206 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26207
26208         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26209
26210 2010-04-20  Eric Blake  <eblake@redhat.com>
26211
26212         tests: be robust to ignored SIGPIPE
26213         * tests/test-select-in.sh: Consume all output.
26214         * tests/test-lseek.sh: Check correct exit status, while avoiding
26215         EPIPE.
26216
26217 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26218             Bruno Haible  <bruno@clisp.org>
26219
26220         visibility: Don't use -fvisibility if it leads to a warning.
26221         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26222         yes, don't pretend that visibility works if it leads to a warning.
26223         Reported by Mike Gran <spk121@yahoo.com>.
26224
26225 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26226
26227         * build-aux/bootstrap: Use "git -h" for testing for supported options
26228         instead of "git --help".  The short-form option only shows a summary,
26229         and doesn't layout the full man page.  Grep for the full option name
26230         in the summary, too.
26231
26232 2010-04-19  Bruno Haible  <bruno@clisp.org>
26233
26234         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26235         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26236         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26237         mention of RELOCATABLE_STRIP.
26238         Reported by Sylvain Beucler <beuc@beuc.net>.
26239
26240 2010-04-19  Bruno Haible  <bruno@clisp.org>
26241
26242         * lib/diffseq.h: Fix typo in comment.
26243         Reported by Eric Blake.
26244
26245 2010-04-19  Bruno Haible  <bruno@clisp.org>
26246
26247         ioctl: Move autoconf macro to a .m4 file.
26248         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26249         * modules/ioctl (Files): Add it.
26250         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26251         Reported by Ian Beckwith <ianb@erislabs.net>.
26252
26253 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26254             Bruno Haible  <bruno@clisp.org>
26255
26256         diffseq: Accommodate use-case with abstract arrays.
26257         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26258         is not defined.
26259         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26260         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26261
26262 2010-04-18  Bruno Haible  <bruno@clisp.org>
26263
26264         * doc/posix-headers/stdbool.texi: More precise wording.
26265
26266 2010-04-17  Jim Meyering  <meyering@redhat.com>
26267
26268         maint.mk: use gnu-style indentation in an embedded perl script
26269         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26270         Rename variable: s/two/last_two_bytes/
26271
26272 2010-04-16  Eric Blake  <eblake@redhat.com>
26273
26274         test-stdbool: skip test that fails with Solaris CC
26275         * tests/test-stdbool.c (f): Skip test that causes compilation
26276         error under buggy C++ compiler.
26277         * lib/stdbool.in.h: Document the limitation.
26278         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26279
26280         setenv: allow compilation with C++
26281         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26282         register keyword.
26283
26284         stdint: allow test to pass with C++
26285         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26286
26287         getopt: allow compilation with C++
26288         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26289         struct.
26290         * lib/getopt.c (_getopt_internal_r): Use correct type.
26291         Reported by Dagobert Michelson, via Joel E. Denny.
26292
26293 2010-04-16  Bruno Haible  <bruno@clisp.org>
26294
26295         Override netdb.h always.
26296         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26297         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26298         Reported by Ludovic Courtès <ludo@gnu.org>.
26299
26300 2010-04-15  Bruno Haible  <bruno@clisp.org>
26301
26302         openpty: Fix mistake from 2010-03-21.
26303         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26304         Reported by Simon Josefsson.
26305
26306 2010-04-15  Eric Blake  <eblake@redhat.com>
26307
26308         test-forkpty: fix expected signature
26309         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26310         Reported by Simon Josefsson.
26311
26312 2010-04-15  Jim Meyering  <meyering@redhat.com>
26313
26314         maint.mk: texinfo_suffix_re_: correct the default regexp
26315         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26316
26317         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26318         make it configurable via texinfo_suffix_re_.
26319
26320 2010-04-14  Eric Blake  <eblake@redhat.com>
26321
26322         strtok_r: relax license to LGPLv2+
26323         * modules/strtok_r (License): Relax license.
26324         Reported by Matthias Bolte.
26325
26326 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26327
26328         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26329         version 1.4.4 by default instead of requiring the libgcrypt
26330         version used during build.  This makes it possible to use the
26331         application with older but still binary compatible libgcrypt
26332         versions.
26333
26334 2010-04-13  Eric Blake  <eblake@redhat.com>
26335
26336         getopt-gnu: match recent glibc fixes and posix ruling
26337         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26338         '+' handling, when requesting extensions.
26339         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26340         'W;' handling.
26341         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26342         * doc/posix-functions/getopt.texi (getopt): Document this.
26343         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26344         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26345         Likewise.
26346
26347         getopt: merge bug fixes from glibc
26348         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26349         diagnostics.  Honor '+:' correctly.  Reject ';'.
26350
26351         getopt-posix: detect MacOS bug
26352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26353         optind when missing a required argument.
26354         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26355         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26356         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26357         Likewise.
26358
26359         getopt-posix: avoid spurious failure on Solaris
26360         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26361         an indicator that setting optind=1 is sufficient for reset.
26362
26363         getopt-posix: avoid spurious failure on FreeBSD
26364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26365         in POSIX mode, since the m4 test uses it.
26366
26367         gnulib-tool: silence warning on BSD sh
26368         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26369
26370 2010-04-13  Jim Meyering  <meyering@redhat.com>
26371
26372         doc: users.txt: GNU patch now uses gnulib
26373         * users.txt: Add patch.
26374
26375 2010-04-12  Jim Meyering  <meyering@redhat.com>
26376
26377         maint.mk: generate more concise timing data for syntax-check rules
26378         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26379         " done" from each line that reports a syntax-check test duration.
26380
26381 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26382
26383         git-version-gen: use "git update-index..." rather than "git status"
26384         * build-aux/git-version-gen: Use git update-index --refresh, not
26385         "git status".  With some versions of git, "git status" would fail
26386         to update the index and result in an unwarranted "-dirty" suffix.
26387
26388 2010-04-11  Jim Meyering  <meyering@redhat.com>
26389
26390         openat: correct formatting (no semantic change)
26391         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26392         Suggested by Bruno Haible.
26393
26394 2010-04-11  Bruno Haible  <bruno@clisp.org>
26395
26396         Stricter declaration checking in testdirs.
26397         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26398         If for_tests is true, augment AM_CPPFLAGS to define
26399         GNULIB_STRICT_CHECKING.
26400         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26401         GNULIB_STRICT_CHECKING is defined, verify that the function is
26402         declared.
26403
26404 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26405             Bruno Haible  <bruno@clisp.org>
26406
26407         libunistring: Improve configure output.
26408         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26409         Don't say "consider installing GNU libunistring" when checking again
26410         with libiconv.
26411
26412 2010-04-11  Bruno Haible  <bruno@clisp.org>
26413
26414         libunistring: Correct value of $LTLIBUNISTRING.
26415         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26416         correct the value of $LTLIBUNISTRING.
26417
26418 2010-04-11  Bruno Haible  <bruno@clisp.org>
26419
26420         havelib: Add static libraries to LIBS in the right order.
26421         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26422         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26423
26424 2010-04-11  Bruno Haible  <bruno@clisp.org>
26425
26426         libunistring: Detect libunistring also when it depends on libiconv.
26427         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26428         the second AC_LIB_HAVE_LINKFLAGS invocation.
26429
26430 2010-04-11  James Youngman  <jay@gnu.org>
26431
26432         close-stream: declare local scalars to be "const"
26433         * lib/close-stream.c (close_stream): Make boolean variables const
26434         to document the fact that we set but do not change them.
26435
26436 2010-04-11  Bruno Haible  <bruno@clisp.org>
26437
26438         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26439
26440 2010-04-11  Jim Meyering  <meyering@redhat.com>
26441
26442         maint.mk: don't include dist-check.mk
26443         * top/maint.mk: Remove bogus include directive.
26444
26445         maint.mk: improve empty-line-at-EOF check
26446         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26447         solution, rather than tail+Perl-based one.  The latter would read
26448         a few kilobytes from the end of each file, and did not handle empty
26449         files properly.
26450
26451         maint.mk: print the elapsed time for each syntax-check rule
26452         * top/maint.mk (sc_m_rules_): Save start time in a file.
26453         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26454         (local-check): Interpose the .z rules
26455
26456 2010-04-11  Jim Meyering  <meyering@redhat.com>
26457
26458         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26459         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26460         empty file with one that ends in an empty line.
26461
26462 2010-04-10  Bruno Haible  <bruno@clisp.org>
26463
26464         mkdir: Make it work on mingw64.
26465         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26466         * lib/mkdir.c: Update comment.
26467         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26468
26469 2010-04-10  Bruno Haible  <bruno@clisp.org>
26470
26471         Don't override improved macro from newer autoconf.
26472         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26473         autoconf >= 2.62.
26474         Reported by Joel E. Denny <jdenny@clemson.edu>.
26475
26476 2010-04-10  Jim Meyering  <meyering@redhat.com>
26477
26478         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26479         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26480
26481         maint.mk: correct a diagnostic
26482         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26483         in diagnostic; now use $prohibit.
26484
26485 2010-04-10  Bruno Haible  <address@hidden>
26486
26487         fchownat: Fix a C++ test error on Solaris 8.
26488         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26489         the function does not exist.
26490
26491 2010-04-10  Bruno Haible  <bruno@clisp.org>
26492
26493         vasnprintf: Add more tests.
26494         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26495         (test_function): Test converting an invalid wide string.
26496
26497         vasnprintf: Correct handling of unconvertible wide string arguments.
26498         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26499         VASNPRINTF.
26500         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26501         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26502         smaller than the expected maximum need for the directive. Set errno to
26503         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26504         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26506         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26507         * modules/vasnprintf (Files): Add m4/printf.m4.
26508         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26509
26510 2010-04-10  Bruno Haible  <bruno@clisp.org>
26511
26512         vasnprintf: Fix crash in %ls directive.
26513         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26514         string is passed as argument to %ls, with no precision and no width.
26515         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26516
26517 2010-04-10  Bruno Haible  <bruno@clisp.org>
26518
26519         vasnprintf: Fix multiple test failures on mingw.
26520         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26521         _snprintf, or snwprintf, not _snwprintf.
26522
26523 2010-04-10  Bruno Haible  <bruno@clisp.org>
26524
26525         write: Fix a C++ test error on mingw.
26526         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26527
26528 2010-04-10  Bruno Haible  <bruno@clisp.org>
26529
26530         vasnprintf test: Reduce code duplication.
26531         * tests/test-vasnprintf.c (test_function): New function, extracted from
26532         test_vasnprintf.
26533         (test_vasnprintf, test_asnprintf): Invoke it.
26534
26535 2010-04-10  Bruno Haible  <bruno@clisp.org>
26536
26537         strnlen: Fix warning in C++ mode on MacOS X.
26538         * lib/string.in.h (strnlen): Use the modern idiom.
26539         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26540         defining strnlen as a macro already in <config.h>.
26541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26542         REPLACE_STRNLEN.
26543         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26544         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26545
26546 2010-04-08  James Youngman  <jay@gnu.org>
26547
26548         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26549         the example.
26550
26551 2010-04-09  Jim Meyering  <meyering@redhat.com>
26552
26553         maint.mk: print better diagnostic when there is no $(_hv_file)
26554         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26555         announce that when $(_hv_file) (aka help-version) does not exist.
26556
26557         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26558         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26559         not try to interpret its random input bytes.  Jarno Rajahalme reported
26560         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26561         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26562         (mktempd_): Likewise, just in case.
26563
26564         ftruncate: add two years to projected module removal date: 2012
26565         * m4/ftruncate.m4: Adjust comments.
26566
26567         ftruncate: mark module as obsolete; even MinGW provides it, now
26568         * modules/ftruncate (Status): Obsolete.
26569         (Notice): Say that.
26570         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26571         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26572
26573 2010-04-08  Bruno Haible  <bruno@clisp.org>
26574
26575         Fix side effects from tests-related modules.
26576         * modules/dprintf-posix (Comment): New section.
26577         * modules/fprintf-posix (Comment): Likewise.
26578         * modules/obstack-printf-posix (Comment): Likewise.
26579         * modules/printf-posix (Comment): Likewise.
26580         * modules/snprintf-posix (Comment): Likewise.
26581         * modules/sprintf-posix (Comment): Likewise.
26582         * modules/vasnprintf-posix (Comment): Likewise.
26583         * modules/vasprintf-posix (Comment): Likewise.
26584         * modules/vdprintf-posix (Comment): Likewise.
26585         * modules/vfprintf-posix (Comment): Likewise.
26586         * modules/vprintf-posix (Comment): Likewise.
26587         * modules/vsnprintf-posix (Comment): Likewise.
26588         * modules/vsprintf-posix (Comment): Likewise.
26589         * modules/xprintf-posix (Comment): Likewise.
26590         * modules/xvasprintf-posix (Comment): Likewise.
26591         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26592         * modules/floorf-tests (Depends-on): Likewise.
26593         * modules/round-tests (Depends-on): Likewise.
26594         * modules/roundf-tests (Depends-on): Likewise.
26595         * modules/trunc-tests (Depends-on): Likewise.
26596         * modules/truncf-tests (Depends-on): Likewise.
26597         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26598         'fprintf-posix' module is not present.
26599         * tests/test-floorf2.c (check): Likewise.
26600         * tests/test-trunc2.c (check): Likewise.
26601         * tests/test-truncf2.c (check): Likewise.
26602         * tests/test-round2.c (equal): Likewise.
26603         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26604
26605 2010-04-07  Karl Berry  <karl@gnu.org>
26606
26607         * config/srclist.txt,
26608         * config/srclistvars.sh,
26609         * config/srclist-update: doc fixes.
26610
26611 2010-04-07  Jim Meyering  <meyering@redhat.com>
26612
26613         maint.mk: add a PATH crosschecking syntax-check rule
26614         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26615         Useful if you use a test like the one in help-version (coreutils,
26616         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26617         printed by prog --version.
26618
26619 2010-04-06  Bruno Haible  <bruno@clisp.org>
26620
26621         Fix link error on mingw.
26622         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26623         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26624
26625 2010-04-06  Bruno Haible  <bruno@clisp.org>
26626
26627         Assume rmdir exists.
26628         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26629
26630 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26631
26632         doc: update users.txt
26633         * users.txt: Add gcal.
26634
26635 2010-04-06  Jim Meyering  <meyering@redhat.com>
26636
26637         init.sh: simply unset TMPDIR rather than risking env -i
26638         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26639         although it probably works fine on all Unix-based systems, some
26640         systems (Cygwin?) cannot tolerate a totally cleared environment.
26641         Suggestion from Eric Blake.
26642
26643 2010-04-06  Jim Meyering  <meyering@redhat.com>
26644
26645         init.sh: portability fix: use env's POSIX-specified -i option not -u
26646         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26647         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26648
26649 2010-04-05  Bruno Haible  <bruno@clisp.org>
26650
26651         btowc: Work around Cygwin 1.7.2 bug.
26652         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26653         does not map NUL to 0.
26654         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26655
26656 2010-04-05  Bruno Haible  <bruno@clisp.org>
26657
26658         Make the multithread modules work on Cygwin 1.7.2.
26659         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26660         imported symbols can be declared weak, so that it returns "no" on
26661         Cygwin 1.7.2.
26662
26663 2010-04-05  Bruno Haible  <bruno@clisp.org>
26664
26665         Use the module 'strncat'.
26666         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26667
26668         Tests for module 'strncat'.
26669         * modules/strncat-tests: New file.
26670         * tests/test-strncat.c: New file.
26671
26672         New module 'strncat'.
26673         * lib/string.in.h (strncat): New declaration.
26674         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26675         * m4/strncat.m4: New file, based on m4/memchr.m4.
26676         * modules/strncat: New file.
26677         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26678         is declared.
26679         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26680         REPLACE_STRNCAT.
26681         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26682         REPLACE_STRNCAT.
26683         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26684         module.
26685         * tests/test-string-c++.cc: Check signature of strncat.
26686
26687 2010-04-05  Jim Meyering  <meyering@redhat.com>
26688
26689         xstrtoumax-tests: convert to use init.sh
26690         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26691         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26692         Use Exit, not exit.
26693         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26694
26695         xstrtoimax-tests: convert to use init.sh
26696         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26697         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26698         Use Exit, not exit.
26699         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26700
26701 2010-04-05  Bruno Haible  <bruno@clisp.org>
26702
26703         sys_socket: Avoid #define replacements in C++ mode.
26704         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
26705         warning to the function if possible, rather than #defining the symbol
26706         to a dysfunctional alias.
26707
26708 2010-04-05  Bruno Haible  <bruno@clisp.org>
26709
26710         fseeko: Fix C++ test error on mingw.
26711         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26712         gl_FUNC_FSEEKO.
26713         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
26714         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
26715         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
26716         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
26717
26718 2010-04-05  Bruno Haible  <bruno@clisp.org>
26719
26720         duplocale: Improve test output.
26721         * tests/test-duplocale.c (main): Print reason for skipped test.
26722
26723 2010-04-05  Bruno Haible  <bruno@clisp.org>
26724
26725         Assume rmdir exists.
26726         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
26727         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
26728
26729 2010-04-05  Bruno Haible  <bruno@clisp.org>
26730
26731         Fix link error on Solaris 8 with cc.
26732         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
26733
26734 2010-04-05  Bruno Haible  <bruno@clisp.org>
26735
26736         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26737         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
26738
26739 2010-04-05  Bruno Haible  <bruno@clisp.org>
26740
26741         vasprintf: Update documentation.
26742         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26743
26744 2010-04-05  Bruno Haible  <bruno@clisp.org>
26745
26746         ptsname: Improve test.
26747         * tests/test-ptsname.c (main): Also try the various master names of BSD
26748         systems.
26749
26750 2010-04-05  Bruno Haible  <bruno@clisp.org>
26751
26752         memchr: Avoid a possible C++ test error.
26753         * lib/string.in.h (memchr): Provide declaration if function is missing.
26754         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26755         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26757         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26758
26759 2010-04-05  Bruno Haible  <bruno@clisp.org>
26760
26761         strtok_r: Improve idiom.
26762         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26763         AC_LIBOBJ is used.
26764
26765 2010-04-05  Bruno Haible  <bruno@clisp.org>
26766
26767         strdup: Improve idiom.
26768         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26769         AC_LIBOBJ is used.
26770         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
26771         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
26772         when AC_LIBOBJ is used.
26773
26774 2010-04-05  Bruno Haible  <bruno@clisp.org>
26775
26776         mbsinit, mbrtowc, wcrtomb: Improve idioms.
26777         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26778         don't set REPLACE_MBSINIT to 1.
26779         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26780         don't set REPLACE_MBRTOWC to 1.
26781         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26782         exist, don't set REPLACE_MBSRTOWCS to 1.
26783         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26784         exist, don't set REPLACE_MBSNRTOWCS to 1.
26785         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26786         don't set REPLACE_WCRTOMB to 1.
26787         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26788         exist, don't set REPLACE_WCSRTOMBS to 1.
26789         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26790         exist, don't set REPLACE_WCSNRTOMBS to 1.
26791
26792 2010-04-05  Bruno Haible  <bruno@clisp.org>
26793
26794         ldexpl: Improve idiom.
26795         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26796         make sure to set HAVE_DECL_LDEXPL to 0.
26797
26798 2010-04-05  Jim Meyering  <meyering@redhat.com>
26799
26800         xstrtol-tests: convert to use init.sh
26801         * modules/xstrtol-tests (Files): Add tests/init.sh.
26802         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26803         Use Exit, not exit.
26804         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26805
26806         atexit-tests: convert to use init.sh
26807         * modules/atexit-tests (Files): Add tests/init.sh.
26808         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26809         Use Exit, not exit.
26810         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26811
26812         init.sh: fix typo
26813         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26814
26815         init.sh: make it easier for a test script to write to the tty, ...
26816         when using automake's parallel-tests mode.
26817         * tests/init.sh (stderr_fileno_): Define overridable variable.
26818         (warn_): New function, to use it.
26819         (fail_, skip_, framework_failure_): Use warn_.
26820
26821 2010-04-04  Bruno Haible  <bruno@clisp.org>
26822
26823         btowc: Avoid warning.
26824         * lib/btowc.c: Include <stdlib.h>.
26825         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26826
26827 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26828             Bruno Haible  <bruno@clisp.org>
26829
26830         wchar: Port to NetBSD 1.5.
26831         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26832         * lib/wctype.in.h (WEOF): Likewise.
26833
26834 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26835             Bruno Haible  <bruno@clisp.org>
26836
26837         Port extended stdio to NetBSD 1.5.
26838         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26839         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26840         older.
26841
26842 2010-04-04  Bruno Haible  <bruno@clisp.org>
26843
26844         string: Remove unused substitution.
26845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26846         HAVE_DECL_STRERROR.
26847         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26848
26849 2010-04-04  Bruno Haible  <bruno@clisp.org>
26850
26851         strtod: Avoid a possible C++ test error.
26852         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26853         set REPLACE_STRTOD.
26854
26855 2010-04-04  Bruno Haible  <bruno@clisp.org>
26856
26857         strerror: Update documentation.
26858         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26859
26860 2010-04-04  Bruno Haible  <bruno@clisp.org>
26861
26862         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26863         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26864         _GL_CXXALIAS_SYS_CAST.
26865
26866 2010-04-04  Bruno Haible  <bruno@clisp.org>
26867
26868         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26869         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26870         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26871         REPLACE_FREXPL to 1.
26872         * doc/posix-functions/frexpl.texi: Update documentation.
26873
26874 2010-04-04  Bruno Haible  <bruno@clisp.org>
26875
26876         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26877         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26878
26879 2010-04-04  Bruno Haible  <bruno@clisp.org>
26880
26881         Implement nanosleep for native Windows.
26882         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26883
26884 2010-04-04  Bruno Haible  <bruno@clisp.org>
26885
26886         math: Fix some C++ test errors on Solaris 8.
26887         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26888
26889 2010-04-04  Bruno Haible  <bruno@clisp.org>
26890
26891         math: Fix some C++ test errors on Cygwin.
26892         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26893         truncl): Provide declaration if the system does not have it.
26894         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26895         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26896         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26897         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26898         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26899         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26900         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26901         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26902         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26903         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26904         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26905         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26906         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26907         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26908         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26909         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26911         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26912         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26913         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26914         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26915         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26916
26917 2010-04-04  Bruno Haible  <bruno@clisp.org>
26918
26919         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26920         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26921         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26922         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26923         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26924         * m4/isinf.m4 (gl_ISINF): Likewise.
26925         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26926
26927 2010-04-04  Bruno Haible  <bruno@clisp.org>
26928
26929         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26930         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26931
26932 2010-04-04  Bruno Haible  <bruno@clisp.org>
26933
26934         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26935         * modules/tmpfile (configure.ac): Update.
26936
26937         tmpfile: Fix C++ test error on mingw.
26938         * lib/stdio.in.h (tmpfile): New declaration.
26939         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26940         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26941         * modules/tmpfile (Depends-on): Add stdio.
26942         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26943         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26944         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26945         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26946         REPLACE_TMPFILE.
26947         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26948
26949 2010-04-04  Bruno Haible  <bruno@clisp.org>
26950
26951         ioctl: Fix C++ test error on mingw.
26952         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26953         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26954         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26955
26956 2010-04-03  Bruno Haible  <bruno@clisp.org>
26957
26958         wcwidth: Fix C++ test error on mingw.
26959         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26961         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26962
26963 2010-04-03  Bruno Haible  <bruno@clisp.org>
26964
26965         nanosleep: Fix C++ test error on mingw.
26966         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26967         * lib/time.in.h (nanosleep): Use modern idiom.
26968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26969         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26970         REPLACE_NANOSLEEP to 1.
26971         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26972         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26973
26974 2010-04-03  Bruno Haible  <bruno@clisp.org>
26975
26976         strptime: Fix C++ test error on mingw.
26977         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26978         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26979         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26980         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26981         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26982         not REPLACE_STRPTIME.
26983         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26984         REPLACE_STRPTIME.
26985
26986 2010-04-03  Bruno Haible  <bruno@clisp.org>
26987
26988         timegm: Fix C++ test error on mingw.
26989         * lib/time.in.h (timegm): Use modern idiom.
26990         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26991         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26992         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26993         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26994
26995 2010-04-03  Bruno Haible  <bruno@clisp.org>
26996
26997         timegm: Assume declaration if function exists.
26998         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26999         if it exists. Don't clobber ac_cv_func_timegm.
27000
27001 2010-04-03  Bruno Haible  <bruno@clisp.org>
27002
27003         time_r: Fix C++ test error on mingw.
27004         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27005         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27006         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27007         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27008         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27009
27010 2010-04-03  Bruno Haible  <bruno@clisp.org>
27011
27012         time_r: Minor updates.
27013         * modules/time_r (Description): Mention the provided functions.
27014         * lib/time_r.c: Don't include <string.h>.
27015         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27016         * doc/posix-functions/localtime_r.texi: Likewise.
27017
27018 2010-04-03  Bruno Haible  <bruno@clisp.org>
27019
27020         time: Fix regression introduced on 2010-03-08.
27021         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27022         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27023
27024 2010-04-03  Jim Meyering  <meyering@redhat.com>
27025
27026         maint.mk: don't silently disable project-specific syntax-check rules
27027         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27028         that they need to convert their project-specific syntax-check rules
27029         to use the new _sc_search_regexp.
27030
27031 2010-04-03  Bruno Haible  <bruno@clisp.org>
27032
27033         fchdir: Fix regression introduced on 2010-03-08.
27034         * lib/unistd.in.h (fchdir): Fix declaration.
27035         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27037         REPLACE_FCHDIR.
27038         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27039         REPLACE_FCHDIR.
27040
27041 2010-04-03  Bruno Haible  <bruno@clisp.org>
27042
27043         getpagesize: Fix C++ test error on mingw.
27044         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27045         system does not declare the function.
27046         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27047         declared.
27048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27049         HAVE_DECL_GETPAGESIZE.
27050         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27051
27052 2010-04-03  Bruno Haible  <bruno@clisp.org>
27053
27054         stdio: Make C++ tests work on mingw.
27055         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27056         does not declare the function.
27057
27058 2010-04-03  Bruno Haible  <bruno@clisp.org>
27059
27060         ftello: Fix C++ test error on mingw.
27061         * lib/stdio.in.h (ftello): Use modern idiom.
27062         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27063         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27064         is missing and that it needs to be replaced.
27065         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27067         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27068
27069 2010-04-03  Bruno Haible  <bruno@clisp.org>
27070
27071         fseeko: Fix C++ test error on mingw.
27072         * lib/stdio.in.h (fseeko): Use modern idiom.
27073         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27074         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27075         is missing and that it needs to be replaced.
27076         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27078         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27079
27080 2010-04-03  Bruno Haible  <bruno@clisp.org>
27081
27082         mkstemp: Fix C++ test error on mingw.
27083         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27084         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27085         function is missing and that it needs to be replaced.
27086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27087         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27088
27089 2010-04-03  Bruno Haible  <bruno@clisp.org>
27090
27091         stpncpy: Fix C++ test error on mingw.
27092         * lib/string.in.h (stpncpy): Use modern idiom.
27093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27094         function is missing and that it needs to be replaced.
27095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27096         REPLACE_STPNCPY.
27097         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27098
27099 2010-04-03  Bruno Haible  <bruno@clisp.org>
27100
27101         sys_stat: Fix C++ test error on mingw.
27102         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27103         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27104
27105 2010-04-03  Bruno Haible  <bruno@clisp.org>
27106
27107         pty: Update doc.
27108         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27109
27110 2010-04-03  Bruno Haible  <bruno@clisp.org>
27111
27112         unistd: Fix C++ test error on mingw.
27113         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27114
27115 2010-04-03  Bruno Haible  <bruno@clisp.org>
27116
27117         Update doc regarding mingw.
27118         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27119         * doc/glibc-functions/login_tty.texi: Likewise.
27120         * doc/glibc-functions/forkpty.texi: Likewise.
27121
27122 2010-04-03  Bruno Haible  <bruno@clisp.org>
27123
27124         stdlib: Avoid compilation failure of c-strtold on mingw.
27125         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27126
27127 2010-04-03  Bruno Haible  <bruno@clisp.org>
27128
27129         locale: Make C++ tests work on Cygwin and mingw.
27130         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27131         cannot provide the function.
27132         Reported by Simon Josefsson.
27133
27134 2010-04-03  Bruno Haible  <bruno@clisp.org>
27135
27136         localename: Port to MacOS X 10.6.
27137         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27138         memory layout of the locales in MacOS X 10.6 as well.
27139         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27140
27141 2010-04-02  Bruno Haible  <bruno@clisp.org>
27142
27143         gnulib-tool: Ensure that long-running tests are executed last.
27144         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27145         running tests after the one for the other tests.
27146
27147 2010-04-02  Bruno Haible  <bruno@clisp.org>
27148
27149         gnulib-tool: Ensure the tests in the main directory are executed first.
27150         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27151         start with the current directory.
27152
27153 2010-04-02  Bruno Haible  <bruno@clisp.org>
27154
27155         Tests for module 'havelib', moved here from GNU gettext.
27156         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27157         modifications.
27158         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27159         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27160         with modifications.
27161         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27162         modifications.
27163         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27164         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27165         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27166         with modifications.
27167         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27168         with modifications.
27169         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27170         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27171         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27172         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27173         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27174         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27175         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27176         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27177         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27178         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27179         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27180         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27181         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27182         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27183         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27184         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27185         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27186         with modifications.
27187         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27188         with modifications.
27189         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27190         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27191         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27192         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27193         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27194         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27195         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27196         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27197         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27198         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27199         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27200         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27201         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27202         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27203         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27204         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27205         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27206         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27207         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27208         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27209         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27210         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27211         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27212         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27213         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27214         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27215         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27216         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27217         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27218         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27219         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27220         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27221         * tests/havelib/rpathx/rpathx.c: New file, from
27222         gettext/autoconf-lib-link.
27223         * tests/havelib/rpathx/Makefile.am: New file, from
27224         gettext/autoconf-lib-link.
27225         * tests/havelib/rpathx/configure.ac: New file, from
27226         gettext/autoconf-lib-link with modifications.
27227         * tests/havelib/rpathy/rpathy.c: New file, from
27228         gettext/autoconf-lib-link.
27229         * tests/havelib/rpathy/Makefile.am: New file, from
27230         gettext/autoconf-lib-link.
27231         * tests/havelib/rpathy/configure.ac: New file, from
27232         gettext/autoconf-lib-link with modifications.
27233         * tests/havelib/rpathz/rpathz.c: New file, from
27234         gettext/autoconf-lib-link.
27235         * tests/havelib/rpathz/Makefile.am: New file, from
27236         gettext/autoconf-lib-link.
27237         * tests/havelib/rpathz/configure.ac: New file, from
27238         gettext/autoconf-lib-link with modifications.
27239         * tests/havelib/rpathlx/usex.c: New file, from
27240         gettext/autoconf-lib-link.
27241         * tests/havelib/rpathlx/Makefile.am: New file, from
27242         gettext/autoconf-lib-link.
27243         * tests/havelib/rpathlx/configure.ac: New file, from
27244         gettext/autoconf-lib-link with modifications.
27245         * tests/havelib/rpathly/usey.c: New file, from
27246         gettext/autoconf-lib-link.
27247         * tests/havelib/rpathly/Makefile.am: New file, from
27248         gettext/autoconf-lib-link.
27249         * tests/havelib/rpathly/configure.ac: New file, from
27250         gettext/autoconf-lib-link with modifications.
27251         * tests/havelib/rpathlz/usez.c: New file, from
27252         gettext/autoconf-lib-link.
27253         * tests/havelib/rpathlz/Makefile.am: New file, from
27254         gettext/autoconf-lib-link.
27255         * tests/havelib/rpathlz/configure.ac: New file, from
27256         gettext/autoconf-lib-link with modifications.
27257         * tests/havelib/rpathlyx/usey.c: New file, from
27258         gettext/autoconf-lib-link.
27259         * tests/havelib/rpathlyx/Makefile.am: New file, from
27260         gettext/autoconf-lib-link.
27261         * tests/havelib/rpathlyx/configure.ac: New file, from
27262         gettext/autoconf-lib-link with modifications.
27263         * tests/havelib/rpathlzyx/usez.c: New file, from
27264         gettext/autoconf-lib-link.
27265         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27266         gettext/autoconf-lib-link.
27267         * tests/havelib/rpathlzyx/configure.ac: New file, from
27268         gettext/autoconf-lib-link with modifications.
27269         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27270         with modifications.
27271
27272 2010-04-02  Bruno Haible  <bruno@clisp.org>
27273
27274         gnulib-tool: Create distributed built sources also for the tests.
27275         * gnulib-tool (func_create_testdir): Also generate distributed built
27276         sources in the tests directory.
27277
27278 2010-04-02  Bruno Haible  <bruno@clisp.org>
27279
27280         gnulib-tool: Obey user's environment variables.
27281         * gnulib-tool (func_create_testdir): When creating built sources,
27282         respect the environment variables for autoconf, automake, etc. given by
27283         the user.
27284
27285 2010-04-02  Bruno Haible  <bruno@clisp.org>
27286
27287         gnulib-tool: Provide the value of --m4-base to modules.
27288         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27289         of gl_m4_base.
27290
27291 2010-04-02  Eric Blake  <eblake@redhat.com>
27292
27293         maint.mk: fix some fallout
27294         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27295         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27296
27297 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27298
27299         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27300         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27301         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27302         (sc_cast_of_x_alloc_return_value): Likewise.
27303         (sc_cast_of_alloca_return_value): Likewise.
27304         (sc_space_tab): Likewise.
27305         (sc_prohibit_atoi_atof): Likewise.
27306         (sc_prohibit_magic_number_exit): Likewise.
27307         (sc_error_exit_success): Likewise.
27308         (sc_file_system): Likewise.
27309         (sc_prohibit_have_config_h): Likewise.
27310         (sc_require_config_h): Likewise.
27311         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27312         (sc_obsolete_symbols): Likewise.
27313         (sc_changelog): Likewise.
27314         (sc_program_name): Likewise.
27315         (sc_the_the): Likewise.
27316         (sc_trailing_blank): Likewise.
27317         (sc_two_space_separator_in_usage): Likewise.
27318         (sc_useless_cpp_parens): Likewise.
27319         (sc_GPL_version): Likewise.
27320         (sc_GFDL_version): Likewise.
27321         (sc_texinfo_acronym): Likewise.
27322         (sc_prohibit_cvs_keyword): Likewise.
27323         (sc_prohibit_stat_st_blocks): Likewise.
27324         (sc_prohibit_S_IS_definition): Likewise.
27325         (sc_redundant_const): Likewise.
27326         (sc_makefile_TAB_only_indentation): Likewise.
27327         (sc_m4_quote_check): Likewise.
27328         (sc_makefile_path_separator_check): Likewise.
27329         (sc_copyright_check): Likewise.
27330         (sc_Wundef_boolean): Likewise.
27331         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27332
27333         maint.mk: match 0 or more whitespace-before-function-call '('
27334         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27335         that have zero or two-and-more spaces between the function name
27336         and the open parenthesis.
27337         (sc_error_message_warn_fatal): Likewise.
27338         (sc_error_message_uppercase): Likewise.
27339         (sc_error_message_period): Likewise.
27340
27341 2010-03-31  Eric Blake  <eblake@redhat.com>
27342
27343         maint.mk: check for [ as well as test
27344         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27345         Based on a libvirt report by Matthias Bolte.
27346
27347         gnumakefile: don't squelch _version output
27348         * top/GNUmakefile (_version): Create one-shot dependency rather
27349         than using $(shell) when version must be regenerated.
27350         (_autoreconf): Run verbosely, by default.
27351
27352         sys_time: avoid compiler warnings
27353         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27354         unconditional, fixing regression from 2010-03-29.
27355         Reported by Simon Josefsson.
27356
27357 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27358
27359         maint.mk: s/_header_without_use/_sc_header_without_use/
27360         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27361         (sc_prohibit_assert_without_use): Use the new name.
27362         (sc_prohibit_close_stream_without_use): Likewise.
27363         (sc_prohibit_getopt_without_use): Likewise.
27364         (sc_prohibit_quotearg_without_use): Likewise.
27365         (sc_prohibit_quote_without_use): Likewise.
27366         (sc_prohibit_long_options_without_use): Likewise.
27367         (sc_prohibit_inttostr_without_use): Likewise.
27368         (sc_prohibit_ignore_value_without_use): Likewise.
27369         (sc_prohibit_error_without_use): Likewise.
27370         (sc_prohibit_xalloc_without_use): Likewise.
27371         (sc_prohibit_hash_without_use): Likewise.
27372         (sc_prohibit_hash_pjw_without_use): Likewise.
27373         (sc_prohibit_safe_read_without_use): Likewise.
27374         (sc_prohibit_argmatch_without_use): Likewise.
27375         (sc_prohibit_canonicalize_without_use): Likewise.
27376         (sc_prohibit_root_dev_ino_without_use): Likewise.
27377         (sc_prohibit_openat_without_use): Likewise.
27378         (sc_prohibit_c_ctype_without_use): Likewise.
27379         (sc_prohibit_signal_without_use): Likewise.
27380         (sc_prohibit_intprops_without_use): Likewise.
27381
27382 2010-03-30  Eric Blake  <eblake@redhat.com>
27383
27384         maint: improve module indicators
27385         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27386         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27387         columns, and avoid extra macro expansion.
27388
27389         fdopendir: work around FreeBSD bug
27390         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27391         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27392         * modules/dirent (Makefile.am): Substitute it.
27393         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27394         declaration.
27395         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27396         fix.
27397         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27398
27399 2010-03-29  Bruno Haible  <bruno@clisp.org>
27400
27401         Emit #pragma system_header after the inclusion guard, not before.
27402         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27403         guard that spans the entire file, not before. This enables an
27404         optimization in GCC's preprocessor.
27405         * lib/ctype.in.h: Likewise.
27406         * lib/dirent.in.h: Likewise.
27407         * lib/errno.in.h: Likewise.
27408         * lib/float.in.h: Likewise.
27409         * lib/getopt.in.h: Likewise.
27410         * lib/iconv.in.h: Likewise.
27411         * lib/langinfo.in.h: Likewise.
27412         * lib/locale.in.h: Likewise.
27413         * lib/math.in.h: Likewise.
27414         * lib/netdb.in.h: Likewise.
27415         * lib/netinet_in.in.h: Likewise.
27416         * lib/pty.in.h: Likewise.
27417         * lib/sched.in.h: Likewise.
27418         * lib/se-selinux.in.h: Likewise.
27419         * lib/search.in.h: Likewise.
27420         * lib/spawn.in.h: Likewise.
27421         * lib/stdarg.in.h: Likewise.
27422         * lib/stdint.in.h: Likewise.
27423         * lib/string.in.h: Likewise.
27424         * lib/strings.in.h: Likewise.
27425         * lib/sys_file.in.h: Likewise.
27426         * lib/sys_ioctl.in.h: Likewise.
27427         * lib/sys_time.in.h: Likewise.
27428         * lib/sys_times.in.h: Likewise.
27429         * lib/sys_utsname.in.h: Likewise.
27430         * lib/sys_wait.in.h: Likewise.
27431         * lib/sysexits.in.h: Likewise.
27432         * lib/wctype.in.h: Likewise.
27433
27434 2010-03-28  James Youngman  <jay@gnu.org>
27435
27436         save-cwd: don't leak a file descriptor when the caller execs.
27437         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27438         saved file descriptor.
27439         * modules/save-cwd (Depends-on): Depend on cloexec.
27440
27441 2010-03-29  Bruno Haible  <bruno@clisp.org>
27442
27443         Remove vestiges of fts-lgpl module.
27444         * lib/fts_.h: Assume GNULIB_FTS is 1.
27445         * lib/fts.c: Likewise.
27446         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27447
27448 2010-03-28  Bruno Haible  <bruno@clisp.org>
27449
27450         Fix definition of tests witness macro.
27451         * gnulib-tool (func_import): Fix definition of witness macro.
27452
27453 2010-03-28  Bruno Haible  <bruno@clisp.org>
27454
27455         Fix ioctl's protoype on glibc systems.
27456         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27457         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27458         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27459         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27460         signature. If not, arrange to replace the ioctl function.
27461         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27462         REPLACE_IOCTL.
27463         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27464         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27465         Reported by Ludovic Courtès <ludo@gnu.org>.
27466
27467 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27468
27469         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27470         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27471         made it so grep -r --include=GLOB* ... did not work.
27472
27473 2010-03-26  Jim Meyering  <meyering@redhat.com>
27474             Eric Blake  <eblake@redhat.com>
27475
27476         maint.mk: prohibit use of test's -o and -a operators
27477         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27478
27479 2010-03-28  Bruno Haible  <bruno@clisp.org>
27480
27481         Remove unused GNULIB_XYZ macro definitions.
27482         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27483         invocation.
27484
27485 2010-03-28  Bruno Haible  <bruno@clisp.org>
27486
27487         Mark privileged tests modules.
27488         * modules/idpriv-drop-tests (Status): New section.
27489         * modules/idpriv-droptemp-tests (Status): New section.
27490
27491 2010-03-28  Bruno Haible  <bruno@clisp.org>
27492
27493         Split C++ tests into separate tests modules.
27494         * modules/dirent-c++-tests: New file, extracted from
27495         modules/dirent-tests.
27496         * modules/dirent-tests: Depend on it.
27497         * modules/fcntl-h-c++-tests: New file, extracted from
27498         modules/fcntl-h-tests.
27499         * modules/fcntl-h-tests: Depend on it.
27500         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27501         * modules/glob-tests: Depend on it.
27502         * modules/iconv-h-c++-tests: New file, extracted from
27503         modules/iconv-h-tests.
27504         * modules/iconv-h-tests: Depend on it.
27505         * modules/langinfo-c++-tests: New file, extracted from
27506         modules/langinfo-tests.
27507         * modules/langinfo-tests: Depend on it.
27508         * modules/locale-c++-tests: New file, extracted from
27509         modules/locale-tests.
27510         * modules/locale-tests: Depend on it.
27511         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27512         * modules/math-tests: Depend on it.
27513         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27514         * modules/pty-tests: Depend on it.
27515         * modules/search-c++-tests: New file, extracted from
27516         modules/search-tests.
27517         * modules/search-tests: Depend on it.
27518         * modules/signal-c++-tests: New file, extracted from
27519         modules/signal-tests.
27520         * modules/signal-tests: Depend on it.
27521         * modules/spawn-c++-tests: New file, extracted from
27522         modules/spawn-tests.
27523         * modules/spawn-tests: Depend on it.
27524         * modules/stdio-c++-tests: New file, extracted from
27525         modules/stdio-tests.
27526         * modules/stdio-tests: Depend on it.
27527         * modules/stdlib-c++-tests: New file, extracted from
27528         modules/stdlib-tests.
27529         * modules/stdlib-tests: Depend on it.
27530         * modules/string-c++-tests: New file, extracted from
27531         modules/string-tests.
27532         * modules/string-tests: Depend on it.
27533         * modules/sys_ioctl-c++-tests: New file, extracted from
27534         modules/sys_ioctl-tests.
27535         * modules/sys_ioctl-tests: Depend on it.
27536         * modules/sys_select-c++-tests: New file, extracted from
27537         modules/sys_select-tests.
27538         * modules/sys_select-tests: Depend on it.
27539         * modules/sys_socket-c++-tests: New file, extracted from
27540         modules/sys_socket-tests.
27541         * modules/sys_socket-tests: Depend on it.
27542         * modules/sys_stat-c++-tests: New file, extracted from
27543         modules/sys_stat-tests.
27544         * modules/sys_stat-tests: Depend on it.
27545         * modules/sys_time-c++-tests: New file, extracted from
27546         modules/sys_time-tests.
27547         * modules/sys_time-tests: Depend on it.
27548         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27549         * modules/time-tests: Depend on it.
27550         * modules/unistd-c++-tests: New file, extracted from
27551         modules/unistd-tests.
27552         * modules/unistd-tests: Depend on it.
27553         * modules/wchar-c++-tests: New file, extracted from
27554         modules/wchar-tests.
27555         * modules/wchar-tests: Depend on it.
27556         * modules/wctype-c++-tests: New file, extracted from
27557         modules/wctype-tests.
27558         * modules/wctype-tests: Depend on it.
27559         Reported by Simon Josefsson.
27560
27561 2010-03-28  Bruno Haible  <bruno@clisp.org>
27562
27563         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27564         * gnulib-tool (func_exists_module): New function, extracted from
27565         func_verify_module.
27566         (func_verify_module): Use it.
27567         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27568         'foo' only if 'foo' exists.
27569         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27570         module.
27571
27572 2010-03-28  Bruno Haible  <bruno@clisp.org>
27573
27574         gnulib-tool: Add support for special categories of tests.
27575         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27576         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27577         (func_usage): Document them.
27578         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27579         inc_unportable_tests, inc_all_tests): New variables.
27580         (func_acceptable): Consider these variables.
27581         (func_modules_transitive_closure): Make it work when the 'Status' field
27582         consists of multiple words.
27583         (func_import): Store and restore the values of inc_cxx_tests,
27584         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27585         inc_all_tests in gnulib-comp.m4.
27586         (func_create_testdir): Set inc_all_tests to true.
27587         * doc/gnulib.texi (Extra tests modules): New section.
27588         Suggested by Jim Meyering.
27589
27590 2010-03-28  Bruno Haible  <bruno@clisp.org>
27591
27592         ansi-c++-opt: Allow turning off the C++ build by default.
27593         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27594         gl_CXX_CHOICE_DEFAULT_NO is defined.
27595         Requested by Eric Blake.
27596
27597 2010-03-28  Bruno Haible  <bruno@clisp.org>
27598
27599         unistd: Avoid #define replacements in C++ mode.
27600         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27601         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27602         setsockopt, shutdown, select): In C++, attach a warning to the function
27603         if possible, rather than #defining the symbol to a dysfunctional alias.
27604         Reported by John W. Eaton <jwe@gnu.org>.
27605
27606 2010-03-28  Bruno Haible  <bruno@clisp.org>
27607
27608         Fix link errors on mingw.
27609         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27610         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27611         $(LIBSOCKET).
27612         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27613         $(LIBSOCKET).
27614
27615 2010-03-28  Bruno Haible  <bruno@clisp.org>
27616             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27617
27618         lib-ignore: Determine different options for different compilers.
27619         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27620         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27621         Add comments.
27622         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27623         * NEWS: Mention the change.
27624
27625 2010-03-27  Bruno Haible  <bruno@clisp.org>
27626
27627         Remove unused GNULIB_XYZ macro definitions.
27628         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27629         * modules/fseek (configure.ac): Likewise.
27630         * modules/ioctl (configure.ac): Likewise.
27631         * modules/open (configure.ac): Likewise.
27632         * modules/stdlib-safer (configure.ac): Likewise.
27633
27634 2010-03-27  Bruno Haible  <bruno@clisp.org>
27635
27636         Add a remark about certain modules.
27637         * modules/malloc (Comment): New section.
27638         * modules/realloc (Comment): Likewise.
27639         * modules/sigpipe (Comment): Likewise.
27640
27641 2010-03-27  Bruno Haible  <bruno@clisp.org>
27642
27643         Resolve conflict between the two kinds of module indicators.
27644         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27645         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27646         * modules/canonicalize (configure.ac): Invoke
27647         gl_MODULE_INDICATOR_FOR_TESTS.
27648         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27649         GNULIB_XYZ.
27650         * tests/test-dirent-c++.cc: Likewise.
27651         * tests/test-dirent-safer.c: Likewise.
27652         * tests/test-dup2.c: Likewise.
27653         * tests/test-fchdir.c: Likewise.
27654         * tests/test-fcntl-h-c++.cc: Likewise.
27655         * tests/test-getopt.c: Likewise.
27656         * tests/test-getopt.h: Likewise.
27657         * tests/test-langinfo-c++.cc: Likewise.
27658         * tests/test-locale-c++.cc: Likewise.
27659         * tests/test-math-c++.cc: Likewise.
27660         * tests/test-pty-c++.cc: Likewise.
27661         * tests/test-search-c++.cc: Likewise.
27662         * tests/test-signal-c++.cc: Likewise.
27663         * tests/test-spawn-c++.cc: Likewise.
27664         * tests/test-stdio-c++.cc: Likewise.
27665         * tests/test-stdlib-c++.cc: Likewise.
27666         * tests/test-string-c++.cc: Likewise.
27667         * tests/test-sys_ioctl-c++.cc: Likewise.
27668         * tests/test-sys_select-c++.cc: Likewise.
27669         * tests/test-sys_socket-c++.cc: Likewise.
27670         * tests/test-sys_stat-c++.cc: Likewise.
27671         * tests/test-sys_time-c++.cc: Likewise.
27672         * tests/test-time-c++.cc: Likewise.
27673         * tests/test-unistd-c++.cc: Likewise.
27674         * tests/test-wchar-c++.cc: Likewise.
27675         * tests/uninorm/test-u8-nfc.c: Likewise.
27676         * tests/uninorm/test-u8-nfd.c: Likewise.
27677         * tests/uninorm/test-u8-nfkc.c: Likewise.
27678         * tests/uninorm/test-u8-nfkd.c: Likewise.
27679         * tests/uninorm/test-u16-nfc.c: Likewise.
27680         * tests/uninorm/test-u16-nfd.c: Likewise.
27681         * tests/uninorm/test-u16-nfkc.c: Likewise.
27682         * tests/uninorm/test-u16-nfkd.c: Likewise.
27683         * tests/uninorm/test-u32-nfc.c: Likewise.
27684         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27685         * tests/uninorm/test-u32-nfd.c: Likewise.
27686         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27687         * tests/uninorm/test-u32-nfkc.c: Likewise.
27688         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27689         * tests/uninorm/test-u32-nfkd.c: Likewise.
27690         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27691         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27692
27693 2010-03-27  Bruno Haible  <bruno@clisp.org>
27694
27695         Distinguish two kinds of module indicators.
27696         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27697         gl_MODULE_INDICATOR.
27698         (gl_MODULE_INDICATOR): New macro.
27699         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27700         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
27701         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27702         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27703         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27704         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27705         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27706         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27707         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27708         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27709         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27710         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27712         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27713         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27714         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27715         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27716         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27717         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27718         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27719         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27720         * modules/cloexec (configure.ac): Likewise.
27721         * modules/getopt-gnu (configure.ac): Likewise.
27722         * modules/uninorm/u8-normalize (configure.ac): Likewise.
27723         * modules/uninorm/u16-normalize (configure.ac): Likewise.
27724         * modules/uninorm/u32-normalize (configure.ac): Likewise.
27725         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
27726
27727 2010-03-27  Bruno Haible  <bruno@clisp.org>
27728
27729         New module description field 'Comment'.
27730         * gnulib-tool: New option --extract-comment.
27731         (func_usage): Document it.
27732         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
27733         (func_get_comment): New function.
27734         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
27735
27736 2010-03-27  Bruno Haible  <bruno@clisp.org>
27737
27738         Addendum to 2010-02-07 commit.
27739         * gnulib-tool (func_usage): Document --extract-applicability option.
27740
27741 2010-03-27  Bruno Haible  <bruno@clisp.org>
27742
27743         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
27744         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
27745         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
27746         rather than link errors.
27747
27748 2010-03-27  Bruno Haible  <bruno@clisp.org>
27749
27750         Avoid side effects from tests-related modules on the compilation of lib.
27751         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
27752         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
27753         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27754         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27755         macro.
27756         (func_import): Define a witness macro. Assign it a value that depends
27757         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27758         tests-related modules.
27759         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27760         Reported by Jim Meyering.
27761
27762 2010-03-27  Bruno Haible  <bruno@clisp.org>
27763
27764         Factorize common .m4 code.
27765         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27766         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27767         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27768         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27769         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27770         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
27771         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
27772         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27773         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27774         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27775         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
27776         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27777         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27778         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27779         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27780         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27781         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27782         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27784         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27785         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27786         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27787         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27788         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27789         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27790         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27791         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27792         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27793         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27794         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27795         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27796         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27797
27798 2010-03-27  Bruno Haible  <bruno@clisp.org>
27799
27800         Fix a compilation error on Cygwin with g++ >= 4.3.
27801         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27802         if it is undefined or if we alias it to chmod.
27803         (lstat): Don't warn about the use of this function if it is undefined
27804         or if we alias it to stat.
27805         Reported by Simon Josefsson.
27806
27807 2010-03-27  Bruno Haible  <bruno@clisp.org>
27808
27809         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27810         * modules/getlogin (configure.ac): Update.
27811
27812         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27813         * modules/getlogin_r (configure.ac): Update.
27814
27815         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27816         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27817         * modules/inet_ntop (configure.ac): Update.
27818
27819         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27820         * modules/inet_pton (configure.ac): Update.
27821
27822         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27823         * modules/mbslen (configure.ac): Update.
27824
27825         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27826         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27827         * modules/forkpty (configure.ac): Update.
27828         * modules/openpty (configure.ac): Update.
27829
27830 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27831
27832         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27833         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27834
27835 2010-03-25  Eric Blake  <eblake@redhat.com>
27836
27837         maint: use pragma consistently across replacement headers
27838         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27839         * lib/dirent.in.h (system_header): Likewise.
27840         * lib/errno.in.h (system_header): Likewise.
27841         * lib/float.in.h (system_header): Likewise.
27842         * lib/getopt.in.h (system_header): Likewise.
27843         * lib/iconv.in.h (system_header): Likewise.
27844         * lib/inttypes.in.h (system_header): Likewise.
27845         * lib/langinfo.in.h (system_header): Likewise.
27846         * lib/locale.in.h (system_header): Likewise.
27847         * lib/math.in.h (system_header): Likewise.
27848         * lib/netdb.in.h (system_header): Likewise.
27849         * lib/netinet_in.in.h (system_header): Likewise.
27850         * lib/pty.in.h (system_header): Likewise.
27851         * lib/sched.in.h (system_header): Likewise.
27852         * lib/se-selinux.in.h (system_header): Likewise.
27853         * lib/search.in.h (system_header): Likewise.
27854         * lib/spawn.in.h (system_header): Likewise.
27855         * lib/stdarg.in.h (system_header): Likewise.
27856         * lib/stdint.in.h (system_header): Likewise.
27857         * lib/string.in.h (system_header): Likewise.
27858         * lib/strings.in.h (system_header): Likewise.
27859         * lib/sys_file.in.h (system_header): Likewise.
27860         * lib/sys_ioctl.in.h (system_header): Likewise.
27861         * lib/sys_socket.in.h (system_header): Likewise.
27862         * lib/sys_times.in.h (system_header): Likewise.
27863         * lib/sys_utsname.in.h (system_header): Likewise.
27864         * lib/sys_wait.in.h (system_header): Likewise.
27865         * lib/sysexits.in.h (system_header): Likewise.
27866         * lib/unistd.in.h (system_header): Likewise.
27867         * lib/wctype.in.h (system_header): Likewise.
27868
27869         arpa/inet: fix mingw compilation warning
27870         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27871         Reported by Matthew Bolte.
27872
27873 2010-03-25  Bruno Haible  <bruno@clisp.org>
27874
27875         Avoid collision between gnulib wrapper and libintl wrapper.
27876         * lib/printf.c (printf): Don't define if a printf wrapper is already
27877         defined in intl/printf.c.
27878         Reported by Michel Boaventura <michel@michelboaventura.com>.
27879
27880 2010-03-25  Bruno Haible  <bruno@clisp.org>
27881
27882         Use ANSI C.
27883         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27884
27885 2010-03-25  Bruno Haible  <bruno@clisp.org>
27886
27887         Minor formatting changes.
27888         * lib/acosl.c: Insert space before function argument list.
27889         * lib/argz.c: Likewise.
27890         * lib/asinl.c: Likewise.
27891         * lib/expl.c: Likewise.
27892         * lib/gen-uni-tables.c: Likewise.
27893         * lib/gettext.h: Likewise.
27894         * lib/glthread/lock.h: Likewise.
27895         * lib/tanl.c: Likewise.
27896         * lib/uniname/uniname.c: Likewise.
27897         * tests/test-idpriv-drop.c: Likewise.
27898         * tests/test-idpriv-droptemp.c: Likewise.
27899         * tests/test-lock.c: Likewise.
27900         * tests/test-tls.c: Likewise.
27901         * lib/argp-help.c: Insert space before function-like macro argument
27902         list.
27903         * lib/memcmp.c: Likewise.
27904         * tests/test-base64.c: Likewise.
27905         * lib/localename.c: Insert space before sizeof's argument list.
27906         * lib/safe-alloc.h: Likewise.
27907         * lib/file-set.h: Insert space before macro argument list.
27908         * tests/test-argp.c: Likewise.
27909         * lib/argp-namefrob.h: Insert space before function parameter list.
27910         * lib/getaddrinfo.c: Likewise.
27911         * lib/netdb.in.h: Likewise.
27912         * lib/parse-duration.h: Likewise.
27913         * lib/parse-duration.c: Likewise.
27914         * lib/poll.c: Likewise.
27915         * lib/select.c: Likewise.
27916         * lib/trim.h: Likewise.
27917         * tests/test-usleep.c: Likewise.
27918         * lib/ldexpl.c: Insert space before function parameter list and before
27919         function argument list.
27920         * lib/logl.c: Likewise.
27921         * lib/sqrtl.c: Likewise.
27922         * lib/trim.c: Likewise.
27923         * lib/cosl.c: Use GNU style indentation. Insert space before function
27924         argument list.
27925         * lib/sinl.c: Likewise.
27926         * lib/tsearch.c: Insert space after 'for'.
27927         Reported by Jim Meyering.
27928
27929 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27930
27931         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27932         config header before grepping, as it's not present before
27933         autoreconf/configure are run.  Reported by Simon Josefsson.
27934
27935 2010-03-23  Bruno Haible  <bruno@clisp.org>
27936
27937         pt_chown: Make it work with automake < 1.11.
27938         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27939         Reported by Simon Josefsson.
27940
27941 2010-03-23  Bruno Haible  <bruno@clisp.org>
27942
27943         pt_chown: Don't depend on GPLed modules.
27944         * lib/pt_chown.c: Don't include idpriv.h.
27945         (main): Don't drop privileges.
27946         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27947         Reported by Simon Josefsson.
27948
27949 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27950
27951         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27952         suggestions from karl@freefriends.org (Karl Berry).
27953
27954 2010-03-22  Eric Blake  <eblake@redhat.com>
27955
27956         gethostname: further tweaks
27957         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27958         are overriding gethostname.
27959         Suggested by Bruno Haible.
27960
27961 2010-03-21  Bruno Haible  <bruno@clisp.org>
27962
27963         Fix comments.
27964         * lib/forkpty.c (rpl_forkpty): Fix comment.
27965         * lib/openpty.c (rpl_openpty): Likewise.
27966         Reported by Eric Blake.
27967
27968 2010-03-22  Eric Blake  <eblake@redhat.com>
27969
27970         gethostname: fix build on mingw
27971         * lib/unistd.in.h (includes): Work around fact that mingw
27972         <winsock2.h> re-includes <unistd.h>, by avoiding any
27973         redeclarations if we are being included by <winsock2.h>.
27974         Reported by Matthias Bolte.
27975
27976 2010-03-21  Bruno Haible  <bruno@clisp.org>
27977
27978         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27979         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27980         modifications.
27981         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27982         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27983         provide the replacement.
27984         * modules/forkpty (Depends-on): Add openpty, login_tty.
27985         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27986         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27987         * doc/glibc-functions/forkpty.texi: More supported platforms.
27988         * config/srclist.txt: Add forkpty.c (commented).
27989
27990 2010-03-21  Bruno Haible  <bruno@clisp.org>
27991
27992         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27993         (Makefile.am): Verify that PTY_LIB is defined.
27994
27995         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27996
27997 2010-03-21  Bruno Haible  <bruno@clisp.org>
27998
27999         Tests for module 'login_tty'.
28000         * modules/login_tty-tests: New file.
28001         * tests/test-login_tty.c: New file.
28002
28003         New module 'login_tty'.
28004         * lib/login_tty.c: New file.
28005         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28006         * modules/login_tty: New file.
28007         * doc/glibc-functions/login_tty.texi: Mention the new module.
28008
28009 2010-03-21  Bruno Haible  <bruno@clisp.org>
28010
28011         login_tty: Documentation.
28012         * doc/glibc-functions/login_tty.texi: New file.
28013         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28014
28015 2010-03-21  Bruno Haible  <bruno@clisp.org>
28016
28017         pty: Consistent macro naming.
28018         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28019         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28020         * modules/pty (configure.ac): Update.
28021
28022 2010-03-21  Bruno Haible  <bruno@clisp.org>
28023
28024         Tests for openpty: Make stricter.
28025         * tests/test-openpty.c (main): Add test of canonical processing and
28026         erase.
28027         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28028
28029         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28030         * lib/openpty.c (openpty): New replacement function.
28031         * lib/pty.in.h: Include <termios.h>.
28032         (openpty): Update declaration. Add comments.
28033         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28034         is not declared, arrange to provide the replacement. Check for _getpty
28035         and posix_openpt.
28036         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28037         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28038         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28039         * modules/pty-tests (test_pty_c___LDADD): New variable.
28040         * doc/glibc-functions/openpty.texi: More supported platforms.
28041
28042 2010-03-21  Bruno Haible  <bruno@clisp.org>
28043
28044         setenv: Tweaks.
28045         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28046         the test program.
28047         * doc/posix-functions/setenv.texi: Update platforms list.
28048
28049 2010-03-21  Bruno Haible  <bruno@clisp.org>
28050
28051         New module 'unlockpt'.
28052         * lib/unlockpt.c: New file, from glibc with modifications.
28053         * m4/unlockpt.m4: New file.
28054         * modules/unlockpt: New file.
28055         * lib/stdlib.in.h (unlockpt): New declaration.
28056         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28057         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28058         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28059         HAVE_UNLOCKPT.
28060         * doc/posix-functions/unlockpt.texi: Mention the new module.
28061         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28062         * config/srclist.txt: Add unlockpt.c (commented).
28063
28064 2010-03-21  Jim Meyering  <meyering@redhat.com>
28065
28066         maint.mk: prohibit inclusion of "intprops.h" without use
28067         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28068
28069 2010-03-21  Bruno Haible  <bruno@clisp.org>
28070
28071         New module 'grantpt'.
28072         * lib/grantpt.c: New file, from glibc with modifications.
28073         * m4/grantpt.m4: New file.
28074         * modules/grantpt: New file.
28075         * lib/stdlib.in.h (grantpt): New declaration.
28076         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28077         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28078         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28079         HAVE_GRANTPT.
28080         * doc/posix-functions/grantpt.texi: Mention the new module.
28081         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28082         * config/srclist.txt: Add grantpt.c (commented).
28083
28084 2010-03-21  Bruno Haible  <bruno@clisp.org>
28085
28086         New module 'pt_chown'.
28087         * lib/pt_chown.c: New file, from glibc with modifications.
28088         * lib/pty-private.h: New file, from glibc with modifications.
28089         * modules/pt_chown: New file.
28090         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28091
28092 2010-03-21  Bruno Haible  <bruno@clisp.org>
28093
28094         Tests for module 'ptsname'.
28095         * modules/ptsname-tests: New file.
28096         * tests/test-ptsname.c: New file.
28097
28098         New module 'ptsname'.
28099         * lib/ptsname.c: New file, from glibc with modifications.
28100         * m4/ptsname.m4: New file.
28101         * modules/ptsname: New file.
28102         * lib/stdlib.in.h (ptsname): New declaration.
28103         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28104         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28105         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28106         HAVE_PTSNAME.
28107         * doc/posix-functions/ptsname.texi: Mention the new module.
28108         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28109         * config/srclist.txt: Add ptsname.c (commented).
28110
28111 2010-03-21  Bruno Haible  <bruno@clisp.org>
28112
28113         Tests for module 'ttyname_r'.
28114         * modules/ttyname_r-tests: New file.
28115         * tests/test-ttyname_r.c: New file.
28116
28117         New module 'ttyname_r'.
28118         * lib/ttyname_r.c: New file.
28119         * m4/ttyname_r.m4: New file.
28120         * modules/ttyname_r: New file.
28121         * lib/unistd.in.h (ttyname_r): New declaration.
28122         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28123         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28124         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28125         HAVE_TTYNAME_R.
28126         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28127         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28128
28129 2010-03-20  Bruno Haible  <bruno@clisp.org>
28130
28131         signal: Undefine macro definitions in C++ mode.
28132         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28133         sigfillset): Undefine macro definitions from the system header in C++
28134         mode.
28135         Reported by John W. Eaton <jwe@gnu.org>.
28136
28137 2010-03-20  Bruno Haible  <bruno@clisp.org>
28138
28139         Ensure no #include statements inside extern "C" { ... }.
28140         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28141         contain #include statements.
28142         * lib/time.in.h: Likewise.
28143
28144 2010-03-20  Bruno Haible  <bruno@clisp.org>
28145
28146         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28147         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28148         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28149         Reported by John W. Eaton <jwe@gnu.org>.
28150
28151 2010-03-20  Bruno Haible  <bruno@clisp.org>
28152
28153         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28154         Reported by Jim Meyering.
28155
28156 2010-03-20  Bruno Haible  <bruno@clisp.org>
28157
28158         pipe: Set errno upon failure.
28159         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28160         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28161         errno value in error message.
28162
28163 2010-03-20  Bruno Haible  <bruno@clisp.org>
28164             Jim Meyering  <meyering@redhat.com>
28165
28166         lchown: Avoid "unused variable" warning.
28167         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28168
28169 2010-03-20  Bruno Haible  <bruno@clisp.org>
28170
28171         Work around unlink() bug on MacOS X 10.5.6.
28172         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28173         attempting to unlink a parent directory.
28174         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28175         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28176         activate for the replacement function.
28177         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28178
28179 2010-03-20  Bruno Haible  <bruno@clisp.org>
28180
28181         Fix link errors on Solaris 8.
28182         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28183         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28184
28185 2010-03-19  Jim Meyering  <meyering@redhat.com>
28186
28187         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28188         The _LIBC implementation of build_range_exp correctly honors the
28189         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28190         However, the non-_LIBC implementation would ignore that syntax-bit
28191         flag and return REG_ERANGE unconditionally.
28192         This change makes it honor that flag.
28193         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28194         Make two pointer parameters "const".
28195         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28196         (parse_bracket_exp): Update caller.
28197
28198         regex.m4: correct the reversed range endpoint ([b-a]) test
28199         * m4/regex.m4: When requiring that [b-a] evoke failure,
28200         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28201         test pass once again for x86-based systems.
28202
28203 2010-03-19  Bruno Haible  <bruno@clisp.org>
28204
28205         scandir: Fix link error on Solaris 8.
28206         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28207         macros.
28208
28209 2010-03-19  Bruno Haible  <bruno@clisp.org>
28210
28211         getusershell: Fix documentation.
28212         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28213         module.
28214         * doc/glibc-functions/setusershell.texi: Likewise.
28215
28216         getusershell: Provide declaration, missing on Solaris 9.
28217         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28218         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28219         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28220         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28222         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28223         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28224         HAVE_GETUSERSHELL.
28225         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28226
28227 2010-03-19  Bruno Haible  <bruno@clisp.org>
28228
28229         wctype: Provide iswblank function.
28230         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28231         exists and is fine.
28232         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28233         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28234         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28235         * doc/posix-functions/iswblank.texi: Update.
28236
28237 2010-03-19  Bruno Haible  <bruno@clisp.org>
28238
28239         Tests of module 'pty' in C++ mode.
28240         * modules/pty-tests: New file.
28241         * tests/test-pty-c++.cc: New file.
28242         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28243
28244 2010-03-19  Eric Blake  <eblake@redhat.com>
28245
28246         logb: fix documentation
28247         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28248         1.5 declaration bug.
28249
28250         forkpty, openpty: prefer glibc's const-safe prototype
28251         * lib/forkpty.c (rpl_forkpty): New file.
28252         * lib/openpty.c (rpl_openpty): Likewise.
28253         * modules/forkpty (Files): Distribute it.
28254         * modules/openpty (Files): Likewise.
28255         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28256         check...
28257         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28258         replacement for for non-const BSD signature.
28259         * modules/pty (Makefile.am): Substitute witnesses.
28260         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28261         * tests/test-forkpty.c: Update signature check.
28262         * tests/test-openpty.c: Likewise.
28263         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28264         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28265
28266         forkpty, openpty: split functions into new modules
28267         * modules/pty (Makefile.am): Substitute new witnesses.
28268         (Libraries): Move library detection...
28269         * modules/forkpty: ...into new module.
28270         * modules/openpty: Another new module.
28271         * modules/pty-tests: Rename and split...
28272         * modules/forkpty-tests: ...to this...
28273         * modules/openpty-tests: ...and this.
28274         * tests/test-pty.c: Rename and split...
28275         * tests/test-forkpty.c: ...to this...
28276         * tests/test-openpty.c: ...and this.
28277         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28278         (gl_PTY): Split library searching...
28279         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28280         (gl_FORKPTY, gl_OPENPTY): New macros.
28281         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28282         * NEWS: Mention the split.
28283         * MODULES.html.sh (Misc): Document the modules.
28284         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28285         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28286
28287         pty: improve replacement header
28288         * lib/pty.in.h: New file.
28289         * modules/pty (Files): Ship it.
28290         (Makefile.am): Always build replacement.
28291         * m4/pty.m4: Rename...
28292         * m4/pty_h.m4: ...to this.
28293         (gl_PTY): Modernize setting of witness macros; update check of
28294         forkpty to take proper advantage of cache.
28295         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28296
28297         getopt: avoid compiler warning
28298         * lib/getopt.c (attribute_hidden): Remove unused macro.
28299
28300 2010-03-18  Bruno Haible  <bruno@clisp.org>
28301
28302         Fix link errors on Solaris 8.
28303         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28304         * modules/search-tests (test_search_c___LDADD): Likewise.
28305         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28306         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28307         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28308         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28309         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28310         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28311         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28312
28313 2010-03-18  Bruno Haible  <bruno@clisp.org>
28314
28315         Fix bug introduced on 2010-03-14.
28316         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28317         (gl_SPAWN_H): Require it.
28318         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28319         Reported by Simon Josefsson.
28320
28321 2010-03-18  Bruno Haible  <bruno@clisp.org>
28322
28323         Fix typo introduced on 2009-12-31.
28324         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28325         posix_spawn_file_actions_adddup2.
28326
28327 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28328         and Eric Blake  <eblake@redhat.com>
28329
28330         test-vc-list-files-git: make more robust
28331         * tests/test-vc-list-files-git.sh: Unset problematic environment
28332         variables.  Chain commands together.
28333
28334 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28335
28336         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28337         `AC_CHECK_DECL' invocation.
28338
28339 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28340
28341         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28342         appears before executable statements. Suggested by Petr Sumbera
28343         <Petr.Sumbera@Sun.COM>.
28344
28345 2010-03-14  Bruno Haible  <bruno@clisp.org>
28346
28347         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28348         portability problems. Instead use a simpler test.
28349         (main): Check that invalid arguments are rejected only on Linux.
28350
28351 2010-03-14  Bruno Haible  <bruno@clisp.org>
28352
28353         Fix bug introduced on 2009-12-31.
28354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28355         gl_PREREQ_SYS_H_WINSOCK2 always.
28356         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28357         SYS_SOCKET_H variable.
28358         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28359         Update comments.
28360         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28361         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28362         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28363         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28364         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28365
28366 2010-03-14  Bruno Haible  <bruno@clisp.org>
28367
28368         Fix values returned by sinl, cosl.
28369         * lib/trigl.h: Add specification comments.
28370         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28371         that combines the values from the precomputed table with the values of
28372         the Chebyshev polynomials.
28373
28374 2010-03-14  Bruno Haible  <bruno@clisp.org>
28375
28376         Fix compilation error when modules 'posix_spawn[p]' are not used.
28377         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28378         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28379
28380 2010-03-14  Bruno Haible  <bruno@clisp.org>
28381
28382         Fix compilation error on mingw when module 'time_r' is not used.
28383         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28384         is 1.
28385         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28386         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28387         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28388         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28389
28390 2010-03-14  Bruno Haible  <bruno@clisp.org>
28391
28392         Fix compilation error with Sun C.
28393         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28394         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28395         instead of GCC specific ULONG_LONG_MAX.
28396         * lib/xstrtoll.c: Likewise.
28397         * lib/xstrtoull.c: Likewise.
28398
28399 2010-03-13  Bruno Haible  <bruno@clisp.org>
28400
28401         Allow the user to disable C++ code and tests.
28402         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28403         (gl_PROG_ANSI_CXX): Require it.
28404
28405 2010-03-13  Bruno Haible  <bruno@clisp.org>
28406
28407         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28408         cases.
28409
28410 2010-03-13  Bruno Haible  <bruno@clisp.org>
28411
28412         Test that gnulib does not break the standard C++ headers.
28413         * tests/test-locale-c++2.cc: New file.
28414         * modules/locale-tests (Files): Add it.
28415         (Makefile.am): Compile it for test-locale-c++.
28416         * tests/test-math-c++2.cc: New file.
28417         * modules/math-tests (Files): Add it.
28418         (Makefile.am): Compile it for test-math-c++.
28419         * tests/test-signal-c++2.cc: New file.
28420         * modules/signal-tests (Files): Add it.
28421         (Makefile.am): Compile it for test-signal-c++.
28422         * tests/test-stdio-c++2.cc: New file.
28423         * modules/stdio-tests (Files): Add it.
28424         (Makefile.am): Compile it for test-stdio-c++.
28425         * tests/test-stdlib-c++2.cc: New file.
28426         * modules/stdlib-tests (Files): Add it.
28427         (Makefile.am): Compile it for test-stdlib-c++.
28428         * tests/test-string-c++2.cc: New file.
28429         * modules/string-tests (Files): Add it.
28430         (Makefile.am): Compile it for test-string-c++.
28431         * tests/test-time-c++2.cc: New file.
28432         * modules/time-tests (Files): Add it.
28433         (Makefile.am): Compile it for test-time-c++.
28434         Reported by John W. Eaton <jwe@gnu.org>.
28435
28436 2010-03-13  Bruno Haible  <bruno@clisp.org>
28437
28438         * gnulib-tool (func_usage): Clarify which options are available for
28439         --create-testdir and --create-megatestdir.
28440
28441 2010-03-13  Bruno Haible  <bruno@clisp.org>
28442
28443         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28444         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28445         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28446         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28447         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28448         when appropriate.
28449         Reported by Jim Meyering.
28450
28451 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28452
28453         * gnulib-tool (func_import): Explain origin of code.
28454
28455 2010-03-12  Bruno Haible  <bruno@clisp.org>
28456
28457         Fix problem with automake's definition of CXXLINK.
28458         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28459         Reported by Simon Josefsson and Ludovic Courtès.
28460
28461 2010-03-12  Bruno Haible  <bruno@clisp.org>
28462
28463         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28464         stable releases.
28465
28466 2010-03-11  Bruno Haible  <bruno@clisp.org>
28467
28468         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28469         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28470         whether the system provides one variant or multiple variants of the
28471         function.
28472         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28473         C++ compilers.
28474         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28475         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28476         Reported by Jim Meyering.
28477
28478 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28479
28480         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28481
28482 2010-03-08  Bruno Haible  <bruno@clisp.org>
28483
28484         gnulib-tool: Add support for --libtool in --create-testdir.
28485         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28486         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28487
28488 2010-03-08  Eric Blake  <eblake@redhat.com>
28489
28490         gnulib-tool.texi: mention possibility of git submodule
28491         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28492         submodules.
28493         * doc/.gitignore: Ignore another generated file.
28494
28495 2010-03-08  Karl Berry  <karl@gnu.org>
28496
28497         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28498         of committing gnulib files while skipping others.
28499
28500 2010-03-07  Bruno Haible  <bruno@clisp.org>
28501
28502         Tests of module 'wctype' in C++ mode.
28503         * tests/test-wctype-c++.cc: New file.
28504         * modules/wctype-tests (Files): Add it and tests/signature.h.
28505         (Depends-on): Add ansi-c++-opt.
28506         (Makefile.am): Arrange to compile and run test-wctype-c++.
28507
28508         Tests of module 'wchar' in C++ mode.
28509         * tests/test-wchar-c++.cc: New file.
28510         * modules/wchar-tests (Files): Add it and tests/signature.h.
28511         (Depends-on): Add ansi-c++-opt.
28512         (Makefile.am): Arrange to compile and run test-wchar-c++.
28513         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28514         gl_MODULE_INDICATOR.
28515
28516         Tests of module 'unistd' in C++ mode.
28517         * tests/test-unistd-c++.cc: New file.
28518         * modules/unistd-tests (Files): Add it and tests/signature.h.
28519         (Depends-on): Add ansi-c++-opt.
28520         (Makefile.am): Arrange to compile and run test-unistd-c++.
28521         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28522         gl_MODULE_INDICATOR.
28523
28524         Tests of module 'time' in C++ mode.
28525         * tests/test-time-c++.cc: New file.
28526         * modules/time-tests (Files): Add it and tests/signature.h.
28527         (Depends-on): Add ansi-c++-opt.
28528         (Makefile.am): Arrange to compile and run test-time-c++.
28529         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28530
28531         Tests of module 'sys_time' in C++ mode.
28532         * tests/test-sys_time-c++.cc: New file.
28533         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28534         (Depends-on): Add ansi-c++-opt.
28535         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28536         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28537         gl_MODULE_INDICATOR.
28538
28539         Tests of module 'sys_stat' in C++ mode.
28540         * tests/test-sys_stat-c++.cc: New file.
28541         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28542         (Depends-on): Add ansi-c++-opt.
28543         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28544         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28545         gl_MODULE_INDICATOR.
28546
28547         Tests of module 'sys_socket' in C++ mode.
28548         * tests/test-sys_socket-c++.cc: New file.
28549         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28550         (Depends-on): Add ansi-c++-opt.
28551         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28552         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28553         gl_MODULE_INDICATOR.
28554
28555         Tests of module 'sys_select' in C++ mode.
28556         * tests/test-sys_select-c++.cc: New file.
28557         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28558         (Depends-on): Add ansi-c++-opt.
28559         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28560         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28561         gl_MODULE_INDICATOR.
28562
28563         Tests of module 'sys_ioctl' in C++ mode.
28564         * tests/test-sys_ioctl-c++.cc: New file.
28565         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28566         (Depends-on): Add ansi-c++-opt.
28567         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28568         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28569         gl_MODULE_INDICATOR.
28570
28571         Tests of module 'string' in C++ mode.
28572         * tests/test-string-c++.cc: New file.
28573         * modules/string-tests (Files): Add it and tests/signature.h.
28574         (Depends-on): Add ansi-c++-opt.
28575         (Makefile.am): Arrange to compile and run test-string-c++.
28576         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28577         gl_MODULE_INDICATOR.
28578
28579         Tests of module 'stdlib' in C++ mode.
28580         * tests/test-stdlib-c++.cc: New file.
28581         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28582         (Depends-on): Add ansi-c++-opt.
28583         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28584         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28585         gl_MODULE_INDICATOR.
28586
28587         Tests of module 'stdio' in C++ mode.
28588         * tests/test-stdio-c++.cc: New file.
28589         * modules/stdio-tests (Files): Add it and tests/signature.h.
28590         (Depends-on): Add ansi-c++-opt.
28591         (Makefile.am): Arrange to compile and run test-stdio-c++.
28592         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28593         gl_MODULE_INDICATOR.
28594
28595         Tests of module 'spawn' in C++ mode.
28596         * tests/test-spawn-c++.cc: New file.
28597         * modules/spawn-tests (Files): Add it and tests/signature.h.
28598         (Depends-on): Add ansi-c++-opt.
28599         (Makefile.am): Arrange to compile and run test-spawn-c++.
28600         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28601         gl_MODULE_INDICATOR.
28602
28603         Tests of module 'signal' in C++ mode.
28604         * tests/test-signal-c++.cc: New file.
28605         * modules/signal-tests (Files): Add it and tests/signature.h.
28606         (Depends-on): Add ansi-c++-opt.
28607         (Makefile.am): Arrange to compile and run test-signal-c++.
28608         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28609         gl_MODULE_INDICATOR.
28610
28611         Tests of module 'search' in C++ mode.
28612         * tests/test-search-c++.cc: New file.
28613         * modules/search-tests (Files): Add it and tests/signature.h.
28614         (Depends-on): Add ansi-c++-opt.
28615         (Makefile.am): Arrange to compile and run test-search-c++.
28616         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28617         gl_MODULE_INDICATOR.
28618
28619         Tests of module 'math' in C++ mode.
28620         * tests/test-math-c++.cc: New file.
28621         * modules/math-tests (Files): Add it and tests/signature.h.
28622         (Depends-on): Add ansi-c++-opt.
28623         (Makefile.am): Arrange to compile and run test-math-c++.
28624         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28625
28626         Tests of module 'locale' in C++ mode.
28627         * tests/test-locale-c++.cc: New file.
28628         * modules/locale-tests (Files): Add it and tests/signature.h.
28629         (Depends-on): Add ansi-c++-opt.
28630         (Makefile.am): Arrange to compile and run test-locale-c++.
28631         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28632         gl_MODULE_INDICATOR.
28633
28634         Tests of module 'langinfo' in C++ mode.
28635         * tests/test-langinfo-c++.cc: New file.
28636         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28637         (Depends-on): Add ansi-c++-opt.
28638         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28639         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28640         gl_MODULE_INDICATOR.
28641
28642         Tests of module 'iconv-h' in C++ mode.
28643         * tests/test-iconv-h-c++.cc: New file.
28644         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28645         (Depends-on): Add ansi-c++-opt.
28646         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28647
28648         Tests of module 'glob' in C++ mode.
28649         * tests/test-glob-c++.cc: New file.
28650         * modules/glob-tests (Files): Add it.
28651         (Depends-on): Add ansi-c++-opt.
28652         (Makefile.am): Arrange to compile and run test-glob-c++.
28653
28654         Tests of module 'fcntl-h' in C++ mode.
28655         * tests/test-fcntl-h-c++.cc: New file.
28656         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28657         (Depends-on): Add ansi-c++-opt.
28658         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28659         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28660         gl_MODULE_INDICATOR.
28661
28662         Tests of module 'dirent' in C++ mode.
28663         * tests/test-dirent-c++.cc: New file.
28664         * modules/dirent-tests (Files): Add it and tests/signature.h.
28665         (Depends-on): Add ansi-c++-opt.
28666         (Makefile.am): Arrange to compile and run test-dirent-c++.
28667         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28668         gl_MODULE_INDICATOR.
28669
28670         New module 'ansi-c++-opt'.
28671         * modules/ansi-c++-opt: New file.
28672         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28673
28674         Document C++ namespace mode.
28675         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28676
28677         wctype: Avoid #define replacements in C++ mode.
28678         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28679         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28680         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28681         In C++, define a namespaced alias symbol.
28682         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28683         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28684         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28685         rule.
28686
28687         wchar: Avoid #define replacements in C++ mode.
28688         * lib/wchar.in.h: Include c++defs.h.
28689         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28690         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28691         symbol.
28692         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28693         * modules/wchar (Depends-on): Add c++defs.
28694         (Makefile.am): Update wchar.h rule.
28695
28696         unistd: Avoid #define replacements in C++ mode.
28697         * lib/unistd.in.h: Include c++defs.h.
28698         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
28699         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
28700         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
28701         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
28702         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
28703         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
28704         symbol.
28705         (environ): Update.
28706         * modules/unistd (Depends-on): Add c++defs.
28707         (Makefile.am): Update unistd.h rule.
28708
28709         time: Avoid #define replacements in C++ mode.
28710         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
28711         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
28712         define a namespaced alias symbol.
28713         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
28714         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
28715         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
28716         * modules/time (Depends-on): Add c++defs, warn-on-use.
28717         (Makefile.am): Update time.h rule.
28718         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28719         * modules/nanosleep (configure.ac): Likewise.
28720         * modules/strptime (configure.ac): Likewise.
28721         * modules/timegm (configure.ac): Likewise.
28722
28723         sys_time: Avoid #define replacements in C++ mode.
28724         * lib/sys_time.in.h: Include c++defs.h.
28725         (gettimeofday): In C++, define a namespaced alias symbol.
28726         * modules/sys_time (Depends-on): Add c++defs.
28727         (Makefile.am): Update sys/time.h rule.
28728
28729         sys_stat: Avoid #define replacements in C++ mode.
28730         * lib/sys_stat.in.h: Include c++defs.h.
28731         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
28732         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
28733         namespaced alias symbol.
28734         In C++, define a namespaced alias symbol.
28735         * modules/sys_stat (Depends-on): Add c++defs.
28736         (Makefile.am): Update sys/stat.h rule.
28737
28738         sys_socket: Avoid #define replacements in C++ mode.
28739         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
28740         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
28741         definitions also when the system has a <sys/socket.h>.
28742         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28743         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
28744         In C++, define a namespaced alias symbol.
28745         * modules/sys_socket (Depends-on): Add c++defs.
28746         (Makefile.am): Update sys/socket.h rule.
28747
28748         sys_select: Avoid #define replacements in C++ mode.
28749         * lib/sys_select.in.h: Include c++defs.h. Enable the function
28750         definitions also when the system has a <sys/select.h>.
28751         (select): In C++, define a namespaced alias symbol.
28752         * modules/sys_select (Depends-on): Add c++defs.
28753         (Makefile.am): Update sys/select.h rule.
28754
28755         sys_ioctl: Avoid #define replacements in C++ mode.
28756         * lib/sys_ioctl.in.h: Include c++defs.h.
28757         (ioctl): In C++, define a namespaced alias symbol.
28758         * modules/sys_ioctl (Depends-on): Add c++defs.
28759         (Makefile.am): Update sys/ioctl.h rule.
28760
28761         string: Avoid #define replacements in C++ mode.
28762         * lib/string.in.h: Include c++defs.h.
28763         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28764         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28765         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28766         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28767         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28768         * modules/string (Depends-on): Add c++defs.
28769         (Makefile.am): Update string.h rule.
28770
28771         stdlib: Avoid #define replacements in C++ mode.
28772         * lib/stdlib.in.h: Include c++defs.h.
28773         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
28774         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
28775         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
28776         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
28777         symbol.
28778         * modules/stdlib (Depends-on): Add c++defs.
28779         (Makefile.am): Update stdlib.h rule.
28780
28781         stdio: Avoid #define replacements in C++ mode.
28782         * lib/stdio.in.h: Include c++defs.h.
28783         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28784         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28785         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28786         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28787         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28788         namespaced alias symbol.
28789         * modules/stdio (Depends-on): Add c++defs.
28790         (Makefile.am): Update stdio.h rule.
28791
28792         spawn: Avoid #define replacements in C++ mode.
28793         * lib/spawn.in.h: Include c++defs.h.
28794         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28795         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28796         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28797         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28798         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28799         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28800         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28801         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28802         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28803         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28804         In C++, define a namespaced alias symbol.
28805         * modules/spawn (Depends-on): Add c++defs.
28806         (Makefile.am): Update spawn.h rule.
28807
28808         signal: Avoid #define replacements in C++ mode.
28809         * lib/signal.in.h: Include c++defs.h.
28810         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28811         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28812         namespaced alias symbol.
28813         * modules/signal (Depends-on): Add c++defs.
28814         (Makefile.am): Update signal.h rule.
28815
28816         search: Avoid #define replacements in C++ mode.
28817         * lib/search.in.h: Include c++defs.h.
28818         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28819         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28820         symbol.
28821         * modules/search (Depends-on): Add c++defs.
28822         (Makefile.am): Update search.h rule.
28823
28824         math: Avoid #define replacements in C++ mode.
28825         * lib/math.in.h: Include c++defs.h.
28826         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28827         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28828         trunc, truncl): In C++, define a namespaced alias symbol.
28829         * modules/math (Depends-on): Add c++defs.
28830         (Makefile.am): Update math.h rule.
28831
28832         locale: Avoid #define replacements in C++ mode.
28833         * lib/locale.in.h: Include c++defs.h.
28834         (duplocale): In C++, define a namespaced alias symbol.
28835         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28836         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28837         * modules/locale (Depends-on): Add c++defs.
28838         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28839
28840         langinfo: Avoid #define replacements in C++ mode.
28841         * lib/langinfo.in.h: Include c++defs.h.
28842         (nl_langinfo): In C++, define a namespaced alias symbol.
28843         * modules/langinfo (Depends-on): Add c++defs.
28844         (Makefile.am): Update langinfo.h rule.
28845
28846         iconv-h: Avoid #define replacements in C++ mode.
28847         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28848         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28849         symbol.
28850         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28851         whenever iconv is present.
28852         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28853         (Makefile.am): Update iconv.h rule.
28854
28855         glob: Avoid #define replacements in C++ mode.
28856         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28857         (_gl_glob_errfunc_fn): New type.
28858         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28859         symbol.
28860         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28861         (Makefile.am): Update glob.h rule.
28862
28863         fcntl-h: Avoid #define replacements in C++ mode.
28864         * lib/fcntl.in.h: Include c++defs.h.
28865         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28866         * modules/fcntl-h (Depends-on): Add c++defs.
28867         (Makefile.am): Update fcntl.h rule.
28868
28869         dirent: Avoid #define replacements in C++ mode.
28870         * lib/dirent.in.h: Include c++defs.h.
28871         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28872         namespaced alias symbol.
28873         (dirfd): Update declaration.
28874         * modules/dirent (Depends-on): Add c++defs.
28875         (Makefile.am): Update dirent.h rule.
28876
28877         ctype: Make it usable in C++ code.
28878         * lib/ctype.in.h: Include c++defs.h.
28879         (isblank): Declare as extern "C".
28880         * modules/ctype (Depends-on): Add c++defs.
28881         (Makefile.am): Update ctype.h rule.
28882
28883         New module 'c++defs'.
28884         * modules/c++defs: New file.
28885         * build-aux/c++defs.h: New file.
28886         Reported by John W. Eaton <jwe@gnu.org>.
28887
28888 2010-03-07  Bruno Haible  <bruno@clisp.org>
28889
28890         logb: Provide missing declaration for Cygwin.
28891         * lib/math.in.h (logb): New declaration.
28892         * m4/logb.m4: New file.
28893         * modules/logb (Files): Add m4/logb.m4.
28894         (Depends-on): Add math.
28895         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28896         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28898         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28899         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28900
28901 2010-03-07  Bruno Haible  <bruno@clisp.org>
28902
28903         Fix test-cond link error.
28904         * tests/test-cond.c: Include <stdio.h>.
28905
28906 2010-03-07  Bruno Haible  <bruno@clisp.org>
28907
28908         Fix test-dirent-safer link error.
28909         * modules/dirent-safer-tests (Makefile.am): Define
28910         test_dirent_safer_LDADD.
28911
28912 2010-03-07  Bruno Haible  <bruno@clisp.org>
28913
28914         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28915         among default module list.
28916
28917 2010-03-07  Bruno Haible  <bruno@clisp.org>
28918
28919         Fix link error on platforms with GNU libiconv.
28920         * modules/unistr/u8-strcoll-tests (Makefile): Define
28921         test_u8_strcoll_LDADD.
28922         * modules/unistr/u16-strcoll-tests (Makefile): Define
28923         test_u16_strcoll_LDADD.
28924         * modules/unistr/u32-strcoll-tests (Makefile): Define
28925         test_u32_strcoll_LDADD.
28926
28927 2010-03-07  Bruno Haible  <bruno@clisp.org>
28928
28929         Use POSIX declarations for socket functions.
28930         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28931         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28932         rpl_sendto): Change declaration to match POSIX.
28933         * lib/connect.c (rpl_connect): Likewise.
28934         * lib/accept.c (rpl_accept): Likewise.
28935         * lib/bind.c (rpl_bind): Likewise.
28936         * lib/getpeername.c (rpl_getpeername): Likewise.
28937         * lib/getsockname.c (rpl_getsockname): Likewise.
28938         * lib/recv.c (rpl_recv): Likewise.
28939         * lib/send.c (rpl_send): Likewise.
28940         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28941         * lib/sendto.c (rpl_sendto): Likewise.
28942
28943 2010-03-06  Bruno Haible  <bruno@clisp.org>
28944
28945         Clarify access, euidaccess, faccessat.
28946         * doc/posix-functions/faccessat.texi: Mention security problem under
28947         "Other problems", not "Portability problems".
28948         * doc/posix-functions/access.texi: Likewise. Mention a related security
28949         problem.
28950         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28951         * lib/euidaccess.c: Add comments about platforms.
28952         * lib/unistd.in.h (access, euidaccess): Add warnings.
28953
28954 2010-03-07  Bruno Haible  <bruno@clisp.org>
28955
28956         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28957         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28958         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28959         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28960         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28961         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28962         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28963         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28964         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28965         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28966         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28967         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28968         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28969         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28970         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28971         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28972         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28973         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28974         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28975         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28976         Likewise.
28977         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28978         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28979         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28980         Likewise.
28981         * tests/test-spawn.c (main): Make it work when
28982         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28983
28984 2010-03-07  Bruno Haible  <bruno@clisp.org>
28985
28986         Fix incorrect Makefile.am generation in German locale.
28987         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28988         Execute sed command with character range in C locale.
28989
28990 2010-03-06  Bruno Haible  <bruno@clisp.org>
28991
28992         Tests for module 'iconv-h'.
28993         * modules/iconv-h-tests: New file.
28994         * tests/test-iconv-h.c: New file.
28995
28996         New module 'iconv-h'.
28997         * modules/iconv-h: New file.
28998         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28999         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29000         (configure.ac): Remove gl_ICONV_H.
29001         (Makefile.am): Remove rule for iconv.h.
29002
29003 2010-03-06  Bruno Haible  <bruno@clisp.org>
29004
29005         More consistent naming of *.m4 files.
29006         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29007         * modules/wctype (Files): Update.
29008
29009         More consistent naming of *.m4 files.
29010         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29011         * modules/wchar (Files): Update.
29012
29013 2010-03-06  Jim Meyering  <meyering@redhat.com>
29014
29015         euidaccess: relax license to LGPLv2+
29016         * modules/euidaccess (License): Relax to LGPLv2+.
29017
29018 2010-03-06  Bruno Haible  <bruno@clisp.org>
29019
29020         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29021         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29022         (Makefile.am): Augment lib_SOURCES instead.
29023
29024 2010-03-04  Jim Meyering  <meyering@redhat.com>
29025
29026         utime: remove obsolete module
29027         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29028         unnecessary for years, and has been marked as obsolete for 10 months.
29029         * modules/utime: Remove file.
29030         * lib/utime.c: Remove file.
29031         * m4/utime.m4: Remove file.
29032         * m4/utimes-null.m4: Remove file.
29033         * doc/posix-functions/utime.texi (utime): Remove reference to
29034         the module.  Move the sole "fixed by gnulib" item into the
29035         "problems not fixed by Gnulib" list.
29036         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29037
29038 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29039
29040         * modules/exit (License): Relax license to LGPLv2+.
29041         (Status): Mark as obsolete.
29042         * NEWS: Mention deprecated 'exit' module.
29043         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29044         of now obsolete 'exit'.
29045
29046 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29047
29048         fts-lgpl: remove unused module
29049         * modules/fts-lgpl: Remove.
29050         * MODULES.html.sh (func_all_modules): Adjust.
29051         * check-module (find_included_lib_files): Adjust.
29052         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29053
29054 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29055
29056         copy-acl: enhance Solaris ACL error handling
29057         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29058         * lib/set-mode-acl.c (qset_acl): Likewise.
29059
29060 2010-03-02  Bruno Haible  <bruno@clisp.org>
29061
29062         spawn: Don't override the system defined values on FreeBSD 8.
29063         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29064         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29065         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29066         if HAVE_POSIX_SPAWN is 1.
29067         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29068
29069 2010-03-01  Bruno Haible  <bruno@clisp.org>
29070
29071         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29072         regarding Automake.
29073
29074 2010-02-25  Bruno Haible  <bruno@clisp.org>
29075
29076         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29077         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29078         setting, not afterwards.
29079         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29080
29081 2010-02-24  Eric Blake  <eblake@redhat.com>
29082
29083         bootstrap, git-version-gen: use timestamp
29084         * build-aux/git-version-gen (scriptversion): Force UTC.
29085         * build-aux/bootstrap (scriptversion): New variable.
29086
29087         bootstrap: allow older git
29088         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29089         older than 1.6.4.  Requested by the libvirt project.
29090
29091 2010-02-23  Eric Blake  <eblake@redhat.com>
29092
29093         warn-on-use: work with old autoconf
29094         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29095         AS_VAR semantics of autoconf 2.60.
29096         Reported by Bruno Haible.
29097
29098         bootstrap: improve some comments
29099         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29100         clarification comments.
29101
29102         gettimeofday: provide correct function
29103         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29104         when replacement is declared, otherwise provide gettimeofday.
29105         Reported by Michael Goffioul.
29106
29107 2010-02-23  Jim Meyering  <meyering@redhat.com>
29108
29109         lib-ignore: relax license to "unlimited", not LGPLv2+
29110         * modules/lib-ignore (License): Relax to "unlimited".
29111
29112 2010-02-23  Jim Meyering  <meyering@redhat.com>
29113
29114         lib-ignore: relax license to LGPLv2+
29115         * modules/lib-ignore (License): Relax to LGPLv2+.
29116
29117 2010-02-22  Eric Blake  <eblake@redhat.com>
29118
29119         lseek: avoid bash 3.2 broken pipe bug
29120         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29121         warning from bash 3.2.
29122         Reported by Ben Pfaff, with analysis from Bruno Haible.
29123
29124         bootstrap: support non-FSF copyright holder
29125         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29126         bootstrap.conf override of COPYRIGHT_HOLDER.
29127         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29128
29129         bootstrap: interoperate with gettext 0.14.1
29130         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29131
29132         bootstrap: allow for alternate submodule location
29133         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29134         hardcoding submodule location.
29135         (gnulib_mk): Allow direct use of Makefile.am.
29136
29137         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29138         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29139         rather than reconfiguring where the submodule points.
29140
29141         gettimeofday: restore support for platforms that lack function
29142         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29143         replacement if function is missing.
29144         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29145         * modules/sys_time (Makefile.am): Substitute it.
29146         * lib/sys_time.in.h (gettimeofday): Check it.
29147         Reported by Michael Goffioul.
29148
29149 2010-02-21  Bruno Haible  <bruno@clisp.org>
29150
29151         * lib/stdio.in.h (obstack_printf): Fix typo.
29152
29153 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29154
29155         vc-list-files: use bzr ls's -R option
29156         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29157         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29158
29159 2010-02-21  Jim Meyering  <meyering@redhat.com>
29160
29161         init.sh: fix EXEEXT shims to work also for names like test-prog
29162         * tests/init.sh: Re-exec a better shell, when needed.
29163         If the current shell lacks support for posix $(...), an init.sh-using
29164         test will now try to find a shell that supports that.  If EXEEXT is
29165         nonempty, we also require support for hyphen-in-alias-name and shell
29166         substitutions like ${var#glob}.  Failure to find such a shell results
29167         in a skipped test.
29168
29169 2010-02-21  Bruno Haible  <bruno@clisp.org>
29170
29171         Really work around around "broken pipe" error message from bash 3.2.
29172         * gnulib-tool (func_reset_sigpipe): Remove function.
29173         (echo): In bash 3.2, define to a function that uses printf.
29174         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29175
29176 2010-02-20  Bruno Haible  <bruno@clisp.org>
29177
29178         Restore support for automake 1.9.6 with autoconf 2.61.
29179         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29180         Reported by James Youngman <jay@gnu.org>.
29181
29182 2010-02-20  Bruno Haible  <bruno@clisp.org>
29183
29184         Improve *printf warning condition.
29185         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29186         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29187         and the function is overridden due to SIGPIPE emulation.
29188
29189 2010-02-20  Bruno Haible  <bruno@clisp.org>
29190
29191         * lib/stdio.in.h: Tweak comments.
29192
29193 2010-02-19  Bruno Haible  <bruno@clisp.org>
29194
29195         Make it easier to find modules. New gnulib-tool option '--find'.
29196         * gnulib-tool: New option --find.
29197         (func_usage): Document it.
29198         (func_sanitize_modulelist): New function, extracted from
29199         func_all_modules.
29200         (func_all_modules): Invoke it.
29201         * doc/gnulib-tool.texi (Which modules?): New node.
29202
29203 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29204
29205         * lib/sys_select.in.h: Provide select replacement even if
29206         sys/select.h exists on a system, for Interix.
29207
29208 2010-02-18  Jim Meyering  <meyering@redhat.com>
29209
29210         init.sh: don't use $(...) just yet
29211         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29212         to accommodate e.g., Solaris' /bin/sh.
29213
29214 2010-02-17  Bruno Haible  <bruno@clisp.org>
29215
29216         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29217         Reported by Ludovic Courtès <ludo@gnu.org>.
29218
29219 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29220
29221         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29222         linking with -lintl.
29223
29224 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29225
29226         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29227         if not provided by the system's netdb.h.  Reported by
29228         ludo@gnu.org (Ludovic Courtès).
29229
29230 2010-02-15  Jim Meyering  <meyering@redhat.com>
29231
29232         init.sh: improve portability and efficiency
29233         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29234         "dummy" in a for loop.
29235         Use '!', not '^' to select the complement of a character set used
29236         in a "case" statement.
29237         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29238         Suggestions from Eric Blake.
29239
29240         init.sh: automatically accommodate programs with the .exe suffix
29241         Automatically arrange for an invocation of "prog" to execute the
29242         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29243         may use the simpler "prog", yet still work when built on a system
29244         that requires specifying the added suffix.
29245         Do this by constructing a function named "prog" that invokes
29246         "prog.exe" for each .exe file in selected directories.
29247         * tests/init.sh (find_exe_basenames_): New function.
29248         (create_exe_shim_functions_): New function.
29249         (path_prepend_): Use it.
29250
29251         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29252         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29253         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29254
29255 2010-02-14  Jim Meyering  <meyering@redhat.com>
29256
29257         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29258         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29259         (sc_prohibit_hash_pjw_without_use): New rule.
29260
29261         maint.mk: allow the default upload destination dir to be overridden
29262         * top/maint.mk (upload_dest_dir_): Define with a default that
29263         preserves the status quo.
29264         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29265         Reported by Peter Simons.
29266
29267         maint.mk: prohibit inclusion of "hash.h" without_use
29268         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29269
29270 2010-02-10  Jim Meyering  <meyering@redhat.com>
29271
29272         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29273         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29274
29275 2010-02-09  Eric Blake  <ebb9@byu.net>
29276         and Bruno Haible  <bruno@clisp.org>
29277
29278         obstack-printf-posix: ensure declaration
29279         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29280         extracted from gl_FUNC_OBSTACK_PRINTF.
29281         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29282         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29283         Likewise.
29284         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29285         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29286         0.
29287
29288 2010-02-08  Bruno Haible  <bruno@clisp.org>
29289
29290         gnulib-tool: Fix typo in 2010-02-07 commit.
29291         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29292         Reported by Eric Blake.
29293
29294 2010-02-07  Bruno Haible  <bruno@clisp.org>
29295
29296         gnulib-tool: Fix up caching patches.
29297         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29298         option --no-cache. Use associative arrays when supported by the shell.
29299         (sed_comments): New variable.
29300         (modcache): Renamed from do_cache.
29301         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29302         abbreviate unnecessarily.
29303         (have_associative): New variable.
29304         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29305         way also for ksh and zsh.
29306         (func_init_sed_convert_to_cache_statements): New function, extracted
29307         from func_cache_lookup_module. Add support for associative arrays.
29308         Don't set the c_MODULE_cached variable here. Ignore all lines before
29309         the first field header. Remove only the final newline, not all trailing
29310         newlines. Support empty fields correctly. Limit the use of 'eval' to
29311         assignments.
29312         (func_get_description, func_get_status, func_get_notice,
29313         func_get_applicability, func_get_filelist, func_get_dependencies,
29314         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29315         func_get_automake_snippet, func_get_include_directive,
29316         func_get_link_directive, func_get_license, func_get_maintainer):
29317         Update documentation. List the unoptimized code first. Add support for
29318         associative arrays. Limit the use of 'eval' to assignments.
29319         (func_get_applicability): Undo stylistic pessimisations.
29320         (func_get_automake_snippet, func_get_include_directive): Reduce code
29321         duplication.
29322         (func_modules_transitive_closure, func_modules_add_dummy,
29323         func_modules_notice, func_modules_to_filelist, func_add_file,
29324         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29325         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29326         func_create_testdir, func_create_megatestdir): Update documentation.
29327
29328 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29329
29330         * gnulib-tool (func_cache_lookup_module): Store the module name
29331         belonging to the cache variable; error out if two different
29332         module names map to the same cache variable name.
29333
29334 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29335
29336         gnulib-tool: Make caching optional.
29337         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29338         Update matching short versions of --no-changelog.
29339         (func_usage): Update.
29340         (sed_extract_cache_prog): Renamed from ...
29341         (sed_extract_prog): ... this; revert to old extraction script.
29342         (func_get_description, func_get_status)
29343         (func_get_notice, func_get_applicability, func_get_filelist)
29344         (func_get_dependencies, func_get_autoconf_early_snippet)
29345         (func_get_autoconf_snippet, func_get_automake_snippet)
29346         (func_get_include_directive, func_get_link_directive)
29347         (func_get_license, func_get_maintainer): If $do_cache is false,
29348         use old, non-caching extraction scripts.
29349         Suggestion by Bruno Haible.
29350
29351 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29352
29353         gnulib-tool: cache module metainformation.
29354         * gnulib-tool (sed_extract_prog): Match newline before each
29355         header, and rewrite header to a shell variable suffix.
29356         (func_cache_var, func_cache_lookup_module): New functions,
29357         to turn a module name into a cache variable prefix, and to
29358         look up and cache module metainformation.
29359         (func_get_description, func_get_status)
29360         (func_get_notice, func_get_applicability, func_get_filelist)
29361         (func_get_dependencies, func_get_autoconf_early_snippet)
29362         (func_get_autoconf_snippet, func_get_automake_snippet)
29363         (func_get_include_directive, func_get_link_directive)
29364         (func_get_license, func_get_maintainer): Use
29365         func_cache_lookup_module.
29366
29367 2010-02-07  Bruno Haible  <bruno@clisp.org>
29368
29369         fnctl: Fix missing dependency.
29370         * modules/fcntl (Depends-on): Add getdtablesize.
29371         Reported by John W. Eaton <jwe@gnu.org>.
29372
29373 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29374
29375         Argp: fix recognition of short alias options.
29376
29377         * lib/argp-parse.c (convert_options): Fix improper use of
29378         `|' between character values.
29379         * tests/test-argp.c (group1_option): New alias option
29380         --read (-r).
29381         (group1_parser): Special handling for 'r'.
29382         (test15): New test case.
29383         (test_fun): Add test15.
29384         * tests/test-argp-2.sh: Update expected --help and --usage
29385         outputs.
29386
29387 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29388
29389         * tests/test-argp.c: Fix indentation.
29390
29391 2010-02-04  Eric Blake  <ebb9@byu.net>
29392
29393         gettimeofday: expose type of second argument
29394         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29395         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29396         * tests/test-gettimeofday.c: Use it to silence warning.
29397         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29398         the issue.
29399
29400 2010-02-03  Jim Meyering  <meyering@redhat.com>
29401
29402         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29403         * lib/regcomp.c (TYPE_SIGNED): Define.
29404         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29405
29406         regcomp.c: avoid a new -Wshadow warning
29407         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29408
29409 2010-02-01  Jim Meyering  <meyering@redhat.com>
29410
29411         removing useless parentheses in cpp #define directives
29412         For motivation, see commit c0221df4, "define STREQ(a,b)
29413         consistently, removing useless parentheses"
29414         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29415         * lib/mountlist.c (MNT_IGNORE): Likewise.
29416         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29417
29418 2010-02-01  Eric Blake  <ebb9@byu.net>
29419
29420         sys_time: use link-warning
29421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29422         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29423         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29424         * modules/sys_time (Depends-on): Add warn-on-use.
29425         (Makefile.am): Always build replacement.
29426         (configure.ac): Update substitutions.
29427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29428         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29429         bother with SYS_TIME_H.
29430         * modules/gettimeofday (configure.ac): Declare indicator.
29431         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29432         in use.
29433
29434         closein-tests: silence compiler warning
29435         * tests/test-closein.c (main): Ignore fread result.
29436         * modules/closein-tests (Depends-on): Add ignore-value.
29437
29438         tests: silence warning about system return
29439         * tests/test-areadlink-with-size.c (main): Ignore system result.
29440         * tests/test-areadlink.c (main): Likewise.
29441         * tests/test-areadlinkat-with-size.c (main): Likewise.
29442         * tests/test-areadlinkat.c (main): Likewise.
29443         * tests/test-canonicalize-lgpl.c (main): Likewise.
29444         * tests/test-canonicalize.c (main): Likewise.
29445         * tests/test-chown.c (main): Likewise.
29446         * tests/test-fchownat.c (main): Likewise.
29447         * tests/test-fdutimensat.c (main): Likewise.
29448         * tests/test-fstatat.c (main): Likewise.
29449         * tests/test-futimens.c (main): Likewise.
29450         * tests/test-lchown.c (main): Likewise.
29451         * tests/test-link.c (main): Likewise.
29452         * tests/test-linkat.c (main): Likewise.
29453         * tests/test-lstat.c (main): Likewise.
29454         * tests/test-mkdir.c (main): Likewise.
29455         * tests/test-mkdirat.c (main): Likewise.
29456         * tests/test-mkfifo.c (main): Likewise.
29457         * tests/test-mkfifoat.c (main): Likewise.
29458         * tests/test-mknod.c (main): Likewise.
29459         * tests/test-readlink.c (main): Likewise.
29460         * tests/test-remove.c (main): Likewise.
29461         * tests/test-rename.c (main): Likewise.
29462         * tests/test-renameat.c (main): Likewise.
29463         * tests/test-rmdir.c (main): Likewise.
29464         * tests/test-symlink.c (main): Likewise.
29465         * tests/test-symlinkat.c (main): Likewise.
29466         * tests/test-unlink.c (main): Likewise.
29467         * tests/test-unlinkat.c (main): Likewise.
29468         * tests/test-utimens.c (main): Likewise.
29469         * tests/test-utimensat.c (main): Likewise.
29470         * modules/areadlink-tests (Depends-on): Add ignore-value.
29471         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29472         * modules/areadlinkat-tests (Depends-on): Likewise.
29473         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29474         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29475         * modules/canonicalize-tests (Depends-on): Likewise.
29476         * modules/chown-tests (Depends-on): Likewise.
29477         * modules/fdutimensat-tests (Depends-on): Likewise.
29478         * modules/futimens-tests (Depends-on): Likewise.
29479         * modules/lchown-tests (Depends-on): Likewise.
29480         * modules/link-tests (Depends-on): Likewise.
29481         * modules/linkat-tests (Depends-on): Likewise.
29482         * modules/lstat-tests (Depends-on): Likewise.
29483         * modules/mkdir-tests (Depends-on): Likewise.
29484         * modules/mkfifo-tests (Depends-on): Likewise.
29485         * modules/mkfifoat-tests (Depends-on): Likewise.
29486         * modules/mknod-tests (Depends-on): Likewise.
29487         * modules/openat-tests (Depends-on): Likewise.
29488         * modules/readlink-tests (Depends-on): Likewise.
29489         * modules/remove-tests (Depends-on): Likewise.
29490         * modules/rename-tests (Depends-on): Likewise.
29491         * modules/renameat-tests (Depends-on): Likewise.
29492         * modules/rmdir-tests (Depends-on): Likewise.
29493         * modules/symlink-tests (Depends-on): Likewise.
29494         * modules/symlinkat-tests (Depends-on): Likewise.
29495         * modules/unlink-tests (Depends-on): Likewise.
29496         * modules/utimens-tests (Depends-on): Likewise.
29497         * modules/utimensat-tests (Depends-on): Likewise.
29498
29499 2010-01-31  Bruno Haible  <bruno@clisp.org>
29500
29501         Perform the same test for many <math.h> functions.
29502         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29503         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29504         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29505         of gl_MATHFUNC.
29506         * modules/acos (configure.ac): Likewise.
29507         * modules/asin (configure.ac): Likewise.
29508         * modules/atan (configure.ac): Likewise.
29509         * modules/atan2 (configure.ac): Likewise.
29510         * modules/cbrt (configure.ac): Likewise.
29511         * modules/copysign (configure.ac): Likewise.
29512         * modules/cos (configure.ac): Likewise.
29513         * modules/cosh (configure.ac): Likewise.
29514         * modules/erf (configure.ac): Likewise.
29515         * modules/erfc (configure.ac): Likewise.
29516         * modules/exp (configure.ac): Likewise.
29517         * modules/fmod (configure.ac): Likewise.
29518         * modules/hypot (configure.ac): Likewise.
29519         * modules/j0 (configure.ac): Likewise.
29520         * modules/j1 (configure.ac): Likewise.
29521         * modules/jn (configure.ac): Likewise.
29522         * modules/lgamma (configure.ac): Likewise.
29523         * modules/log (configure.ac): Likewise.
29524         * modules/log10 (configure.ac): Likewise.
29525         * modules/log1p (configure.ac): Likewise.
29526         * modules/pow (configure.ac): Likewise.
29527         * modules/remainder (configure.ac): Likewise.
29528         * modules/sin (configure.ac): Likewise.
29529         * modules/sinh (configure.ac): Likewise.
29530         * modules/tan (configure.ac): Likewise.
29531         * modules/tanh (configure.ac): Likewise.
29532         * modules/y0 (configure.ac): Likewise.
29533         * modules/y1 (configure.ac): Likewise.
29534         * modules/yn (configure.ac): Likewise.
29535         Suggested by Paolo Bonzini.
29536
29537 2010-01-31  Bruno Haible  <bruno@clisp.org>
29538
29539         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29540
29541 2010-01-31  Bruno Haible  <bruno@clisp.org>
29542
29543         Work around getdelim() bug on FreeBSD 8.0.
29544         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29545         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29546         not work.
29547         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29548         is 1.
29549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29550         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29551         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29552         a non-zero size.
29553         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29554
29555 2010-01-31  Bruno Haible  <bruno@clisp.org>
29556
29557         Work around getline() bug on FreeBSD 8.0.
29558         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29559         and a non-zero size.
29560         * tests/test-getline.c (main): Likewise.
29561         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29562         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29563
29564 2010-01-28  Eric Blake  <ebb9@byu.net>
29565
29566         regex: fix build failure
29567         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29568         platforms.
29569
29570 2010-01-28  Jim Meyering  <meyering@redhat.com>
29571
29572         regex: do not ignore memory allocation failure
29573         * lib/regex_internal.c (create_cd_newstate): Detect
29574         re_node_set_init_copy failure.   Extracted from glibc commit
29575         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29576
29577         regex: sync more white-space changes from libc
29578         * lib/regex_internal.c: White-space only changes.
29579         * lib/regexec.c: Likewise.
29580
29581         regex: add many uses of __attribute_warn_unused_result__
29582         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29583         * lib/regexec.c: Likewise.
29584         Extracted from a messy glibc commit.
29585
29586         regcomp.c: spelling and merge-artifact from glibc
29587         * lib/regcomp.c: Merge remainder of glibc's
29588         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29589
29590         regcomp.c: sync white-space changes from glibc
29591         * lib/regcomp.c: Merge to accommodate white space
29592         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29593
29594         regcomp.c: do not ignore internal return values
29595         * lib/regcomp.c: Do not ignore internal return values.
29596         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29597         but without its white-space changes and spelling fixes.
29598
29599         regex_internal.h: define __attribute_warn_unused_result__
29600         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29601
29602         maint: add a syntax-check rule to check for vulnerable Makefile.in
29603         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29604
29605 2010-01-27  Jim Meyering  <meyering@redhat.com>
29606
29607         ncftpput-ftp: clean up spaces
29608         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29609         Remove trailing blanks.
29610
29611 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29612
29613         * build-aux/git-version-gen: Fix copyright statement.
29614         * build-aux/gnupload: Likewise.
29615         * tests/test-arcfour.c: Likewise.
29616         * tests/test-arctwo.c: Likewise.
29617         * tests/test-count-one-bits.c: Likewise.
29618         * tests/test-crc.c: Likewise.
29619         * tests/test-des.c: Likewise.
29620         * tests/test-gc-arcfour.c: Likewise.
29621         * tests/test-gc-arctwo.c: Likewise.
29622         * tests/test-gc-des.c: Likewise.
29623         * tests/test-gc-hmac-md5.c: Likewise.
29624         * tests/test-gc-hmac-sha1.c: Likewise.
29625         * tests/test-gc-md2.c: Likewise.
29626         * tests/test-gc-md4.c: Likewise.
29627         * tests/test-gc-md5.c: Likewise.
29628         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29629         * tests/test-gc-rijndael.c: Likewise.
29630         * tests/test-gc-sha1.c: Likewise.
29631         * tests/test-gc.c: Likewise.
29632         * tests/test-gethostname.c: Likewise.
29633         * tests/test-gettimeofday.c: Likewise.
29634         * tests/test-hash.c: Likewise.
29635         * tests/test-hmac-md5.c: Likewise.
29636         * tests/test-hmac-sha1.c: Likewise.
29637         * tests/test-md2.c: Likewise.
29638         * tests/test-md4.c: Likewise.
29639         * tests/test-md5.c: Likewise.
29640         * tests/test-memchr.c: Likewise.
29641         * tests/test-memchr2.c: Likewise.
29642         * tests/test-memcmp.c: Likewise.
29643         * tests/test-memmem.c: Likewise.
29644         * tests/test-memrchr.c: Likewise.
29645         * tests/test-rawmemchr.c: Likewise.
29646         * tests/test-read-file.c: Likewise.
29647         * tests/test-rijndael.c: Likewise.
29648         * tests/test-sockets.c: Likewise.
29649         * tests/test-strchrnul.c: Likewise.
29650         * tests/test-strstr.c: Likewise.
29651         * tests/test-strtod.c: Likewise.
29652         * build-aux/ncftpput-ftp: Likewise.
29653
29654 2010-01-26  Eric Blake  <ebb9@byu.net>
29655
29656         ignore-value: update recommended header name
29657         * modules/ignore-value (Include): Only use <> for headers that
29658         exist in glibc.
29659
29660 2010-01-26  Jim Meyering  <meyering@redhat.com>
29661
29662         test-userspec.c: avoid compiler warnings
29663         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29664         and "initialization discards qualifiers..." warnings.
29665         Put the first "uid" in its own scope, and make char* members "const".
29666
29667 2010-01-25  Bruno Haible  <bruno@clisp.org>
29668
29669         gnulib-tool: Make warning diagnostics consistent.
29670         * gnulib-tool (func_warning): New function.
29671         Use it everywhere where gnulib-tool produces output to stderr and it is
29672         not a fatal error.
29673
29674 2010-01-25  Bruno Haible  <bruno@clisp.org>
29675
29676         Fix test dependencies.
29677         * modules/xstrtol-tests (Depends-on): Add inttypes.
29678         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29679
29680 2010-01-25 Pádraig Brady <P@draigBrady.com>
29681
29682         syntax-check: detect incorrect boolean macro values in config.h
29683         * modules/maintainer-makefile (configure.ac): Parameterize the location
29684         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29685         The logic is from Eric Blake and the location indicated by Jim Meyering.
29686         Note the more natural CONFIG_HEADER name is prohibited by automake
29687         for backwards compatibility reasons.
29688         * top/maint.mk (sc_Wundef_boolean): New rule.
29689
29690 2010-01-25  Jim Meyering  <meyering@redhat.com>
29691
29692         bootstrap: detect MacOS 10.6's shasum, too
29693         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29694         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29695
29696 2010-01-23  Jim Meyering  <meyering@redhat.com>
29697
29698         xstrtoll: new module
29699         * modules/xstrtoll: New file.
29700         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
29701         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
29702         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
29703         ./configure fails if you use this module and lack "long long".
29704         * modules/xstrtoll-tests: New module.
29705         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
29706         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
29707         new init.sh-based test framework.
29708
29709 2010-01-24  Bruno Haible  <bruno@clisp.org>
29710
29711         Tests for module 'yn'.
29712         * modules/yn-tests: New file.
29713         * tests/test-yn.c: New file.
29714
29715         Tests for module 'y1'.
29716         * modules/y1-tests: New file.
29717         * tests/test-y1.c: New file.
29718
29719         Tests for module 'y0'.
29720         * modules/y0-tests: New file.
29721         * tests/test-y0.c: New file.
29722
29723         Tests for module 'tanh'.
29724         * modules/tanh-tests: New file.
29725         * tests/test-tanh.c: New file.
29726
29727         Tests for module 'tan'.
29728         * modules/tan-tests: New file.
29729         * tests/test-tan.c: New file.
29730
29731         Tests for module 'sqrt'.
29732         * modules/sqrt-tests: New file.
29733         * tests/test-sqrt.c: New file.
29734
29735         Tests for module 'sinh'.
29736         * modules/sinh-tests: New file.
29737         * tests/test-sinh.c: New file.
29738
29739         Tests for module 'sin'.
29740         * modules/sin-tests: New file.
29741         * tests/test-sin.c: New file.
29742
29743         Tests for module 'rint'.
29744         * modules/rint-tests: New file.
29745         * tests/test-rint.c: New file.
29746
29747         Tests for module 'remainder'.
29748         * modules/remainder-tests: New file.
29749         * tests/test-remainder.c: New file.
29750
29751         Tests for module 'pow'.
29752         * modules/pow-tests: New file.
29753         * tests/test-pow.c: New file.
29754
29755         Tests for module 'nextafter'.
29756         * modules/nextafter-tests: New file.
29757         * tests/test-nextafter.c: New file.
29758
29759         Tests for module 'modf'.
29760         * modules/modf-tests: New file.
29761         * tests/test-modf.c: New file.
29762
29763         Tests for module 'logb'.
29764         * modules/logb-tests: New file.
29765         * tests/test-logb.c: New file.
29766
29767         Tests for module 'log1p'.
29768         * modules/log1p-tests: New file.
29769         * tests/test-log1p.c: New file.
29770
29771         Tests for module 'log10'.
29772         * modules/log10-tests: New file.
29773         * tests/test-log10.c: New file.
29774
29775         Tests for module 'log'.
29776         * modules/log-tests: New file.
29777         * tests/test-log.c: New file.
29778
29779         Tests for module 'lgamma'.
29780         * modules/lgamma-tests: New file.
29781         * tests/test-lgamma.c: New file.
29782
29783         Tests for module 'ldexp'.
29784         * modules/ldexp-tests: New file.
29785         * tests/test-ldexp.c: New file.
29786
29787         Tests for module 'jn'.
29788         * modules/jn-tests: New file.
29789         * tests/test-jn.c: New file.
29790
29791         Tests for module 'j1'.
29792         * modules/j1-tests: New file.
29793         * tests/test-j1.c: New file.
29794
29795         Tests for module 'j0'.
29796         * modules/j0-tests: New file.
29797         * tests/test-j0.c: New file.
29798
29799         Tests for module 'hypot'.
29800         * modules/hypot-tests: New file.
29801         * tests/test-hypot.c: New file.
29802
29803         Tests for module 'fmod'.
29804         * modules/fmod-tests: New file.
29805         * tests/test-fmod.c: New file.
29806
29807         Tests for module 'fabs'.
29808         * modules/fabs-tests: New file.
29809         * tests/test-fabs.c: New file.
29810
29811         Tests for module 'exp'.
29812         * modules/exp-tests: New file.
29813         * tests/test-exp.c: New file.
29814
29815         Tests for module 'erfc'.
29816         * modules/erfc-tests: New file.
29817         * tests/test-erfc.c: New file.
29818
29819         Tests for module 'erf'.
29820         * modules/erf-tests: New file.
29821         * tests/test-erf.c: New file.
29822
29823         Tests for module 'cosh'.
29824         * modules/cosh-tests: New file.
29825         * tests/test-cosh.c: New file.
29826
29827         Tests for module 'cos'.
29828         * modules/cos-tests: New file.
29829         * tests/test-cos.c: New file.
29830
29831         Tests for module 'copysign'.
29832         * modules/copysign-tests: New file.
29833         * tests/test-copysign.c: New file.
29834
29835         Tests for module 'cbrt'.
29836         * modules/cbrt-tests: New file.
29837         * tests/test-cbrt.c: New file.
29838
29839         Tests for module 'atan2'.
29840         * modules/atan2-tests: New file.
29841         * tests/test-atan2.c: New file.
29842
29843         Tests for module 'atan'.
29844         * modules/atan-tests: New file.
29845         * tests/test-atan.c: New file.
29846
29847         Tests for module 'asin'.
29848         * modules/asin-tests: New file.
29849         * tests/test-asin.c: New file.
29850
29851         Tests for module 'acos'.
29852         * modules/acos-tests: New file.
29853         * tests/test-acos.c: New file.
29854
29855 2010-01-24  Bruno Haible  <bruno@clisp.org>
29856
29857         Fix tests for common <math.h> functions.
29858         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29859         code snippet that references the function pointer, rather than merely
29860         calling the function. Substitute the FUNC_LIBM variable.
29861         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29862         * modules/acos (configure.ac): Likewise.
29863         * modules/asin (configure.ac): Likewise.
29864         * modules/atan (configure.ac): Likewise.
29865         * modules/atan2 (configure.ac): Likewise.
29866         * modules/cbrt (configure.ac): Likewise.
29867         * modules/copysign (configure.ac): Likewise.
29868         * modules/cos (configure.ac): Likewise.
29869         * modules/cosh (configure.ac): Likewise.
29870         * modules/erf (configure.ac): Likewise.
29871         * modules/erfc (configure.ac): Likewise.
29872         * modules/exp (configure.ac): Likewise.
29873         * modules/fabs (configure.ac): Likewise.
29874         * modules/fmod (configure.ac): Likewise.
29875         * modules/hypot (configure.ac): Likewise.
29876         * modules/j0 (configure.ac): Likewise.
29877         * modules/j1 (configure.ac): Likewise.
29878         * modules/jn (configure.ac): Likewise.
29879         * modules/ldexp (configure.ac): Likewise.
29880         * modules/lgamma (configure.ac): Likewise.
29881         * modules/log (configure.ac): Likewise.
29882         * modules/log10 (configure.ac): Likewise.
29883         * modules/log1p (configure.ac): Likewise.
29884         * modules/logb (configure.ac): Likewise.
29885         * modules/modf (configure.ac): Likewise.
29886         * modules/nextafter (configure.ac): Likewise.
29887         * modules/pow (configure.ac): Likewise.
29888         * modules/remainder (configure.ac): Likewise.
29889         * modules/rint (configure.ac): Likewise.
29890         * modules/sin (configure.ac): Likewise.
29891         * modules/sinh (configure.ac): Likewise.
29892         * modules/tan (configure.ac): Likewise.
29893         * modules/tanh (configure.ac): Likewise.
29894         * modules/y0 (configure.ac): Likewise.
29895         * modules/y1 (configure.ac): Likewise.
29896         * modules/yn (configure.ac): Likewise.
29897
29898 2010-01-24  Bruno Haible  <bruno@clisp.org>
29899
29900         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29901         * tests/test-acosl.c (x): New variable.
29902         (main): Store argument in x and fetch it from x.
29903         * tests/test-asinl.c (x): New variable.
29904         (main): Store argument in x and fetch it from x.
29905         * tests/test-atanl.c (x): New variable.
29906         (main): Store argument in x and fetch it from x.
29907         * tests/test-cosl.c (x): New variable.
29908         (main): Store argument in x and fetch it from x.
29909         * tests/test-expl.c (x): New variable.
29910         (main): Store argument in x and fetch it from x.
29911         * tests/test-logl.c (x): New variable.
29912         (main): Store argument in x and fetch it from x.
29913         * tests/test-sinl.c (x): New variable.
29914         (main): Store argument in x and fetch it from x.
29915         * tests/test-sqrtl.c (x): New variable.
29916         (main): Store argument in x and fetch it from x.
29917         * tests/test-tanl.c (x): New variable.
29918         (main): Store argument in x and fetch it from x.
29919
29920 2010-01-24  Bruno Haible  <bruno@clisp.org>
29921
29922         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29923         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29924         assignments to the initial TESTS_ENVIRONMENT.
29925         * doc/gnulib.texi (Unit test modules): Document it.
29926         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29927         TESTS_ENVIRONMENT.
29928         * modules/btowc-tests (Makefile.am): Likewise.
29929         * modules/c-stack-tests (Makefile.am): Likewise.
29930         * modules/c-strcase-tests (Makefile.am): Likewise.
29931         * modules/copy-file-tests (Makefile.am): Likewise.
29932         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29933         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29934         * modules/mbrtowc-tests (Makefile.am): Likewise.
29935         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29936         * modules/mbscasestr-tests (Makefile.am): Likewise.
29937         * modules/mbschr-tests (Makefile.am): Likewise.
29938         * modules/mbscspn-tests (Makefile.am): Likewise.
29939         * modules/mbsinit-tests (Makefile.am): Likewise.
29940         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29941         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29942         * modules/mbspbrk-tests (Makefile.am): Likewise.
29943         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29944         * modules/mbsrchr-tests (Makefile.am): Likewise.
29945         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29946         * modules/mbsspn-tests (Makefile.am): Likewise.
29947         * modules/mbsstr-tests (Makefile.am): Likewise.
29948         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29949         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29950         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29951         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29952         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29953         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29954         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29955         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29956         * modules/wcrtomb-tests (Makefile.am): Likewise.
29957         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29958         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29959         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29960         assignments from TESTS_ENVIRONMENT.
29961         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29962         augmentation.
29963         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29964         * modules/atexit-tests (Makefile.am): Likewise.
29965         * modules/binary-io-tests (Makefile.am): Likewise.
29966         * modules/closein-tests (Makefile.am): Likewise.
29967         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29968         * modules/exclude-tests (Makefile.am): Likewise.
29969         * modules/fflush-tests (Makefile.am): Likewise.
29970         * modules/fpending-tests (Makefile.am): Likewise.
29971         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29972         * modules/freadahead-tests (Makefile.am): Likewise.
29973         * modules/freadptr-tests (Makefile.am): Likewise.
29974         * modules/freadseek-tests (Makefile.am): Likewise.
29975         * modules/fseek-tests (Makefile.am): Likewise.
29976         * modules/fseeko-tests (Makefile.am): Likewise.
29977         * modules/ftell-tests (Makefile.am): Likewise.
29978         * modules/ftello-tests (Makefile.am): Likewise.
29979         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29980         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29981         * modules/lseek-tests (Makefile.am): Likewise.
29982         * modules/parse-duration-tests (Makefile.am): Likewise.
29983         * modules/perror-tests (Makefile.am): Likewise.
29984         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29985         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29986         * modules/pipe-tests (Makefile.am): Likewise.
29987         * modules/pread-tests (Makefile.am): Likewise.
29988         * modules/printf-posix-tests (Makefile.am): Likewise.
29989         * modules/select-tests (Makefile.am): Likewise.
29990         * modules/sigpipe-tests (Makefile.am): Likewise.
29991         * modules/tsearch-tests (Makefile.am): Likewise.
29992         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29993         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29994         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29995         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29996         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29997         * modules/version-etc-tests (Makefile.am): Likewise.
29998         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29999         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30000         * modules/xalloc-die-tests (Makefile.am): Likewise.
30001         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30002         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30003         * modules/xstrtol-tests (Makefile.am): Likewise.
30004         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30005         * modules/yesno-tests (Makefile.am): Likewise.
30006         Suggested by Jim Meyering.
30007
30008 2010-01-24  Bruno Haible  <bruno@clisp.org>
30009
30010         More documentation.
30011         * doc/gnulib.texi (Writing modules): New chapter.
30012         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30013         the new chapter.
30014
30015 2010-01-24  Jim Meyering  <meyering@redhat.com>
30016
30017         maint.mk: do not prepend "./" after filtering
30018         * top/maint.mk (_prepend_srcdir_prefix): New variable
30019         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30020         "./" when $(srcdir) is ".".
30021
30022         define STREQ(a,b) consistently, removing useless parentheses
30023         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30024         since the only risk is that "a" or "b" contains an unparenthesized
30025         comma, but if either did that, STREQ would have 3 or more arguments.
30026         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30027         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30028         * lib/hash-triple.c (STREQ): Likewise.
30029         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30030         * lib/getugroups.c (STREQ): Likewise.
30031
30032 2010-01-23  Jim Meyering  <meyering@redhat.com>
30033
30034         maint.mk: fix syntax-check in a non-srcdir build directory
30035         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30036         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30037
30038 2010-01-22  Jim Meyering  <meyering@redhat.com>
30039
30040         userspec: add unit tests
30041         * tests/test-userspec.c: New file.
30042         * modules/userspec-tests: Likewise.
30043
30044 2010-01-21  Jim Meyering  <meyering@redhat.com>
30045
30046         maint.mk: handle source file names containing "." robustly
30047         * top/maint.mk (_dot_escaped_srcdir): Define.
30048         (VC_LIST): Use it in LHS of sed substitution.
30049
30050 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30051
30052         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30053         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30054         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30055         from a non-srcdir build.
30056
30057 2010-01-20  Eric Blake  <ebb9@byu.net>
30058
30059         warn-on-use: use instead of link-warning
30060         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30061         * modules/unistd (Depends-on, Makefile.am): Likewise.
30062         * modules/arpa_inet (Depends-on): Replace link-warning with
30063         warn-on-use.
30064         (Makefile.am): Update rules accordingly.
30065         * modules/ctype (Depends-on, Makefile.am): Likewise.
30066         * modules/dirent (Depends-on, Makefile.am): Likewise.
30067         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30068         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30069         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30070         * modules/locale (Depends-on, Makefile.am): Likewise.
30071         * modules/math (Depends-on, Makefile.am): Likewise.
30072         * modules/search (Depends-on, Makefile.am): Likewise.
30073         * modules/signal (Depends-on, Makefile.am): Likewise.
30074         * modules/spawn (Depends-on, Makefile.am): Likewise.
30075         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30076         * modules/string (Depends-on, Makefile.am): Likewise.
30077         * modules/strings (Depends-on, Makefile.am): Likewise.
30078         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30079         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30080         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30081         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30082         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30083         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30084         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30085         * modules/wchar (Depends-on, Makefile.am): Likewise.
30086         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30087         should be poisoned.
30088         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30089         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30090         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30091         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30092         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30093         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30094         * m4/math_h.m4 (gl_MATH_H): Likewise.
30095         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30096         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30097         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30098         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30099         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30100         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30101         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30102         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30103         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30104         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30105         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30106         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30107         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30108         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30109         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30110         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30111         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30112         GL_LINK_WARNING.
30113         * lib/ctype.in.h: Likewise.
30114         * lib/dirent.in.h: Likewise.
30115         * lib/fcntl.in.h: Likewise.
30116         * lib/inttypes.in.h: Likewise.
30117         * lib/langinfo.in.h: Likewise.
30118         * lib/locale.in.h: Likewise.
30119         * lib/math.in.h: Likewise.
30120         * lib/search.in.h: Likewise.
30121         * lib/signal.in.h: Likewise.
30122         * lib/spawn.in.h: Likewise.
30123         * lib/stdio.in.h: Likewise.
30124         * lib/stdlib.in.h: Likewise.
30125         * lib/string.in.h: Likewise.
30126         * lib/strings.in.h: Likewise.
30127         * lib/sys_file.in.h: Likewise.
30128         * lib/sys_ioctl.in.h: Likewise.
30129         * lib/sys_select.in.h: Likewise.
30130         * lib/sys_socket.in.h: Likewise.
30131         * lib/sys_stat.in.h: Likewise.
30132         * lib/sys_times.in.h: Likewise.
30133         * lib/sys_utsname.in.h: Likewise.
30134         * lib/unistd.in.h: Likewise.
30135         * lib/wchar.in.h: Likewise.
30136
30137 2010-01-20  Bruno Haible  <bruno@clisp.org>
30138
30139         Avoid duplicate -lm.
30140         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30141         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30142         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30144         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30145         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30146         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30147         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30148         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30149         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30150         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30151         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30152         Reported by Paolo Bonzini.
30153
30154 2010-01-19  Bruno Haible  <bruno@clisp.org>
30155
30156         langinfo, nl_langinfo: Relicense under LGPLv2+.
30157         * modules/langinfo (License): Change to LGPLv2+.
30158         * modules/nl_langinfo (License): Likewise.
30159         Patch by David Lutterkort <lutter@redhat.com>.
30160
30161 2010-01-19  Bruno Haible  <bruno@clisp.org>
30162
30163         Avoid compilation error with cc on OSF/1 5.1.
30164         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30165         statement, not before.
30166         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30167
30168 2010-01-18  Bruno Haible  <bruno@clisp.org>
30169
30170         Avoid a link error due to the __printf__ symbol.
30171         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30172         and 2.6.x.
30173         (__format__, __printf__): Remove definitions.
30174         * lib/argp-fmtstream.h: Likewise.
30175         * lib/argp.h: Likewise.
30176         * lib/error.h: Likewise.
30177         * lib/vasnprintf.h: Likewise.
30178         * lib/xprintf.h: Likewise.
30179         * lib/xvasprintf.h: Likewise.
30180         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30181
30182 2010-01-18  Bruno Haible  <bruno@clisp.org>
30183
30184         Tests for module 'tanl'.
30185         * modules/tanl-tests: New file.
30186         * tests/test-tanl.c: New file.
30187
30188         Tests for module 'sqrtl'.
30189         * modules/sqrtl-tests: New file.
30190         * tests/test-sqrtl.c: New file.
30191
30192         Tests for module 'sinl'.
30193         * modules/sinl-tests: New file.
30194         * tests/test-sinl.c: New file.
30195
30196         Tests for module 'logl'.
30197         * modules/logl-tests: New file.
30198         * tests/test-logl.c: New file.
30199
30200         Tests for module 'expl'.
30201         * modules/expl-tests: New file.
30202         * tests/test-expl.c: New file.
30203
30204         Tests for module 'cosl'.
30205         * modules/cosl-tests: New file.
30206         * tests/test-cosl.c: New file.
30207
30208         Tests for module 'atanl'.
30209         * modules/atanl-tests: New file.
30210         * tests/test-atanl.c: New file.
30211
30212         Tests for module 'asinl'.
30213         * modules/asinl-tests: New file.
30214         * tests/test-asinl.c: New file.
30215
30216         Tests for module 'acosl'.
30217         * modules/acosl-tests: New file.
30218         * tests/test-acosl.c: New file.
30219
30220         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30221         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30222         tanl): Use the standard gnulib idiom.
30223         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30224         * lib/sinl.c: Likewise.
30225         * lib/tanl.c: Don't include trigl.c.
30226         (kernel_tanl): Make static.
30227         * lib/sincosl.c: Include trigl.h first.
30228         * lib/trigl.c: Likewise.
30229         * m4/acosl.m4: New file.
30230         * m4/asinl.m4: New file.
30231         * m4/atanl.m4: New file.
30232         * m4/cosl.m4: New file.
30233         * m4/expl.m4: New file.
30234         * m4/logl.m4: New file.
30235         * m4/sinl.m4: New file.
30236         * m4/sqrtl.m4: New file.
30237         * m4/tanl.m4: New file.
30238         * m4/mathl.m4: Remove file.
30239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30240         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30241         Don't initialize GNULIB_MATHL.
30242         * modules/acosl: New file.
30243         * modules/asinl: New file.
30244         * modules/atanl: New file.
30245         * modules/cosl: New file.
30246         * modules/expl: New file.
30247         * modules/logl: New file.
30248         * modules/sinl: New file.
30249         * modules/sqrtl: New file.
30250         * modules/tanl: New file.
30251         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30252         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30253         substitute GNULIB_MATHL.
30254         * modules/mathl: Rewritten.
30255         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30256         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30257         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30258         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30259         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30260         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30261         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30262         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30263         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30264
30265 2010-01-18  Bruno Haible  <bruno@clisp.org>
30266
30267         sqrt: Make gl_FUNC_SQRT requirable.
30268         * m4/sqrt.m4: New file.
30269         * modules/sqrt (Files): Add it.
30270         (configure.ac): Invoke gl_FUNC_SQRT.
30271
30272 2010-01-18  Bruno Haible  <bruno@clisp.org>
30273
30274         New modules for common <math.h> functions.
30275         * m4/mathfunc.m4: New file.
30276         * modules/acos: New file.
30277         * modules/asin: New file.
30278         * modules/atan: New file.
30279         * modules/atan2: New file.
30280         * modules/cbrt: New file.
30281         * modules/copysign: New file.
30282         * modules/cos: New file.
30283         * modules/cosh: New file.
30284         * modules/erf: New file.
30285         * modules/erfc: New file.
30286         * modules/exp: New file.
30287         * modules/fabs: New file.
30288         * modules/fmod: New file.
30289         * modules/hypot: New file.
30290         * modules/j0: New file.
30291         * modules/j1: New file.
30292         * modules/jn: New file.
30293         * modules/ldexp: New file.
30294         * modules/lgamma: New file.
30295         * modules/log: New file.
30296         * modules/log10: New file.
30297         * modules/log1p: New file.
30298         * modules/logb: New file.
30299         * modules/modf: New file.
30300         * modules/nextafter: New file.
30301         * modules/pow: New file.
30302         * modules/remainder: New file.
30303         * modules/rint: New file.
30304         * modules/sin: New file.
30305         * modules/sinh: New file.
30306         * modules/sqrt: New file.
30307         * modules/tan: New file.
30308         * modules/tanh: New file.
30309         * modules/y0: New file.
30310         * modules/y1: New file.
30311         * modules/yn: New file.
30312         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30313         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30314         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30315         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30316         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30317         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30318         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30319         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30320         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30321         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30322         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30323         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30324         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30325         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30326         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30327         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30328         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30329         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30330         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30331         * doc/posix-functions/log.texi: Mention the 'log' module.
30332         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30333         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30334         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30335         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30336         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30337         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30338         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30339         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30340         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30341         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30342         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30343         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30344         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30345         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30346         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30347         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30348
30349 2010-01-18  Jim Meyering  <meyering@redhat.com>
30350
30351         ignore-value: relax license to LGPLv2+
30352         * modules/ignore-value (License): Relax to LGPLv2+.
30353
30354         getdate: don't leak when TZ contains two or more '"'s
30355         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30356         double quote in TZ after the first one.
30357
30358         readtokens: do not leak internal token_lengths buffer
30359         * lib/readtokens.c (readtokens): Free the local, lengths,
30360         when the supplied "token_lengths" parameter is NULL.
30361
30362 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30363
30364         Fix a couple of missing LIBTHREAD link failures on AIX.
30365         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30366         $(LIBTHREAD).
30367         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30368
30369         Link test-poll against INET_PTON_LIB.
30370         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30371         for inet_pton on Solaris 10.
30372
30373 2010-01-17  Bruno Haible  <bruno@clisp.org>
30374
30375         unistdio/*-sprintf: Fix typo in module description.
30376         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30377         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30378         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30379         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30380         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30381         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30382         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30383         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30384
30385 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30386
30387         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30388         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30389         variables in shell case patterns, for AIX and HP-UX ksh.
30390
30391         Split large sed scripts, for HP-UX sed.
30392         * modules/stdio: Split sed scripts around 50 sed commands,
30393         to avoid HP-UX limit of 99 commands, in the near future.
30394         * modules/string: Likewise.
30395         * modules/unistd: Likewise.
30396
30397         gnulib-tool: avoid writing in the current directory.
30398         * gnulib-tool (func_emit_lib_Makefile_am)
30399         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30400         not in the current directory, so concurrent gnulib-tool
30401         instances do not interfere.
30402
30403 2010-01-16  Jim Meyering  <meyering@redhat.com>
30404
30405         doc: update users.txt
30406         * users.txt: Add grep.
30407         (diffutils, gzip): Update URLs.
30408
30409 2010-01-12  Bruno Haible  <bruno@clisp.org>
30410
30411         posix_spawn: Avoid test failure on Cygwin.
30412         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30413         characters.
30414         Reported by Simon Josefsson.
30415
30416 2010-01-12  Bruno Haible  <bruno@clisp.org>
30417
30418         * tests/test-cond.c (main): When skipping the test, show the reason.
30419
30420 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30421
30422         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30423
30424 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30425
30426         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30427         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30428
30429 2010-01-12  Eric Blake  <ebb9@byu.net>
30430
30431         build: guarantee AS_VAR_IF
30432         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30433         (gl_AS_VAR_IF): Move...
30434         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30435         Reported by Simon Josefsson.
30436
30437 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30438
30439         * lib/stdio.in.h: Fix typo.
30440
30441 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30442
30443         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30444         libgpg-error.
30445
30446 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30447
30448         * tests/test-xalloc-die.sh: Use $EXEEXT.
30449
30450 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30451             Bruno Haible  <bruno@clisp.org>
30452
30453         getlogin, getlogin_r: Avoid test failure.
30454         * tests/test-getlogin.c: Include <stdio.h>.
30455         (main): Skip the test when the function fails because stdin is not a
30456         tty.
30457         * tests/test-getlogin_r.c: Include <stdio.h>.
30458         (main): Skip the test when the function fails because stdin is not a
30459         tty.
30460
30461 2010-01-11  Eric Blake  <ebb9@byu.net>
30462
30463         tests: avoid more large file warnings
30464         * tests/test-fflush.c: Avoid warning about ftell use.
30465         * tests/test-fseek.c: Avoid warning about fseek use.
30466
30467 2010-01-10  Bruno Haible  <bruno@clisp.org>
30468
30469         nproc: Work better on Linux when /proc and /sys are not mounted.
30470         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30471         as lower bound when, on glibc/Linux systems,
30472         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30473         Suggested by Pádraig Brady <P@draigbrady.com>.
30474         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30475
30476         nproc: Refactor.
30477         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30478         extracted from num_processors.
30479         (num_processors): Call it.
30480
30481 2010-01-11  Jim Meyering  <meyering@redhat.com>
30482
30483         utimecmp: avoid new warning from upcoming gcc-4.5.0
30484         * lib/utimecmp.c (BILLION): Define using #define rather than an
30485         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30486
30487 2010-01-11  Eric Blake  <ebb9@byu.net>
30488
30489         math: add portability warnings for classification macros
30490         * modules/math (Depends-on): Add warn-on-use.
30491         (Makefile.am): Provide new substitutions.
30492         * m4/math_h.m4 (gl_MATH_H): Require inline.
30493         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30494         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30495         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30496         implement warnings.
30497
30498         unistd: warn on use of environ without module
30499         * modules/unistd (Depends-on): Add warn-on-use.
30500         (Makefile.am): Provide new substitutions.
30501         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30502         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30503
30504         stdio: warn on suspicious uses
30505         * modules/stdio (Depends-on): Add warn-on-use.
30506         (Makefile.am): Provide new substitutions.
30507         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30508         fseeko.
30509         * lib/stdio.in.h (gets): Always warn on use.
30510         (fseek, ftell): Adjust when warnings are issued, and honor
30511         _GL_NO_LARGE_FILES as a way to silence the warning.
30512         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30513         any warning about large file offsets.
30514         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30515         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30516         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30517         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30518         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30519         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30520         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30521         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30522
30523         warn-on-use: new module
30524         * modules/warn-on-use: New file.
30525         * build-aux/warn-on-use.h: Likewise.
30526         * m4/warn-on-use.m4: Likewise.
30527         * MODULES.html.sh (Support for building): Mention it.
30528
30529 2010-01-10  Bruno Haible  <bruno@clisp.org>
30530
30531         Tests for module 'unistr/u32-strdup'.
30532         * modules/unistr/u32-strdup-tests: New file.
30533         * tests/unistr/test-u32-strdup.c: New file.
30534
30535         Tests for module 'unistr/u16-strdup'.
30536         * modules/unistr/u16-strdup-tests: New file.
30537         * tests/unistr/test-u16-strdup.c: New file.
30538
30539         Tests for module 'unistr/u8-strdup'.
30540         * modules/unistr/u8-strdup-tests: New file.
30541         * tests/unistr/test-u8-strdup.c: New file.
30542         * tests/unistr/test-strdup.h: New file.
30543
30544         Tests for module 'unistr/u32-strncmp'.
30545         * modules/unistr/u32-strncmp-tests: New file.
30546         * tests/unistr/test-u32-strncmp.c: New file.
30547
30548         Tests for module 'unistr/u16-strncmp'.
30549         * modules/unistr/u16-strncmp-tests: New file.
30550         * tests/unistr/test-u16-strncmp.c: New file.
30551
30552         Tests for module 'unistr/u8-strncmp'.
30553         * modules/unistr/u8-strncmp-tests: New file.
30554         * tests/unistr/test-u8-strncmp.c: New file.
30555         * tests/unistr/test-strncmp.h: New file.
30556
30557         Tests for module 'unistr/u32-strcoll'.
30558         * modules/unistr/u32-strcoll-tests: New file.
30559         * tests/unistr/test-u32-strcoll.c: New file.
30560
30561         Tests for module 'unistr/u16-strcoll'.
30562         * modules/unistr/u16-strcoll-tests: New file.
30563         * tests/unistr/test-u16-strcoll.c: New file.
30564
30565         Tests for module 'unistr/u8-strcoll'.
30566         * modules/unistr/u8-strcoll-tests: New file.
30567         * tests/unistr/test-u8-strcoll.c: New file.
30568
30569         Tests for module 'unistr/u32-strcmp'.
30570         * modules/unistr/u32-strcmp-tests: New file.
30571         * tests/unistr/test-u32-strcmp.c: New file.
30572         * tests/unistr/test-u32-strcmp.h: New file.
30573
30574         Tests for module 'unistr/u16-strcmp'.
30575         * modules/unistr/u16-strcmp-tests: New file.
30576         * tests/unistr/test-u16-strcmp.c: New file.
30577         * tests/unistr/test-u16-strcmp.h: New file.
30578
30579         Tests for module 'unistr/u8-strcmp'.
30580         * modules/unistr/u8-strcmp-tests: New file.
30581         * tests/unistr/test-u8-strcmp.c: New file.
30582         * tests/unistr/test-u8-strcmp.h: New file.
30583         * tests/unistr/test-strcmp.h: New file.
30584
30585         Tests for module 'unistr/u32-strncat'.
30586         * modules/unistr/u32-strncat-tests: New file.
30587         * tests/unistr/test-u32-strncat.c: New file.
30588
30589         Tests for module 'unistr/u16-strncat'.
30590         * modules/unistr/u16-strncat-tests: New file.
30591         * tests/unistr/test-u16-strncat.c: New file.
30592
30593         Tests for module 'unistr/u8-strncat'.
30594         * modules/unistr/u8-strncat-tests: New file.
30595         * tests/unistr/test-u8-strncat.c: New file.
30596         * tests/unistr/test-strncat.h: New file.
30597
30598         Tests for module 'unistr/u32-strcat'.
30599         * modules/unistr/u32-strcat-tests: New file.
30600         * tests/unistr/test-u32-strcat.c: New file.
30601
30602         Tests for module 'unistr/u16-strcat'.
30603         * modules/unistr/u16-strcat-tests: New file.
30604         * tests/unistr/test-u16-strcat.c: New file.
30605
30606         Tests for module 'unistr/u8-strcat'.
30607         * modules/unistr/u8-strcat-tests: New file.
30608         * tests/unistr/test-u8-strcat.c: New file.
30609         * tests/unistr/test-strcat.h: New file.
30610
30611         Tests for module 'unistr/u32-stpncpy'.
30612         * modules/unistr/u32-stpncpy-tests: New file.
30613         * tests/unistr/test-u32-stpncpy.c: New file.
30614
30615         Tests for module 'unistr/u16-stpncpy'.
30616         * modules/unistr/u16-stpncpy-tests: New file.
30617         * tests/unistr/test-u16-stpncpy.c: New file.
30618
30619         Tests for module 'unistr/u8-stpncpy'.
30620         * modules/unistr/u8-stpncpy-tests: New file.
30621         * tests/unistr/test-u8-stpncpy.c: New file.
30622         * tests/unistr/test-stpncpy.h: New file.
30623
30624         Tests for module 'unistr/u32-strncpy'.
30625         * modules/unistr/u32-strncpy-tests: New file.
30626         * tests/unistr/test-u32-strncpy.c: New file.
30627
30628         Tests for module 'unistr/u16-strncpy'.
30629         * modules/unistr/u16-strncpy-tests: New file.
30630         * tests/unistr/test-u16-strncpy.c: New file.
30631
30632         Tests for module 'unistr/u8-strncpy'.
30633         * modules/unistr/u8-strncpy-tests: New file.
30634         * tests/unistr/test-u8-strncpy.c: New file.
30635         * tests/unistr/test-strncpy.h: New file.
30636
30637         Tests for module 'unistr/u32-stpcpy'.
30638         * modules/unistr/u32-stpcpy-tests: New file.
30639         * tests/unistr/test-u32-stpcpy.c: New file.
30640
30641         Tests for module 'unistr/u16-stpcpy'.
30642         * modules/unistr/u16-stpcpy-tests: New file.
30643         * tests/unistr/test-u16-stpcpy.c: New file.
30644
30645         Tests for module 'unistr/u8-stpcpy'.
30646         * modules/unistr/u8-stpcpy-tests: New file.
30647         * tests/unistr/test-u8-stpcpy.c: New file.
30648         * tests/unistr/test-stpcpy.h: New file.
30649
30650         Tests for module 'unistr/u32-strcpy'.
30651         * modules/unistr/u32-strcpy-tests: New file.
30652         * tests/unistr/test-u32-strcpy.c: New file.
30653
30654         Tests for module 'unistr/u16-strcpy'.
30655         * modules/unistr/u16-strcpy-tests: New file.
30656         * tests/unistr/test-u16-strcpy.c: New file.
30657
30658         Tests for module 'unistr/u8-strcpy'.
30659         * modules/unistr/u8-strcpy-tests: New file.
30660         * tests/unistr/test-u8-strcpy.c: New file.
30661         * tests/unistr/test-strcpy.h: New file.
30662
30663         Tests for module 'unistr/u32-strnlen'.
30664         * modules/unistr/u32-strnlen-tests: New file.
30665         * tests/unistr/test-u32-strnlen.c: New file.
30666
30667         Tests for module 'unistr/u16-strnlen'.
30668         * modules/unistr/u16-strnlen-tests: New file.
30669         * tests/unistr/test-u16-strnlen.c: New file.
30670
30671         Tests for module 'unistr/u8-strnlen'.
30672         * modules/unistr/u8-strnlen-tests: New file.
30673         * tests/unistr/test-u8-strnlen.c: New file.
30674         * tests/unistr/test-strnlen.h: New file.
30675
30676         Tests for module 'unistr/u32-strlen'.
30677         * modules/unistr/u32-strlen-tests: New file.
30678         * tests/unistr/test-u32-strlen.c: New file.
30679
30680         Tests for module 'unistr/u16-strlen'.
30681         * modules/unistr/u16-strlen-tests: New file.
30682         * tests/unistr/test-u16-strlen.c: New file.
30683
30684         Tests for module 'unistr/u8-strlen'.
30685         * modules/unistr/u8-strlen-tests: New file.
30686         * tests/unistr/test-u8-strlen.c: New file.
30687
30688         Tests for module 'unistr/u32-prev'.
30689         * modules/unistr/u32-prev-tests: New file.
30690         * tests/unistr/test-u32-prev.c: New file.
30691
30692         Tests for module 'unistr/u16-prev'.
30693         * modules/unistr/u16-prev-tests: New file.
30694         * tests/unistr/test-u16-prev.c: New file.
30695
30696         Tests for module 'unistr/u8-prev'.
30697         * modules/unistr/u8-prev-tests: New file.
30698         * tests/unistr/test-u8-prev.c: New file.
30699
30700         Tests for module 'unistr/u32-next'.
30701         * modules/unistr/u32-next-tests: New file.
30702         * tests/unistr/test-u32-next.c: New file.
30703
30704         Tests for module 'unistr/u16-next'.
30705         * modules/unistr/u16-next-tests: New file.
30706         * tests/unistr/test-u16-next.c: New file.
30707
30708         Tests for module 'unistr/u8-next'.
30709         * modules/unistr/u8-next-tests: New file.
30710         * tests/unistr/test-u8-next.c: New file.
30711
30712         Tests for module 'unistr/u32-strmbtouc'.
30713         * modules/unistr/u32-strmbtouc-tests: New file.
30714         * tests/unistr/test-u32-strmbtouc.c: New file.
30715
30716         Tests for module 'unistr/u16-strmbtouc'.
30717         * modules/unistr/u16-strmbtouc-tests: New file.
30718         * tests/unistr/test-u16-strmbtouc.c: New file.
30719
30720         Tests for module 'unistr/u8-strmbtouc'.
30721         * modules/unistr/u8-strmbtouc-tests: New file.
30722         * tests/unistr/test-u8-strmbtouc.c: New file.
30723
30724         Tests for module 'unistr/u32-strmblen'.
30725         * modules/unistr/u32-strmblen-tests: New file.
30726         * tests/unistr/test-u32-strmblen.c: New file.
30727
30728         Tests for module 'unistr/u16-strmblen'.
30729         * modules/unistr/u16-strmblen-tests: New file.
30730         * tests/unistr/test-u16-strmblen.c: New file.
30731
30732         Tests for module 'unistr/u8-strmblen'.
30733         * modules/unistr/u8-strmblen-tests: New file.
30734         * tests/unistr/test-u8-strmblen.c: New file.
30735
30736         Tests for module 'unistr/u32-cpy-alloc'.
30737         * modules/unistr/u32-cpy-alloc-tests: New file.
30738         * tests/unistr/test-u32-cpy-alloc.c: New file.
30739
30740         Tests for module 'unistr/u16-cpy-alloc'.
30741         * modules/unistr/u16-cpy-alloc-tests: New file.
30742         * tests/unistr/test-u16-cpy-alloc.c: New file.
30743
30744         Tests for module 'unistr/u8-cpy-alloc'.
30745         * modules/unistr/u8-cpy-alloc-tests: New file.
30746         * tests/unistr/test-u8-cpy-alloc.c: New file.
30747         * tests/unistr/test-cpy-alloc.h: New file.
30748
30749         Tests for module 'unistr/u32-mbsnlen'.
30750         * modules/unistr/u32-mbsnlen-tests: New file.
30751         * tests/unistr/test-u32-mbsnlen.c: New file.
30752
30753         Tests for module 'unistr/u16-mbsnlen'.
30754         * modules/unistr/u16-mbsnlen-tests: New file.
30755         * tests/unistr/test-u16-mbsnlen.c: New file.
30756
30757         Tests for module 'unistr/u8-mbsnlen'.
30758         * modules/unistr/u8-mbsnlen-tests: New file.
30759         * tests/unistr/test-u8-mbsnlen.c: New file.
30760
30761         Tests for module 'unistr/u32-chr'.
30762         * modules/unistr/u32-chr-tests: New file.
30763         * tests/unistr/test-u32-chr.c: New file.
30764
30765         Tests for module 'unistr/u16-chr'.
30766         * modules/unistr/u16-chr-tests: New file.
30767         * tests/unistr/test-u16-chr.c: New file.
30768
30769         Tests for module 'unistr/u8-chr'.
30770         * modules/unistr/u8-chr-tests: New file.
30771         * tests/unistr/test-u8-chr.c: New file.
30772         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
30773
30774         Tests for module 'unistr/u32-cmp2'.
30775         * modules/unistr/u32-cmp2-tests: New file.
30776         * tests/unistr/test-u32-cmp2.c: New file.
30777
30778         Tests for module 'unistr/u16-cmp2'.
30779         * modules/unistr/u16-cmp2-tests: New file.
30780         * tests/unistr/test-u16-cmp2.c: New file.
30781
30782         Tests for module 'unistr/u8-cmp2'.
30783         * modules/unistr/u8-cmp2-tests: New file.
30784         * tests/unistr/test-u8-cmp2.c: New file.
30785         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30786
30787         Tests for module 'unistr/u32-cmp'.
30788         * modules/unistr/u32-cmp-tests: New file.
30789         * tests/unistr/test-u32-cmp.c: New file.
30790
30791         Tests for module 'unistr/u16-cmp'.
30792         * modules/unistr/u16-cmp-tests: New file.
30793         * tests/unistr/test-u16-cmp.c: New file.
30794
30795         Tests for module 'unistr/u8-cmp'.
30796         * modules/unistr/u8-cmp-tests: New file.
30797         * tests/unistr/test-u8-cmp.c: New file.
30798         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30799
30800         Tests for module 'unistr/u32-set'.
30801         * modules/unistr/u32-set-tests: New file.
30802         * tests/unistr/test-u32-set.c: New file.
30803
30804         Tests for module 'unistr/u16-set'.
30805         * modules/unistr/u16-set-tests: New file.
30806         * tests/unistr/test-u16-set.c: New file.
30807
30808         Tests for module 'unistr/u8-set'.
30809         * modules/unistr/u8-set-tests: New file.
30810         * tests/unistr/test-u8-set.c: New file.
30811         * tests/unistr/test-set.h: New file.
30812
30813         Tests for module 'unistr/u32-move'.
30814         * modules/unistr/u32-move-tests: New file.
30815         * tests/unistr/test-u32-move.c: New file.
30816
30817         Tests for module 'unistr/u16-move'.
30818         * modules/unistr/u16-move-tests: New file.
30819         * tests/unistr/test-u16-move.c: New file.
30820
30821         Tests for module 'unistr/u8-move'.
30822         * modules/unistr/u8-move-tests: New file.
30823         * tests/unistr/test-u8-move.c: New file.
30824         * tests/unistr/test-move.h: New file.
30825
30826         Tests for module 'unistr/u32-cpy'.
30827         * modules/unistr/u32-cpy-tests: New file.
30828         * tests/unistr/test-u32-cpy.c: New file.
30829
30830         Tests for module 'unistr/u16-cpy'.
30831         * modules/unistr/u16-cpy-tests: New file.
30832         * tests/unistr/test-u16-cpy.c: New file.
30833
30834         Tests for module 'unistr/u8-cpy'.
30835         * modules/unistr/u8-cpy-tests: New file.
30836         * tests/unistr/test-u8-cpy.c: New file.
30837         * tests/unistr/test-cpy.h: New file.
30838
30839 2010-01-09  Bruno Haible  <bruno@clisp.org>
30840
30841         Tests for module 'unistr/u32-uctomb'.
30842         * modules/unistr/u32-uctomb-tests: New file.
30843         * tests/unistr/test-u32-uctomb.c: New file.
30844
30845         Tests for module 'unistr/u16-uctomb'.
30846         * modules/unistr/u16-uctomb-tests: New file.
30847         * tests/unistr/test-u16-uctomb.c: New file.
30848
30849         Tests for module 'unistr/u8-uctomb'.
30850         * modules/unistr/u8-uctomb-tests: New file.
30851         * tests/unistr/test-u8-uctomb.c: New file.
30852
30853         Tests for module 'unistr/u32-mbtoucr'.
30854         * modules/unistr/u32-mbtoucr-tests: New file.
30855         * tests/unistr/test-u32-mbtoucr.c: New file.
30856
30857         Tests for module 'unistr/u16-mbtoucr'.
30858         * modules/unistr/u16-mbtoucr-tests: New file.
30859         * tests/unistr/test-u16-mbtoucr.c: New file.
30860
30861         Tests for module 'unistr/u8-mbtoucr'.
30862         * modules/unistr/u8-mbtoucr-tests: New file.
30863         * tests/unistr/test-u8-mbtoucr.c: New file.
30864
30865         Tests for module 'unistr/u32-mbtouc'.
30866         * modules/unistr/u32-mbtouc-tests: New file.
30867         * tests/unistr/test-u32-mbtouc.c: New file.
30868
30869         Tests for module 'unistr/u16-mbtouc'.
30870         * modules/unistr/u16-mbtouc-tests: New file.
30871         * tests/unistr/test-u16-mbtouc.c: New file.
30872
30873         Tests for module 'unistr/u8-mbtouc'.
30874         * modules/unistr/u8-mbtouc-tests: New file.
30875         * tests/unistr/test-u8-mbtouc.c: New file.
30876
30877         Tests for module 'unistr/u32-mbtouc-unsafe'.
30878         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30879         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30880         * tests/unistr/test-u32-mbtouc.h: New file.
30881
30882         Tests for module 'unistr/u16-mbtouc-unsafe'.
30883         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30884         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30885         * tests/unistr/test-u16-mbtouc.h: New file.
30886
30887         Tests for module 'unistr/u8-mbtouc-unsafe'.
30888         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30889         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30890         * tests/unistr/test-u8-mbtouc.h: New file.
30891
30892         Tests for module 'unistr/u32-mblen'.
30893         * modules/unistr/u32-mblen-tests: New file.
30894         * tests/unistr/test-u32-mblen.c: New file.
30895
30896         Tests for module 'unistr/u16-mblen'.
30897         * modules/unistr/u16-mblen-tests: New file.
30898         * tests/unistr/test-u16-mblen.c: New file.
30899
30900         Tests for module 'unistr/u8-mblen'.
30901         * modules/unistr/u8-mblen-tests: New file.
30902         * tests/unistr/test-u8-mblen.c: New file.
30903
30904         Tests for module 'unistr/u32-to-u16'.
30905         * modules/unistr/u32-to-u16-tests: New file.
30906         * tests/unistr/test-u32-to-u16.c: New file.
30907
30908         Tests for module 'unistr/u32-to-u8'.
30909         * modules/unistr/u32-to-u8-tests: New file.
30910         * tests/unistr/test-u32-to-u8.c: New file.
30911
30912         Tests for module 'unistr/u16-to-u32'.
30913         * modules/unistr/u16-to-u32-tests: New file.
30914         * tests/unistr/test-u16-to-u32.c: New file.
30915
30916         Tests for module 'unistr/u16-to-u8'.
30917         * modules/unistr/u16-to-u8-tests: New file.
30918         * tests/unistr/test-u16-to-u8.c: New file.
30919
30920         Tests for module 'unistr/u8-to-u32'.
30921         * modules/unistr/u8-to-u32-tests: New file.
30922         * tests/unistr/test-u8-to-u32.c: New file.
30923
30924         Tests for module 'unistr/u8-to-u16'.
30925         * modules/unistr/u8-to-u16-tests: New file.
30926         * tests/unistr/test-u8-to-u16.c: New file.
30927
30928         Tests for module 'unistr/u32-check'.
30929         * modules/unistr/u32-check-tests: New file.
30930         * tests/unistr/test-u32-check.c: New file.
30931
30932         Tests for module 'unistr/u16-check'.
30933         * modules/unistr/u16-check-tests: New file.
30934         * tests/unistr/test-u16-check.c: New file.
30935
30936         Tests for module 'unistr/u8-check'.
30937         * modules/unistr/u8-check-tests: New file.
30938         * tests/unistr/test-u8-check.c: New file.
30939
30940         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30941         (category_equals): New function.
30942         (main): Add more tests.
30943         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30944
30945         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30946
30947 2010-01-10  Bruno Haible  <bruno@clisp.org>
30948
30949         unistr/u*-strcoll: Try harder to distinguish different strings.
30950         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30951         compare s1 and s2 to see if they are different.
30952
30953 2010-01-10  Bruno Haible  <bruno@clisp.org>
30954
30955         unistr/u*-stpncpy: Fix the return value.
30956         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30957         description of the return value consistent with stpncpy in glibc.
30958         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30959         written non-NUL unit.
30960
30961 2010-01-10  Bruno Haible  <bruno@clisp.org>
30962
30963         unistr/u*-next: Add missing dependencies.
30964         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30965         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30966         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30967
30968 2010-01-10  Bruno Haible  <bruno@clisp.org>
30969
30970         unistr/u8-mbsnlen: Fix return value for incomplete character.
30971         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30972         u8_mblen.
30973         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30974         Remove unistr/u8-mblen.
30975         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30976         u16_mblen.
30977         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30978         Remove unistr/u16-mblen.
30979
30980 2010-01-10  Bruno Haible  <bruno@clisp.org>
30981
30982         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30983         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30984         Reported by Brian Gough <bjg@gnu.org> and
30985         Chris Clayton <chris2553@googlemail.com> via
30986         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30987
30988 2010-01-09  Bruno Haible  <bruno@clisp.org>
30989
30990         unistr/u16-to-u32: Reject invalid input.
30991         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30992         u16_mbtouc.
30993         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30994         Remove unistr/u16-mbtouc.
30995
30996         unistr/u16-to-u8: Reject invalid input.
30997         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30998         u16_mbtouc.
30999         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31000         Remove unistr/u16-mbtouc.
31001
31002         unistr/u8-to-u32: Reject invalid input.
31003         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31004         u8_mbtouc.
31005         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31006         Remove unistr/u8-mbtouc.
31007
31008         unistr/u8-to-u16: Reject invalid input.
31009         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31010         u8_mbtouc.
31011         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31012         Remove unistr/u8-mbtouc.
31013
31014 2010-01-09  Bruno Haible  <bruno@clisp.org>
31015
31016         Tests for module 'getlogin'.
31017         * modules/getlogin-tests: New file.
31018         * tests/test-getlogin.c: New file.
31019
31020         New module 'getlogin'.
31021         * lib/unistd.in.h (getlogin): New declaration.
31022         * lib/getlogin.c: New file.
31023         * m4/getlogin.m4: New file.
31024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31025         HAVE_GETLOGIN.
31026         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31027         HAVE_GETLOGIN.
31028         * modules/getlogin: New file.
31029         * doc/posix-functions/getlogin.texi: Mention the new module.
31030         Reported by John W. Eaton <jwe@gnu.org>.
31031
31032 2010-01-09  Bruno Haible  <bruno@clisp.org>
31033
31034         getlogin_r: Support for native Windows.
31035         * lib/getlogin_r.c: Include <windows.h>
31036         (getlogin_r): Implement for native Windows.
31037         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31038         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31039         via John W. Eaton <jwe@gnu.org>.
31040
31041 2010-01-09  Bruno Haible  <bruno@clisp.org>
31042
31043         getlogin_r: Small fixes.
31044         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31045         succeeds.
31046         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31047         before testing whether getlogin_r is declared. No need to set
31048         HAVE_DECL_GETLOGIN_R to 1.
31049         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31050
31051 2010-01-09  Bruno Haible  <bruno@clisp.org>
31052
31053         * lib/unistd.in.h (getlogin_r): Add comment.
31054
31055 2010-01-09  Bruno Haible  <bruno@clisp.org>
31056
31057         Tests for module 'getlogin_r'.
31058         * modules/getlogin_r-tests: New file.
31059         * tests/test-getlogin_r.c: New file.
31060
31061 2010-01-09  Jim Meyering  <meyering@redhat.com>
31062
31063         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31064         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31065         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31066
31067 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31068
31069         * lib/dup2.c (rpl_dup2): Improve comment.
31070
31071 2010-01-08  Eric Blake  <ebb9@byu.net>
31072
31073         maint.mk: allow packages to add makefile @@ exceptions
31074         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31075         (sc_makefile_check): Rename...
31076         (sc_makefile_at_at_check): ...to this, and use hook.
31077
31078         dup2: work around mingw bug
31079         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31080         Reported by Simon Josefsson.
31081
31082 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31083
31084         glob: Fix C++ compilation.
31085         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31086         C++.
31087
31088 2010-01-07  Bruno Haible  <bruno@clisp.org>
31089
31090         Fix indentation of wctype.in.h, broken since 2007-01-06.
31091         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31092
31093 2010-01-07  Bruno Haible  <bruno@clisp.org>
31094
31095         mbslen: Avoid collision with system function.
31096         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31097         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31098         * m4/mbslen.m4: New file.
31099         * modules/mbslen (Files): Add it.
31100         (configure.ac): Invoke gl_MBSLEN.
31101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31102         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31103         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31104         via Ian Beckwith <ianb@erislabs.net>.
31105
31106 2010-01-07  Bruno Haible  <bruno@clisp.org>
31107
31108         dirent: Document the last fix.
31109         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31110
31111 2010-01-07  Bruno Haible  <bruno@clisp.org>
31112
31113         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31114         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31115         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31116         va_list are defined.
31117         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31118         Reported by Eric Blake.
31119
31120 2010-01-07  Bruno Haible  <bruno@clisp.org>
31121
31122         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31123         * modules/xlist (Depends-on): Add 'list',
31124         * modules/xoset (Depends-on): Add 'oset'.
31125         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31126
31127 2010-01-07  Bruno Haible  <bruno@clisp.org>
31128
31129         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31130         * doc/posix-functions/strncasecmp.texi: Likewise.
31131
31132 2010-01-07  Bruno Haible  <bruno@clisp.org>
31133
31134         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31135
31136 2010-01-07  John W. Eaton  <jwe@octave.org>
31137
31138         wctype: allow C++ use
31139         * lib/wctype.in.h: Add extern "C" block for C++.
31140
31141 2010-01-06  Eric Blake  <ebb9@byu.net>
31142
31143         maint.mk: detect incorrect GFDL usage
31144         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31145
31146 2010-01-06  Jim Meyering  <meyering@redhat.com>
31147         and Eric Blake  <ebb9@byu.net>
31148
31149         maint.mk: ignore multi-line copyright in NEWS
31150         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31151
31152 2010-01-06  Eric Blake  <ebb9@byu.net>
31153
31154         select: add missing dependency
31155         * modules/select-tests (Depends-on): Move sockets dependency...
31156         * modules/select (Depends-on): ...here.
31157         Reported by Ian Beckwith.
31158
31159         doc: regenerate INSTALL
31160         * doc/INSTALL: Reflect recent autoconf update.
31161         * doc/INSTALL.ISO: Likewise.
31162         * doc/INSTALL.UTF-8: Likewise.
31163
31164         pread: fix compilation on glibc
31165         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31166         Reported by Ralf Wildenhues.
31167
31168         dirent: fix test failure
31169         * lib/dirent.in.h (includes): Guarantee ino_t.
31170         Reported by Ralf Wildenhues.
31171
31172 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31173
31174         linkat, renameat: avoid bad free
31175         * lib/at-func2.c (at_func2): Fix typo.
31176         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31177
31178 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31179
31180         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31181         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31182         to avoid failure of symlink test later.
31183
31184 2010-01-06  Eric Blake  <ebb9@byu.net>
31185
31186         stdio, unistd: guarantee ssize_t
31187         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31188         2008 are exposed when needed.
31189         * lib/stdio.in.h (includes): Likewise.
31190         Reported by Ralf Wildenhues.
31191
31192 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31193
31194         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31195         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31196         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31197
31198 2010-01-06  Jim Meyering  <meyering@redhat.com>
31199
31200         readtokens: this module *does* require xalloc.h
31201         It uses only functions that were omitted by the old syntax-check rule.
31202         * lib/readtokens.c: Include "xalloc.h" once again.
31203         * modules/readtokens (Depends-on): Add xalloc.
31204         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31205
31206 2010-01-05  Eric Blake  <ebb9@byu.net>
31207
31208         maint: support 'make announcement' from a VPATH build
31209         * top/maint.mk (announcement): Look for correct NEWS file.
31210
31211 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31212
31213         utimens (fdutimens): ignore a negative FD, per contract
31214         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31215         when we have a valid file descriptor.  Otherwise, using a brand
31216         new glibc (with just-patched futimens that now fails with EBADF)
31217         would cause this function to fail with ENOSYS.
31218         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31219         See also http://bugzilla.redhat.com/552320.
31220
31221 2010-01-05  Eric Blake  <ebb9@byu.net>
31222
31223         strcase: document what it provides
31224         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31225         gnulib module.
31226         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31227         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31228
31229 2010-01-05  Jim Meyering  <meyering@redhat.com>
31230
31231         maint: remove useless inclusions of "xalloc.h"
31232         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31233         * lib/readtokens.c: Likewise.
31234         * lib/same.c: Likewise.
31235         * modules/getloadavg (Depends-on): Remove xalloc.
31236         * modules/readtokens: Likewise.
31237         * modules/same: Likewise.
31238
31239         maint.mk: include 4 more function names in alloca.h-checking regexp
31240         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31241         regexp.  Before, we would give a false-positive (saying alloca.h
31242         is included unnecessarily) when the only uses involved omitted symbols.
31243
31244         xalloc.h: use consistent formatting
31245         * lib/xalloc.h: Move declarations to start in the first column.
31246
31247 2010-01-05  Eric Blake  <ebb9@byu.net>
31248
31249         mkdir: avoid xalloc
31250         * lib/mkdir.c (includes): Drop unused header.
31251         Reported by John W. Eaton.
31252
31253 2010-01-04  Jim Meyering  <meyering@redhat.com>
31254
31255         nl_langinfo: avoid configure-time syntax error
31256         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31257         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31258         the empty string.  Don't let that provoke a shell syntax error.
31259
31260         regcomp, regexec, fnmatch: avoid array bounds read error
31261         * lib/regcomp.c (build_equiv_class): From glibc:
31262         Use only the low 24 bits of a findidx return value as an index
31263         into the weights array.  Patch by Ulrich Drepper:
31264         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31265         * lib/regexec.c (check_node_accept_bytes): Likewise.
31266         * lib/fnmatch_loop.c (FCT): Likewise.
31267
31268         regcomp: skip collseq lookup when there are no rules
31269         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31270         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31271
31272         regcomp: recognize ill-formed { } expressions
31273         * lib/regcomp.c (parse_dup_op): From glibc:
31274         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31275
31276         regcomp: fix typo in comment
31277         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31278         s/satisfy/satisfies/.
31279
31280         regcomp: sync from glibc: remove dead store
31281         * lib/regcomp.c (duplicate_node_closure): Remove useless
31282         search_duplicated_node call and dead store.
31283
31284         regcomp: sync from glibc; always use nl_langinfo
31285         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31286         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31287         * modules/regex (Depends-on): Add nl_langinfo.
31288
31289 2010-01-04  Eric Blake  <ebb9@byu.net>
31290
31291         fdopendir: fix configure test
31292         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31293
31294 2010-01-01  Bruno Haible  <bruno@clisp.org>
31295
31296         wchar: Remove unused configure check.
31297         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31298
31299 2010-01-01  Eric Blake  <ebb9@byu.net>
31300
31301         headers: make check of system header explicit
31302         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31303         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31304         ourselves.
31305         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31306         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31307         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31308         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31309         internals.
31310         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31311         missing.
31312         Suggested by Bruno Haible.
31313
31314 2010-01-01  Jim Meyering  <meyering@redhat.com>
31315
31316         ChangeLog: tweak to eliminate unnecessary copyright line
31317         * ChangeLog: Remove a copyright line that was mistakenly updated
31318         by today's update-copyright run.  Reported by Eric Blake.
31319
31320         test-update-copyright: don't let envvar setting cause test failure
31321         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31322
31323 2010-01-01  Bruno Haible  <bruno@clisp.org>
31324
31325         localename: Avoid gcc warning.
31326         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31327         function if it is not used.
31328
31329 2010-01-01  Jim Meyering  <meyering@redhat.com>
31330
31331         update nearly all FSF copyright year lists to include 2010
31332         Use the same procedure as for 2009, outlined in
31333         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31334
31335         version-etc: set COPYRIGHT_YEAR to 2010
31336         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31337
31338 2009-12-31  Eric Blake  <ebb9@byu.net>
31339
31340         doc: correct availability of cygwin 1.5.x getopt
31341         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31342         variables.
31343         * doc/posix-functions/opterr.texi (opterr): Likewise.
31344         * doc/posix-functions/optind.texi (optind): Likewise.
31345         * doc/posix-functions/optopt.texi (optopt): Likewise.
31346         * doc/posix-functions/tzname.texi (tzname): Likewise.
31347
31348         openat: update maintainer
31349         * modules/openat (Maintainer): Add myself.
31350
31351         utimens: avoid shadowing warning
31352         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31353         buffers into one, to avoid shadowing, as well as avoiding a
31354         redundant stat.
31355         Reported by Jim Meyering.
31356
31357         test-dup2: avoid compiler warning
31358         * tests/test-dup2.c (is_inheritable): Only define if used.
31359
31360 2010-01-01  Bruno Haible  <bruno@clisp.org>
31361
31362         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31363         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31364         defined, use wctomb instead of wcrtomb.
31365
31366 2010-01-01  Bruno Haible  <bruno@clisp.org>
31367
31368         iconv: Reject native Solaris iconv.
31369         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31370         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31371
31372 2009-12-31  Bruno Haible  <bruno@clisp.org>
31373
31374         * tests/test-signal.c (main): Remove test of 'SIG'.
31375
31376 2009-12-31  Bruno Haible  <bruno@clisp.org>
31377
31378         spawn: Fix incomplete fix.
31379         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31380         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31381         warnings for GNULIB_POSIXCHECK again.
31382         Reported by Eric Blake.
31383
31384 2009-12-31  Bruno Haible  <bruno@clisp.org>
31385
31386         Avoid namespace pollution on glibc systems.
31387         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31388         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31389         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31390         glibc systems.
31391
31392 2009-12-31  Bruno Haible  <bruno@clisp.org>
31393
31394         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31395         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31396         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31397         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31398         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31399         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31400         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31401
31402 2009-12-31  Bruno Haible  <bruno@clisp.org>
31403
31404         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31405         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31406         afterwards.
31407
31408 2009-12-31  Bruno Haible  <bruno@clisp.org>
31409
31410         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31411         SYS_UTSNAME_H.
31412
31413 2009-12-31  Bruno Haible  <bruno@clisp.org>
31414
31415         spawn: Fix misapplied patch.
31416         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31417         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31418         warnings for GNULIB_POSIXCHECK.
31419
31420 2009-12-31  Bruno Haible  <bruno@clisp.org>
31421
31422         times: Update after sys_times changed.
31423         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31424         * modules/times (Files): Add it.
31425         (configure.ac): Invoke gl_FUNC_TIMES.
31426
31427 2009-12-31  Bruno Haible  <bruno@clisp.org>
31428
31429         Use AC_C_INLINE where necessary.
31430         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31431         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31432         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31433         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31434         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31435         * m4/mbiter.m4 (gl_MBITER): Likewise.
31436         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31437         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31438         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31439         * modules/u64 (configure.ac): Likewise.
31440
31441 2009-12-31  Bruno Haible  <bruno@clisp.org>
31442
31443         Use AC_C_INLINE instead of module 'inline' where possible.
31444         * modules/inline (Description): Clarify purpose.
31445         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31446         * modules/count-one-bits (Depends-on): Remove inline.
31447         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31448         * modules/openat (Depends-on): Remove inline.
31449         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31450         instead of depending on module 'inline'.
31451         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31452         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31453         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31454         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31455         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31456         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31457         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31458         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31459         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31460         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31461         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31462         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31463         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31464         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31465         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31466         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31467         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31468         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31469         Likewise.
31470         * modules/unictype/property-ascii-hex-digit (Depends-on,
31471         configure.ac): Likewise.
31472         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31473         configure.ac): Likewise.
31474         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31475         configure.ac): Likewise.
31476         * modules/unictype/property-bidi-block-separator (Depends-on,
31477         configure.ac): Likewise.
31478         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31479         configure.ac): Likewise.
31480         * modules/unictype/property-bidi-common-separator (Depends-on,
31481         configure.ac): Likewise.
31482         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31483         Likewise.
31484         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31485         configure.ac): Likewise.
31486         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31487         configure.ac): Likewise.
31488         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31489         configure.ac): Likewise.
31490         * modules/unictype/property-bidi-european-digit (Depends-on,
31491         configure.ac): Likewise.
31492         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31493         configure.ac): Likewise.
31494         * modules/unictype/property-bidi-left-to-right (Depends-on,
31495         configure.ac): Likewise.
31496         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31497         configure.ac): Likewise.
31498         * modules/unictype/property-bidi-other-neutral (Depends-on,
31499         configure.ac): Likewise.
31500         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31501         Likewise.
31502         * modules/unictype/property-bidi-segment-separator (Depends-on,
31503         configure.ac): Likewise.
31504         * modules/unictype/property-bidi-whitespace (Depends-on,
31505         configure.ac): Likewise.
31506         * modules/unictype/property-combining (Depends-on, configure.ac):
31507         Likewise.
31508         * modules/unictype/property-composite (Depends-on, configure.ac):
31509         Likewise.
31510         * modules/unictype/property-currency-symbol (Depends-on,
31511         configure.ac): Likewise.
31512         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31513         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31514         Likewise.
31515         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31516         configure.ac): Likewise.
31517         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31518         Likewise.
31519         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31520         Likewise.
31521         * modules/unictype/property-extender (Depends-on, configure.ac):
31522         Likewise.
31523         * modules/unictype/property-format-control (Depends-on, configure.ac):
31524         Likewise.
31525         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31526         Likewise.
31527         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31528         Likewise.
31529         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31530         Likewise.
31531         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31532         Likewise.
31533         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31534         Likewise.
31535         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31536         Likewise.
31537         * modules/unictype/property-id-start (Depends-on, configure.ac):
31538         Likewise.
31539         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31540         Likewise.
31541         * modules/unictype/property-ids-binary-operator (Depends-on,
31542         configure.ac): Likewise.
31543         * modules/unictype/property-ids-trinary-operator (Depends-on,
31544         configure.ac): Likewise.
31545         * modules/unictype/property-ignorable-control (Depends-on,
31546         configure.ac): Likewise.
31547         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31548         Likewise.
31549         * modules/unictype/property-join-control (Depends-on, configure.ac):
31550         Likewise.
31551         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31552         Likewise.
31553         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31554         Likewise.
31555         * modules/unictype/property-logical-order-exception (Depends-on,
31556         configure.ac): Likewise.
31557         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31558         Likewise.
31559         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31560         * modules/unictype/property-non-break (Depends-on, configure.ac):
31561         Likewise.
31562         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31563         Likewise.
31564         * modules/unictype/property-numeric (Depends-on, configure.ac):
31565         Likewise.
31566         * modules/unictype/property-other-alphabetic (Depends-on,
31567         configure.ac): Likewise.
31568         * modules/unictype/property-other-default-ignorable-code-point
31569         (Depends-on, configure.ac): Likewise.
31570         * modules/unictype/property-other-grapheme-extend (Depends-on,
31571         configure.ac): Likewise.
31572         * modules/unictype/property-other-id-continue (Depends-on,
31573         configure.ac): Likewise.
31574         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31575         Likewise.
31576         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31577         Likewise.
31578         * modules/unictype/property-other-math (Depends-on, configure.ac):
31579         Likewise.
31580         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31581         Likewise.
31582         * modules/unictype/property-paired-punctuation (Depends-on,
31583         configure.ac): Likewise.
31584         * modules/unictype/property-paragraph-separator (Depends-on,
31585         configure.ac): Likewise.
31586         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31587         Likewise.
31588         * modules/unictype/property-pattern-white-space (Depends-on,
31589         configure.ac): Likewise.
31590         * modules/unictype/property-private-use (Depends-on, configure.ac):
31591         Likewise.
31592         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31593         Likewise.
31594         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31595         Likewise.
31596         * modules/unictype/property-radical (Depends-on, configure.ac):
31597         Likewise.
31598         * modules/unictype/property-sentence-terminal (Depends-on,
31599         configure.ac): Likewise.
31600         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31601         Likewise.
31602         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31603         * modules/unictype/property-terminal-punctuation (Depends-on,
31604         configure.ac): Likewise.
31605         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31606         Likewise.
31607         * modules/unictype/property-unassigned-code-value (Depends-on,
31608         configure.ac): Likewise.
31609         * modules/unictype/property-unified-ideograph (Depends-on,
31610         configure.ac): Likewise.
31611         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31612         Likewise.
31613         * modules/unictype/property-variation-selector (Depends-on,
31614         configure.ac): Likewise.
31615         * modules/unictype/property-white-space (Depends-on, configure.ac):
31616         Likewise.
31617         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31618         Likewise.
31619         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31620         Likewise.
31621         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31622         Likewise.
31623         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31624         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31625         Likewise.
31626
31627 2009-12-31  Bruno Haible  <bruno@clisp.org>
31628
31629         Remove unnecessary AC_C_INLINE invocation.
31630         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31631         since 2009-08-21.
31632
31633 2009-12-31  Jim Meyering  <meyering@redhat.com>
31634
31635         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31636         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31637         With this change, we can all remove the gpg_key_ID = ... definition
31638         from our respective cfg.mk files.
31639
31640         maint.mk: create announcement template in ~/, not in /tmp
31641         * top/maint.mk (emit_upload_commands): Adjust.
31642         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31643         Remove temporary file, .ci-msg.
31644
31645 2009-12-31  Eric Blake  <ebb9@byu.net>
31646
31647         link-warning: always build headers with link warnings
31648         * modules/arpa_inet (Makefile.am): Always build replacement
31649         header.
31650         * modules/ctype (Makefile.am): Likewise.
31651         * modules/dirent (Makefile.am): Likewise.
31652         * modules/inttypes (Makefile.am): Likewise.
31653         * modules/langinfo (Makefile.am): Likewise.
31654         * modules/locale (Makefile.am): Likewise.
31655         * modules/spawn (Makefile.am): Likewise.
31656         * modules/sys_file (Makefile.am): Likewise.
31657         * modules/sys_ioctl (Makefile.am): Likewise.
31658         * modules/sys_select (Makefile.am): Likewise.
31659         * modules/sys_socket (Makefile.am): Likewise.
31660         * modules/sys_times (Makefile.am): Likewise.
31661         * modules/sys_utsname (Makefile.am): Likewise.
31662         * modules/sys_wait (Makefile.am): Likewise.
31663         * modules/wchar (Makefile.am): Likewise.
31664         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31665         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31666         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31667         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31668         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31669         Likewise.
31670         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31671         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31672         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31673         Likewise.
31674         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31675         Likewise.
31676         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31677         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31678         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31679         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31680         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31681         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31682         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31683         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31684         (gl_WCHAR_H_DEFAULTS): Likewise.
31685
31686 2009-12-31  Eric Blake  <ebb9@byu.net>
31687
31688         signal, spawn: use link warnings
31689         * lib/signal.in.h (sigset_t): Make unconditional.
31690         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31691         (sigpending, sigprocmask, sigaction): Add link warnings.
31692         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31693         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31694         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31695         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31696         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31697         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
31698         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
31699         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
31700         (posix_spawn_file_actions_destroy)
31701         (posix_spawn_file_actions_addopen)
31702         (posix_spawn_file_actions_addclose)
31703         (posix_spawn_file_actions_adddup2): Likewise.
31704         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
31705         * tests/test-signal.c (main): Enhance test.
31706
31707         spawn: improve wrapper support
31708         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
31709         (gl_SPAWN_H_DEFAULTS): New defaults.
31710         * modules/spawn (Makefile.am): Substitute them.
31711         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
31712         Only declare if missing or broken.
31713
31714         sys_times, sys_utsname: use include_next
31715         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
31716         header.
31717         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
31718         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31719         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31720         * modules/sys_times (Depends-on): Add include_next.
31721         (Makefile.am): Substitute additional values.
31722         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31723         * lib/sys_times.in.h (includes): Include native header, if
31724         available.
31725         * lib/sys_utsname.in.h (includes): Likewise.
31726         * tests/test-sys_times.c (main): Enhance test.
31727
31728         fdutimensat: revert prior patch
31729         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
31730         utimens.h.
31731         Reported by Bruno Haible.
31732
31733 2009-12-30  Eric Blake  <ebb9@byu.net>
31734
31735         sys_wait: drop link-warning dependency
31736         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
31737         link-warning efforts.
31738         * lib/sys_wait.in.h: Likewise.
31739
31740         fdutimensat: remove bogus dependency
31741         * modules/fdutimensat (Depends-on): Drop inline.
31742
31743         unistd: fix typo
31744         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
31745
31746 2009-12-30  Bruno Haible  <bruno@clisp.org>
31747
31748         Fix compilation error with Solaris cc.
31749         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
31750         * lib/unicase/u16-is-invariant.c: Likewise.
31751         * lib/unicase/u32-is-invariant.c: Likewise.
31752         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31753
31754 2009-12-30  Bruno Haible  <bruno@clisp.org>
31755
31756         Fix test crash.
31757         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31758         locales.
31759         Reported by Simon Josefsson <simon@josefsson.org>.
31760
31761 2009-12-30  Bruno Haible  <bruno@clisp.org>
31762
31763         Fix compilation error on most platforms.
31764         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31765         Reported by Simon Josefsson <simon@josefsson.org>
31766         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31767
31768 2009-12-30  Eric Blake  <ebb9@byu.net>
31769
31770         futimens, utimensat: work around ntfs-3g bug
31771         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
31772         a ctime bug is present, and expand workaround to cover ntfs-3g.
31773         * lib/utimens.c (fdutimens, lutimens): Likewise.
31774         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
31775         (validate_timespec): Adjust return value.
31776         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
31777         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31778         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31779
31780 2009-12-29  Eric Blake  <ebb9@byu.net>
31781
31782         link-warning: make usage consistent
31783         * modules/ctype (Depends-on): Add link-warning.
31784         (Makefile.am): Update rules accordingly.
31785         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31786         * modules/locale (Depends-on, Makefile.am): Likewise.
31787         * modules/sys_file (Makefile.am): Likewise.
31788         * modules/getopt-posix (Makefile.am): Delete unused link warning
31789         efforts.
31790         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31791         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31792         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31793         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31794
31795         stdio: remove unused variables
31796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31797         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31798         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31799
31800         tests: test more substitute headers
31801         * modules/ctype-tests: New file.
31802         * modules/dirent-tests: Likewise.
31803         * modules/spawn-tests: Likewise.
31804         * modules/sys_file-tests: Likewise.
31805         * modules/sys_ioctl-tests: Likewise.
31806         * modules/sys_wait-tests: Likewise.
31807         * tests/test-ctype.c: Likewise.
31808         * tests/test-dirent.c: Likewise.
31809         * tests/test-spawn.c: Likewise.
31810         * tests/test-sys_file.c: Likewise.
31811         * tests/test-sys_ioctl.c: Likewise.
31812         * tests/test-sys_wait.c: Likewise.
31813         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31814         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31815         whether or not flock is in use.
31816
31817         tests: remove License section from module
31818         * modules/arpa_inet-tests: Remove unneeded section.
31819         * modules/byteswap-tests: Likewise.
31820         * modules/ceilf-tests: Likewise.
31821         * modules/ceill-tests: Likewise.
31822         * modules/crypto/des-tests: Likewise.
31823         * modules/crypto/gc-arcfour-tests: Likewise.
31824         * modules/crypto/gc-arctwo-tests: Likewise.
31825         * modules/crypto/gc-des-tests: Likewise.
31826         * modules/crypto/gc-hmac-md5-tests: Likewise.
31827         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31828         * modules/crypto/gc-md2-tests: Likewise.
31829         * modules/crypto/gc-md4-tests: Likewise.
31830         * modules/crypto/gc-md5-tests: Likewise.
31831         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31832         * modules/crypto/gc-rijndael-tests: Likewise.
31833         * modules/crypto/gc-sha1-tests: Likewise.
31834         * modules/crypto/gc-tests: Likewise.
31835         * modules/crypto/md2-tests: Likewise.
31836         * modules/crypto/md4-tests: Likewise.
31837         * modules/fcntl-h-tests: Likewise.
31838         * modules/floorf-tests: Likewise.
31839         * modules/floorl-tests: Likewise.
31840         * modules/frexp-nolibm-tests: Likewise.
31841         * modules/frexp-tests: Likewise.
31842         * modules/frexpl-nolibm-tests: Likewise.
31843         * modules/frexpl-tests: Likewise.
31844         * modules/getaddrinfo-tests: Likewise.
31845         * modules/inttypes-tests: Likewise.
31846         * modules/isfinite-tests: Likewise.
31847         * modules/isinf-tests: Likewise.
31848         * modules/ldexpl-tests: Likewise.
31849         * modules/locale-tests: Likewise.
31850         * modules/math-tests: Likewise.
31851         * modules/netdb-tests: Likewise.
31852         * modules/netinet_in-tests: Likewise.
31853         * modules/printf-frexp-tests: Likewise.
31854         * modules/printf-frexpl-tests: Likewise.
31855         * modules/priv-set-tests: Likewise.
31856         * modules/random_r-tests: Likewise.
31857         * modules/round-tests: Likewise.
31858         * modules/roundf-tests: Likewise.
31859         * modules/roundl-tests: Likewise.
31860         * modules/search-tests: Likewise.
31861         * modules/select-tests: Likewise.
31862         * modules/signal-tests: Likewise.
31863         * modules/stdbool-tests: Likewise.
31864         * modules/stddef-tests: Likewise.
31865         * modules/stdint-tests: Likewise.
31866         * modules/stdio-tests: Likewise.
31867         * modules/stdlib-tests: Likewise.
31868         * modules/string-tests: Likewise.
31869         * modules/strings-tests: Likewise.
31870         * modules/sys_select-tests: Likewise.
31871         * modules/sys_socket-tests: Likewise.
31872         * modules/sys_stat-tests: Likewise.
31873         * modules/sys_time-tests: Likewise.
31874         * modules/sys_utsname-tests: Likewise.
31875         * modules/sysexits-tests: Likewise.
31876         * modules/time-tests: Likewise.
31877         * modules/trunc-tests: Likewise.
31878         * modules/truncf-tests: Likewise.
31879         * modules/truncl-tests: Likewise.
31880         * modules/tsearch-tests: Likewise.
31881         * modules/unistd-tests: Likewise.
31882         * modules/wchar-tests: Likewise.
31883         * modules/wctype-tests: Likewise.
31884
31885         tests: fix license on several tests
31886         * tests/test-des.c: Update to GPLv3+.
31887         * tests/test-flock.c: Likewise.
31888         * tests/test-fsync.c: Likewise.
31889         * tests/test-futimens.h: Likewise.
31890         * tests/test-gc-arcfour.c: Likewise.
31891         * tests/test-gc-arctwo.c: Likewise.
31892         * tests/test-gc-des.c: Likewise.
31893         * tests/test-gc-hmac-md5.c: Likewise.
31894         * tests/test-gc-hmac-sha1.c: Likewise.
31895         * tests/test-gc-md2.c: Likewise.
31896         * tests/test-gc-md4.c: Likewise.
31897         * tests/test-gc-md5.c: Likewise.
31898         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31899         * tests/test-gc-rijndael.c: Likewise.
31900         * tests/test-gc-sha1.c: Likewise.
31901         * tests/test-gc.c: Likewise.
31902         * tests/test-getcwd.c: Likewise.
31903         * tests/test-link.c: Likewise.
31904         * tests/test-link.h: Likewise.
31905         * tests/test-lutimens.h: Likewise.
31906         * tests/test-md2.c: Likewise.
31907         * tests/test-md4.c: Likewise.
31908         * tests/test-mkdir.h: Likewise.
31909         * tests/test-rename.c: Likewise.
31910         * tests/test-rename.h: Likewise.
31911         * tests/test-safe-alloc.c: Likewise.
31912         * tests/test-utimens-common.h: Likewise.
31913         * tests/test-utimens.h: Likewise.
31914
31915         maint: sync license texts
31916         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31917         * doc/gpl-3.0.texi: Revert copyright year update.
31918         * doc/lgpl-3.0.texi: Likewise.
31919
31920 2009-12-29  Jim Meyering  <meyering@redhat.com>
31921
31922         update nearly all FSF copyright year lists to include 2009
31923         The files named by the following are exempted:
31924             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31925               test -f "$dst" && { echo "$dst"; continue; }
31926               test -d "$dst" || continue
31927               echo "$dst"/$(basename "$src")
31928             done > exempt
31929             git ls-files tests/unictype >> exempt
31930         In the remaining files, convert to all-interval notation if
31931         - there is already at least one year interval like 2000-2003
31932         - the file is maintained by me
31933         - the file is in lib/uni*/, where that style already prevails
31934         Otherwise, use update-copyright's default.
31935
31936 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31937         and Eric Blake  <ebb9@byu.net>
31938
31939         tests: don't require debug system() to pass
31940         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31941         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31942         * tests/test-unlink.h (test_unlink_func): Likewise.
31943         * tests/test-fstatat.c (main): ...into callers.
31944         * tests/test-lstat.c (main): Likewise.
31945         * tests/test-rmdir.c (main): Likewise.
31946         * tests/test-unlink.c (main): Likewise.
31947         * tests/test-unlinkat.c (main): Likewise.
31948         * tests/test-areadlink-with-size.c (main): Don't require a
31949         debug-only system call to pass, aiding cross-testing to mingw.
31950         * tests/test-areadlink.c (main): Likewise.
31951         * tests/test-areadlinkat-with-size.c (main): Likewise.
31952         * tests/test-areadlinkat.c (main): Likewise.
31953         * tests/test-canonicalize-lgpl.c (main): Likewise.
31954         * tests/test-canonicalize.c (main): Likewise.
31955         * tests/test-chown.c (main): Likewise.
31956         * tests/test-fchownat.c (main): Likewise.
31957         * tests/test-lchown.c (main): Likewise.
31958         * tests/test-fdutimensat.c (main): Likewise.
31959         * tests/test-futimens.c (main): Likewise.
31960         * tests/test-link.c (main): Likewise.
31961         * tests/test-linkat.c (main): Likewise.
31962         * tests/test-mkdir.c (main): Likewise.
31963         * tests/test-mkdirat.c (main): Likewise.
31964         * tests/test-mkfifo.c (main): Likewise.
31965         * tests/test-mkfifoat.c (main): Likewise.
31966         * tests/test-mknod.c (main): Likewise.
31967         * tests/test-readlink.c (main): Likewise.
31968         * tests/test-remove.c (main): Likewise.
31969         * tests/test-rename.c (main): Likewise.
31970         * tests/test-renameat.c (main): Likewise.
31971         * tests/test-symlink.c (main): Likewise.
31972         * tests/test-symlinkat.c (main): Likewise.
31973         * tests/test-utimens.c (main): Likewise.
31974         * tests/test-utimensat.c (main): Likewise.
31975
31976 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31977
31978         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31979         on $(UNUSED_PARAMETER_H) to avoid build failure.
31980
31981 2009-12-28  Jim Meyering  <meyering@redhat.com>
31982
31983         update-copyright: you may specify a max. line length other than 72
31984         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31985
31986         maint: use consistent FSF copyright line syntax
31987         * lib/posixtm.c: Add missing comma in FSF copyright line.
31988         * lib/posixtm.h: Likewise.
31989         * lib/getugroups.c: Add missing ", Inc.".
31990
31991         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31992         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31993         FSF copyright line.  Remove trailing blanks.
31994
31995 2009-12-28  Eric Blake  <ebb9@byu.net>
31996
31997         test-dup2: reduce dependencies
31998         * modules/cloexec (Configure.ac): Set witness.
31999         * modules/dup2-tests (Depends-on): Drop cloexec.
32000         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32001         not present.
32002         Suggested by Bruno Haible.
32003
32004 2009-12-26  Bruno Haible  <bruno@clisp.org>
32005
32006         Remove an unneeded dependency.
32007         * modules/fseterr (Depends-on): Remove dup2.
32008
32009 2009-12-26  Eric Blake  <ebb9@byu.net>
32010
32011         tests: use macros.h in more places
32012         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32013         (ASSERT_STREAM): Provide default of stderr.
32014         * tests/test-dirent-safer.c: Include macros.h, using alternate
32015         stream for assertions.
32016         * tests/test-dup-safer.c: Likewise.
32017         * tests/test-freopen-safer.c: Likewise.
32018         * tests/test-getopt.c: Likewise.
32019         * tests/test-openat-safer.c: Likewise.
32020         * tests/test-pipe.c: Likewise.
32021         * tests/test-popen-safer.c: Likewise.
32022         * modules/dirent-safer-tests (Files): Include macros.h.
32023         * modules/unistd-safer-tests (Files): Likewise.
32024         * modules/freopen-safer-tests (Files): Likewise.
32025         * modules/getopt-posix-tests (Files): Likewise.
32026         * modules/openat-safer-tests (Files): Likewise.
32027         * modules/pipe-tests (Files): Likewise.
32028
32029 2009-12-26  Bruno Haible  <bruno@clisp.org>
32030
32031         javacomp: Portability fix.
32032         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32033         that it also works on Solaris.
32034
32035 2009-12-26  Bruno Haible  <bruno@clisp.org>
32036
32037         localename: Fix storage allocation of gl_locale_name_thread's result.
32038         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32039         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32040         all platforms that have 'uselocale'.
32041         (gl_locale_name_thread_unsafe): New function, extracted from
32042         gl_locale_name_thread.
32043         (gl_locale_name_thread): Call struniq on all platforms that have
32044         'uselocale'.
32045         * tests/test-localename.c (test_locale_name_thread): Check that the
32046         resulting strings are permanently allocated.
32047         * modules/localename-tests (Depends-on): Add strdup.
32048
32049 2009-12-26  Bruno Haible  <bruno@clisp.org>
32050
32051         * tests/test-localename.c (categories): Fill in the strings.
32052
32053 2009-12-26  Jim Meyering  <meyering@redhat.com>
32054
32055         isdir: complete the removal of m4/isdir.m4
32056         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32057
32058         isdir: clean up, since at least grep still uses it
32059         * lib/isdir.c: Include "isdir.h".
32060         (S_ISDIR): Remove now-unneeded definition.
32061         * modules/isdir (Files): Add lib/isdir.h.
32062         * lib/isdir.h: New file, with declaration.
32063         * m4/isdir.m4: Remove file -- unneeded.
32064
32065 2009-12-25  Bruno Haible  <bruno@clisp.org>
32066
32067         selinux-h: Make generated .h files standalone.
32068         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32069         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32070         * lib/se-selinux.in.h: Likewise.
32071         * modules/selinux-h (Depends-on): Add unused-parameter.
32072         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32073         selinux/selinux.h and selinux/context.h.
32074         Suggested by Eric Blake.
32075
32076 2009-12-25  Bruno Haible  <bruno@clisp.org>
32077
32078         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32079         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32080         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32081         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32082         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32083
32084 2009-12-24  Bruno Haible  <bruno@clisp.org>
32085
32086         openat: Fix warning.
32087         * lib/openat-proc.c: Include <unistd.h>.
32088
32089 2009-12-24  Bruno Haible  <bruno@clisp.org>
32090
32091         New module 'unused-parameter'.
32092         * build-aux/unused-parameter.h: New file, extracted from earlier
32093         gnulib-common.m4.
32094         * modules/unused-parameter: New file.
32095         * lib/unistr.h: Include unused-parameter.h.
32096         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32097         _GL_UNUSED.
32098         * modules/unistr/base (Depends-on): Add unused-parameter.
32099
32100 2009-12-24  Bruno Haible  <bruno@clisp.org>
32101
32102         Add missing dependencies to 'extensions' module.
32103         * m4/extensions.m4: Add comment.
32104         * modules/accept4 (Depends-on): Add extensions.
32105         * modules/dup3 (Depends-on): Likewise.
32106         * modules/fcntl (Depends-on): Likewise.
32107         * modules/futimens (Depends-on): Likewise.
32108         * modules/mknod (Depends-on): Likewise.
32109         * modules/pipe2 (Depends-on): Likewise.
32110         * modules/stat-time (Depends-on): Likewise.
32111         * modules/strcasestr-simple (Depends-on): Likewise.
32112         * modules/strsignal (Depends-on): Likewise.
32113         * modules/utimensat (Depends-on): Likewise.
32114         * modules/localcharset (Depends-on): Likewise. Needed because of
32115         gl_FCNTL_O_FLAGS.
32116         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32117         AC_TYPE_MBSTATE_T.
32118         * modules/wcsnrtombs (Depends-on): Likewise.
32119         * modules/wcsrtombs (Depends-on): Likewise.
32120
32121 2009-12-24  Bruno Haible  <bruno@clisp.org>
32122
32123         binary-io: Avoid gcc warning due to SET_BINARY.
32124         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32125         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32126
32127 2009-12-24  Bruno Haible  <bruno@clisp.org>
32128
32129         Avoid future namespace pollution on glibc systems.
32130         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32131         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32132         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32133         glibc systems.
32134
32135 2009-12-24  Bruno Haible  <bruno@clisp.org>
32136
32137         Refactor common macros used in tests.
32138         * tests/macros.h: New file.
32139         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32140         and/or <stdlib.h>, if appropriate.
32141         (ASSERT, SIZEOF): Remove macros.
32142         * tests/test-areadlink-with-size.c: Likewise.
32143         * tests/test-areadlinkat.c: Likewise.
32144         * tests/test-areadlinkat-with-size.c: Likewise.
32145         * tests/test-argmatch.c: Likewise.
32146         * tests/test-argv-iter.c: Likewise.
32147         * tests/test-array-mergesort.c: Likewise.
32148         * tests/test-array_list.c: Likewise.
32149         * tests/test-array_oset.c: Likewise.
32150         * tests/test-avltree_list.c: Likewise.
32151         * tests/test-avltree_oset.c: Likewise.
32152         * tests/test-avltreehash_list.c: Likewise.
32153         * tests/test-base64.c: Likewise.
32154         * tests/test-binary-io.c: Likewise.
32155         * tests/test-bitrotate.c: Likewise.
32156         * tests/test-btowc.c: Likewise.
32157         * tests/test-byteswap.c: Likewise.
32158         * tests/test-c-ctype.c: Likewise.
32159         * tests/test-c-stack.c: Likewise.
32160         * tests/test-c-strcasecmp.c: Likewise.
32161         * tests/test-c-strcasestr.c: Likewise.
32162         * tests/test-c-strncasecmp.c: Likewise.
32163         * tests/test-c-strstr.c: Likewise.
32164         * tests/test-canonicalize-lgpl.c: Likewise.
32165         * tests/test-canonicalize.c: Likewise.
32166         * tests/test-carray_list.c: Likewise.
32167         * tests/test-ceilf1.c: Likewise.
32168         * tests/test-ceilf2.c: Likewise.
32169         * tests/test-ceill.c: Likewise.
32170         * tests/test-chown.c: Likewise.
32171         * tests/test-cloexec.c: Likewise.
32172         * tests/test-copy-acl.c: Likewise.
32173         * tests/test-copy-file.c: Likewise.
32174         * tests/test-count-one-bits.c: Likewise.
32175         * tests/test-dprintf-posix.c: Likewise.
32176         * tests/test-dup2.c: Likewise.
32177         * tests/test-dup3.c: Likewise.
32178         * tests/test-duplocale.c: Likewise.
32179         * tests/test-fbufmode.c: Likewise.
32180         * tests/test-fchdir.c: Likewise.
32181         * tests/test-fchownat.c: Likewise.
32182         * tests/test-fcntl-safer.c: Likewise.
32183         * tests/test-fcntl.c: Likewise.
32184         * tests/test-fdopendir.c: Likewise.
32185         * tests/test-fdutimensat.c: Likewise.
32186         * tests/test-fflush2.c: Likewise.
32187         * tests/test-file-has-acl.c: Likewise.
32188         * tests/test-filevercmp.c: Likewise.
32189         * tests/test-flock.c: Likewise.
32190         * tests/test-floorf1.c: Likewise.
32191         * tests/test-floorf2.c: Likewise.
32192         * tests/test-floorl.c: Likewise.
32193         * tests/test-fnmatch.c: Likewise.
32194         * tests/test-fopen.h: Likewise.
32195         * tests/test-fpending.c: Likewise.
32196         * tests/test-fprintf-posix.c: Likewise.
32197         * tests/test-fpurge.c: Likewise.
32198         * tests/test-freadable.c: Likewise.
32199         * tests/test-freadahead.c: Likewise.
32200         * tests/test-freading.c: Likewise.
32201         * tests/test-freadptr.c: Likewise.
32202         * tests/test-freadptr2.c: Likewise.
32203         * tests/test-freadseek.c: Likewise.
32204         * tests/test-freopen.c: Likewise.
32205         * tests/test-frexp.c: Likewise.
32206         * tests/test-frexpl.c: Likewise.
32207         * tests/test-fseek.c: Likewise.
32208         * tests/test-fseeko.c: Likewise.
32209         * tests/test-fstatat.c: Likewise.
32210         * tests/test-fstrcmp.c: Likewise.
32211         * tests/test-fsync.c: Likewise.
32212         * tests/test-ftell.c: Likewise.
32213         * tests/test-ftello.c: Likewise.
32214         * tests/test-func.c: Likewise.
32215         * tests/test-futimens.c: Likewise.
32216         * tests/test-fwritable.c: Likewise.
32217         * tests/test-fwriting.c: Likewise.
32218         * tests/test-getcwd.c: Likewise.
32219         * tests/test-getdate.c: Likewise.
32220         * tests/test-getdelim.c: Likewise.
32221         * tests/test-getdtablesize.c: Likewise.
32222         * tests/test-getgroups.c: Likewise.
32223         * tests/test-getline.c: Likewise.
32224         * tests/test-getndelim2.c: Likewise.
32225         * tests/test-glob.c: Likewise.
32226         * tests/test-hash.c: Likewise.
32227         * tests/test-i-ring.c: Likewise.
32228         * tests/test-iconv-utf.c: Likewise.
32229         * tests/test-iconv.c: Likewise.
32230         * tests/test-idpriv-drop.c: Likewise.
32231         * tests/test-idpriv-droptemp.c: Likewise.
32232         * tests/test-inet_ntop.c: Likewise.
32233         * tests/test-inet_pton.c: Likewise.
32234         * tests/test-isblank.c: Likewise.
32235         * tests/test-isfinite.c: Likewise.
32236         * tests/test-isinf.c: Likewise.
32237         * tests/test-isnan.c: Likewise.
32238         * tests/test-isnand.h: Likewise.
32239         * tests/test-isnanf.h: Likewise.
32240         * tests/test-isnanl.h: Likewise.
32241         * tests/test-lchown.c: Likewise.
32242         * tests/test-ldexpl.c: Likewise.
32243         * tests/test-link.c: Likewise.
32244         * tests/test-linkat.c: Likewise.
32245         * tests/test-linked_list.c: Likewise.
32246         * tests/test-linkedhash_list.c: Likewise.
32247         * tests/test-localename.c: Likewise.
32248         * tests/test-lseek.c: Likewise.
32249         * tests/test-lstat.c: Likewise.
32250         * tests/test-mbmemcasecmp.c: Likewise.
32251         * tests/test-mbmemcasecoll.c: Likewise.
32252         * tests/test-mbrtowc.c: Likewise.
32253         * tests/test-mbscasecmp.c: Likewise.
32254         * tests/test-mbscasestr1.c: Likewise.
32255         * tests/test-mbscasestr2.c: Likewise.
32256         * tests/test-mbscasestr3.c: Likewise.
32257         * tests/test-mbscasestr4.c: Likewise.
32258         * tests/test-mbschr.c: Likewise.
32259         * tests/test-mbscspn.c: Likewise.
32260         * tests/test-mbsinit.c: Likewise.
32261         * tests/test-mbsncasecmp.c: Likewise.
32262         * tests/test-mbsnrtowcs.c: Likewise.
32263         * tests/test-mbspbrk.c: Likewise.
32264         * tests/test-mbspcasecmp.c: Likewise.
32265         * tests/test-mbsrchr.c: Likewise.
32266         * tests/test-mbsrtowcs.c: Likewise.
32267         * tests/test-mbsspn.c: Likewise.
32268         * tests/test-mbsstr1.c: Likewise.
32269         * tests/test-mbsstr2.c: Likewise.
32270         * tests/test-mbsstr3.c: Likewise.
32271         * tests/test-memchr.c: Likewise.
32272         * tests/test-memchr2.c: Likewise.
32273         * tests/test-memcmp.c: Likewise.
32274         * tests/test-memmem.c: Likewise.
32275         * tests/test-memrchr.c: Likewise.
32276         * tests/test-mkdir.c: Likewise.
32277         * tests/test-mkdirat.c: Likewise.
32278         * tests/test-mkfifo.c: Likewise.
32279         * tests/test-mkfifoat.c: Likewise.
32280         * tests/test-mknod.c: Likewise.
32281         * tests/test-nanosleep.c: Likewise.
32282         * tests/test-nl_langinfo.c: Likewise.
32283         * tests/test-obstack-printf.c: Likewise.
32284         * tests/test-open.c: Likewise.
32285         * tests/test-openat.c: Likewise.
32286         * tests/test-pipe-filter-gi1.c: Likewise.
32287         * tests/test-pipe-filter-gi2-main.c: Likewise.
32288         * tests/test-pipe-filter-ii1.c: Likewise.
32289         * tests/test-pipe-filter-ii2-main.c: Likewise.
32290         * tests/test-pipe2.c: Likewise.
32291         * tests/test-popen.h: Likewise.
32292         * tests/test-posixtm.c: Likewise.
32293         * tests/test-pread.c: Likewise.
32294         * tests/test-printf-frexp.c: Likewise.
32295         * tests/test-printf-frexpl.c: Likewise.
32296         * tests/test-printf-posix.c: Likewise.
32297         * tests/test-priv-set.c: Likewise.
32298         * tests/test-quotearg.c: Likewise.
32299         * tests/test-random_r.c: Likewise.
32300         * tests/test-rawmemchr.c: Likewise.
32301         * tests/test-rbtree_list.c: Likewise.
32302         * tests/test-rbtree_oset.c: Likewise.
32303         * tests/test-rbtreehash_list.c: Likewise.
32304         * tests/test-readlink.c: Likewise.
32305         * tests/test-remove.c: Likewise.
32306         * tests/test-rename.c: Likewise.
32307         * tests/test-renameat.c: Likewise.
32308         * tests/test-rmdir.c: Likewise.
32309         * tests/test-round1.c: Likewise.
32310         * tests/test-roundf1.c: Likewise.
32311         * tests/test-roundl.c: Likewise.
32312         * tests/test-safe-alloc.c: Likewise.
32313         * tests/test-sameacls.c: Likewise.
32314         * tests/test-set-mode-acl.c: Likewise.
32315         * tests/test-setenv.c: Likewise.
32316         * tests/test-sigaction.c: Likewise.
32317         * tests/test-signbit.c: Likewise.
32318         * tests/test-sleep.c: Likewise.
32319         * tests/test-snprintf-posix.c: Likewise.
32320         * tests/test-snprintf.c: Likewise.
32321         * tests/test-sprintf-posix.c: Likewise.
32322         * tests/test-stat-time.c: Likewise.
32323         * tests/test-stat.c: Likewise.
32324         * tests/test-strcasestr.c: Likewise.
32325         * tests/test-strchrnul.c: Likewise.
32326         * tests/test-strerror.c: Likewise.
32327         * tests/test-striconv.c: Likewise.
32328         * tests/test-striconveh.c: Likewise.
32329         * tests/test-striconveha.c: Likewise.
32330         * tests/test-strsignal.c: Likewise.
32331         * tests/test-strstr.c: Likewise.
32332         * tests/test-strtod.c: Likewise.
32333         * tests/test-strverscmp.c: Likewise.
32334         * tests/test-symlink.c: Likewise.
32335         * tests/test-symlinkat.c: Likewise.
32336         * tests/test-trunc1.c: Likewise.
32337         * tests/test-trunc2.c: Likewise.
32338         * tests/test-truncf1.c: Likewise.
32339         * tests/test-truncf2.c: Likewise.
32340         * tests/test-truncl.c: Likewise.
32341         * tests/test-uname.c: Likewise.
32342         * tests/test-unlink.c: Likewise.
32343         * tests/test-unlinkat.c: Likewise.
32344         * tests/test-unsetenv.c: Likewise.
32345         * tests/test-usleep.c: Likewise.
32346         * tests/test-utimens.c: Likewise.
32347         * tests/test-utimensat.c: Likewise.
32348         * tests/test-vasnprintf-posix.c: Likewise.
32349         * tests/test-vasnprintf-posix2.c: Likewise.
32350         * tests/test-vasnprintf.c: Likewise.
32351         * tests/test-vasprintf-posix.c: Likewise.
32352         * tests/test-vasprintf.c: Likewise.
32353         * tests/test-vdprintf-posix.c: Likewise.
32354         * tests/test-vfprintf-posix.c: Likewise.
32355         * tests/test-vprintf-posix.c: Likewise.
32356         * tests/test-vsnprintf-posix.c: Likewise.
32357         * tests/test-vsnprintf.c: Likewise.
32358         * tests/test-vsprintf-posix.c: Likewise.
32359         * tests/test-wcrtomb.c: Likewise.
32360         * tests/test-wcsnrtombs.c: Likewise.
32361         * tests/test-wcsrtombs.c: Likewise.
32362         * tests/test-wctype.c: Likewise.
32363         * tests/test-wcwidth.c: Likewise.
32364         * tests/test-xfprintf-posix.c: Likewise.
32365         * tests/test-xmemdup0.c: Likewise.
32366         * tests/test-xprintf-posix.c: Likewise.
32367         * tests/test-xvasprintf.c: Likewise.
32368         * tests/unicase/test-locale-language.c: Likewise.
32369         * tests/unicase/test-mapping-part1.h: Likewise.
32370         * tests/unicase/test-predicate-part1.h: Likewise.
32371         * tests/unicase/test-u8-casecmp.c: Likewise.
32372         * tests/unicase/test-u8-casecoll.c: Likewise.
32373         * tests/unicase/test-u8-casefold.c: Likewise.
32374         * tests/unicase/test-u8-is-cased.c: Likewise.
32375         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32376         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32377         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32378         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32379         * tests/unicase/test-u8-tolower.c: Likewise.
32380         * tests/unicase/test-u8-totitle.c: Likewise.
32381         * tests/unicase/test-u8-toupper.c: Likewise.
32382         * tests/unicase/test-u16-casecmp.c: Likewise.
32383         * tests/unicase/test-u16-casecoll.c: Likewise.
32384         * tests/unicase/test-u16-casefold.c: Likewise.
32385         * tests/unicase/test-u16-is-cased.c: Likewise.
32386         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32387         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32388         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32389         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32390         * tests/unicase/test-u16-tolower.c: Likewise.
32391         * tests/unicase/test-u16-totitle.c: Likewise.
32392         * tests/unicase/test-u16-toupper.c: Likewise.
32393         * tests/unicase/test-u32-casecmp.c: Likewise.
32394         * tests/unicase/test-u32-casecoll.c: Likewise.
32395         * tests/unicase/test-u32-casefold.c: Likewise.
32396         * tests/unicase/test-u32-is-cased.c: Likewise.
32397         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32398         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32399         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32400         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32401         * tests/unicase/test-u32-tolower.c: Likewise.
32402         * tests/unicase/test-u32-totitle.c: Likewise.
32403         * tests/unicase/test-u32-toupper.c: Likewise.
32404         * tests/unicase/test-ulc-casecmp.c: Likewise.
32405         * tests/unicase/test-ulc-casecoll.c: Likewise.
32406         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32407         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32408         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32409         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32410         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32411         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32412         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32413         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32414         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32415         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32416         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32417         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32418         * tests/unictype/test-bidi_byname.c: Likewise.
32419         * tests/unictype/test-bidi_name.c: Likewise.
32420         * tests/unictype/test-bidi_of.c: Likewise.
32421         * tests/unictype/test-bidi_test.c: Likewise.
32422         * tests/unictype/test-block_list.c: Likewise.
32423         * tests/unictype/test-block_of.c: Likewise.
32424         * tests/unictype/test-block_test.c: Likewise.
32425         * tests/unictype/test-categ_and.c: Likewise.
32426         * tests/unictype/test-categ_and_not.c: Likewise.
32427         * tests/unictype/test-categ_byname.c: Likewise.
32428         * tests/unictype/test-categ_name.c: Likewise.
32429         * tests/unictype/test-categ_none.c: Likewise.
32430         * tests/unictype/test-categ_of.c: Likewise.
32431         * tests/unictype/test-categ_or.c: Likewise.
32432         * tests/unictype/test-categ_test_withtable.c: Likewise.
32433         * tests/unictype/test-combining.c: Likewise.
32434         * tests/unictype/test-decdigit.c: Likewise.
32435         * tests/unictype/test-digit.c: Likewise.
32436         * tests/unictype/test-mirror.c: Likewise.
32437         * tests/unictype/test-numeric.c: Likewise.
32438         * tests/unictype/test-pr_byname.c: Likewise.
32439         * tests/unictype/test-pr_test.c: Likewise.
32440         * tests/unictype/test-predicate-part1.h: Likewise.
32441         * tests/unictype/test-scripts.c: Likewise.
32442         * tests/unictype/test-sy_c_ident.c: Likewise.
32443         * tests/unictype/test-sy_java_ident.c: Likewise.
32444         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32445         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32446         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32447         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32448         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32449         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32450         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32451         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32452         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32453         * tests/uninorm/test-compat-decomposition.c: Likewise.
32454         * tests/uninorm/test-composition.c: Likewise.
32455         * tests/uninorm/test-decomposing-form.c: Likewise.
32456         * tests/uninorm/test-decomposition.c: Likewise.
32457         * tests/uninorm/test-u8-nfc.c: Likewise.
32458         * tests/uninorm/test-u8-nfd.c: Likewise.
32459         * tests/uninorm/test-u8-nfkc.c: Likewise.
32460         * tests/uninorm/test-u8-nfkd.c: Likewise.
32461         * tests/uninorm/test-u8-normcmp.c: Likewise.
32462         * tests/uninorm/test-u8-normcoll.c: Likewise.
32463         * tests/uninorm/test-u16-nfc.c: Likewise.
32464         * tests/uninorm/test-u16-nfd.c: Likewise.
32465         * tests/uninorm/test-u16-nfkc.c: Likewise.
32466         * tests/uninorm/test-u16-nfkd.c: Likewise.
32467         * tests/uninorm/test-u16-normcmp.c: Likewise.
32468         * tests/uninorm/test-u16-normcoll.c: Likewise.
32469         * tests/uninorm/test-u32-nfc.c: Likewise.
32470         * tests/uninorm/test-u32-nfd.c: Likewise.
32471         * tests/uninorm/test-u32-nfkc.c: Likewise.
32472         * tests/uninorm/test-u32-nfkd.c: Likewise.
32473         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32474         * tests/uninorm/test-u32-normcmp.c: Likewise.
32475         * tests/uninorm/test-u32-normcoll.c: Likewise.
32476         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32477         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32478         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32479         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32480         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32481         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32482         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32483         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32484         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32485         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32486         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32487         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32488         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32489         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32490         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32491         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32492         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32493         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32494         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32495         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32496         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32497         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32498         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32499         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32500         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32501         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32502         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32503         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32504         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32505         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32506         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32507         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32508         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32509         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32510         * tests/uniwidth/test-u8-width.c: Likewise.
32511         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32512         * tests/uniwidth/test-u16-width.c: Likewise.
32513         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32514         * tests/uniwidth/test-u32-width.c: Likewise.
32515         * tests/uniwidth/test-uc_width.c: Likewise.
32516         * tests/uniwidth/test-uc_width2.c: Likewise.
32517         * modules/acl-tests (Files): Add tests/macros.h.
32518         * modules/areadlink-tests (Files): Likewise.
32519         * modules/areadlink-with-size-tests (Files): Likewise.
32520         * modules/areadlinkat-tests (Files): Likewise.
32521         * modules/areadlinkat-with-size-tests (Files): Likewise.
32522         * modules/argmatch-tests (Files): Likewise.
32523         * modules/argv-iter-tests (Files): Likewise.
32524         * modules/array-list-tests (Files): Likewise.
32525         * modules/array-mergesort-tests (Files): Likewise.
32526         * modules/array-oset-tests (Files): Likewise.
32527         * modules/avltree-list-tests (Files): Likewise.
32528         * modules/avltree-oset-tests (Files): Likewise.
32529         * modules/avltreehash-list-tests (Files): Likewise.
32530         * modules/base64-tests (Files): Likewise.
32531         * modules/binary-io-tests (Files): Likewise.
32532         * modules/bitrotate-tests (Files): Likewise.
32533         * modules/btowc-tests (Files): Likewise.
32534         * modules/byteswap-tests (Files): Likewise.
32535         * modules/c-ctype-tests (Files): Likewise.
32536         * modules/c-stack-tests (Files): Likewise.
32537         * modules/c-strcase-tests (Files): Likewise.
32538         * modules/c-strcasestr-tests (Files): Likewise.
32539         * modules/c-strstr-tests (Files): Likewise.
32540         * modules/canonicalize-lgpl-tests (Files): Likewise.
32541         * modules/canonicalize-tests (Files): Likewise.
32542         * modules/carray-list-tests (Files): Likewise.
32543         * modules/ceilf-tests (Files): Likewise.
32544         * modules/ceill-tests (Files): Likewise.
32545         * modules/chown-tests (Files): Likewise.
32546         * modules/cloexec-tests (Files): Likewise.
32547         * modules/copy-file-tests (Files): Likewise.
32548         * modules/count-one-bits-tests (Files): Likewise.
32549         * modules/dprintf-posix-tests (Files): Likewise.
32550         * modules/dup2-tests (Files): Likewise.
32551         * modules/dup3-tests (Files): Likewise.
32552         * modules/duplocale-tests (Files): Likewise.
32553         * modules/fbufmode-tests (Files): Likewise.
32554         * modules/fchdir-tests (Files): Likewise.
32555         * modules/fcntl-safer-tests (Files): Likewise.
32556         * modules/fcntl-tests (Files): Likewise.
32557         * modules/fdopendir-tests (Files): Likewise.
32558         * modules/fdutimensat-tests (Files): Likewise.
32559         * modules/fflush-tests (Files): Likewise.
32560         * modules/filevercmp-tests (Files): Likewise.
32561         * modules/flock-tests (Files): Likewise.
32562         * modules/floorf-tests (Files): Likewise.
32563         * modules/floorl-tests (Files): Likewise.
32564         * modules/fnmatch-tests (Files): Likewise.
32565         * modules/fopen-safer-tests (Files): Likewise.
32566         * modules/fopen-tests (Files): Likewise.
32567         * modules/fpending-tests (Files): Likewise.
32568         * modules/fprintf-posix-tests (Files): Likewise.
32569         * modules/fpurge-tests (Files): Likewise.
32570         * modules/freadable-tests (Files): Likewise.
32571         * modules/freadahead-tests (Files): Likewise.
32572         * modules/freading-tests (Files): Likewise.
32573         * modules/freadptr-tests (Files): Likewise.
32574         * modules/freadseek-tests (Files): Likewise.
32575         * modules/freopen-tests (Files): Likewise.
32576         * modules/frexp-nolibm-tests (Files): Likewise.
32577         * modules/frexp-tests (Files): Likewise.
32578         * modules/frexpl-nolibm-tests (Files): Likewise.
32579         * modules/frexpl-tests (Files): Likewise.
32580         * modules/fseek-tests (Files): Likewise.
32581         * modules/fseeko-tests (Files): Likewise.
32582         * modules/fstrcmp-tests (Files): Likewise.
32583         * modules/fsync-tests (Files): Likewise.
32584         * modules/ftell-tests (Files): Likewise.
32585         * modules/ftello-tests (Files): Likewise.
32586         * modules/func-tests (Files): Likewise.
32587         * modules/futimens-tests (Files): Likewise.
32588         * modules/fwritable-tests (Files): Likewise.
32589         * modules/fwriting-tests (Files): Likewise.
32590         * modules/getcwd-tests (Files): Likewise.
32591         * modules/getdate-tests (Files): Likewise.
32592         * modules/getdelim-tests (Files): Likewise.
32593         * modules/getdtablesize-tests (Files): Likewise.
32594         * modules/getgroups-tests (Files): Likewise.
32595         * modules/getline-tests (Files): Likewise.
32596         * modules/getndelim2-tests (Files): Likewise.
32597         * modules/glob-tests (Files): Likewise.
32598         * modules/hash-tests (Files): Likewise.
32599         * modules/i-ring-tests (Files): Likewise.
32600         * modules/iconv-tests (Files): Likewise.
32601         * modules/iconv_open-utf-tests (Files): Likewise.
32602         * modules/idpriv-drop-tests (Files): Likewise.
32603         * modules/idpriv-droptemp-tests (Files): Likewise.
32604         * modules/inet_ntop-tests (Files): Likewise.
32605         * modules/inet_pton-tests (Files): Likewise.
32606         * modules/isblank-tests (Files): Likewise.
32607         * modules/isfinite-tests (Files): Likewise.
32608         * modules/isinf-tests (Files): Likewise.
32609         * modules/isnan-tests (Files): Likewise.
32610         * modules/isnand-nolibm-tests (Files): Likewise.
32611         * modules/isnand-tests (Files): Likewise.
32612         * modules/isnanf-nolibm-tests (Files): Likewise.
32613         * modules/isnanf-tests (Files): Likewise.
32614         * modules/isnanl-nolibm-tests (Files): Likewise.
32615         * modules/isnanl-tests (Files): Likewise.
32616         * modules/lchown-tests (Files): Likewise.
32617         * modules/ldexpl-tests (Files): Likewise.
32618         * modules/link-tests (Files): Likewise.
32619         * modules/linkat-tests (Files): Likewise.
32620         * modules/linked-list-tests (Files): Likewise.
32621         * modules/linkedhash-list-tests (Files): Likewise.
32622         * modules/localename-tests (Files): Likewise.
32623         * modules/lseek-tests (Files): Likewise.
32624         * modules/lstat-tests (Files): Likewise.
32625         * modules/mbmemcasecmp-tests (Files): Likewise.
32626         * modules/mbmemcasecoll-tests (Files): Likewise.
32627         * modules/mbrtowc-tests (Files): Likewise.
32628         * modules/mbscasecmp-tests (Files): Likewise.
32629         * modules/mbscasestr-tests (Files): Likewise.
32630         * modules/mbschr-tests (Files): Likewise.
32631         * modules/mbscspn-tests (Files): Likewise.
32632         * modules/mbsinit-tests (Files): Likewise.
32633         * modules/mbsncasecmp-tests (Files): Likewise.
32634         * modules/mbsnrtowcs-tests (Files): Likewise.
32635         * modules/mbspbrk-tests (Files): Likewise.
32636         * modules/mbspcasecmp-tests (Files): Likewise.
32637         * modules/mbsrchr-tests (Files): Likewise.
32638         * modules/mbsrtowcs-tests (Files): Likewise.
32639         * modules/mbsspn-tests (Files): Likewise.
32640         * modules/mbsstr-tests (Files): Likewise.
32641         * modules/memchr-tests (Files): Likewise.
32642         * modules/memchr2-tests (Files): Likewise.
32643         * modules/memcmp-tests (Files): Likewise.
32644         * modules/memmem-tests (Files): Likewise.
32645         * modules/memrchr-tests (Files): Likewise.
32646         * modules/mkdir-tests (Files): Likewise.
32647         * modules/mkfifo-tests (Files): Likewise.
32648         * modules/mkfifoat-tests (Files): Likewise.
32649         * modules/mknod-tests (Files): Likewise.
32650         * modules/nanosleep-tests (Files): Likewise.
32651         * modules/nl_langinfo-tests (Files): Likewise.
32652         * modules/obstack-printf-tests (Files): Likewise.
32653         * modules/open-tests (Files): Likewise.
32654         * modules/openat-tests (Files): Likewise.
32655         * modules/pipe-filter-gi-tests (Files): Likewise.
32656         * modules/pipe-filter-ii-tests (Files): Likewise.
32657         * modules/pipe2-tests (Files): Likewise.
32658         * modules/popen-safer-tests (Files): Likewise.
32659         * modules/popen-tests (Files): Likewise.
32660         * modules/posixtm-tests (Files): Likewise.
32661         * modules/pread-tests (Files): Likewise.
32662         * modules/printf-frexp-tests (Files): Likewise.
32663         * modules/printf-frexpl-tests (Files): Likewise.
32664         * modules/printf-posix-tests (Files): Likewise.
32665         * modules/priv-set-tests (Files): Likewise.
32666         * modules/quotearg-tests (Files): Likewise.
32667         * modules/random_r-tests (Files): Likewise.
32668         * modules/rawmemchr-tests (Files): Likewise.
32669         * modules/rbtree-list-tests (Files): Likewise.
32670         * modules/rbtree-oset-tests (Files): Likewise.
32671         * modules/rbtreehash-list-tests (Files): Likewise.
32672         * modules/readlink-tests (Files): Likewise.
32673         * modules/remove-tests (Files): Likewise.
32674         * modules/rename-tests (Files): Likewise.
32675         * modules/renameat-tests (Files): Likewise.
32676         * modules/rmdir-tests (Files): Likewise.
32677         * modules/round-tests (Files): Likewise.
32678         * modules/roundf-tests (Files): Likewise.
32679         * modules/roundl-tests (Files): Likewise.
32680         * modules/safe-alloc-tests (Files): Likewise.
32681         * modules/setenv-tests (Files): Likewise.
32682         * modules/sigaction-tests (Files): Likewise.
32683         * modules/signbit-tests (Files): Likewise.
32684         * modules/sleep-tests (Files): Likewise.
32685         * modules/snprintf-posix-tests (Files): Likewise.
32686         * modules/snprintf-tests (Files): Likewise.
32687         * modules/sprintf-posix-tests (Files): Likewise.
32688         * modules/stat-tests (Files): Likewise.
32689         * modules/stat-time-tests (Files): Likewise.
32690         * modules/strcasestr-tests (Files): Likewise.
32691         * modules/strchrnul-tests (Files): Likewise.
32692         * modules/strerror-tests (Files): Likewise.
32693         * modules/striconv-tests (Files): Likewise.
32694         * modules/striconveh-tests (Files): Likewise.
32695         * modules/striconveha-tests (Files): Likewise.
32696         * modules/strsignal-tests (Files): Likewise.
32697         * modules/strstr-tests (Files): Likewise.
32698         * modules/strtod-tests (Files): Likewise.
32699         * modules/strverscmp-tests (Files): Likewise.
32700         * modules/symlink-tests (Files): Likewise.
32701         * modules/symlinkat-tests (Files): Likewise.
32702         * modules/trunc-tests (Files): Likewise.
32703         * modules/truncf-tests (Files): Likewise.
32704         * modules/truncl-tests (Files): Likewise.
32705         * modules/uname-tests (Files): Likewise.
32706         * modules/unicase/cased-tests (Files): Likewise.
32707         * modules/unicase/ignorable-tests (Files): Likewise.
32708         * modules/unicase/locale-language-tests (Files): Likewise.
32709         * modules/unicase/tolower-tests (Files): Likewise.
32710         * modules/unicase/totitle-tests (Files): Likewise.
32711         * modules/unicase/toupper-tests (Files): Likewise.
32712         * modules/unicase/u8-casecmp-tests (Files): Likewise.
32713         * modules/unicase/u8-casecoll-tests (Files): Likewise.
32714         * modules/unicase/u8-casefold-tests (Files): Likewise.
32715         * modules/unicase/u8-is-cased-tests (Files): Likewise.
32716         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
32717         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
32718         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
32719         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
32720         * modules/unicase/u8-tolower-tests (Files): Likewise.
32721         * modules/unicase/u8-totitle-tests (Files): Likewise.
32722         * modules/unicase/u8-toupper-tests (Files): Likewise.
32723         * modules/unicase/u16-casecmp-tests (Files): Likewise.
32724         * modules/unicase/u16-casecoll-tests (Files): Likewise.
32725         * modules/unicase/u16-casefold-tests (Files): Likewise.
32726         * modules/unicase/u16-is-cased-tests (Files): Likewise.
32727         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
32728         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
32729         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
32730         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
32731         * modules/unicase/u16-tolower-tests (Files): Likewise.
32732         * modules/unicase/u16-totitle-tests (Files): Likewise.
32733         * modules/unicase/u16-toupper-tests (Files): Likewise.
32734         * modules/unicase/u32-casecmp-tests (Files): Likewise.
32735         * modules/unicase/u32-casecoll-tests (Files): Likewise.
32736         * modules/unicase/u32-casefold-tests (Files): Likewise.
32737         * modules/unicase/u32-is-cased-tests (Files): Likewise.
32738         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
32739         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
32740         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
32741         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
32742         * modules/unicase/u32-tolower-tests (Files): Likewise.
32743         * modules/unicase/u32-totitle-tests (Files): Likewise.
32744         * modules/unicase/u32-toupper-tests (Files): Likewise.
32745         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
32746         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
32747         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
32748         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
32749         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
32750         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
32751         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
32752         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
32753         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32754         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32755         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32756         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32757         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32758         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32759         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32760         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32761         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32762         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32763         * modules/unictype/block-list-tests (Files): Likewise.
32764         * modules/unictype/block-of-tests (Files): Likewise.
32765         * modules/unictype/block-test-tests (Files): Likewise.
32766         * modules/unictype/category-C-tests (Files): Likewise.
32767         * modules/unictype/category-Cc-tests (Files): Likewise.
32768         * modules/unictype/category-Cf-tests (Files): Likewise.
32769         * modules/unictype/category-Cn-tests (Files): Likewise.
32770         * modules/unictype/category-Co-tests (Files): Likewise.
32771         * modules/unictype/category-Cs-tests (Files): Likewise.
32772         * modules/unictype/category-L-tests (Files): Likewise.
32773         * modules/unictype/category-Ll-tests (Files): Likewise.
32774         * modules/unictype/category-Lm-tests (Files): Likewise.
32775         * modules/unictype/category-Lo-tests (Files): Likewise.
32776         * modules/unictype/category-Lt-tests (Files): Likewise.
32777         * modules/unictype/category-Lu-tests (Files): Likewise.
32778         * modules/unictype/category-M-tests (Files): Likewise.
32779         * modules/unictype/category-Mc-tests (Files): Likewise.
32780         * modules/unictype/category-Me-tests (Files): Likewise.
32781         * modules/unictype/category-Mn-tests (Files): Likewise.
32782         * modules/unictype/category-N-tests (Files): Likewise.
32783         * modules/unictype/category-Nd-tests (Files): Likewise.
32784         * modules/unictype/category-Nl-tests (Files): Likewise.
32785         * modules/unictype/category-No-tests (Files): Likewise.
32786         * modules/unictype/category-P-tests (Files): Likewise.
32787         * modules/unictype/category-Pc-tests (Files): Likewise.
32788         * modules/unictype/category-Pd-tests (Files): Likewise.
32789         * modules/unictype/category-Pe-tests (Files): Likewise.
32790         * modules/unictype/category-Pf-tests (Files): Likewise.
32791         * modules/unictype/category-Pi-tests (Files): Likewise.
32792         * modules/unictype/category-Po-tests (Files): Likewise.
32793         * modules/unictype/category-Ps-tests (Files): Likewise.
32794         * modules/unictype/category-S-tests (Files): Likewise.
32795         * modules/unictype/category-Sc-tests (Files): Likewise.
32796         * modules/unictype/category-Sk-tests (Files): Likewise.
32797         * modules/unictype/category-Sm-tests (Files): Likewise.
32798         * modules/unictype/category-So-tests (Files): Likewise.
32799         * modules/unictype/category-Z-tests (Files): Likewise.
32800         * modules/unictype/category-Zl-tests (Files): Likewise.
32801         * modules/unictype/category-Zp-tests (Files): Likewise.
32802         * modules/unictype/category-Zs-tests (Files): Likewise.
32803         * modules/unictype/category-and-not-tests (Files): Likewise.
32804         * modules/unictype/category-and-tests (Files): Likewise.
32805         * modules/unictype/category-byname-tests (Files): Likewise.
32806         * modules/unictype/category-name-tests (Files): Likewise.
32807         * modules/unictype/category-none-tests (Files): Likewise.
32808         * modules/unictype/category-of-tests (Files): Likewise.
32809         * modules/unictype/category-or-tests (Files): Likewise.
32810         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32811         * modules/unictype/combining-class-tests (Files): Likewise.
32812         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32813         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32814         * modules/unictype/ctype-blank-tests (Files): Likewise.
32815         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32816         * modules/unictype/ctype-digit-tests (Files): Likewise.
32817         * modules/unictype/ctype-graph-tests (Files): Likewise.
32818         * modules/unictype/ctype-lower-tests (Files): Likewise.
32819         * modules/unictype/ctype-print-tests (Files): Likewise.
32820         * modules/unictype/ctype-punct-tests (Files): Likewise.
32821         * modules/unictype/ctype-space-tests (Files): Likewise.
32822         * modules/unictype/ctype-upper-tests (Files): Likewise.
32823         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32824         * modules/unictype/decimal-digit-tests (Files): Likewise.
32825         * modules/unictype/digit-tests (Files): Likewise.
32826         * modules/unictype/mirror-tests (Files): Likewise.
32827         * modules/unictype/numeric-tests (Files): Likewise.
32828         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32829         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32830         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32831         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32832         Likewise.
32833         * modules/unictype/property-bidi-block-separator-tests (Files):
32834         Likewise.
32835         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32836         Likewise.
32837         * modules/unictype/property-bidi-common-separator-tests (Files):
32838         Likewise.
32839         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32840         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32841         Likewise.
32842         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32843         Likewise.
32844         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32845         Likewise.
32846         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32847         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32848         Likewise.
32849         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32850         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32851         Likewise.
32852         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32853         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32854         * modules/unictype/property-bidi-segment-separator-tests (Files):
32855         Likewise.
32856         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32857         * modules/unictype/property-byname-tests (Files): Likewise.
32858         * modules/unictype/property-combining-tests (Files): Likewise.
32859         * modules/unictype/property-composite-tests (Files): Likewise.
32860         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32861         * modules/unictype/property-dash-tests (Files): Likewise.
32862         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32863         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32864         Likewise.
32865         * modules/unictype/property-deprecated-tests (Files): Likewise.
32866         * modules/unictype/property-diacritic-tests (Files): Likewise.
32867         * modules/unictype/property-extender-tests (Files): Likewise.
32868         * modules/unictype/property-format-control-tests (Files): Likewise.
32869         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32870         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32871         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32872         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32873         * modules/unictype/property-hyphen-tests (Files): Likewise.
32874         * modules/unictype/property-id-continue-tests (Files): Likewise.
32875         * modules/unictype/property-id-start-tests (Files): Likewise.
32876         * modules/unictype/property-ideographic-tests (Files): Likewise.
32877         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32878         * modules/unictype/property-ids-trinary-operator-tests (Files):
32879         Likewise.
32880         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32881         * modules/unictype/property-iso-control-tests (Files): Likewise.
32882         * modules/unictype/property-join-control-tests (Files): Likewise.
32883         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32884         * modules/unictype/property-line-separator-tests (Files): Likewise.
32885         * modules/unictype/property-logical-order-exception-tests (Files):
32886         Likewise.
32887         * modules/unictype/property-lowercase-tests (Files): Likewise.
32888         * modules/unictype/property-math-tests (Files): Likewise.
32889         * modules/unictype/property-non-break-tests (Files): Likewise.
32890         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32891         * modules/unictype/property-numeric-tests (Files): Likewise.
32892         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32893         * modules/unictype/property-other-default-ignorable-code-point-tests
32894         (Files): Likewise.
32895         * modules/unictype/property-other-grapheme-extend-tests (Files):
32896         Likewise.
32897         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32898         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32899         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32900         * modules/unictype/property-other-math-tests (Files): Likewise.
32901         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32902         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32903         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32904         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32905         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32906         * modules/unictype/property-private-use-tests (Files): Likewise.
32907         * modules/unictype/property-punctuation-tests (Files): Likewise.
32908         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32909         * modules/unictype/property-radical-tests (Files): Likewise.
32910         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32911         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32912         * modules/unictype/property-space-tests (Files): Likewise.
32913         * modules/unictype/property-terminal-punctuation-tests (Files):
32914         Likewise.
32915         * modules/unictype/property-test-tests (Files): Likewise.
32916         * modules/unictype/property-titlecase-tests (Files): Likewise.
32917         * modules/unictype/property-unassigned-code-value-tests (Files):
32918         Likewise.
32919         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32920         * modules/unictype/property-uppercase-tests (Files): Likewise.
32921         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32922         * modules/unictype/property-white-space-tests (Files): Likewise.
32923         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32924         * modules/unictype/property-xid-start-tests (Files): Likewise.
32925         * modules/unictype/property-zero-width-tests (Files): Likewise.
32926         * modules/unictype/scripts-tests (Files): Likewise.
32927         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32928         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32929         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32930         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32931         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32932         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32933         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32934         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32935         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32936         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32937         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32938         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32939         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32940         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32941         * modules/uninorm/composition-tests (Files): Likewise.
32942         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32943         * modules/uninorm/decomposition-tests (Files): Likewise.
32944         * modules/uninorm/filter-tests (Files): Likewise.
32945         * modules/uninorm/nfc-tests (Files): Likewise.
32946         * modules/uninorm/nfd-tests (Files): Likewise.
32947         * modules/uninorm/nfkc-tests (Files): Likewise.
32948         * modules/uninorm/nfkd-tests (Files): Likewise.
32949         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32950         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32951         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32952         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32953         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32954         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32955         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32956         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32957         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32958         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32959         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32960         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32961         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32962         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32963         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32964         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32965         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32966         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32967         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32968         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32969         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32970         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32971         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32972         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32973         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32974         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32975         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32976         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32977         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32978         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32979         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32980         * modules/uniwidth/u8-width-tests (Files): Likewise.
32981         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32982         * modules/uniwidth/u16-width-tests (Files): Likewise.
32983         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32984         * modules/uniwidth/u32-width-tests (Files): Likewise.
32985         * modules/uniwidth/width-tests (Files): Likewise.
32986         * modules/unlink-tests (Files): Likewise.
32987         * modules/unsetenv-tests (Files): Likewise.
32988         * modules/usleep-tests (Files): Likewise.
32989         * modules/utimens-tests (Files): Likewise.
32990         * modules/utimensat-tests (Files): Likewise.
32991         * modules/vasnprintf-posix-tests (Files): Likewise.
32992         * modules/vasnprintf-tests (Files): Likewise.
32993         * modules/vasprintf-posix-tests (Files): Likewise.
32994         * modules/vasprintf-tests (Files): Likewise.
32995         * modules/vdprintf-posix-tests (Files): Likewise.
32996         * modules/vfprintf-posix-tests (Files): Likewise.
32997         * modules/vprintf-posix-tests (Files): Likewise.
32998         * modules/vsnprintf-posix-tests (Files): Likewise.
32999         * modules/vsnprintf-tests (Files): Likewise.
33000         * modules/vsprintf-posix-tests (Files): Likewise.
33001         * modules/wcrtomb-tests (Files): Likewise.
33002         * modules/wcsnrtombs-tests (Files): Likewise.
33003         * modules/wcsrtombs-tests (Files): Likewise.
33004         * modules/wctype-tests (Files): Likewise.
33005         * modules/wcwidth-tests (Files): Likewise.
33006         * modules/xmemdup0-tests (Files): Likewise.
33007         * modules/xprintf-posix-tests (Files): Likewise.
33008         * modules/xvasprintf-tests (Files): Likewise.
33009
33010 2009-12-24  Eric Blake  <ebb9@byu.net>
33011
33012         test-nanosleep: fix typo
33013         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33014         patch.
33015         Reported by Bruno Haible.
33016
33017 2009-12-24  Bruno Haible  <bruno@clisp.org>
33018
33019         Reduce namespace pollution on glibc systems.
33020         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33021         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33022         systems.
33023         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33024         <getopt.h> on glibc systems.
33025         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33026         systems.
33027         * lib/fcntl.c: Include <unistd.h> here instead.
33028
33029 2009-12-24  Bruno Haible  <bruno@clisp.org>
33030
33031         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33032
33033 2009-12-24  Eric Blake  <ebb9@byu.net>
33034
33035         tests: add signature checks
33036         * tests/signature.h (SIGNATURE_CHECK): New file.
33037         * modules/atexit-tests (Files): Use it.
33038         * modules/btowc-tests (Files): Likewise.
33039         * modules/canonicalize-lgpl-tests (Files): Likewise.
33040         * modules/ceilf-tests (Files): Likewise.
33041         * modules/ceill-tests (Files): Likewise.
33042         * modules/chown-tests (Files): Likewise.
33043         * modules/dprintf-posix-tests (Files): Likewise.
33044         * modules/dup2-tests (Files): Likewise.
33045         * modules/dup3-tests (Files): Likewise.
33046         * modules/duplocale-tests (Files): Likewise.
33047         * modules/fchdir-tests (Files): Likewise.
33048         * modules/fcntl-tests (Files): Likewise.
33049         * modules/fdopendir-tests (Files): Likewise.
33050         * modules/fflush-tests (Files): Likewise.
33051         * modules/flock-tests (Files): Likewise.
33052         * modules/floorf-tests (Files): Likewise.
33053         * modules/floorl-tests (Files): Likewise.
33054         * modules/fnmatch-tests (Files): Likewise.
33055         * modules/fopen-tests (Files): Likewise.
33056         * modules/fprintf-posix-tests (Files): Likewise.
33057         * modules/freopen-tests (Files): Likewise.
33058         * modules/frexp-nolibm-tests (Files): Likewise.
33059         * modules/frexp-tests (Files): Likewise.
33060         * modules/frexpl-nolibm-tests (Files): Likewise.
33061         * modules/frexpl-tests (Files): Likewise.
33062         * modules/fseek-tests (Files): Likewise.
33063         * modules/fseeko-tests (Files): Likewise.
33064         * modules/fsync-tests (Files): Likewise.
33065         * modules/ftell-tests (Files): Likewise.
33066         * modules/ftello-tests (Files): Likewise.
33067         * modules/futimens-tests (Files): Likewise.
33068         * modules/getaddrinfo-tests (Files): Likewise.
33069         * modules/getcwd-tests (Files): Likewise.
33070         * modules/getdelim-tests (Files): Likewise.
33071         * modules/getdtablesize-tests (Files): Likewise.
33072         * modules/getgroups-tests (Files): Likewise.
33073         * modules/gethostname-tests (Files): Likewise.
33074         * modules/getline-tests (Files): Likewise.
33075         * modules/getopt-posix-tests (Files): Likewise.
33076         * modules/gettimeofday-tests (Files): Likewise.
33077         * modules/glob-tests (Files): Likewise.
33078         * modules/iconv-tests (Files): Likewise.
33079         * modules/inet_ntop-tests (Files): Likewise.
33080         * modules/inet_pton-tests (Files): Likewise.
33081         * modules/isblank-tests (Files): Likewise.
33082         * modules/lchown-tests (Files): Likewise.
33083         * modules/ldexpl-tests (Files): Likewise.
33084         * modules/link-tests (Files): Likewise.
33085         * modules/linkat-tests (Files): Likewise.
33086         * modules/lseek-tests (Files): Likewise.
33087         * modules/lstat-tests (Files): Likewise.
33088         * modules/mbrtowc-tests (Files): Likewise.
33089         * modules/mbsinit-tests (Files): Likewise.
33090         * modules/mbsnrtowcs-tests (Files): Likewise.
33091         * modules/mbsrtowcs-tests (Files): Likewise.
33092         * modules/memchr-tests (Files): Likewise.
33093         * modules/memcmp-tests (Files): Likewise.
33094         * modules/memmem-tests (Files): Likewise.
33095         * modules/memrchr-tests (Files): Likewise.
33096         * modules/mkdir-tests (Files): Likewise.
33097         * modules/mkfifo-tests (Files): Likewise.
33098         * modules/mkfifoat-tests (Files): Likewise.
33099         * modules/mknod-tests (Files): Likewise.
33100         * modules/nanosleep-tests (Files): Likewise.
33101         * modules/nl_langinfo-tests (Files): Likewise.
33102         * modules/obstack-printf-tests (Files): Likewise.
33103         * modules/open-tests (Files): Likewise.
33104         * modules/openat-tests (Files): Likewise.
33105         * modules/perror-tests (Files): Likewise.
33106         * modules/pipe2-tests (Files): Likewise.
33107         * modules/poll-tests (Files): Likewise.
33108         * modules/popen-tests (Files): Likewise.
33109         * modules/posix_spawn-tests (Files): Likewise.
33110         * modules/posix_spawnp-tests (Files): Likewise.
33111         * modules/pread-tests (Files): Likewise.
33112         * modules/printf-posix-tests (Files): Likewise.
33113         * modules/pty-tests (Files): Likewise.
33114         * modules/random_r-tests (Files): Likewise.
33115         * modules/rawmemchr-tests (Files): Likewise.
33116         * modules/readlink-tests (Files): Likewise.
33117         * modules/remove-tests (Files): Likewise.
33118         * modules/rename-tests (Files): Likewise.
33119         * modules/renameat-tests (Files): Likewise.
33120         * modules/rmdir-tests (Files): Likewise.
33121         * modules/round-tests (Files): Likewise.
33122         * modules/roundf-tests (Files): Likewise.
33123         * modules/roundl-tests (Files): Likewise.
33124         * modules/select-tests (Files): Likewise.
33125         * modules/setenv-tests (Files): Likewise.
33126         * modules/sigaction-tests (Files): Likewise.
33127         * modules/sleep-tests (Files): Likewise.
33128         * modules/snprintf-posix-tests (Files): Likewise.
33129         * modules/snprintf-tests (Files): Likewise.
33130         * modules/sprintf-posix-tests (Files): Likewise.
33131         * modules/stat-tests (Files): Likewise.
33132         * modules/strcasestr-tests (Files): Likewise.
33133         * modules/strchrnul-tests (Files): Likewise.
33134         * modules/strerror-tests (Files): Likewise.
33135         * modules/strsignal-tests (Files): Likewise.
33136         * modules/strstr-tests (Files): Likewise.
33137         * modules/strtod-tests (Files): Likewise.
33138         * modules/strverscmp-tests (Files): Likewise.
33139         * modules/symlink-tests (Files): Likewise.
33140         * modules/symlinkat-tests (Files): Likewise.
33141         * modules/times-tests (Files): Likewise.
33142         * modules/trunc-tests (Files): Likewise.
33143         * modules/truncf-tests (Files): Likewise.
33144         * modules/truncl-tests (Files): Likewise.
33145         * modules/tsearch-tests (Files): Likewise.
33146         * modules/uname-tests (Files): Likewise.
33147         * modules/unlink-tests (Files): Likewise.
33148         * modules/unsetenv-tests (Files): Likewise.
33149         * modules/usleep-tests (Files): Likewise.
33150         * modules/utimensat-tests (Files): Likewise.
33151         * modules/vasprintf-tests (Files): Likewise.
33152         * modules/vdprintf-posix-tests (Files): Likewise.
33153         * modules/vfprintf-posix-tests (Files): Likewise.
33154         * modules/vprintf-posix-tests (Files): Likewise.
33155         * modules/vsnprintf-posix-tests (Files): Likewise.
33156         * modules/vsnprintf-tests (Files): Likewise.
33157         * modules/vsprintf-posix-tests (Files): Likewise.
33158         * modules/wcrtomb-tests (Files): Likewise.
33159         * modules/wcsnrtombs-tests (Files): Likewise.
33160         * modules/wcsrtombs-tests (Files): Likewise.
33161         * modules/wcwidth-tests (Files): Likewise.
33162         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33163         * tests/test-isinf.c (isinf): Likewise.
33164         * tests/test-isnan.c (isnan): Likewise.
33165         * tests/test-signbit.c (signbit): Likewise.
33166         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33167         declaration, either as macro or with correct signature.
33168         (select): Ensure function under test is declared with correct
33169         signature in correct header.
33170         * tests/test-atexit.c (atexit): Likewise.
33171         * tests/test-btowc.c (btowc): Likewise.
33172         * tests/test-canonicalize-lgpl.c (realpath)
33173         (canonicalize_file_name): Likewise.
33174         * tests/test-ceilf1.c (ceilf): Likewise.
33175         * tests/test-ceill.c (ceill): Likewise.
33176         * tests/test-chown.c (chown): Likewise.
33177         * tests/test-dprintf-posix.c (dprintf): Likewise.
33178         * tests/test-dup2.c (dup2): Likewise.
33179         * tests/test-dup3.c (dup3): Likewise.
33180         * tests/test-duplocale.c (duplocale): Likewise.
33181         * tests/test-fchdir.c (fchdir): Likewise.
33182         * tests/test-fchownat.c (fchownat): Likewise.
33183         * tests/test-fcntl.c (fcntl): Likewise.
33184         * tests/test-fdopendir.c (fdopendir): Likewise.
33185         * tests/test-fflush.c (fflush): Likewise.
33186         * tests/test-flock.c (flock): Likewise.
33187         * tests/test-floorf1.c (floorf): Likewise.
33188         * tests/test-floorl.c (floorl): Likewise.
33189         * tests/test-fnmatch.c (fnmatch): Likewise.
33190         * tests/test-fopen.c (fopen): Likewise.
33191         * tests/test-fprintf-posix.c (fprintf): Likewise.
33192         * tests/test-freopen.c (freopen): Likewise.
33193         * tests/test-frexp.c (frexp): Likewise.
33194         * tests/test-frexpl.c (frexpl): Likewise.
33195         * tests/test-fseek.c (fseek): Likewise.
33196         * tests/test-fseeko.c (fseeko): Likewise.
33197         * tests/test-fstatat.c (fstatat): Likewise.
33198         * tests/test-fsync.c (fsync): Likewise.
33199         * tests/test-ftell.c (ftell): Likewise.
33200         * tests/test-ftello.c (ftello): Likewise.
33201         * tests/test-futimens.c (futimens): Likewise.
33202         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33203         (gai_strerror): Likewise.
33204         * tests/test-getcwd.c (getcwd): Likewise.
33205         * tests/test-getdelim.c (getdelim): Likewise.
33206         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33207         * tests/test-getgroups.c (getgroups): Likewise.
33208         * tests/test-gethostname.c (gethostname): Likewise.
33209         * tests/test-getline.c (getline): Likewise.
33210         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33211         Likewise.
33212         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33213         * tests/test-glob.c (glob, globfree): Likewise.
33214         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33215         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33216         * tests/test-inet_pton.c (inet_pton): Likewise.
33217         * tests/test-isblank.c (isblank): Likewise.
33218         * tests/test-lchown.c (lchown): Likewise.
33219         * tests/test-ldexpl.c (ldexpl): Likewise.
33220         * tests/test-link.c (link): Likewise.
33221         * tests/test-linkat.c (linkat): Likewise.
33222         * tests/test-lseek.c (lseek): Likewise.
33223         * tests/test-lstat.c (lstat): Likewise.
33224         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33225         * tests/test-mbsinit.c (mbsinit): Likewise.
33226         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33227         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33228         * tests/test-memchr.c (memchr): Likewise.
33229         * tests/test-memcmp.c (memcmp): Likewise.
33230         * tests/test-memmem.c (memmem): Likewise.
33231         * tests/test-memrchr.c (memrchr): Likewise.
33232         * tests/test-mkdir.c (mkdir): Likewise.
33233         * tests/test-mkdirat.c (mkdirat): Likewise.
33234         * tests/test-mkfifo.c (mkfifo): Likewise.
33235         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33236         * tests/test-mknod.c (mknod): Likewise.
33237         * tests/test-nanosleep.c (nanosleep): Likewise.
33238         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33239         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33240         Likewise.
33241         * tests/test-open.c (open): Likewise.
33242         * tests/test-openat.c (openat): Likewise.
33243         * tests/test-perror.c (perror): Likewise.
33244         * tests/test-pipe2.c (pipe2): Likewise.
33245         * tests/test-poll.c (poll): Likewise.
33246         * tests/test-popen.c (popen, pclose): Likewise.
33247         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33248         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33249         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33250         (posix_spawn_file_actions_destroy)
33251         (posix_spawn_file_actions_addclose)
33252         (posix_spawn_file_actions_addopen)
33253         (posix_spawn_file_actions_adddup2): Likewise.
33254         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33255         * tests/test-pread.c (pread): Likewise.
33256         * tests/test-printf-posix.c (printf): Likewise.
33257         * tests/test-pty.c (openpty, forkpty): Likewise.
33258         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33259         (random_r): Likewise.
33260         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33261         * tests/test-readlink.c (readlink): Likewise.
33262         * tests/test-remove.c (remove): Likewise.
33263         * tests/test-rename.c (rename): Likewise.
33264         * tests/test-renameat.c (renameat): Likewise.
33265         * tests/test-rmdir.c (rmdir): Likewise.
33266         * tests/test-round1.c (round): Likewise.
33267         * tests/test-roundf1.c (roundf): Likewise.
33268         * tests/test-roundl.c (roundl): Likewise.
33269         * tests/test-setenv.c (setenv): Likewise.
33270         * tests/test-sigaction.c (sigaction): Likewise.
33271         * tests/test-sleep.c (sleep): Likewise.
33272         * tests/test-snprintf.c (snprintf): Likewise.
33273         * tests/test-sprintf-posix.c (sprintf): Likewise.
33274         * tests/test-stat.c (stat): Likewise.
33275         * tests/test-stpncpy.c (stpncpy): Likewise.
33276         * tests/test-strcasestr.c (strcasestr): Likewise.
33277         * tests/test-strchrnul.c (strchrnul): Likewise.
33278         * tests/test-strerror.c (strerror): Likewise.
33279         * tests/test-strsignal.c (strsignal): Likewise.
33280         * tests/test-strstr.c (strstr): Likewise.
33281         * tests/test-strtod.c (strtod): Likewise.
33282         * tests/test-strverscmp.c (strverscmp): Likewise.
33283         * tests/test-symlink.c (symlink): Likewise.
33284         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33285         * tests/test-times.c (times): Likewise.
33286         * tests/test-trunc1.c (trunc): Likewise.
33287         * tests/test-truncf1.c (truncf): Likewise.
33288         * tests/test-truncl.c (truncl): Likewise.
33289         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33290         Likewise.
33291         * tests/test-uname.c (uname): Likewise.
33292         * tests/test-unlink.c (unlink): Likewise.
33293         * tests/test-unlinkat.c (unlinkat): Likewise.
33294         * tests/test-unsetenv.c (unsetenv): Likewise.
33295         * tests/test-usleep.c (usleep): Likewise.
33296         * tests/test-utimensat.c (utimensat): Likewise.
33297         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33298         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33299         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33300         * tests/test-vprintf-posix.c (vprintf): Likewise.
33301         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33302         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33303         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33304         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33305         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33306         * tests/test-wcwidth.c (wcwidth): Likewise.
33307
33308         build: pull in conditional headers during GNULIB_POSIXCHECK
33309         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33310         definitions from any conditionally-included headers.
33311         * lib/stdlib.in.h (includes): Likewise.
33312         * lib/unistd.in.h (includes): Likewise.
33313
33314 2009-12-24  Bruno Haible  <bruno@clisp.org>
33315
33316         * tests/test-argv-iter.c: Include header file being tested immediately
33317         after config.h.
33318         * tests/test-base64.c: Likewise.
33319         * tests/test-flock.c: Likewise.
33320         * tests/test-fsync.c: Likewise.
33321         * tests/test-getdate.c: Likewise.
33322         * tests/test-getndelim2.c: Likewise.
33323         * tests/test-isfinite.c: Likewise.
33324         * tests/test-isinf.c: Likewise.
33325         * tests/test-strerror.c: Likewise.
33326         * tests/test-strsignal.c: Likewise.
33327
33328 2009-12-23  Eric Blake  <ebb9@byu.net>
33329
33330         unistd: work around cygwin bug
33331         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33332         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33333         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33334
33335 2009-12-23  Bruno Haible  <bruno@clisp.org>
33336
33337         localename: More tests.
33338         * tests/test-localename.c (SIZEOF): New macro.
33339         (categories): New variable.
33340         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33341         test_locale_name_default): Add test w.r.t. thread locale.
33342         (test_locale_name_thread): New function.
33343         (main): Invoke it.
33344
33345         localename: Make aware of thread locale.
33346         * lib/localename.h (gl_locale_name_thread): New declaration.
33347         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33348         behaviour with respect to thread locale.
33349         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33350         <langinfo.h>, glthread/lock.h.
33351         (SIZE_BITS): New macro.
33352         (string_hash): New function.
33353         (struct hash_node): New type.
33354         (HASH_TABLE_SIZE): New macro.
33355         (struniq_hash_table, struniq_lock): New variables.
33356         (struniq): New function.
33357         (gl_locale_name_thread): New function.
33358         (gl_locale_name): Invoke it.
33359         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33360         * modules/localename (Depends-on): Add lock.
33361         Reported by Mike Gran <spk121@yahoo.com>.
33362
33363 2009-12-23  Eric Blake  <ebb9@byu.net>
33364
33365         va-args: new module
33366         * modules/va-args: New file.
33367         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33368         * MODULES.html.sh (Core language properties): Mention it.
33369
33370         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33371         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33372         named alias for __attribute__((__unused__)).
33373         * lib/chown.c: Update client.
33374         * lib/fchmodat.c: Likewise.
33375         * lib/fts.c: Likewise.
33376         * lib/getdate.y: Likewise.
33377         * lib/getgroups.c: Likewise.
33378         * lib/getopt.c: Likewise.
33379         * lib/getugroups.c: Likewise.
33380         * lib/mkdir.c: Likewise.
33381         * lib/mkfifo.c: Likewise.
33382         * lib/mkfifoat.c: Likewise.
33383         * lib/mknod.c: Likewise.
33384         * lib/mknodat.c: Likewise.
33385         * lib/readlink.c: Likewise.
33386         * lib/se-context.in.h: Likewise.
33387         * lib/se-selinux.in.h: Likewise.
33388         * lib/sockets.c: Likewise.
33389         * lib/symlink.c: Likewise.
33390         * lib/symlinkat.c: Likewise.
33391         * lib/unicodeio.c: Likewise.
33392         * lib/unistr.h: Likewise.
33393         * tests/test-areadlink.c: Likewise.
33394         * tests/test-areadlinkat.c: Likewise.
33395         * tests/test-filenamecat.c: Likewise.
33396         * tests/test-fseeko.c: Likewise.
33397         * tests/test-ftello.c: Likewise.
33398         * tests/test-getdate.c: Likewise.
33399         * tests/test-getgroups.c: Likewise.
33400         * tests/test-gethostname.c: Likewise.
33401         * tests/test-quotearg.c: Likewise.
33402         * tests/test-version-etc.c: Likewise.
33403         * tests/test-xalloc-die.c: Likewise.
33404         * tests/test-xfprintf-posix.c: Likewise.
33405         * tests/test-xprintf-posix.c: Likewise.
33406         * tests/test-xvasprintf.c: Likewise.
33407
33408         tests: avoid compiler warnings
33409         * tests/test-fcntl.c (main): Delete unused parameters.
33410         * tests/test-freopen-safer.c (main): Likewise.
33411         * tests/test-xalloc-die.c (main): Mark unused parameters.
33412         * tests/test-fseeko.c (main): Likewise.
33413         * tests/test-ftello.c (main): Likewise.
33414         * tests/test-nanosleep.c (main): Avoid declaration warning.
33415         * tests/test-sleep.c (main): Likewise.
33416         * tests/test-unsetenv.c (main): Silence warning about string
33417         literal.
33418         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33419
33420 2009-12-23  Bruno Haible  <bruno@clisp.org>
33421
33422         * tests/test-localename.c (test_locale_name): New function, extracted
33423         from main. Also test mixed situations.
33424         (test_locale_name_posix, test_locale_name_environ,
33425         test_locale_name_default): New functions.
33426         (main): Invoke them all.
33427         * modules/localename-tests (configure.ac): Test for newlocale.
33428
33429 2009-12-23  Bruno Haible  <bruno@clisp.org>
33430
33431         unistd: Ensure getcwd gets declared before being overridden.
33432         * lib/unistd.in.h: Conditionally include <io.h>.
33433
33434 2009-12-22  Bruno Haible  <bruno@clisp.org>
33435
33436         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33437         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33438         (gl_WCHAR_H): Invoke it.
33439         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33440         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33441         Reported by Karl Berry <karl@freefriends.org>.
33442
33443 2009-12-22  Eric Blake  <ebb9@byu.net>
33444
33445         math, unistd: avoid redundant includes
33446         * lib/math.in.h (isnan): No need to re-include <math.h>.
33447         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33448
33449         getsubopt: work around cygwin bug
33450         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33451         avoid conflicting with system getsubopt.
33452         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33453         bug.
33454
33455         getopt: synchronize from glibc
33456         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33457         parameter order.  Adjust all callers.
33458         (_getopt_internal_r, main): Adjust quoting in error messages.
33459         Drop considerations for outdated POSIX 1003.2 error message.
33460         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33461         callers.
33462         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33463
33464         test-getopt: test stderr behavior
33465         * modules/getopt-posix-tests (Depends-on): Add dup2.
33466         * tests/test-getopt.c (ASSERT): Avoid stderr.
33467         (main): Move stderr to a temporary file.
33468         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33469         Instead, add parameter to inform caller if output occurred.
33470         (test_getopt): Adjust all existing tests to expect silence, and
33471         add new tests of leading ":".
33472         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33473         glibc shortcomings with leading "-:" or "+:" in optstring.
33474         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33475         Likewise.
33476         * doc/posix-functions/getopt.texi (getopt): Likewise.
33477
33478         test-getopt: enhance test
33479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33480         supports optind=0.
33481         * tests/test-getopt.c (OPTIND_MIN): Move...
33482         * tests/test-getopt.h (OPTIND_MIN): ...here.
33483         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33484         Require that optind=0 works, since modern BSD supports it in
33485         addition to optreset, and since coreutils expects it.
33486         (test_getopt_long_only): New test.
33487         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33488         glibc shortcomings with 'W;', and enforcement of optind=0.
33489         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33490         Likewise.
33491
33492 2009-12-21  Bruno Haible  <bruno@clisp.org>
33493
33494         localename: Improvements for MacOS X and Cygwin.
33495         * lib/localename.h (gl_locale_name_environ): New declaration.
33496         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33497         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33498         (gl_locale_name_posix): Invoke it.
33499         (gl_locale_name_default): Add comments. Use Windows native API also on
33500         Cygwin.
33501
33502 2009-12-21  Bruno Haible  <bruno@clisp.org>
33503
33504         Update list of Win32 locale ids.
33505         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33506         (LANG_SAMI): Renamed from LANG_SAAMI.
33507         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33508         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33509         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33510         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33511         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33512         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33513         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33514         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33515         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33516         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33517         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33518         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33519         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33520         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33521         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33522         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33523         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33524         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33525         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33526         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33527         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33528         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33529         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33530         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33531         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33532         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33533         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33534         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33535         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33536         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33537         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33538         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33539         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33540         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33541         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33542         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33543         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33544         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33545         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33546         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33547         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33548         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33549         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33550         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33551         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33552         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33553         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33554         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33555         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33556         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33557         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33558         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33559         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33560         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33561         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33562         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33563         Add more languages and countries for Sami, Sorbian. Add more countries
33564         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33565         for Pashto. Change country for Syriac, Tswana.
33566
33567 2009-12-21  Eric Blake  <ebb9@byu.net>
33568
33569         test-utimens: avoid spurious failure
33570         * tests/test-chown.h (nap): Factor...
33571         * tests/nap.h: ...into new file.
33572         * tests/test-lchown.h (nap): Avoid duplication.
33573         * tests/test-utimens-common.h (nap): Use shared implementation,
33574         necessary on file systems with 1-second resolution.
33575         * modules/chown-tests (Files): Include new file.
33576         * modules/fdutimensat-tests (Files): Likewise.
33577         * modules/futimens-tests (Files): Likewise.
33578         * modules/lchown-tests (Files): Likewise.
33579         * modules/openat-tests (Files): Likewise.
33580         * modules/utimens-tests (Files): Likewise.
33581         * modules/utimensat-tests (Files): Likewise.
33582
33583 2009-12-19  Eric Blake  <ebb9@byu.net>
33584
33585         futimens, utimensat: work around Linux bug
33586         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33587         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33588         * lib/utimensat.c (rpl_utimensat): Work around it.
33589         * lib/futimens.c (rpl_futimens): Adjust comment.
33590
33591         utimens: work around Linux ctime bug
33592         * lib/utimens.c (detect_ctime_bug): New helper function.
33593         (update_timespec): Differentiate between workaround needed for
33594         this bug vs. what is needed for systems that lack utimensat.
33595         (fdutimens, lutimens): Work around bug.
33596
33597         utimens: check for ctime update
33598         * tests/test-utimens-common.h (check_ctime): Define.
33599         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33600         * tests/test-futimens.h (test_futimens): Likewise.
33601         * tests/test-lutimens.h (test_lutimens): Likewise.
33602         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33603         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33604
33605 2009-12-19  Bruno Haible  <bruno@clisp.org>
33606
33607         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33608         * tests/test-dprintf-posix2.sh: New file.
33609         * tests/test-dprintf-posix2.c: New file.
33610         * modules/dprintf-posix-tests (Files): Add them.
33611         (configure.ac): Check for getrlimit and setrlimit.
33612         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33613
33614 2009-12-19  Bruno Haible  <bruno@clisp.org>
33615
33616         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33617         * tests/test-fprintf-posix3.sh: New file.
33618         * tests/test-fprintf-posix3.c: New file.
33619         * modules/fprintf-posix-tests (Files): Add them.
33620         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33621
33622 2009-12-19  Eric Blake  <ebb9@byu.net>
33623
33624         dirfd: fix prototype
33625         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33626         * lib/dirfd.c (dirfd): Likewise.
33627
33628         canonicalize: reduce memory usage
33629         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33630         allocation to size.
33631         Reported by Solar Designer <solar@openwall.com>.
33632
33633 2009-12-19  Bruno Haible  <bruno@clisp.org>
33634
33635         New module attribute 'Applicability'.
33636         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33637         * gnulib-tool: New option --extract-applicability.
33638         (func_usage): Document it.
33639         (sed_extract_prog): Recognize it.
33640         (func_get_applicability): New function.
33641         (func_import): Generalize handling of 'link-warning' module.
33642         * modules/link-warning (Applicability): New section.
33643         * modules/arg-nonnull (Applicability): New section.
33644         Repoted by Simon Josefsson <simon@josefsson.org>.
33645
33646 2009-12-19  Bruno Haible  <bruno@clisp.org>
33647
33648         fflush: tweak
33649         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33650         * lib/fseeko.c (rpl_fseeko): Likewise.
33651
33652 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33653
33654         * lib/gl_list.h: Fix typo in comment.
33655
33656 2009-12-16  Eric Blake  <ebb9@byu.net>
33657
33658         fcntl: use to simplify other modules
33659         * modules/cloexec (Depends-on): Add fcntl.
33660         * modules/fchdir (Depends-on): Likewise.
33661         * modules/fd-safer-flag (Depends-on): Likewise.
33662         * modules/unistd-safer (Depends-on): Likewise.
33663         * modules/dup3 (configure.ac): Set module indicator.
33664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33665         missing.
33666         * lib/fchdir.c (_gl_register_dup): Fix comment.
33667         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33668         * lib/dup-safer.c (dup_safer): Likewise.
33669         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33670         * lib/dup3.c (dup3): Likewise.
33671         * tests/test-fchdir.c (main): Enhance test.
33672         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33673
33674         fcntl: port portions of fcntl to mingw
33675         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33676         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33677         replacement for mingw.
33678         * modules/fcntl (Description): Update.
33679         (Depends-on): Add dup2.
33680         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33681         * modules/fcntl-h (Makefile.am): Substitute it.
33682         * lib/fcntl.in.h (fcntl): Update declaration.
33683         (F_DUPFD, F_GETFD): New macros, when needed.
33684         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33685         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33686         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33687         we now guarantee.
33688
33689         fcntl: work around cygwin bug in F_DUPFD
33690         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33691         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33692         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33693         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33694         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33695
33696         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33697         * modules/fcntl (Files): List new files.
33698         (configure.ac): Run a test.
33699         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
33700         * lib/fcntl.c (rpl_fcntl): Likewise.
33701         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
33702         (gl_FCNTL_H): Always replace fcntl.h.
33703         * modules/fcntl-h (Makefile.am): Substitute witnesses.
33704         * lib/fcntl.in.h (fcntl): Declare replacement.
33705         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
33706         needed, plus a witness.
33707         * doc/posix-functions/fcntl.texi (fcntl): Document this.
33708         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33709         * tests/test-fcntl.c: New file.
33710         * modules/fcntl-tests: Likewise.
33711
33712         binary-io: avoid potential compilation warning
33713         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
33714         directives.
33715
33716         fflush: avoid compilation error on NetBSD
33717         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
33718         between off_t and fpos_t, since the latter is sometimes a struct.
33719         * lib/fseeko.c (rpl_fseeko): Likewise.
33720         Reported by Alexander Nasonov <alnsn@yandex.ru>.
33721
33722 2009-12-15  Eric Blake  <ebb9@byu.net>
33723
33724         fcntl-h, stdio, sys_ioctl: fix declarations
33725         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
33726         function must not take arguments.
33727         * lib/sys_ioctl.in.h (ioctl): Likewise.
33728         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
33729         (open): Add a link warning.
33730
33731 2009-12-15  Jim Meyering  <meyering@redhat.com>
33732
33733         areadlink, areadlink-with-size: relax license to LGPLv2+
33734         * modules/areadlink (License): Relax to LGPLv2+.
33735         * modules/areadlink-with-size (License): Likewise.
33736
33737 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
33738             Bruno Haible  <bruno@clisp.org>
33739
33740         *printf: Fix memory leak.
33741         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
33742         * lib/vfprintf.c (vfprintf): Likewise.
33743         * lib/dprintf.c (dprintf): Likewise.
33744         * lib/vdprintf.c (vdprintf): Likewise.
33745
33746 2009-12-14  Eric Blake  <ebb9@byu.net>
33747
33748         accept4: adjust module dependencies
33749         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
33750
33751         utimens: one more try at avoiding compiler warning
33752         * lib/utimens.c (lutimens): Lower scope of result.
33753
33754 2009-12-13  Bruno Haible  <bruno@clisp.org>
33755
33756         Move the malloc checking from module 'list' to new module 'xlist'.
33757         * modules/xlist: New file.
33758         * lib/gl_xlist.h: New file.
33759         * lib/gl_xlist.c: New file.
33760         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33761         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33762         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33763         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33764         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33765         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33766         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33767         gl_sortedlist_nx_add): New declarations.
33768         (struct gl_list_implementation): Rename and change methods accordingly.
33769         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
33770         (gl_list_nx_create): Renamed from gl_list_create.
33771         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33772         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33773         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33774         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33775         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33776         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33777         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33778         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33779         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33780         gl_list_create_empty.
33781         (gl_list_nx_create): Renamed from gl_list_create.
33782         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33783         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33784         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33785         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33786         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33787         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33788         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33789         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33790         * lib/gl_array_list.c: Don't include xalloc.h.
33791         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33792         NULL upon out-of-memory.
33793         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33794         out-of-memory.
33795         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33796         Change return type to 'int'.
33797         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33798         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33799         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33800         upon out-of-memory.
33801         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33802         upon out-of-memory.
33803         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33804         upon out-of-memory.
33805         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33806         upon out-of-memory.
33807         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33808         out-of-memory.
33809         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33810         Update.
33811         (gl_array_list_implementation): Update.
33812         * lib/gl_carray_list.c: Don't include xalloc.h.
33813         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33814         Return NULL upon out-of-memory.
33815         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33816         out-of-memory.
33817         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33818         Change return type to 'int'.
33819         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33820         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33821         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33822         upon out-of-memory.
33823         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33824         upon out-of-memory.
33825         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33826         out-of-memory.
33827         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33828         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33829         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33830         Update.
33831         (gl_carray_list_implementation): Update.
33832         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33833         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33834         gl_linked_create_empty. Return NULL upon out-of-memory.
33835         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33836         out-of-memory.
33837         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33838         Change return type to 'int'. Return -1 upon out-of-memory.
33839         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33840         out-of-memory.
33841         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33842         upon out-of-memory.
33843         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33844         upon out-of-memory.
33845         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33846         NULL upon out-of-memory.
33847         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33848         upon out-of-memory.
33849         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33850         out-of-memory.
33851         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33852         Update.
33853         * lib/gl_linked_list.c: Don't include xalloc.h.
33854         (gl_linked_list_implementation): Update.
33855         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33856         (add_to_bucket): Change return type to 'int'.
33857         (gl_linkedhash_list_implementation): Update.
33858         * lib/gl_anytree_list1.h (free_subtree): New function.
33859         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33860         gl_tree_create_empty. Return NULL upon out-of-memory.
33861         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33862         Change return type to 'int'. Return -1 upon out-of-memory.
33863         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33864         out-of-memory.
33865         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33866         (gl_tree_remove_node): New function, moved here from
33867         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33868         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33869         Update.
33870         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33871         malloc, not xmalloc. Return NULL upon out-of-memory.
33872         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33873         out-of-memory.
33874         (gl_tree_remove_node_from_tree): New function, extracted from
33875         gl_tree_remove_node.
33876         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33877         upon out-of-memory.
33878         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33879         out-of-memory.
33880         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33881         upon out-of-memory.
33882         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33883         upon out-of-memory.
33884         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33885         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33886         not xmalloc. Return NULL upon out-of-memory.
33887         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33888         out-of-memory.
33889         (gl_tree_remove_node_from_tree): New function, extracted from
33890         gl_tree_remove_node.
33891         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33892         upon out-of-memory.
33893         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33894         out-of-memory.
33895         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33896         upon out-of-memory.
33897         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33898         upon out-of-memory.
33899         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33900         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33901         gl_anytree_list1.h before gl_anyavltree_list2.h.
33902         (gl_avltree_list_implementation): Update.
33903         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33904         gl_anytree_list1.h before gl_anyavltree_list2.h.
33905         (gl_rbtree_list_implementation): Update.
33906         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33907         Change return type to 'int'. Return -1 upon out-of-memory. Use
33908         __builtin_expect.
33909         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33910         (gl_avltreehash_list_implementation): Update.
33911         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33912         (gl_rbtreehash_list_implementation): Update.
33913         * modules/array-list (Depends-on): Remove xalloc.
33914         * modules/carray-list (Depends-on): Likewise.
33915         * modules/linked-list (Depends-on): Likewise.
33916         * modules/linkedhash-list (Depends-on): Likewise.
33917         * modules/avltree-list (Depends-on): Likewise.
33918         * modules/rbtree-list (Depends-on): Likewise.
33919         * modules/avltreehash-list (Depends-on): Likewise.
33920         * modules/rbtreehash-list (Depends-on): Likewise.
33921
33922         * modules/xsublist: New file.
33923         * lib/gl_xsublist.h: New file.
33924         * lib/gl_xsublist.c: New file.
33925         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33926         (gl_sublist_nx_create): New declaration.
33927         * lib/gl_sublist.c: Don't include xalloc.h.
33928         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33929         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33930         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33931         Change return type to 'int'. Return -1 upon out-of-memory.
33932         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33933         upon out-of-memory.
33934         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33935         NULL upon out-of-memory.
33936         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33937         upon out-of-memory.
33938         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33939         NULL upon out-of-memory.
33940         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33941         NULL upon out-of-memory.
33942         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33943         upon out-of-memory.
33944         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33945         (gl_sublist_list_implementation): Update.
33946         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33947         upon out-of-memory.
33948         * modules/sublist (Depends-on): Remove xalloc.
33949
33950         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33951         * tests/test-carray_list.c: Likewise.
33952         * tests/test-linked_list.c: Likewise.
33953         * tests/test-linkedhash_list.c: Likewise.
33954         * tests/test-avltree_list.c: Likewise.
33955         * tests/test-rbtree_list.c: Likewise.
33956         * tests/test-avltreehash_list.c: Likewise.
33957         * tests/test-rbtreehash_list.c: Likewise.
33958         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33959         * modules/carray-list-tests (Makefile.am): Likewise.
33960         * modules/linked-list-tests (Makefile.am): Likewise.
33961         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33962         * modules/avltree-list-tests (Makefile.am): Likewise.
33963         * modules/rbtree-list-tests (Makefile.am): Likewise.
33964         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33965         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33966
33967         * NEWS: Mention the changes.
33968
33969         * lib/clean-temp.c: Include gl_xlist.h.
33970         * modules/clean-temp (Depends-on): Add xlist.
33971
33972         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33973         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33974
33975         * tests/test-array_oset.c: Include gl_xlist.h.
33976         * modules/array-oset-tests (Depends-on): Add xlist.
33977
33978         Reported by José E. Marchesi <jemarch@gnu.org>.
33979
33980 2009-12-13  Bruno Haible  <bruno@clisp.org>
33981
33982         Move the malloc checking from module 'oset' to new module 'xoset'.
33983         * modules/xoset: New file.
33984         * lib/gl_xoset.h: New file.
33985         * lib/gl_xoset.c: New file.
33986         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33987         declarations.
33988         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33989         (struct gl_oset_implementation): Rename and change methods accordingly.
33990         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33991         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33992         'int'. Mark as __warn_unused_result__.
33993         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33994         gl_oset_create_empty.
33995         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33996         'int'.
33997         * lib/gl_array_oset.c: Don't include xalloc.h.
33998         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33999         malloc, not xmalloc.
34000         (grow): Change return type to 'int'. Don't call xalloc_die.
34001         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34002         to 'int'.
34003         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34004         'int'.
34005         (gl_array_oset_implementation): Update.
34006         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34007         gl_tree_create_empty.
34008         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34009         'int'.
34010         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34011         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34012         xmalloc.
34013         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34014         not xmalloc.
34015         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34016         xmalloc.
34017         (gl_avltree_oset_implementation): Update.
34018         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34019         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34020         xmalloc.
34021         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34022         not xmalloc.
34023         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34024         xmalloc.
34025         (gl_rbtree_oset_implementation): Update.
34026         * modules/array-oset (Depends-on): Remove xalloc.
34027         * modules/avltree-oset (Depends-on): Likewise.
34028         * modules/rbtree-oset (Depends-on): Likewise.
34029         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34030         * tests/test-avltree_oset.c: Likewise.
34031         * tests/test-rbtree_oset.c: Likewise.
34032         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34033         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34034         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34035         * NEWS: Mention the change.
34036
34037 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34038
34039         maint.mk: allow a project to override release-prep commands
34040         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34041         commands into a new rule.
34042         (release-prep): New rule.
34043         (release-prep-hook): New overridable variable.
34044
34045 2009-12-13  Bruno Haible  <bruno@clisp.org>
34046
34047         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34048
34049 2009-12-13  Jim Meyering  <meyering@redhat.com>
34050
34051         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34052         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34053
34054 2009-12-12  Bruno Haible  <bruno@clisp.org>
34055
34056         duplocale: Tweak.
34057         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34058
34059 2009-12-12  Karl Berry  <karl@gnu.org>
34060
34061         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34062
34063 2009-12-12  Bruno Haible  <bruno@clisp.org>
34064
34065         * m4/po.m4: Undo incorrect untabification.
34066
34067 2009-12-12  Bruno Haible  <bruno@clisp.org>
34068
34069         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34070         * modules/c-strtod (Depends-on): Add locale.
34071         * modules/c-strtold (Depends-on): Likewise.
34072
34073 2009-12-12  Bruno Haible  <bruno@clisp.org>
34074
34075         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34076
34077 2009-12-11  Eric Blake  <ebb9@byu.net>
34078
34079         setenv: relax requirement in light of POSIX ruling
34080         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34081         not NULL.
34082         * tests/test-setenv.c (main): Relax test.
34083         * tests/test-unsetenv.c (main): Likewise.
34084         * doc/posix-functions/setenv.texi (setenv): Document this.
34085         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34086
34087 2009-12-11  Bruno Haible  <bruno@clisp.org>
34088
34089         New module 'fd-safer-flag'.
34090         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34091         * lib/dup-safer.c (dup_safer_flag): Remove function.
34092         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34093         * lib/fd-safer.c (fd_safer_flag): Remove function.
34094         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34095         * modules/cloexec (configure.ac): Drop indicator macro.
34096         * modules/fd-safer-flag: New file.
34097         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34098         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34099         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34100
34101 2009-12-11  Bruno Haible  <bruno@clisp.org>
34102
34103         Tests for module 'nl_langinfo'.
34104         * modules/nl_langinfo-tests: New file.
34105         * tests/test-nl_langinfo.sh: New file.
34106         * tests/test-nl_langinfo.c: New file.
34107
34108         New module 'nl_langinfo'.
34109         * lib/nl_langinfo.c: New file.
34110         * m4/nl_langinfo.m4: New file.
34111         * modules/nl_langinfo: New file.
34112         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34113
34114 2009-12-11  Bruno Haible  <bruno@clisp.org>
34115
34116         Tests for module 'langinfo'.
34117         * modules/langinfo-tests: New file.
34118         * tests/test-langinfo.c: New file.
34119
34120         New module 'langinfo'.
34121         * lib/langinfo.in.h: New file.
34122         * m4/langinfo_h.m4: New file.
34123         * modules/langinfo: New file.
34124         * doc/posix-headers/langinfo.texi: Mention the new module.
34125
34126 2009-12-11  Bruno Haible  <bruno@clisp.org>
34127
34128         * lib/config.charset: Untabify.
34129
34130 2009-12-11  Bruno Haible  <bruno@clisp.org>
34131
34132         * modules/unistd-safer (configure.ac): Drop indicator macro.
34133
34134 2009-12-11  Bruno Haible  <bruno@clisp.org>
34135
34136         Move pipe2-safer code to its own file.
34137         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34138         * lib/pipe-safer.c (pipe2_safer): Remove function.
34139         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34140         (Makefile.am): Add it to lib_SOURCES.
34141
34142 2009-12-10  Bruno Haible  <bruno@clisp.org>
34143
34144         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34145
34146 2009-12-10  Bruno Haible  <bruno@clisp.org>
34147
34148         Declare which arguments expect non-NULL values, for GCC and clang.
34149         * build-aux/arg-nonnull.h: New file.
34150         * modules/arg-nonnull: New file.
34151         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34152         (inet_ntop, inet_pton): Use it.
34153         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34154         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34155         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34156         (open, openat): Use it.
34157         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34158         (fnmatch): Use it.
34159         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34160         (getopt, getopt_long, getopt_long_only): Use it.
34161         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34162         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34163         Use it.
34164         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34165         (iconv_open): Use it.
34166         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34167         (strtoimax, strtoumax): Use it.
34168         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34169         (duplocale): Use it.
34170         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34171         (frexp, frexpl): Use it.
34172         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34173         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34174         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34175         (tsearch, tfind, tdelete, twalk): Use it.
34176         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34177         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34178         sigpending): Use it.
34179         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34180         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34181         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34182         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34183         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34184         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34185         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34186         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34187         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34188         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34189         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34190         Use it.
34191         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34192         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34193         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34194         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34195         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34196         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34197         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34198         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34199         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34200         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34201         strtoull, unsetenv): Use it.
34202         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34203         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34204         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34205         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34206         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34207         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34208         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34209         (strcasecmp, strncasecmp): Use it.
34210         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34211         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34212         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34213         rpl_setsockopt): Use it.
34214         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34215         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34216         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34217         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34218         (gettimeofday): Use it.
34219         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34220         (times): Use it.
34221         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34222         (uname): Use it.
34223         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34224         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34225         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34226         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34227         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34228         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34229         unlinkat, write): Use it.
34230         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34231         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34232         * lib/argv-iter.h: Include arg-nonnull.h.
34233         (_ATTRIBUTE_NONNULL_): Remove macro.
34234         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34235         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34236         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34237         optimization.
34238         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34239         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34240         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34241         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34242         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34243         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34244         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34245         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34246         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34247         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34248         * modules/dirent (Depends-on): Add arg-nonnull.
34249         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34250         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34251         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34252         * modules/fnmatch (Depends-on): Add arg-nonnull.
34253         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34254         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34255         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34256         * modules/glob (Depends-on): Add arg-nonnull.
34257         (Makefile.am): Insert arg-nonnull.h into glob.h.
34258         * modules/iconv_open (Depends-on): Add arg-nonnull.
34259         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34260         * modules/inttypes (Depends-on): Add arg-nonnull.
34261         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34262         * modules/locale (Depends-on): Add arg-nonnull.
34263         (Makefile.am): Insert arg-nonnull.h into locale.h.
34264         * modules/math (Depends-on): Add arg-nonnull.
34265         (Makefile.am): Insert arg-nonnull.h into math.h.
34266         * modules/netdb (Depends-on): Add arg-nonnull.
34267         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34268         * modules/search (Depends-on): Add arg-nonnull.
34269         (Makefile.am): Insert arg-nonnull.h into search.h.
34270         * modules/signal (Depends-on): Add arg-nonnull.
34271         (Makefile.am): Insert arg-nonnull.h into signal.h.
34272         * modules/spawn (Depends-on): Add arg-nonnull.
34273         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34274         * modules/stdio (Depends-on): Add arg-nonnull.
34275         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34276         * modules/stdlib (Depends-on): Add arg-nonnull.
34277         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34278         * modules/string (Depends-on): Add arg-nonnull.
34279         (Makefile.am): Insert arg-nonnull.h into string.h.
34280         * modules/strings (Depends-on): Add arg-nonnull.
34281         (Makefile.am): Insert arg-nonnull.h into strings.h.
34282         * modules/sys_socket (Depends-on): Add arg-nonnull.
34283         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34284         * modules/sys_stat (Depends-on): Add arg-nonnull.
34285         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34286         * modules/sys_time (Depends-on): Add arg-nonnull.
34287         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34288         * modules/sys_times (Depends-on): Add arg-nonnull.
34289         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34290         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34291         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34292         * modules/time (Depends-on): Add arg-nonnull.
34293         (Makefile.am): Insert arg-nonnull.h into time.h.
34294         * modules/unistd (Depends-on): Add arg-nonnull.
34295         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34296         * modules/wchar (Depends-on): Add arg-nonnull.
34297         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34298         * modules/argv-iter (Depends-on): Add arg-nonnull.
34299         * tests/test-canonicalize.c (null_ptr): New function.
34300         (main): Use it.
34301         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34302         (main): Use it.
34303         * tests/test-memmem.c (null_ptr): New function.
34304         (main): Use it.
34305         Reported by Jim Meyering.
34306
34307 2009-12-10  Bruno Haible  <bruno@clisp.org>
34308
34309         Use spaces for indentation, not tabs.
34310         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34311         * m4/*.m4: Untabify.
34312         * build-aux/*.h: Untabify.
34313         * tests/**/*.[hc]: Untabify.
34314         * README: New section "Indent with spaces, not TABs", based on
34315         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34316         * NEWS: Mention the change.
34317
34318 2009-12-10  Bruno Haible  <bruno@clisp.org>
34319
34320         pty test: Fix link error.
34321         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34322         test_pty_LDADD.
34323
34324 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34325
34326         * modules/pty: New file.
34327         * modules/pty-tests: New file.
34328         * m4/pty.m4: New file.
34329         * tests/test-pty.c: New file.
34330         * doc/glibc-headers/pty.texi: Modified.
34331         * doc/glibc-functions/forkpty.texi: Modified.
34332         * doc/glibc-functions/openpty.texi: Modified.
34333
34334 2009-12-10  Bruno Haible  <bruno@clisp.org>
34335
34336         Avoid syntax error in C++ mode.
34337         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34338
34339 2009-12-10  Bruno Haible  <bruno@clisp.org>
34340
34341         Use sed with option -e.
34342         * gnulib-tool (func_version, func_emit_copyright_notice,
34343         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34344         option -e to sed.
34345         * modules/link-warning (Makefile.am): Likewise.
34346
34347 2009-12-10  Jim Meyering  <meyering@redhat.com>
34348
34349         mgetgroups: do not write bytes beyond end of malloc'd buffer
34350         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34351         username, we call getgroups with a one-element-shorter buffer,
34352         but still told it the length was original, max_n_groups.
34353
34354 2009-12-09  Eric Blake  <ebb9@byu.net>
34355
34356         cloexec: relax license
34357         * modules/cloexec (Maintainer): Add myself.
34358         (License): Use LGPL, not GPL.
34359
34360         link-warning: optimize generation
34361         * modules/link-warning (Makefile.am): Reduce process usage.
34362
34363 2009-12-09  Bruno Haible  <bruno@clisp.org>
34364
34365         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34366         workaround was added on 2009-11-17.
34367
34368 2009-12-09  Jim Meyering  <meyering@redhat.com>
34369             Bruno Haible  <bruno@clisp.org>
34370
34371         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34372         * modules/link-warning (Makefile.am): Make the comment-removing sed
34373         command more robust in the face of bootstrap-prepended comment lines.
34374
34375 2009-12-09  Bruno Haible  <bruno@clisp.org>
34376
34377         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34378         most one group.
34379
34380 2009-12-09  Simon Josefsson <simon@josefsson.org>
34381             Bruno Haible  <bruno@clisp.org>
34382
34383         * build-aux/link-warning.h: Add copyright notice.
34384         * modules/link-warning (Makefile.am): Generate link-warning.h from
34385         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34386         * NEWS: Mention change in link-warning module.
34387         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34388         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34389         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34390         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34391         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34392         * modules/math (Makefile.am): Add dependency to math.h.
34393         * modules/search (Makefile.am): Add dependency to search.h.
34394         * modules/signal (Makefile.am): Add dependency to signal.h.
34395         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34396         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34397         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34398         * modules/string (Makefile.am): Add dependency to string.h.
34399         * modules/strings (Makefile.am): Add dependency to strings.h.
34400         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34401         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34402         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34403         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34404         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34405         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34406         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34407         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34408         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34409
34410 2009-12-09  Bruno Haible  <bruno@clisp.org>
34411
34412         fchdir: Optimize away rpl_fstat when possible.
34413         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34414         REPLACE_OPEN_DIRECTORY.
34415         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34416
34417 2009-12-09  Bruno Haible  <bruno@clisp.org>
34418
34419         * lib/fchdir.c: Update comment.
34420
34421 2009-12-09  Bruno Haible  <bruno@clisp.org>
34422
34423         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34424
34425 2009-12-08  Eric Blake  <ebb9@byu.net>
34426
34427         fchdir: avoid memory leak on re-registration.
34428         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34429
34430 2009-12-08  Jim Meyering  <meyering@redhat.com>
34431
34432         init.sh: avoid Solaris 10 /bin/sh portability problem
34433         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34434         sourced script:
34435           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34436           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34437           bar
34438         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34439         and two tests used that idiom.
34440         * tests/init.sh: Update suggested usage comments.
34441         (path_prepend_): New function, to be used in place
34442         of the --src-path=DIR option.
34443         (setup_): Move PATH-prepending code into path_prepend_.
34444         * tests/test-pread.sh: Adapt to new usage.
34445         * tests/test-xalloc-die.sh: Likewise.
34446
34447 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34448
34449         * doc/gnulib.texi (Glibc pty.h): Add.
34450         * doc/glibc-functions/forkpty.texi: Add.
34451         * doc/glibc-functions/openpty.texi: Add.
34452         Suggested by Bruno Haible.
34453
34454 2009-12-08  Eric Blake  <ebb9@byu.net>
34455
34456         fchdir: fix logic bugs
34457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34458         * tests/test-fchdir.c (main): Enhance test.
34459         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34460         is in use.
34461
34462         dup2: fix logic bugs
34463         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34464         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34465         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34466         exists.
34467         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34468
34469 2009-12-07  Eric Blake  <ebb9@byu.net>
34470
34471         unlink: fix m4 detection
34472         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34473
34474         unistd-safer: add unit test
34475         * modules/unistd-safer-tests: New file.
34476         * tests/test-dup-safer.c: Likewise.
34477         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34478         * tests/test-dup2.c (setmode): Likewise.
34479         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34480
34481         cloexec: preserve text vs. binary across dup_cloexec
34482         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34483         mode.
34484         * modules/dup2-tests (Depends-on): Add binary-io.
34485         * modules/cloexec-tests (Depends-on): Likewise.
34486         * tests/test-dup2.c (setmode, is_mode): New helpers.
34487         (main): Add tests that translation mode is preserved.
34488         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34489         Reported by Bruno Haible.
34490
34491         mgetgroups: reduce duplicate listings
34492         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34493         resulting array.
34494         * tests/test-chown.h (test_chown): Simplify client.
34495         * tests/test-lchown.h (test_lchown): Likewise.
34496
34497 2009-12-06  Bruno Haible  <bruno@clisp.org>
34498
34499         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34500         value.
34501
34502 2009-12-06  Bruno Haible  <bruno@clisp.org>
34503
34504         * lib/progname.c: Include stdio.h, stdlib.h.
34505         (set_program_name): Reject a NULL argument.
34506
34507 2009-12-05  Eric Blake  <ebb9@byu.net>
34508
34509         pipe2-safer: new module
34510         * modules/pipe2-safer: New file.
34511         * lib/unistd-safer.h (pipe2_safer): New prototype.
34512         * lib/unistd--.h (pipe2): New wrapper.
34513         * lib/pipe-safer.c (pipe2_safer): New function.
34514         * modules/pipe (Depends-on): Add pipe2-safer.
34515         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34516
34517         stdlib-safer: preserve cloexec flag for mkostemp[s]
34518         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34519         fd_safer_flag.
34520
34521         unistd-safer: allow preservation of cloexec status via flag
34522         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34523         prototypes.
34524         * lib/dup-safer.c (dup_safer_flag): New function.
34525         * lib/fd-safer.c (fd_safer_flag): Likewise.
34526         * modules/cloexec (configure.ac): Set witness.
34527
34528         test-dup2: enhance test
34529         * modules/dup2-tests (Depends-on): Add cloexec.
34530         * tests/test-dup2.c (main): Enhance test.
34531
34532         cloexec: add dup_cloexec
34533         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34534         header and comments.
34535         * lib/cloexec.c (set_cloexec_flag): Add comments.
34536         (dup_cloexec): New function, with mingw implementation borrowed
34537         from...
34538         * lib/w32spawn.h (dup_noinherit): ...here.
34539         * modules/execute (Depends-on): Add cloexec.
34540         * modules/pipe (Depends-on): Likewise.
34541         * modules/cloexec (Depends-on): Add dup2.
34542         * modules/cloexec-tests (Files): New file.
34543         * tests/test-cloexec.c: Likewise.
34544
34545         test-xalloc-die: fix test for mingw
34546         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34547         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34548         directory and .exe suffix off argv[0] output.
34549
34550         test-fseeko: fix test for mingw
34551         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34552         than undefining fseek, so test will pass on mingw.
34553
34554 2009-12-05  Bruno Haible  <bruno@clisp.org>
34555
34556         * lib/progname.h (set_program_name): Clarify specification.
34557         * lib/progname.c (set_program_name): Likewise.
34558         Reported by Jim Meyering.
34559
34560 2009-12-05  Jim Meyering  <meyering@redhat.com>
34561
34562         maint.mk: backslash-escape parens in default regexp
34563         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34564         backslash-escape the literal parentheses.
34565
34566         maint.mk: news-date-check: use grep -E
34567         * top/maint.mk (today): Define a Make variable, not a...
34568         (news-date-check): ...shell variable.
34569         (news-date-regexp): Use the Make variable.
34570         Use grep's -E option.  Change the failing diagnostic to mention
34571         the variable, $(news-date-regexp).
34572
34573 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34574
34575         maintainer-makefile: allow customization of NEWS entry format
34576         * top/maint.mk (news-date-regexp): New overridable variable.
34577         (news-date-check): Use it.
34578
34579 2009-12-04  Eric Blake  <ebb9@byu.net>
34580
34581         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34582         * lib/mgetgroups.h (xgetgroups): New prototype.
34583         * lib/mgetgroups.c (xgetgroups): New wrapper.
34584         (mgetgroups): Handle ENOSYS.
34585         * modules/mgetgroups (Depends-on): Add realloc.
34586         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34587
34588         mgetgroups: avoid argument promotion issues with -1
34589         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34590         for invalid gid_t.
34591         * tests/test-chown.h (getegid, test_chown): Likewise.
34592         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34593
34594 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34595
34596         exclude: Fix header file problems.
34597         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34598
34599 2009-12-01  Jim Meyering  <meyering@redhat.com>
34600
34601         fts: fts_open: do not let an empty string cause immediate failure
34602         This is required in support of GNU rm, for which the command
34603         "rm A '' B" must process and remove both A and B, in spite of
34604         the empty string argument.
34605         * lib/fts.c (fts_open): Do not let the presence of an empty string
34606         cause fts_open to fail immediately.  Most fts-using tools must be
34607         able to process all arguments, in order, and can be expected to
34608         diagnose such arguments themselves.
34609
34610 2009-11-30  Eric Blake  <ebb9@byu.net>
34611
34612         utimens: fix compilation error
34613         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34614         Declare variable at right scope.
34615
34616 2009-11-29  Jim Meyering  <meyering@redhat.com>
34617
34618         bootstrap: handle perl-5.11's changed --version output
34619         * build-aux/bootstrap (get_version): Handle perl separately,
34620         since perl-5.11's --version output is different.
34621
34622 2009-11-28  Jim Meyering  <meyering@redhat.com>
34623
34624         userspec: depend on the inttostr module, too
34625         * modules/userspec (Depends-on): Add inttostr.
34626
34627         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34628         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34629         number of MAXUID when it evaluates to (uid_t) -1.
34630         Likewise for group ID.  Reported by Matt McCutchen in
34631         <http://savannah.gnu.org/bugs/?28113>
34632
34633         userspec: reformat to use spaces, not TABs
34634         * lib/userspec.c: Expand TABs to spaces.
34635         Add Emacs' "indent-tabs-mode: nil" hint.
34636
34637 2009-11-27  Eric Blake  <ebb9@byu.net>
34638
34639         getopt-gnu: flush out another BSD bug
34640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34641         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34642         flush out BSD bug.
34643         * tests/test-getopt.h (test_getopt): End lists with NULL.
34644         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34645         (test_getopt_long_posix): Enhance test.
34646         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34647         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34648         getopt-gnu.
34649         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34650         Likewise.
34651
34652 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34653
34654         * modules/idpriv-droptemp-tests (Notice): Fix text.
34655
34656 2009-11-27  Jim Meyering  <meyering@redhat.com>
34657
34658         test-xalloc-die: avoid spurious failure due to libtool argv difference
34659         In a libtool-enabled project, this test would fail due to a difference
34660         in the emitted program name, e.g.,
34661         -test-xalloc-die: memory exhausted
34662         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34663         Use program to avoid that.
34664         * modules/xalloc-die-tests (Depends-on): Add progname.
34665         * tests/test-xalloc-die.c: Include progname.h".
34666         (program_name): Remove decl.
34667         (main): Call set_program_name.
34668         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34669
34670 2009-11-26  Richard Jones  <rjones@redhat.com>
34671
34672         w32sock: leave win32 error in place.
34673         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34674
34675 2009-11-26  Eric Blake  <ebb9@byu.net>
34676
34677         init.sh: suggest to use skip_ and fail_ functions in comments
34678         * tests/init.sh: Add a sentence.
34679
34680 2009-11-25  Bruno Haible  <bruno@clisp.org>
34681
34682         init.sh: add documentation in comments
34683         * tests/init.sh: Add some developer and user documentation.
34684
34685 2009-11-26  Jim Meyering  <meyering@redhat.com>
34686
34687         init.sh: accommodate even those who specify bogus srcdir manually
34688         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34689         configure-time tests to be sanitized, so that there is no need to
34690         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34691         (with no double quotes) suffices.  However, since tests may be
34692         invoked manually, and since you may explicitly set srcdir to the
34693         name of a directory containing spaces, do quote its uses here.
34694         * tests/test-pread.sh: Likewise.
34695         Suggested by Bruno Haible.
34696
34697         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
34698         * tests/test-pread.sh: Write no data into the pipe, because
34699         test-pread actually reads none.  This avoids a diagnostic,
34700         "bash: echo: write error: Broken pipe", that arises in the unusual
34701         event something is ignoring SIGPIPE, and might be interpreted
34702         as some sort of failure.  Reported by Bruno Haible.
34703
34704 2009-11-25  Jim Meyering  <meyering@redhat.com>
34705
34706         test-pread: cover failure with ESPIPE and EINVAL
34707         * tests/test-pread.c (main): Test for failure, too.
34708         * tests/test-pread.sh: Invoke with stdin on a pipe.
34709         Suggested by Eric Blake.
34710
34711         pread: improvement and fix
34712         * modules/pread (Depends-on): Depend on lseek, for portability to
34713         e.g., mingw.  Suggested by Eric Blake.
34714         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
34715
34716         unistd.in.h: correct declaration of pread
34717         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
34718         Reported by Richard W.M. Jones.
34719
34720         test-pread.sh: distribute the test script
34721         * modules/pread-tests (Files): Include test-pread.sh.
34722
34723         test-pread.sh: clean up
34724         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
34725         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
34726         That is unnecessary, since it's always ".".
34727         Suggestion from Eric Blake.
34728
34729         test-pread.sh: make executable
34730         * tests/test-pread.sh: Set executable bit.
34731         Reported by Eric Blake.
34732
34733         correct typo in test-pread.sh
34734         * tests/test-pread.sh: Add #! line.
34735
34736         test pread
34737         * tests/test-pread.c: New file.
34738         * tests/test-pread.sh: Likewise.
34739         * modules/pread-tests: Likewise.
34740
34741         pread: new module
34742         * modules/pread: New file.
34743         * lib/unistd.in.h (pread): Define/declare.
34744         * lib/pread.c (pread): New file.
34745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
34746         * modules/unistd (Makefile.am): Substitute witnesses.
34747         * doc/posix-functions/pread.texi (pread): Update.
34748         * MODULES.html.sh: Add pread.
34749
34750 2009-11-25  Jim Meyering  <meyering@redhat.com>
34751
34752         tests/init.sh: new file to be used via most *.sh tests
34753         * tests/init.sh: New file.
34754
34755 2009-11-25  Eric Blake  <ebb9@byu.net>
34756
34757         utimens: work around older Linux failure with symlinks
34758         * lib/utimens.c (lutimensat_works_really): New variable.
34759         (fdutimens, lutimens): Use it to manage kernels that support
34760         nanosecond times on files, but not on symlinks.
34761         Reported by OndÅ™ej Vašík.
34762
34763         utimes: fix configure grammar
34764         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34765
34766 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34767
34768         regex: Fix fastmap for multibyte character ranges.
34769         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
34770         characters when a multibyte character range is included.
34771
34772 2009-11-22  Andy Wingo  <wingo@pobox.com>
34773
34774         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
34775         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
34776
34777 2009-11-24  Bruno Haible  <bruno@clisp.org>
34778
34779         doc: Most *_l functions exist in MacOS X 10.5.
34780         * doc/posix-functions/duplocale.texi: Update platforms list.
34781         * doc/posix-functions/freelocale.texi: Likewise.
34782         * doc/posix-functions/newlocale.texi: Likewise.
34783         * doc/posix-functions/uselocale.texi: Likewise.
34784         * doc/posix-functions/isalnum_l.texi: Likewise.
34785         * doc/posix-functions/isalpha_l.texi: Likewise.
34786         * doc/posix-functions/isblank_l.texi: Likewise.
34787         * doc/posix-functions/iscntrl_l.texi: Likewise.
34788         * doc/posix-functions/isdigit_l.texi: Likewise.
34789         * doc/posix-functions/isgraph_l.texi: Likewise.
34790         * doc/posix-functions/islower_l.texi: Likewise.
34791         * doc/posix-functions/isprint_l.texi: Likewise.
34792         * doc/posix-functions/ispunct_l.texi: Likewise.
34793         * doc/posix-functions/isspace_l.texi: Likewise.
34794         * doc/posix-functions/isupper_l.texi: Likewise.
34795         * doc/posix-functions/iswalnum_l.texi: Likewise.
34796         * doc/posix-functions/iswalpha_l.texi: Likewise.
34797         * doc/posix-functions/iswblank_l.texi: Likewise.
34798         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34799         * doc/posix-functions/iswctype_l.texi: Likewise.
34800         * doc/posix-functions/iswdigit_l.texi: Likewise.
34801         * doc/posix-functions/iswgraph_l.texi: Likewise.
34802         * doc/posix-functions/iswlower_l.texi: Likewise.
34803         * doc/posix-functions/iswprint_l.texi: Likewise.
34804         * doc/posix-functions/iswpunct_l.texi: Likewise.
34805         * doc/posix-functions/iswspace_l.texi: Likewise.
34806         * doc/posix-functions/iswupper_l.texi: Likewise.
34807         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34808         * doc/posix-functions/isxdigit_l.texi: Likewise.
34809         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34810         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34811         * doc/posix-functions/strcoll_l.texi: Likewise.
34812         * doc/posix-functions/strfmon_l.texi: Likewise.
34813         * doc/posix-functions/strftime_l.texi: Likewise.
34814         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34815         * doc/posix-functions/strxfrm_l.texi: Likewise.
34816         * doc/posix-functions/tolower_l.texi: Likewise.
34817         * doc/posix-functions/toupper_l.texi: Likewise.
34818         * doc/posix-functions/towctrans_l.texi: Likewise.
34819         * doc/posix-functions/towlower_l.texi: Likewise.
34820         * doc/posix-functions/towupper_l.texi: Likewise.
34821         * doc/posix-functions/wcscoll_l.texi: Likewise.
34822         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34823         * doc/posix-functions/wctrans_l.texi: Likewise.
34824         * doc/posix-functions/wctype_l.texi: Likewise.
34825         * doc/glibc-functions/strptime_l.texi: Likewise.
34826         * doc/glibc-functions/strtod_l.texi: Likewise.
34827         * doc/glibc-functions/strtof_l.texi: Likewise.
34828         * doc/glibc-functions/strtol_l.texi: Likewise.
34829         * doc/glibc-functions/strtold_l.texi: Likewise.
34830         * doc/glibc-functions/strtoll_l.texi: Likewise.
34831         * doc/glibc-functions/strtoul_l.texi: Likewise.
34832         * doc/glibc-functions/strtoull_l.texi: Likewise.
34833         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34834         * doc/glibc-functions/wcstod_l.texi: Likewise.
34835         * doc/glibc-functions/wcstof_l.texi: Likewise.
34836         * doc/glibc-functions/wcstol_l.texi: Likewise.
34837         * doc/glibc-functions/wcstold_l.texi: Likewise.
34838         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34839         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34840         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34841
34842 2009-11-24  Bruno Haible  <bruno@clisp.org>
34843
34844         duplocale: Fix logic bug.
34845         * lib/duplocale.c: Don't include <langinfo.h>.
34846         (_NL_LOCALE_NAME): Remove macro.
34847         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34848         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34849
34850 2009-11-23  Jim Meyering  <meyering@redhat.com>
34851
34852         test-update-copyright: don't hard-code /usr/bin/perl
34853         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34854         perl to print the current year.  Gilles Espinasse reported that
34855         the replaced use of perl was hard-coded as /usr/bin/perl.
34856
34857 2009-11-23  Bruno Haible  <bruno@clisp.org>
34858
34859         duplocale: Add support for glibc 2.3.x.
34860         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34861
34862 2009-11-22  Bruno Haible  <bruno@clisp.org>
34863
34864         vasnprintf: Tiny optimization.
34865         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34866         MacOS X.
34867
34868 2009-11-22  Bruno Haible  <bruno@clisp.org>
34869
34870         Tests for module 'duplocale'.
34871         * modules/duplocale-tests: New file.
34872         * tests/test-duplocale.c: New file.
34873
34874         New module 'duplocale'.
34875         * m4/duplocale.m4: New file.
34876         * lib/locale.in.h (duplocale): New declaration.
34877         * lib/duplocale.c: New file.
34878         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34879         gl_LOCALE_H_DEFAULTS): New macros.
34880         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34881         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34882         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34883         REPLACE_DUPLOCALE.
34884         * modules/duplocale: New file.
34885         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34886
34887 2009-11-22  Bruno Haible  <bruno@clisp.org>
34888
34889         * modules/locale-tests (configure.ac): Test for newlocale function.
34890         * tests/test-locale.c: When the system has extended locale functions,
34891         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34892
34893         locale: Make locale_t available when possible.
34894         * lib/locale.in.h: Include <xlocale.h> when it exists.
34895         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34896         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34897         * modules/locale (Depends-on): Add extensions.
34898         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34899         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34900
34901 2009-11-22  Bruno Haible  <bruno@clisp.org>
34902
34903         Add comments.
34904         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34905         invocation.
34906         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34907         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34908         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34909
34910 2009-11-22  Bruno Haible  <bruno@clisp.org>
34911
34912         error: account for the possibility of freopen (stdout).
34913         * lib/error.c: Include <unistd.h>.
34914         (flush_stdout): New function, extracted from error and error_at_line.
34915         Determine stdout's fd dynamically.
34916         (error, error_at_line): Invoke flush_stdout.
34917         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34918         * modules/error (Depends-on): Add unistd.
34919
34920 2009-11-22  Bruno Haible  <bruno@clisp.org>
34921
34922         diffseq: Add comment.
34923         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34924
34925 2009-11-22  Jim Meyering  <meyering@redhat.com>
34926
34927         c-stack: avoid defining an unused static function
34928         * lib/c-stack.c (find_stack_direction): Do not define this function
34929         when it will not be used.
34930
34931         diffseq: avoid spurious gcc warnings
34932         * lib/diffseq.h (IF_LINT2): Define.
34933         (compareseq): Use it to initialize two members of "part".
34934         This avoids two used-uninitialized warnings.
34935
34936 2009-11-21  Jim Meyering  <meyering@redhat.com>
34937
34938         c-stack: avoid "ignoring return value of `write'" warning
34939         * lib/c-stack.c: Include "ignore-value.h".
34940         (die): Explicitly ignore each write return value.
34941         * modules/c-stack (Depends-on): Add ignore-value.
34942
34943 2009-11-21  Bruno Haible  <bruno@clisp.org>
34944
34945         diffseq: reduce scope of variable 'best'.
34946         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34947         variable, earlier used for two different purposes.
34948
34949 2009-11-21  Jim Meyering  <meyering@redhat.com>
34950
34951         diffseq: remove useless assignment to "best"
34952         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34953         assignment.  At that point "best" is already guaranteed to be zero.
34954
34955 2009-11-20  Eric Blake  <ebb9@byu.net>
34956
34957         build: mention ftp redirector in release announcements
34958         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34959         values that used to come from cfg.mk; mention FTP redirect URL.
34960         * build-aux/announce-gen: Mention the mirror list.
34961         Suggested by Karl Berry.
34962
34963         nanosleep: improve port to mingw
34964         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34966         LIB_NANOSLEEP, but only when needed.
34967         * modules/select (Link): Document LIBSOCKET.
34968         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34969         enough.
34970
34971         nanosleep: work around cygwin bug
34972         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34973         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34974         bug.
34975         (getnow): Delete, not needed.
34976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34977         LIB_CLOCK_GETTIME.
34978         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34979         clock-time, gettime.
34980         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34981         bug.
34982         * modules/nanosleep-tests: New test.
34983         * tests/test-nanosleep.c: New file.
34984
34985         sleep: work around cygwin bug
34986         * lib/sleep.c (rpl_sleep): Work around the bug.
34987         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34988         (gl_PREREQ_SLEEP): Delete unused macro.
34989         * modules/sleep (Depends-on): Add verify.
34990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34991         * modules/unistd (Makefile.am): Substitute witness.
34992         * lib/unistd.in.h (sleep): Update prototype.
34993         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34994         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34995         * modules/sleep-tests (Depends-on): Check for alarm.
34996
34997 2009-11-20  Jim Meyering  <meyering@redhat.com>
34998
34999         maint.mk: improve sc_prohibit_magic_number_exit
35000         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35001         so it does not match uses like System.exit(1).
35002         Add comments showing how to correct all offenders.
35003
35004 2009-11-19  Eric Blake  <ebb9@byu.net>
35005
35006         xalloc-die-tests: add missing library
35007         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35008
35009         test-xvasprintf: silence compiler warnings
35010         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35011         empty string from gcc.
35012
35013 2009-11-19  Jim Meyering  <meyering@redhat.com>
35014
35015         xfreopen: new module, from coreutils
35016         * modules/xfreopen: New module.
35017         * lib/xfreopen.c: New file.
35018         * lib/xfreopen.h: New file.
35019         * MODULES.html.sh (File stream based Input/Output"): Add it.
35020
35021 2009-11-19  Eric Blake  <ebb9@byu.net>
35022
35023         manywarnings: depend on warnings
35024         * modules/manywarnings (Depends-on): Add warnings.
35025
35026         build: avoid compiler warnings
35027         * lib/select.c (rpl_select): Delete unused variable.
35028         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35029
35030 2009-11-18  Eric Blake  <ebb9@byu.net>
35031
35032         tests: avoid false negative with --with-packager
35033         * tests/test-version-etc.sh: Discard packager information.
35034         * tests/test-argp-version-etc-1.sh: Likewise.
35035         Reported by Mike Frysinger.
35036
35037         utimens: fix regression on Solaris
35038         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35039         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35040         can only change fd timestamps via futimesat.  Instead, use an
35041         additional witness macro to avoid BSD bug.
35042         Reported by Jim Meyering.
35043
35044 2009-11-17  Eric Blake  <ebb9@byu.net>
35045
35046         usleep: use it to simplify tests
35047         * modules/stat-time-tests (Depends-on): Add usleep.
35048         (configure.ac): Drop usleep check.
35049         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35050         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35051         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35052         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35053         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35054         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35055         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35056         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35057         Likewise.
35058         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35059         * tests/test-lchown.h (nap): Likewise.
35060         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35061         * tests/test-stat-time.c (nap): Likewise.
35062         * tests/test-utimens-common.h (nap): Update comments.
35063
35064         usleep: new module
35065         * modules/usleep: New file.
35066         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35067         * lib/usleep.c (usleep): Likewise.
35068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35069         * modules/unistd (Makefile.am): Substitute witnesses.
35070         * lib/unistd.in.h (usleep): Add declaration.
35071         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35072         * MODULES.html.sh (Date and time): Likewise.
35073         * modules/usleep-tests (Depends-on): New test.
35074         * tests/test-usleep.c: New file.
35075
35076         chown: work around OpenBSD bug
35077         * lib/chown.c (rpl_chown): Work around the bug.
35078         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35079         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35080         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35081         * modules/chown (Depends-on): Add stdbool.
35082         * modules/lchown (Depends-on): Likewise.
35083         * doc/posix-functions/chown.texi (chown): Document the bug.
35084         * doc/posix-functions/lchown.texi (lchown): Likewise.
35085         * tests/test-lchown.h (test_chown): Relax test.
35086
35087         mkstemp: avoid conflict with C++ keyword template
35088         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35089         * lib/mkostemp.c (mkostemp): Likewise.
35090         * lib/mkostemps.c (mkostemps): Likewise.
35091         * lib/mkstemp.c (mkstemp): Likewise.
35092         * lib/mkstemps.c (mkstemps): Likewise.
35093
35094         xalloc-die-tests: optimize
35095         * tests/test-xalloc-die.sh: Reduce number of processes.
35096
35097 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35098
35099         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35100         patch from ludo@gnu.org (Ludovic Courtès).
35101
35102 2009-11-17  Jim Meyering  <meyering@redhat.com>
35103
35104         version-etc: use proper license string
35105         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35106         * modules/version-etc-fsf: Likewise.
35107
35108 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35109
35110         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35111         printed to stdout.  Deal with EOL differences.
35112
35113 2009-11-17  Eric Blake  <ebb9@byu.net>
35114
35115         unsetenv: work around Solaris bug
35116         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35117         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35118         Reported by Jim Meyering.
35119
35120         vasnprintf: avoid compiler warnings
35121         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35122         variables.
35123         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35124
35125 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35126
35127         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35128         settings since xalloc-die is no longer the self test,
35129         xalloc-die.sh is.
35130
35131 2009-11-17  Jim Meyering  <meyering@redhat.com>
35132
35133         test-xalloc-die.sh: make the code agree with the commit log
35134         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35135         at the end, just in case you happen to have a test-xalloc-die
35136         program in some other PATH directory.
35137
35138         test-xalloc-die.sh: fix a portability bug
35139         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35140         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35141         Otherwise, argv[0] (as often seen in diagnostics) would be too
35142         system-dependent, sometimes with, and sometimes without the leading "./".
35143
35144         version-etc-fsf: relax license to LGPLv3+
35145         * modules/version-etc-fsf (License): Relax license.
35146
35147 2009-11-16  Eric Blake  <ebb9@byu.net>
35148
35149         xalloc-die-tests: avoid printing null pointer
35150         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35151         shell script.
35152         * tests/test-xalloc-die.c (program_name): Declare.
35153         * tests/test-xalloc-die.sh (tmpfiles): New file.
35154
35155         setenv, unsetenv: work around various bugs
35156         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35157         (setenv) [HAVE_SETENV]: Work around bugs.
35158         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35159         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35160         for bugs.
35161         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35162         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35164         * modules/stdlib (Makefile.am): Update substitutions.
35165         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35166         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35167         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35168         * modules/setenv-tests: New test.
35169         * modules/unsetenv-tests: Likewise.
35170         * tests/test-setenv.c: New file.
35171         * tests/test-unsetenv.c: Likewise.
35172
35173 2009-11-16  Jim Meyering  <meyering@redhat.com>
35174
35175         version-etc: relax license to LGPLv3+
35176         * modules/version-etc (License): Relax license.
35177
35178         better AC_REQUIRE expanded-before-required-warning avoidance
35179         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35180         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35181         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35182         which is no longer needed.
35183
35184 2009-11-16  Eric Blake  <ebb9@byu.net>
35185
35186         test-freading: clean up temporary file
35187         * tests/test-freading.c (main): Remove file on success, and use
35188         ASSERT more liberally.
35189         Reported by Jim Meyering.
35190
35191 2009-11-16  Jim Meyering  <meyering@redhat.com>
35192
35193         avoid new AC_REQUIRE expanded-before-required warnings
35194         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35195         merely using it.
35196         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35197         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35198
35199 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35200
35201         * tests/test-xalloc-die.c: New file.
35202         * modules/xalloc-die-tests: New file.
35203         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35204         XFAIL_TESTS so it can be appended by modules.
35205
35206 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35207
35208         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35209         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35210
35211 2009-11-14  Eric Blake  <ebb9@byu.net>
35212
35213         fnmatch: avoid compiler warning
35214         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35215         to silence compiler warning about mismatch signedness in ?:.
35216         Reported by Robert Millan.
35217
35218         intprops: add double-inclusion guard
35219         * lib/intprops.h: Allow idempotent includes.
35220         Suggested by Bruce Korb.
35221
35222         openat: detect Solaris fchownat bug
35223         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35224         penalizing glibc chownat when only lchownat is broken.
35225         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35226         trailing slash bugs.
35227         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35228         * modules/openat-tests (Files): Include more files.
35229         (Depends-on): Add mgetgroups, sleep, stat-time.
35230         (configure.ac): Add additional checks.
35231         (Makefile.am): Build new test.
35232         * tests/test-fchownat.c: New file.
35233
35234         lchown: detect Solaris and FreeBSD bug
35235         * lib/lchown.c (rpl_lchown): Work around bug.
35236         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35238         * modules/unistd (Makefile.am): Populate it.
35239         * lib/unistd.in.h (lchown): Update declaration.
35240         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35241         * modules/lchown-tests: New file.
35242         * tests/test-lchown.h (test_lchown): Likewise.
35243         * tests/test-lchown.c (main): Likewise.
35244
35245         chown: detect Solaris and FreeBSD bug
35246         * lib/chown.c (rpl_chown): Work around bug.
35247         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35248         (gl_PREREQ_CHOWN): Delete.
35249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35250         * modules/unistd (Makefile.am): Populate it.
35251         * lib/unistd.in.h (chown): Update declaration.
35252         * lib/lchown.c (chown): Update client.
35253         * modules/lchown (Depends-on): Add lstat.
35254         * doc/posix-functions/chown.texi (chown): Document the bug.
35255         * doc/posix-functions/getgroups.texi (getgroups): Document
35256         getgroups pitfall.
35257         * modules/chown-tests: New file.
35258         * tests/test-chown.h (test_chown): Likewise.
35259         * tests/test-chown.c (main): Likewise.
35260
35261 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35262
35263         gnulib-tool: correctly detect absence of m4 directories
35264         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35265
35266 2009-11-14  Jim Meyering  <meyering@redhat.com>
35267
35268         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35269         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35270
35271 2009-11-14  John W. Eaton  <jwe@gnu.org>
35272
35273         strftime.h: wrap funtion declaration in extern "C" block
35274         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35275
35276 2009-11-13  Eric Blake  <ebb9@byu.net>
35277
35278         getgroups: avoid compiler warning
35279         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35280
35281         getgroups: work around FreeBSD bug
35282         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35283         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35284         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35285         * tests/test-getgroups.c (main): Fix buffer overrun.
35286
35287         getgroups: avoid compilation failure
35288         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35289         * modules/getgroups (Depends-on): Add stdint.
35290
35291 2009-11-13  Jim Meyering  <meyering@redhat.com>
35292
35293         test-getgroups: avoid compilation failure
35294         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35295
35296 2009-11-13  Eric Blake  <ebb9@byu.net>
35297
35298         mgetgroups: new module, taken from coreutils
35299         * modules/mgetgroups: New file.
35300         * lib/mgetgroups.h: Likewise.
35301         * lib/mgetgroups.c (mgetgroups): Likewise.
35302         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35303         * MODULES.html.sh (Users and groups): Mention it.
35304
35305         getgroups: don't expose GETGROUPS_T to user
35306         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35307         an element at a time if GETGROUPS_T is wrong size.
35308         * lib/getugroups.h (getugroups): Change signature.
35309         * lib/unistd.in.h (getgroups): Likewise.
35310         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35311         signature needs fixing.
35312         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35313         AC_TYPE_GETGROUPS.
35314         * modules/group-member (Depends-on): Add getgroups.
35315         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35316         (group_member): Rely on getgroups replacement.
35317         * lib/getugroups.c (getugroups): Use gid_t.
35318         * tests/test-getgroups.c (main): Likewise.
35319         * NEWS: Mention the signature change.
35320         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35321         problem with signature.
35322         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35323         GETGROUPS_T is still useful for setgroups.
35324
35325         getgroups, getugroups: provide stubs for mingw
35326         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35327         * lib/getugroups.c (getugroups): Likewise.
35328         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35329         function.  Modernize replacement scheme.
35330         (gl_PREREQ_GETGROUPS): Delete.
35331         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35332         * modules/getgroups (configure.ac): Declare witness.
35333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35334         * modules/unistd (Depends-on): Substitute witness.
35335         * lib/unistd.in.h (getgroups): Declare replacement.
35336
35337         getgroups: avoid calling exit
35338         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35339         drop xalloc.
35340         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35341         dependencies.
35342         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35343         exiting, in the rare case of malloc failure.
35344
35345         getgroups: fix logic error
35346         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35347         has more than 20 groups.
35348         * modules/getgroups-tests: New test.
35349         * tests/test-getgroups.c: New file.
35350
35351 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35352
35353         * tests/test-base64.c: Improve.
35354
35355 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35356
35357         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35358         Blake <ebb9@byu.net>.
35359
35360 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35361
35362         * tests/test-xvasprintf.c: Add %s%s related checks.
35363
35364 2009-11-12  Eric Blake  <ebb9@byu.net>
35365
35366         version-etc: match standards.texi style
35367         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35368         and use <> only for URLs.
35369
35370 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35371
35372         fts: do not fail on a submount during traversal
35373         * lib/fts.c (fts_build): Read the stat info again after opening
35374         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35375         Original report at http://bugzilla.redhat.com/501848.
35376
35377 2009-11-12  Jim Meyering  <meyering@redhat.com>
35378
35379         bootstrap: sync from coreutils
35380         * build-aux/bootstrap (bootstrap_epilogue): New function.
35381         Use git_modules_config in one more place.  This make bootstrap's
35382         --gnulib-srcdir option more useful for testing.
35383
35384         bootstrap: generalize autoheader check
35385         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35386         AC_CONFIG_HEADERS.
35387
35388 2009-11-11  Eric Blake  <ebb9@byu.net>
35389
35390         mkfifoat: use new modules for Solaris and BSD bugs
35391         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35392         * lib/mkfifoat.c (mknodat): Split...
35393         * lib/mknodat.c (mknodat): ...into new file.
35394         * modules/mkfifoat (Files): Ship new file.
35395         (Depends-on): Add mkfifo, mknod.
35396         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35397         (Depends-on): Add symlink.
35398         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35399         redundant with test_mkfifo.h.
35400         (do_mkfifoat, do_mknodat): New helpers.
35401
35402         mknod: new module
35403         * modules/mknod: New file.
35404         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35405         * lib/mknod.c (mknod): Likewise.
35406         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35407         defaults.
35408         * modules/sys_stat (Makefile.am): Substitute them.
35409         * lib/sys_stat.in.h (mknod): Declare replacement.
35410         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35411         Document it.
35412         * doc/posix-functions/mknod.texi (mknod): Likewise.
35413         * modules/mknod-tests: New test.
35414         * tests/test-mknod.c: Likewise.
35415
35416         mkfifo: new module
35417         * modules/mkfifo: New file.
35418         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35419         * lib/mkfifo.c (mkfifo): Likewise.
35420         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35421         defaults.
35422         * modules/sys_stat (Makefile.am): Substitute them.
35423         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35424         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35425         Document it.
35426         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35427         * modules/mkfifo-tests: New test.
35428         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35429         from test-mkfifoat.c.
35430         * tests/test-mkfifo.c: New file.
35431
35432         readlink: detect FreeBSD bug
35433         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35434         slash on symlink.
35435         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35436         * tests/test-readlink.h (test_readlink): Enhance test.
35437
35438         symlink: detect FreeBSD bug
35439         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35440         slash on symlink.
35441         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35442         * tests/test-symlink.h (test_symlink): Enhance test.
35443
35444 2009-11-10  Eric Blake  <ebb9@byu.net>
35445
35446         link: detect FreeBSD bug
35447         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35448         symlink.
35449         * doc/posix-functions/link.texi (link): Document the bug.
35450         * tests/test-link.h (test_link): Enhance test.
35451         * tests/test-linkat.c (main): Update caller.
35452
35453         unlink, remove: detect FreeBSD bug
35454         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35455         slash on symlink.
35456         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35457         * doc/posix-functions/remove.texi (remove): Likewise.
35458         * tests/test-unlink.h (test_unlink): Enhance test.
35459         * tests/test-remove.c (main): Likewise.
35460
35461 2009-11-09  Eric Blake  <ebb9@byu.net>
35462
35463         rename: detect FreeBSD bug
35464         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35465         slash on symlink.
35466         * modules/renameat-tests (Depends-on): Add filenamecat.
35467         * tests/test-rename.h (test_rename): Allow one more errno.
35468         * tests/test-renameat.c (main): Likewise.
35469         * doc/posix-functions/rename.texi (rename): Document the bug.
35470
35471         open: detect FreeBSD bug
35472         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35473         symlink.
35474         * doc/posix-functions/open.texi (open): Document the bug.
35475         * doc/posix-functions/utimes.texi (utimes): Likewise.
35476         * tests/test-open.h (test_open): Add parameters, and test symlink
35477         handling.
35478         * tests/test-open.c (main): Adjust caller.
35479         * tests/test-fcntl-safer.c (main): Likewise.
35480         * modules/open-tests (Depends-on): Add stdbool, symlink.
35481         * modules/fcntl-safer-tests (Depends-on): Likewise.
35482         * tests/test-openat.c (main): Add test-open tests.
35483
35484         stat: detect FreeBSD bug
35485         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35486         symlink.
35487         * doc/posix-functions/stat.texi (stat): Document the bug.
35488         * tests/test-stat.h (test_stat_func): Add argument.
35489         * tests/test-stat.c (main): Adjust caller.
35490         * tests/test-fstatat.c (main): Likewise.
35491         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35492         Reported by Jim Meyering.
35493
35494 2009-11-09  James Youngman  <jay@gnu.org>
35495
35496         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35497         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35498
35499 2009-11-08  Jim Meyering  <meyering@redhat.com>
35500
35501         utimens: remove invalid futimesat call
35502         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35503         It used the file descriptor of the target file as the DIR_FD
35504         parameter and NULL as the file name.  That caused failure with
35505         errno == EFAULT on FreeBSD-8.0-rc2
35506
35507 2009-11-07  Eric Blake  <ebb9@byu.net>
35508
35509         fflush, freadseek: use fseeko, not fseek
35510         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35511         (clear_ungetc_buffer): Avoid potential problems on large files.
35512         * lib/freadseek.c (freadseek): Likewise.
35513         * modules/freadseek (Depends-on): Add fseeko.
35514         * modules/fseek (configure.ac): Set a witness.
35515         * tests/test-fflush.c (main): Use fseeko.
35516         * tests/test-fpurge.c (fseek): Disable link warning.
35517         * tests/test-freadable.c (fseek): Likewise.
35518         * tests/test-freading.c (fseek): Likewise.
35519         * tests/test-fseeko.c (fseek): Likewise.
35520         * tests/test-ftell.c (fseek): Likewise.
35521         * tests/test-ftello.c (fseek): Likewise.
35522         * tests/test-fwritable.c (fseek): Likewise.
35523         * tests/test-fwriting.c (fseek): Likewise.
35524
35525 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35526
35527         * modules/memchr (Depends-on): Drop getpagesize dependency.
35528
35529 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35530
35531         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35532         Reported by Ludovic Courtès.
35533         * build-aux/pmccabe2html: Improve example usage.
35534         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35535
35536 2009-11-06  Jim Meyering  <meyering@redhat.com>
35537
35538         do-release-commit-and-tag: New module.
35539         Automate the release-commit and tag process.
35540         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35541         * modules/do-release-commit-and-tag: New file.
35542         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35543
35544 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35545
35546         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35547         because test-select.c uses inet_pton.
35548
35549 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35550
35551         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35552         GETADDRINFO_LIB.  Bump serial number.
35553         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35554         Suggested by Eric Blake <ebb9@byu.net>.
35555
35556 2009-11-05  Eric Blake  <ebb9@byu.net>
35557
35558         strtod: detect darwin bug
35559         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35560         Reported by Leo Davis.
35561
35562         freopen-safer: new module
35563         * modules/freopen-safer: New module.
35564         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35565         * lib/freopen-safer.c (freopen_safer): New file.
35566         * lib/stdio-safer.h (freopen_safer): New declaration.
35567         * lib/stdio--.h (freopen): New override.
35568         * MODULES.html.sh (File stream based Input/Output): Mention it.
35569         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35570         freopen-safer module.
35571         * doc/posix-functions/stderr.texi (stderr): Likewise.
35572         * doc/posix-functions/stdin.texi (stdin): Likewise.
35573         * doc/posix-functions/stdout.texi (stdout): Likewise.
35574         * modules/freopen-safer-tests: New test.
35575         * tests/test-reopen-safer.c: New file.
35576
35577 2009-11-05  Jim Meyering  <meyering@redhat.com>
35578
35579         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35580         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35581
35582 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35583
35584         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35585
35586 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35587
35588         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35589
35590 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35591
35592         Fix link error.
35593         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35594         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35595
35596 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35597
35598         * tests/test-func.c: Also test value of __func__.
35599
35600 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35601
35602         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35603         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35604
35605 2009-11-05  Bruno Haible  <bruno@clisp.org>
35606
35607         Fix link error.
35608         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35609         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35610         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35611
35612 2009-11-05  Bruno Haible  <bruno@clisp.org>
35613
35614         Tests for module 'inet_pton'.
35615         * modules/inet_pton-tests: New file.
35616         * tests/test-inet_pton.c: New file.
35617
35618 2009-11-05  Bruno Haible  <bruno@clisp.org>
35619
35620         Tests for module 'inet_ntop'.
35621         * modules/inet_ntop-tests: New file.
35622         * tests/test-inet_ntop.c: New file.
35623
35624 2009-11-04  Eric Blake  <ebb9@byu.net>
35625
35626         stdlib-safer: wrap all mkstemp variants
35627         * modules/mkostemp (configure.ac): Set witness.
35628         * modules/mkostemps (configure.ac): Likewise.
35629         * modules/mkstemps (configure.ac): Likewise.
35630         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35631         (mkstemps_safer): Wrap more functions.
35632         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35633         wrapping.
35634         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35635         (mkstemps_safer): Implement the wrappers.
35636
35637         mkstemps, mkostemps: new modules
35638         * modules/mkostemps: New module.
35639         * modules/mkstemps: Likewise.
35640         * lib/mkostemps.c (mkostemps): New file.
35641         * lib/mkstemps.c (mkstemps): Likewise.
35642         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35643         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35644         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35645         * modules/stdlib (Makefile.am): Substitute them.
35646         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35647         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35648         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35649         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35650         * MODULES.html.sh (File system functions): Mention them.
35651
35652         tempname: resync from glibc
35653         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35654         same values for __GT_FILE as glibc.  Abort even when assertions
35655         are disabled.
35656         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35657         match its value otherwise.  Allow idempotent inclusion.
35658         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35659         * lib/mkostemp.c (mkostemp): Likewise.
35660         * lib/mkstemp.c (mkstemp): Likewise.
35661         * lib/tmpfile.c (tmpfile): Likewise.
35662         * NEWS: Document this.
35663
35664         utimens: fix use of futimens on older Linux
35665         * lib/utimens.c (fdutimens): Use updated, rather than original,
35666         timespec to avoid bug in older Linux kernel.
35667         Reported by Simon Josefsson.
35668
35669 2009-11-04  Bruno Haible  <bruno@clisp.org>
35670
35671         Make num_processors more flexible and consistent.
35672         * lib/nproc.h (enum nproc_query): New type.
35673         (num_processors): Add a 'query' argument.
35674         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35675         (num_processors): Add a 'query' argument. Test the value of the
35676         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35677         mingw, count the number of CPUs available for the current process.
35678         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35679         Check for sched_getaffinity and sched_getaffinity_np.
35680         * modules/nproc (Depends-on): Add c-ctype, extensions.
35681         * NEWS: Mention the change.
35682
35683 2009-11-03  Bruno Haible  <bruno@clisp.org>
35684
35685         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35686
35687 2009-11-03  Jim Meyering  <meyering@redhat.com>
35688
35689         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35690         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35691         if it is defined.
35692
35693 2009-11-02  Eric Blake  <ebb9@byu.net>
35694
35695         mktime, timegm: share common declaration
35696         * lib/mktime-internal.h: New file.
35697         * lib/mktime.c: Use it rather than open-coding a declaration.
35698         * lib/timegm.c: Likewise.
35699         * modules/mktime (Files): Ship it.
35700         * modules/timegm (Files): Likewise.
35701         Suggested by Bruno Haible.
35702
35703         test-update-copyright: update test to match script changes
35704         * tests/test-update-copyright.sh: Avoid hard-coding perl
35705         location.  Don't update *.bak created by earlier runs.
35706
35707 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
35708             Simon Josefsson  <simon@josefsson.org>
35709             Bruno Haible  <bruno@clisp.org>
35710
35711         Fix link error on Solaris 8.
35712         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
35713         also in libnsl. Define also INET_PTON_LIB.
35714         * modules/inet_pton (Link): New section.
35715
35716 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35717             Bruno Haible  <bruno@clisp.org>
35718
35719         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
35720         * modules/inet_ntop (Link): New section.
35721         Reported by Boyan Kasarov <bkasarov@gmail.com>.
35722
35723 2009-11-02  Eric Blake  <ebb9@byu.net>
35724
35725         maint: avoid compiler warnings in m4 macros
35726         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
35727         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
35728
35729 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35730
35731         * m4/pmccabe2html.m4: Remove file.
35732         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
35733         function.  Change maintainer.
35734         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
35735         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
35736         Courtès).
35737
35738 2009-10-31  Eric Blake  <ebb9@byu.net>
35739
35740         fseeko: fix m4 regression
35741         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
35742         regression from 2009-10-27.
35743         Reported by Ralf Wildenhues.
35744
35745 2009-10-31  Jim Meyering  <meyering@redhat.com>
35746
35747         inttostr: aesthetics and improved (compile-time) safety
35748         Define inttype_is_signed rather than inttype_is_unsigned,
35749         since the sole use is via "#if inttype_is_signed".
35750         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
35751         inttype_is_unsigned.
35752         * lib/offtostr.c (inttype_is_signed): Likewise.
35753         * lib/uinttostr.c (inttype_is_signed): Likewise.
35754         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35755         * lib/inttostr.c (inttostr): Use verify to cross-check the
35756         inttype_is_signed value and the signedness of the actual type.
35757         * modules/inttostr (Depends-on): Add verify.
35758
35759 2009-10-30  Eric Blake  <ebb9@byu.net>
35760
35761         build: avoid compiler warnings
35762         * lib/fchmodat.c (lchmod): Mark unused variables.
35763         * lib/getopt.c (_getopt_initialize): Likewise.
35764         * lib/mktime.c (__mktime_internal): Provide prototype.
35765         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35766         older gcc that do not understand #pragma GCC diagnostic.
35767         * lib/uinttostr.c (inttype_is_unsigned): Define.
35768         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35769
35770 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35771
35772         stat: fix compilation on AIX
35773         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
35774         only see struct stat64.
35775
35776 2009-10-30  Eric Blake  <ebb9@byu.net>
35777
35778         exclude: make more robust
35779         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35780         rather than masking a coding bug.
35781         Suggested by Bruno Haible.
35782
35783 2009-10-30  Jim Meyering  <meyering@redhat.com>
35784
35785         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35786         Rather than putting #!/usr/bin/perl on the first line,
35787         start with a variant of what's recommended by "man perlrun" that
35788         invokes the first "perl" program from your shell's search path.
35789         * build-aux/gitlog-to-changelog: Replace #!... as above.
35790         Add a "Local Variables" perl mode setting.
35791         Prompted by a patch from Ludovic Courtès.
35792         Improved by Eric Blake.
35793         * build-aux/useless-if-before-free: Likewise.
35794         * build-aux/announce-gen: Likewise.
35795         * build-aux/update-copyright: Likewise.
35796
35797 2009-10-29  Eric Blake  <ebb9@byu.net>
35798
35799         filenamecat-lgpl: adjust clients
35800         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35801         filenamecat.
35802         * modules/renameat (Depends-on): Likewise.
35803
35804         filenamecat: split into filenamecat-lgpl
35805         * modules/filenamecat-lgpl: New module.
35806         * modules/filenamecat (Files): Move library-safe files into
35807         filenamecat-lgpl.
35808         (Depends-on): Add filenamecat-lgpl.
35809         (configure.ac): Declare witness.
35810         * lib/filenamecat.h (file_name_concat): Only declare when using
35811         GPL module.
35812         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35813         Move...
35814         * lib/filenamecat-lgpl.c: ...into new file.
35815         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35816         (gl_FILE_NAME_CONCAT): Use it.
35817         * MODULES.html.sh (File system functions): Mention new module.
35818
35819         argp: avoid memory leak
35820         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35821         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35822         base_name, since the latter malloc()s and can call exit().
35823         Leak introduced 2006-07-03.
35824
35825         dirname-lgpl: adjust clients that don't need full dirname
35826         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35827         * modules/filenamecat (Depends-on): Likewise.
35828         * modules/linkat (Depends-on): Likewise.
35829         * modules/mkancesdirs (Depends-on): Likewise.
35830         * modules/mkdir (Depends-on): Likewise.
35831         * modules/openat (Depends-on): Likewise.
35832         * modules/savewd (Depends-on): Likewise.
35833         * modules/rename (Depends-on): Likewise.
35834         (License): Relax license.
35835         * modules/mkdir-tests (Depends-on): Drop progname.
35836         (Makefile.am): Delete unneeded LDADD.
35837         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35838
35839         dirname: split into dirname-lgpl
35840         * modules/dirname-lgpl: New module.
35841         * modules/dirname (Files): Move library-safe files into
35842         dirname-lgpl.
35843         (Depends-on): Add dirname-lgpl.
35844         (configure.ac): Declare witness.
35845         * modules/double-slash-root (License): Relax license.
35846         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35847         module.
35848         * lib/dirname.c (dir_len, mdir_name): Move...
35849         * lib/dirname-lgpl.c: ...into new file.
35850         * lib/basename.c (last_component, base_len): Move...
35851         * lib/basename-lgpl.c: ...into new file.
35852         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35853         (gl_DIRNAME): Use it.
35854         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35855         Mention new module.
35856         * modules/dirname-tests (Depends-on): Add progname.
35857         * tests/test-dirname.c (program_name): Delete.
35858
35859         mkdir: make safe for libraries
35860         * modules/mkdir (Depends-on): Drop xalloc.
35861         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35862         exit.
35863
35864         tests: avoid some compiler warnings
35865         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35866         literals.
35867         * tests/test-memchr.c (main): Avoid type mismatch.
35868         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35869         * tests/test-base64.c (main): Likewise.
35870         * tests/test-getdelim.c (main): Likewise.
35871         * tests/test-gethostname.c (main): Likewise.
35872         * tests/test-getline.c (main): Likewise.
35873         * tests/test-netinet_in.c (main): Likewise.
35874         * tests/test-select.c (open_server_socket, main): Likewise.
35875         * tests/test-select-stdin.c (main): Likewise.
35876         * tests/test-sockets.c (main): Likewise.
35877         * tests/test-strsignal.c (main): Likewise.
35878         * tests/test-sys_select.c (main): Likewise.
35879         * tests/test-sys_socket.c (main): Likewise.
35880         * tests/test-u64.c (main): Likewise.
35881         * tests/test-xfprintf-posix.c (main): Likewise.
35882         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35883
35884         sockets: avoid compiler warning
35885         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35886
35887         maint: detect usage(1) and other suspicious exits
35888         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35889
35890 2009-10-29  Jim Meyering  <meyering@redhat.com>
35891
35892         timespec: long-to-int truncation could make timespec_cmp malfunction
35893         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35894         a multiple of 2^32 nanoseconds as no difference.
35895
35896 2009-10-28  Jim Meyering  <meyering@redhat.com>
35897
35898         fprintftime: wrap macro code argument in "do {...} while(0)"
35899         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35900         cpy macro must be a statement that can be followed by a semicolon.
35901         Now that the else clause contains a comment and is hence longer
35902         than one line, I require curly braces.  That in turn requires
35903         that we wrap this code block in the standard do...while(0).
35904
35905         fprintftime: remove stray semicolon from previous change
35906         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35907
35908         fprintftime: avoid a warning about ignored fwrite return value
35909         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35910         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35911         that is unsafe.
35912         * modules/fprintftime (Depends-on): Add ignore-value.
35913
35914         exclude: avoid an unwarranted warning
35915         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35916
35917 2009-10-27  Eric Blake  <ebb9@byu.net>
35918
35919         fseek: avoid compilation failure when fflush is replaced
35920         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35921         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35922         module is in use.
35923         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35924         module is not in use; since REPLACE_FSEEK worked otherwise.
35925         (GNULIB_FTELLO): Likewise for ftell.
35926         Reported by Ian Beckwith and others.
35927
35928 2009-10-27  Bruno Haible  <bruno@clisp.org>
35929
35930         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35931         Reported by Jim Meyering.
35932
35933 2009-10-27  Jim Meyering  <jim@meyering.net>
35934             Bruno Haible  <bruno@clisp.org>
35935
35936         Avoid warning despite dropping the return value of fwrite.
35937         * lib/unicodeio.c: Include ignore-value.h.
35938         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35939         * modules/unicodeio (Depends-on): Add ignore-value.
35940
35941 2009-10-26  Eric Blake  <ebb9@byu.net>
35942
35943         areadlinkat: fix fallback path
35944         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35945         pointer and zero.
35946
35947 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35948
35949         Use a better IO block size for modern systems
35950         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35951         * lib/md2.c: Likewise.
35952         * lib/md4.c: Likewise.
35953         * lib/md5.c: Likewise.
35954         * lib/sha1.c: Likewise.
35955         * lib/sha256.c: Likewise.
35956         * lib/sha512.c: Likewise.
35957
35958 2009-10-22  Eric Blake  <ebb9@byu.net>
35959
35960         tests: avoid several compiler warnings
35961         * tests/test-getcwd.c (main): Avoid buffer underflow.
35962         * tests/test-getdate.c (main): String literals are not safe with
35963         putenv, so use setenv.  Declare unused argument.
35964         * modules/getdate-tests (Depends-on): Add setenv.
35965         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35966         problems with string literals in char *.
35967         * tests/test-hash.c (main): Avoid shadowing declaration.
35968         (insert_new): Treat string literals as char const *.
35969         * tests/test-getopt.h (test_getopt): Likewise.
35970         (getopt_loop): Alter types to minimize casting elsewhere.
35971         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35972         (test_getopt_long_posix): Likewise.
35973         (do_getopt_long): Add wrapper to minimize casting.
35974         * tests/test-atexit.c (clear_temp_file): Use void.
35975         * tests/test-areadlink-with-size.c (main): Declare unused
35976         arguments.
35977         * tests/test-areadlink.c (main): Likewise.
35978         * tests/test-areadlinkat-with-size.c (main): Likewise.
35979         * tests/test-areadlinkat.c (main): Likewise.
35980         * tests/test-canonicalize-lgpl.c (main): Likewise.
35981         * tests/test-canonicalize.c (main): Likewise.
35982         * tests/test-dirent-safer.c (main): Likewise.
35983         * tests/test-dirname.c (main): Likewise.
35984         * tests/test-dup2.c (main): Likewise.
35985         * tests/test-fchdir.c (main): Likewise.
35986         * tests/test-fcntl-h.c (main): Likewise.
35987         * tests/test-fcntl-safer.c (main): Likewise.
35988         * tests/test-fdopendir.c (main): Likewise.
35989         * tests/test-fdutimensat.c (main): Likewise.
35990         * tests/test-fflush.c (main): Likewise.
35991         * tests/test-filenamecat.c (main): Likewise.
35992         * tests/test-filevercmp.c (main): Likewise.
35993         * tests/test-fopen-safer.c (main): Likewise.
35994         * tests/test-fopen.c (main): Likewise.
35995         * tests/test-fpending.c (main): Likewise.
35996         * tests/test-fpurge.c (main): Likewise.
35997         * tests/test-freading.c (main): Likewise.
35998         * tests/test-fstatat.c (main): Likewise.
35999         * tests/test-fsync.c (main): Likewise.
36000         * tests/test-futimens.c (main): Likewise.
36001         * tests/test-getndelim2.c (main): Likewise.
36002         * tests/test-gettimeofday.c (main): Likewise.
36003         * tests/test-getopt.c (main): Likewise.
36004         * tests/test-i-ring.c (main): Likewise.
36005         * tests/test-inttypes.c (main): Likewise.
36006         * tests/test-link.c (main): Likewise.
36007         * tests/test-lstat.c (main): Likewise.
36008         * tests/test-math.c (main): Likewise.
36009         * tests/test-md5.c (main): Likewise.
36010         * tests/test-memchr2.c (main): Likewise.
36011         * tests/test-memrchr.c (main): Likewise.
36012         * tests/test-mkdir.c (main): Likewise.
36013         * tests/test-mkdirat.c (main): Likewise.
36014         * tests/test-mkfifoat.c (main): Likewise.
36015         * tests/test-open.c (main): Likewise.
36016         * tests/test-openat-safer.c (main): Likewise.
36017         * tests/test-openat.c (main): Likewise.
36018         * tests/test-quotearg.c (main): Likewise.
36019         * tests/test-rawmemchr.c (main): Likewise.
36020         * tests/test-readlink.c (main): Likewise.
36021         * tests/test-remove.c (main): Likewise.
36022         * tests/test-rename.c (main): Likewise.
36023         * tests/test-renameat.c (main): Likewise.
36024         * tests/test-rmdir.c (main): Likewise.
36025         * tests/test-sha1.c (main): Likewise.
36026         * tests/test-signal.c (main): Likewise.
36027         * tests/test-sigaction.c (main): Likewise.
36028         * tests/test-stat.c (main): Likewise.
36029         * tests/test-stat-time.c (main): Likewise.
36030         * tests/test-stddef.c (main): Likewise.
36031         * tests/test-stdint.c (main): Likewise.
36032         * tests/test-stdio.c (main): Likewise.
36033         * tests/test-stdlib.c (main): Likewise.
36034         * tests/test-strchrnul.c (main): Likewise.
36035         * tests/test-strerror.c (main): Likewise.
36036         * tests/test-string.c (main): Likewise.
36037         * tests/test-strtod.c (main): Likewise.
36038         * tests/test-strverscmp.c (main): Likewise.
36039         * tests/test-symlink.c (main): Likewise.
36040         * tests/test-symlinkat.c (main): Likewise.
36041         * tests/test-sys_stat.c (main): Likewise.
36042         * tests/test-sys_time.c (main): Likewise.
36043         * tests/test-time.c (main): Likewise.
36044         * tests/test-unistd.c (main): Likewise.
36045         * tests/test-unlink.c (main): Likewise.
36046         * tests/test-unlinkat.c (main): Likewise.
36047         * tests/test-utimens.c (main): Likewise.
36048         * tests/test-utimensat.c (main): Likewise.
36049         * tests/test-version-etc.c (main): Likewise.
36050         * tests/test-wchar.c (main): Likewise.
36051         * tests/test-wctype.c (main): Likewise.
36052         * tests/test-xprintf-posix.c (main): Likewise.
36053         * tests/test-posixtm.c (main): Likewise.
36054         (STREQ): Delete unused macro.
36055         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36056         shadowed variables.
36057         * tests/test-memchr.c (main): Likewise.
36058
36059 2009-10-21  Eric Blake  <ebb9@byu.net>
36060
36061         areadlinkat: avoid failure on older glibc
36062         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36063         rather than mis-comparing 0 against FUNC_RESULT of char*.
36064
36065 2009-10-21  Bruno Haible  <bruno@clisp.org>
36066
36067         * modules/stpncpy (License): Relicense under LGPLv2+.
36068         Reported by David Lutterkort <lutter@redhat.com>.
36069
36070 2009-10-20  Eric Blake  <ebb9@byu.net>
36071
36072         utimensat: work around Solaris 9 bug
36073         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36074         has trailing slash bugs.
36075         * tests/test-lutimens.h (test_lutimens): Enhance test.
36076         * tests/test-utimens.h (test_utimens): Likewise.
36077         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36078         * doc/posix-functions/utimes.texi (utimes): Likewise.
36079         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36080         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36081         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36082         * doc/posix-functions/futimens.texi (futimens): Likewise.
36083
36084         fdutimensat: new module
36085         * modules/fdutimensat: New file.
36086         * lib/fdutimensat.c (fdutimensat): Likewise.
36087         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36088         * MODULES.html.sh (File system functions): Mention module.
36089         * modules/fdutimensat-tests: New test.
36090         * tests/test-fdutimensat.c: Likewise.
36091
36092         doc: regenerate INSTALL
36093         * doc/INSTALL: Reflect recent autoconf update.
36094         * doc/INSTALL.ISO: Likewise.
36095         * doc/INSTALL.UTF-8: Likewise.
36096
36097 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36098
36099         acl: warn if ACL support is not detected
36100         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36101
36102 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36103
36104         * lib/nproc.h: Add extern "C" block for C++.
36105
36106 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36107             Bruno Haible  <bruno@clisp.org>
36108
36109         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36110         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36111         * doc/posix-functions/isalpha.texi: Likewise.
36112         * doc/posix-functions/isblank.texi: Likewise.
36113         * doc/posix-functions/iscntrl.texi: Likewise.
36114         * doc/posix-functions/isdigit.texi: Likewise.
36115         * doc/posix-functions/isgraph.texi: Likewise.
36116         * doc/posix-functions/islower.texi: Likewise.
36117         * doc/posix-functions/isprint.texi: Likewise.
36118         * doc/posix-functions/ispunct.texi: Likewise.
36119         * doc/posix-functions/isspace.texi: Likewise.
36120         * doc/posix-functions/isupper.texi: Likewise.
36121         * doc/posix-functions/isxdigit.texi: Likewise.
36122
36123 2009-10-18  Bruno Haible  <bruno@clisp.org>
36124
36125         Tests for module 'isblank'.
36126         * modules/isblank-tests: New file.
36127         * tests/test-isblank.c: New file.
36128
36129         New module 'isblank'.
36130         * lib/isblank.c: New file.
36131         * m4/isblank.m4: New file.
36132         * modules/isblank: New file.
36133         * doc/posix-functions/isblank.texi: Mention the new module.
36134
36135 2009-10-18  Bruno Haible  <bruno@clisp.org>
36136
36137         New module 'ctype'.
36138         * lib/ctype.in.h: New file.
36139         * m4/ctype.m4: New file.
36140         * modules/ctype: New file.
36141         * doc/posix-headers/ctype.texi: Mention the new module.
36142
36143 2009-10-18  Jim Meyering  <meyering@redhat.com>
36144
36145         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36146         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36147         right after its initialization, rather than farther down.
36148         Keeping these in close proximity makes it easier to ensure
36149         that each such variable is initialized.  E.g.,
36150
36151             LIB_CLOCK_GETTIME=
36152             AC_SUBST([LIB_CLOCK_GETTIME])
36153
36154         This change also increments these serial numbers.
36155         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36156         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36158
36159 2009-10-18  Bruno Haible  <bruno@clisp.org>
36160
36161         Don't let environment variables perturb build.
36162         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36163         (gl_PREREQ_GETHRXTIME): ... not here.
36164
36165 2009-10-18  Bruno Haible  <bruno@clisp.org>
36166
36167         Avoid symlink attack in localcharset module.
36168         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36169         (O_NOFOLLOW): Define fallback.
36170         (get_charset_aliases): Don't open the file if it is a symbolic link.
36171         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36172         gl_FCNTL_H.
36173         (gl_FCNTL_H): Require it.
36174         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36175         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36176         Reported by Fergal Glynn <fglynn@veracode.com>.
36177
36178 2009-10-18  Bruno Haible  <bruno@clisp.org>
36179
36180         Implement nproc for mingw.
36181         * lib/nproc.c: Include <windows.h>
36182         (num_processors): On native Windows platforms, try GetSystemInfo.
36183
36184 2009-10-18  Bruno Haible  <bruno@clisp.org>
36185
36186         Implement nproc for IRIX.
36187         * lib/nproc.c: Include <sys/sysmp.h>.
36188         (num_processors): On IRIX systems, try sysmp.
36189         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36190
36191 2009-10-18  Bruno Haible  <bruno@clisp.org>
36192
36193         Implement nproc for HP-UX.
36194         * lib/nproc.c: Include <sys/pstat.h>
36195         (num_processors): On HP-UX systems, try pstat_getdynamic.
36196         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36197         pstat_getdynamic.
36198
36199 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36200             Bruno Haible  <bruno@clisp.org>
36201
36202         Implement nproc for NetBSD, OpenBSD.
36203         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36204         (ARRAY_SIZE): New macro.
36205         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36206         * m4/nproc.m4: New file.
36207         * modules/nproc (Files): Add m4/nproc.m4.
36208         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36209         (Makefile.am): Instead, augment lib_SOURCES.
36210
36211 2009-10-18  Bruno Haible  <bruno@clisp.org>
36212
36213         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36214         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36215         sys/param.h.
36216
36217 2009-10-16  Eric Blake  <ebb9@byu.net>
36218
36219         utimensat: new module
36220         * modules/utimensat: New file.
36221         * lib/utimensat.c (utimensat): Likewise.
36222         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36223         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36224         so we can work around Linux bugs.
36225         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36226         * modules/sys_stat (Makefile.am): Substitute them.
36227         * lib/sys_stat.in.h (utimensat): Declare it.
36228         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36229         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36230         * modules/utimensat-tests: New test.
36231         * tests/test-utimensat.c: Likewise.
36232
36233         utimens: let lutimens work on non-symlinks
36234         * lib/utimens.c (lutimens): Fall back to utimens rather than
36235         failing with ENOSYS, when file is not a symlink.
36236         (utimens): Reduce redirection.
36237         * tests/test-lutimens.h (test_lutimens): Update test to cover
36238         non-symlinks.
36239         * tests/test-utimens.h (test_utimens): Update test to cover
36240         symlinks.
36241         * tests/test-utimens.c (main): Update caller.
36242
36243         utimens: cache whether utimensat syscall works
36244         * lib/utimens.c (utimensat_works_really): New cache variable.
36245         (fdutimens, lutimens): Use it to avoid failing syscall.
36246
36247         test-stat-time, test-utimens: improve portability
36248         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36249         ext4 on alpha, and for cygwin.
36250         * tests/test-utimens-common.h: New file.
36251         (nap): Factor delays into single function.
36252         * tests/test-lutimens.h (test_lutimens): Use new header.
36253         * tests/test-futimens.h (test_futimens): Likewise.
36254         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36255         timestamps to occur from same machine, as was done previously for
36256         test_utimens.
36257         * modules/utimens-tests (Files): Ship new file.
36258         * modules/futimens-tests (Files): Likewise.
36259         Reported in part by Jim Meyering.
36260
36261         sys_stat: sort replacement declarations
36262         * lib/sys_stat.in.h: Sort declarations.
36263         * lib/futimens.c (futimens): Fix typo.
36264
36265 2009-10-15  Jim Meyering  <meyering@redhat.com>
36266
36267         don't let environment settings perturb build
36268         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36269         could cause a configure-time and/or build-time malfunction.
36270         Typically, a configure-time function-in-library test is performed
36271         via code like this:
36272
36273           LIB_VAR=
36274           AC_SUBST([LIB_VAR])
36275           prefix_saved_LIBS=$LIBS
36276             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36277                        [test "$ac_cv_search_FUNC" = "none required" ||
36278                         LIB_VAR=$ac_cv_search_FUNC])
36279           LIBS=$prefix_saved_LIBS
36280
36281         However, in each of the files affected by this change, the LIB_VAR=
36282         initialization was omitted.  Thus, when set in the environment, its
36283         value would propagate into generated Makefiles when FUNC is not found
36284         in LIB_NAME.
36285         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36286         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36287         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36288
36289 2009-10-14  Eric Blake  <ebb9@byu.net>
36290
36291         fchdir: avoid infinite recursion in mingw
36292         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36293         recursing.
36294
36295         test-stat-time: port to mingw
36296         * tests/test-stat-time.c (force_unlink): Return a value.
36297         (test_ctime) [W32]: Fix compilation error.
36298         (nap): Don't call usleep with too large an argument.  Use
36299         force_unlink.
36300         * doc/pastposix-functions/usleep.texi (usleep): Document the
36301         portability issue.
36302
36303 2009-10-13  Jim Meyering  <meyering@redhat.com>
36304
36305         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36306         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36307         * modules/pipe-filter-ii: Likewise.
36308         * modules/sys_socket-tests: Likewise.
36309         * modules/tsearch-tests: Likewise.
36310         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36311         (check): Depend on it.
36312
36313 2009-10-12  Eric Blake  <ebb9@byu.net>
36314
36315         utimens-tests: port to NFS file systems
36316         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36317         comparisons to avoid spurious failures from timestamp drift
36318         between NFS machines.
36319
36320 2009-10-12  Eric Blake  <ebb9@byu.net>
36321
36322         stat-time-tests: minor cleanups
36323         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36324         * tests/test-stat-time.c (nap): Separate assignment from call.
36325         Suggested by Paolo Bonzini and Bruno Haible.
36326
36327         sys_stat: guarantee struct timespec
36328         * lib/sys_stat.in.h (includes): Always include <time.h>
36329         * modules/sys_stat (Depends-on): Add time.
36330         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36331         mode_t permission values.
36332         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36333         get at subsecond timestamps.
36334
36335 2009-10-10  Eric Blake  <ebb9@byu.net>
36336
36337         futimens: new module
36338         * modules/futimens: New file.
36339         * lib/futimens.c (futimens): Likewise.
36340         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36341         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36342         we can work around Linux bugs.
36343         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36344         * modules/sys_stat (Makefile.am): Substitute them.
36345         * lib/sys_stat.in.h (futimens): Declare it.
36346         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36347         * doc/posix-functions/futimens.texi (futimens): Likewise.
36348         * modules/futimens-tests: New test.
36349         * tests/test-futimens.c: Likewise.
36350
36351         utimens: introduce fdutimens
36352         * lib/utimens.h (fdutimens): New prototype.
36353         * lib/utimens.c (gl_futimens): Move guts...
36354         (fdutimens): ...to new interface.
36355         * tests/test-utimens.c (do_fdutimens): Use it.
36356
36357         utimens: add UTIME_NOW and UTIME_OMIT support
36358         * lib/utimens.c (validate_timespec, update_timespec): New helper
36359         functions.
36360         (gl_futimens, lutimens): Use them.
36361         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36362         stdbool, sys_stat.
36363         (Link): Mention resulting library dependency.
36364         * modules/utimecmp (Link): Likewise.
36365         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36366         (Makefile.am): Pick up library dependency.
36367         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36368         definition.
36369         * tests/test-sys_stat.c: Test the definitions.
36370         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36371         * NEWS: Document library dependency.
36372
36373         utimecmp: support symlink timestamps
36374         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36375         hashing when possible.  Use pathconf when available.
36376         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36377         * modules/utimecmp (Depends-on): Add lstat.
36378
36379         utimens: add lutimens interface
36380         * lib/utimens.c (lutimens): New function.
36381         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36382         * lib/utimens.h (lutimens): Declare new interface.
36383         * tests/test-utimens.c (main): Enhance test.
36384         * tests/test-lutimens.h (test_lutimens): New file.
36385         * modules/utimens-tests (Files): Distribute it.
36386         (Depends-on): Add symlink.
36387         (configure.ac): Check for usleep.
36388
36389         utimens: validate futimens usage
36390         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36391         fewer syscalls on failure later on.  Avoid compiler warning on
36392         mingw.
36393         * modules/utimens (Depends-on): Add dup2.
36394
36395         utimens: add test
36396         * modules/utimens-tests: New test.
36397         * tests/test-utimens.h: New file.
36398         * tests/test-futimens.h: Likewise.
36399         * tests/test-utimens.c: Likewise.
36400
36401         doc: mention timestamp portability issues
36402         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36403         instead.
36404         * doc/posix-functions/utime.texi (utime): Likewise.
36405         * doc/posix-functions/utimes.texi (utimes): Likewise.
36406         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36407         instead.
36408         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36409         module.
36410         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36411         Mention weakness with symlink timestamps.
36412         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36413         to utimensat/futimens instead.
36414         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36415
36416         test-dup2: enhance test
36417         * tests/test-dup2.c (main): Also check AT_FDCWD.
36418
36419         test-stat-time: avoid more spurious failures
36420         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36421         xfs; and avoid race if the two timestamps cross quantization edge.
36422
36423         relocatable: prefer 'file system' over 'filesystem'
36424         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36425         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36426         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36427         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36428         * lib/relocatable.c (compute_curr_prefix): Likewise.
36429
36430 2009-10-10  Jim Meyering  <meyering@redhat.com>
36431
36432         stat-time-tests: check for the usleep function
36433         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36434
36435 2009-10-10  Bruno Haible  <bruno@clisp.org>
36436
36437         * modules/xnanosleep: Put the Link section after the Include section.
36438
36439 2009-10-09  Eric Blake  <ebb9@byu.net>
36440
36441         dup2: work around FreeBSD 6.1 bug
36442         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36443         * doc/posix-functions/dup2.texi (dup2): Document it.
36444         Reported by Nelson H. F. Beebe and Jim Meyering.
36445
36446         test-stat-time: port to buggy NFS clients
36447         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36448         (test_ctime): Also skip test if mtime and ctime are skewed.
36449
36450         maint: prefer 'file system' over 'filesystem'
36451         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36452         * doc/posix-functions/lstat.texi (lstat): Likewise.
36453         * lib/file-has-acl.c (file_has_acl): Likewise.
36454         * lib/fwriteerror.c [TEST]: Likewise.
36455         * tests/test-areadlink.h (test_areadlink): Likewise.
36456         * tests/test-areadlinkat-with-size.c (main): Likewise.
36457         * tests/test-areadlinkat.c (main): Likewise.
36458         * tests/test-canonicalize-lgpl.c (main): Likewise.
36459         * tests/test-canonicalize.c (main): Likewise.
36460         * tests/test-fstatat.c (main): Likewise.
36461         * tests/test-linkat.c (main): Likewise.
36462         * tests/test-lstat.h (test_lstat_func): Likewise.
36463         * tests/test-mkdir.h (test_mkdir): Likewise.
36464         * tests/test-readlink.h (test_readlink): Likewise.
36465         * tests/test-remove.c (main): Likewise.
36466         * tests/test-rename.h (test_rename): Likewise.
36467         * tests/test-renameat.c (main): Likewise.
36468         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36469         * tests/test-symlink.h (test_symlink): Likewise.
36470         * tests/test-symlinkat.c (main): Likewise.
36471         * tests/test-unlink.h (test_unlink_func): Likewise.
36472         * tests/test-unlinkat.c (main): Likewise.
36473
36474         maint: make realtime library usage explicit
36475         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36476         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36477         * modules/settime (Link): Likewise.
36478         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36479
36480         test-stat-time: speed up execution
36481         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36482         warning on mingw.
36483         (nap): New helper function.
36484         (prepare_test): Use it to reduce sleep time.
36485         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36486         execution.
36487         * modules/stat-time-tests (configure.ac): Check for usleep.
36488
36489 2009-10-09  Jim Meyering  <meyering@redhat.com>
36490
36491         selinux-h: always use getfilecon wrappers
36492         * lib/getfilecon.c: New file.
36493         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36494         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36495         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36496         (fgetfilecon): Provide a stub.
36497         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36498         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36499         file unconditionally.
36500         When <selinux/selinux.h> is found, arrange to use wrappers.
36501         * modules/selinux-h (Files): Add getfilecon.c.
36502         (Makefile.am): Substitute include-next-related bits
36503         into the now-always-generated selinux/selinux.h file.
36504         * doc/glibc-functions/lgetfilecon.texi: New file.
36505         * doc/glibc-functions/fgetfilecon.texi: New file.
36506         * doc/glibc-functions/getfilecon.texi: New file.
36507         * doc/glibc-functions/getfilecon-desc.texi: New file.
36508         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36509         which to pull in the new files.
36510         * MODULES.html.sh (Misc): Add selinux-h.
36511
36512 2009-10-08  Jim Meyering  <meyering@redhat.com>
36513
36514         unistd: fix comment typo
36515         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36516
36517 2009-10-08  Eric Blake  <ebb9@byu.net>
36518
36519         areadlink: use SIZE_MAX consistently
36520         * modules/areadlink (Depends-on): Add stdint.
36521         * modules/areadlink-with-size (Depends-on): Likewise.
36522         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36523         gives NULL; drop sys/types, since unistd gives size_t; and add
36524         stdint for SIZE_MAX.
36525         (SIZE_MAX): Rely on headers.
36526         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36527         and add stdint.
36528         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36529         (SIZE_MAX): Likewise.
36530         (INITIAL_BUF_SIZE): Turn into enum.
36531         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36532
36533 2009-10-08  Jim Meyering  <meyering@redhat.com>
36534
36535         areadlinkat: avoid compilation failure
36536         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36537         Fix typo in comment.
36538
36539 2009-10-07  Eric Blake  <ebb9@byu.net>
36540
36541         areadlinkat-with-size: new module
36542         * modules/areadlinkat-with-size: New module.
36543         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36544         * lib/areadlink.h (areadlinkat): Declare it.
36545         * MODULES.html.sh (File system functions): Mention it.
36546         * modules/areadlinkat-with-size-tests: New test.
36547         * tests/test-areadlinkat-with-size.c: New file.
36548
36549         xreadlinkat: new module
36550         * modules/xreadlinkat: New module.
36551         * lib/xreadlinkat.c (xreadlinkat): New file.
36552         * lib/xreadlink.h (xreadlinkat): Declare it.
36553         * MODULES.html.sh (File system functions): Mention it.
36554
36555         areadlinkat: new module
36556         * lib/at-func.c (FUNC_FAIL): New define.
36557         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36558         * modules/areadlinkat: New module.
36559         * lib/linkat.c (areadlinkat): Move...
36560         * lib/areadlinkat.c (areadlinkat): ...to new file.
36561         * lib/areadlink.h (areadlinkat): Declare it.
36562         * modules/linkat (Depends-on): Add areadlinkat.
36563         * MODULES.html.sh (File system functions): Mention it.
36564         * modules/areadlinkat-tests: New test.
36565         * tests/test-areadlinkat.c: New file.
36566
36567         areadlink, areadlink-with-size: add tests
36568         * modules/areadlink-tests: New test.
36569         * modules/areadlink-with-size-tests: Likewise.
36570         * tests/test-areadlink.h: New file.
36571         * tests/test-areadlink.c: Likewise.
36572         * tests/test-areadlink-with-size.c: Likewise.
36573
36574         maint: minor cleanups
36575         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36576         _UNUSED_PARAMETER_ instead.
36577         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36578         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36579         * modules/linkat-tests (Files): Distribute test-link.h.
36580
36581         openat, utimens: whitespace cleanup
36582         * lib/openat.c: Prefer space throughout, rather than mix of 8
36583         spaces vs. tabs.
36584         * lib/at-func.c: Likewise.
36585         * lib/utimens.c: Likewise.
36586
36587         openat: avoid using wrong fd
36588         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36589         working directory chooses same fd.
36590         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36591
36592         mkdir, mkdirat: fix cygwin 1.5.x bug
36593         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36594         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36595         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36596         bug.
36597         (gl_PREREQ_MKDIR): Delete unused macro.
36598         * modules/mkdir (Files): Track file rename.
36599         (configure.ac): Update macro name.
36600         * modules/openat (Depends-on): Add mkdir.
36601         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36602
36603         mkdir, mkdirat: add tests
36604         * modules/mkdir-tests: New test.
36605         * tests/test-mkdir.h: New file.
36606         * tests/test-mkdir.c: Likewise.
36607         * tests/test-mkdirat.c: Likewise.
36608         * modules/openat-tests (Files): Add new files.
36609         (Makefile.am): Run new test.
36610
36611 2009-10-06  Eric Blake  <ebb9@byu.net>
36612
36613         doc: tweak *at function documentation
36614         * doc/posix-functions/faccessat.texi (faccessat): Mention
36615         known issue with replacement.
36616         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36617         * doc/posix-functions/linkat.texi (linkat): Likewise.
36618         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36619         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36620         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36621         * doc/posix-functions/renameat.texi (renameat): Likewise.
36622         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36623
36624         openat: fix GNU/Hurd bug in unlinkat
36625         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36626         broken.
36627         * doc/posix-functions/unlink.texi (unlink): Document this.
36628         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36629
36630         fdopendir: fix GNU/Hurd bug
36631         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36632         allowing non-directory fds.
36633         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36634         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36635         * modules/dirent (Makefile.am): Substitute it.
36636         * lib/dirent.in.h (fdopendir): Declare replacement.
36637         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36638         * tests/test-fdopendir.c (main): Test something other than
36639         /dev/null, since on Hurd that behaves like a directory.
36640
36641         test-symlink: port to GNU/Hurd
36642         * tests/test-symlink.h (test_symlink): Relax expected errno.
36643
36644         doc: tweak more cygwin information
36645         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36646         now compatible with glibc.
36647         * doc/posix-functions/getopt.texi (getopt): Likewise.
36648
36649         getopt-gnu: add another test
36650         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36651         guarantee behavior relied on by m4.
36652         * tests/test-getopt.c (main): Use it.
36653         * modules/getopt-posix-tests (Depends-on): Add setenv.
36654         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36655
36656         getopt: fix compilation on darwin
36657         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36658         include.
36659         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36660         Reported by Ludovic Courtès.
36661
36662 2009-10-06  Bruno Haible  <bruno@clisp.org>
36663
36664         * modules/size_max (Description): Discourage its use.
36665         Reported by Simon Josefsson.
36666
36667 2009-10-06  Jim Meyering  <meyering@redhat.com>
36668
36669         linkat: avoid compilation failure
36670         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36671
36672 2009-10-05  Eric Blake  <ebb9@byu.net>
36673
36674         linkat: support Linux 2.6.17
36675         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36676         linkat on Linux, but allow cache variable override.
36677         * lib/linkat.c (rpl_linkat): Define override.
36678         * modules/linkat (Depends-on): Add symlinkat.
36679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36680         * modules/unistd (Makefile.am): Substitute it.
36681         * lib/unistd.in.h (linkat): Declare replacement.
36682         Reported by Pádraig Brady.
36683
36684         quotearg: port test to systems with C.UTF-8 locale
36685         * tests/test-quotearg.c (struct result_strings): Add another
36686         member, differentiating between C.ASCII and C.UTF-8 handling.
36687         (compare_strings): Add parameter.
36688         (main): Adjust all callers.
36689
36690         getopt: avoid clash with FreeBSD _getopt_internal
36691         * lib/getopt.in.h (_getopt_internal): Override the name.
36692         * lib/getopt_int.h (includes): Pick up any overrides.
36693         Reported by Reuben Thomas.
36694
36695         hash: allow C89 compilation
36696         * lib/hash.c (check_tuning): Move declaration before statement.
36697         Reported by Reuben Thomas.
36698
36699 2009-10-05  Karl Berry  <karl@gnu.org>
36700
36701         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
36702
36703 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
36704             Bruno Haible  <bruno@clisp.org>
36705
36706         * lib/uname.c (uname): Use a table-driven algorithm to compute
36707         Windows NT versions.
36708
36709 2009-10-04  Bruno Haible  <bruno@clisp.org>
36710
36711         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
36712         program_invocation_short_name.
36713         * modules/progname (configure.ac): Test for presence of
36714         program_invocation_short_name.
36715         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36716
36717 2009-10-04  Bruno Haible  <bruno@clisp.org>
36718
36719         * lib/progname.c (set_program_name): Fix comment.
36720         Reported by Jim Meyering.
36721
36722 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36723             Bruno Haible  <bruno@clisp.org>
36724
36725         * lib/uname.c: Include <string.h>.
36726         (uname): Do only one call to GetVersionEx in the common case.
36727
36728 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36729             Bruno Haible  <bruno@clisp.org>
36730
36731         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
36732         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
36733         (uname): Add support for Windows CE and various non-x86 CPU types.
36734
36735 2009-10-03  Bruno Haible  <bruno@clisp.org>
36736
36737         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
36738         invocation to tests/configure.ac.
36739         Reported by Ian Beckwith <ianb@erislabs.net>.
36740
36741 2009-10-02  Eric Blake  <ebb9@byu.net>
36742
36743         fchdir: avoid compiler warning
36744         * lib/fchdir.c (canonicalize_file_name)
36745         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
36746
36747         test-open: support mingw errno values
36748         * tests/test-open.h (test_open): Relax test.
36749         * tests/test-fopen.h (test_fopen): Likewise.
36750         * tests/test-openat-safer.c (main): Likewise.
36751
36752         open: fix opening directory on mingw
36753         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36754
36755         test-open: on GNU/Hurd, /dev/null is a directory
36756         * tests/test-fopen.h (main): Rename...
36757         (test_fopen): ...to this.  Use a guaranteed non-directory when
36758         confirming open behavior on trailing slash.
36759         * tests/test-openat-safer.c (main): Likewise.
36760         * tests/test-open.h (main): Likewise....
36761         (test_open): ...to this.
36762         * tests/test-fopen.c (main): Adjust caller.
36763         * tests/test-fopen-safer.c (main): Likewise.
36764         * tests/test-open.c (main): Likewise.
36765         * tests/test-fcntl-safer.c (main): Likewise.
36766         Reported by Samuel Thibault.
36767
36768         rename, fchdir: don't ignore chdir failure
36769         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
36770         * lib/rename.c (rpl_rename) [W32]: Likewise.
36771         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
36772         an empty destination directory if source cannot be renamed,
36773         although there is still possibility for failure.
36774         * doc/posix-functions/rename.texi (rename): Document the race.
36775         Reported by Jim Meyering.
36776
36777         maint: cleanup whitespace in recent commits
36778         * lib/rename.c (rpl_rename): Remove tabs.
36779         * tests/test-link.h (test_link): Likewise.
36780         * lib/fchdir.c (get_name): Likewise.
36781         Reported by Jim Meyering.
36782
36783 2009-10-02  Ben Pfaff  <blp@gnu.org>
36784
36785         relocatable-prog-wrapper: Add missing dependency on
36786         double-slash-root.
36787         * modules/relocatable-prog-wrapper: Add dependency.
36788         Reported by Ian Beckwith <ianb@erislabs.net>.
36789
36790 2009-10-02  Eric Blake  <ebb9@byu.net>
36791
36792         renameat: fix Solaris bugs
36793         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36794         needed fixing.
36795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36796         * modules/stdio (Makefile.am): Substitute it.
36797         * lib/stdio.in.h (renameat): Declare replacement.
36798         * lib/renameat.c (rpl_renameat): Implement fix.
36799
36800         renameat: new module
36801         * modules/renameat: New file.
36802         * lib/renameat.c (renameat): Likewise.
36803         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36805         * modules/stdio (Makefile.am): Substitute them.
36806         * lib/stdio.in.h (renameat): Declare it.
36807         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36808         * doc/posix-functions/renameat.texi (renameat): Likewise.
36809         * modules/renameat-tests: New test.
36810         * tests/test-renameat.c: Likewise.
36811
36812         rename: fix mingw bugs
36813         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36814         directory overwrite bugs.
36815
36816         rename: fix another cygwin 1.5 bug
36817         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36818         checks.
36819         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36820         unnecessary cygwin workarounds.  Also work around bug with moving
36821         full directory onto an empty one.
36822         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36823
36824         rename-dest-slash: merge into rename module
36825         * modules/rename-dest-slash (Status): Mark obsolete.
36826         (Depends-on): Add rename.
36827         (Files): Let rename do it all.
36828         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36829         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36830         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36831         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36832         * lib/rename.c (rpl_rename): Update comments.
36833
36834         rename: fix cygwin 1.5.x bugs
36835         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36836         * lib/rename.c (rpl_rename): Work around them.
36837         * modules/rename (Depends-on): Add same-inode.
36838
36839         rename: fix Solaris 10 bug
36840         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36841         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36842         was the only bug.
36843
36844         rename: fix Solaris 9 bug
36845         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36846         on non-directory.  Avoid calling exit.
36847         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36848         strdup.
36849         * modules/rename-tests (Depends-on): Drop lstat.
36850         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36851         (gl_PREREQ_RENAME): Delete unused macro.
36852
36853         rename-dest-slash: fix NetBSD bug
36854         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36855         links.
36856         * modules/rename-dest-slash (Depends-on): Add same-inode.
36857
36858         rename-tests: new test, exposes several platform bugs
36859         * modules/rename-tests: New file.
36860         * tests/test-rename.h: Likewise.
36861         * tests/test-rename.c: Likewise.
36862         * doc/posix-functions/rename.texi (rename): Improve documentation,
36863         including bugs that will eventually be fixed in gnulib.
36864
36865 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36866
36867         * lib/uname.c: Include <stdlib.h>
36868         (uname): Assume version info is available.
36869
36870 2009-10-02  Jim Meyering  <meyering@redhat.com>
36871
36872         gnu-web-doc-update: correct --help output
36873         * build-aux/gnu-web-doc-update: Make --help output relevant.
36874
36875         gnu-web-doc-update: add standard options
36876         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36877
36878         gnu-web-doc-update: New module.
36879         Use this script to automatically update the on-line web documentation
36880         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36881         * modules/gnu-web-doc-update: New file, from coreutils.
36882         * build-aux/gnu-web-doc-update: New script.
36883
36884 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36885
36886         link: LoadLibrary is not needed.
36887         * lib/link.c: Use GetModuleHandle.
36888
36889 2009-10-01  Eric Blake  <ebb9@byu.net>
36890
36891         getopt: bump serial number
36892         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36893         change.
36894
36895         tests: tighten link, rmdir, and remove tests
36896         * tests/test-link.h (includes): No need to use <config.h> here.
36897         Clean up if directory hard link was created, otherwise test for
36898         trailing '.'.
36899         * tests/test-linkat.c (main): Simplify.
36900         * tests/test-remove.c (main): Enhance test for trailing '.'.
36901         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36902
36903 2009-10-01  Jim Meyering  <meyering@redhat.com>
36904
36905         maint.mk: requiring "make major" was annoying, for a "minor" release.
36906         What is intended is "stable", to contrast with alpha and beta,
36907         so require "make stable", not "make major".
36908         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36909         (get_tool_versions): Likewise.
36910         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36911
36912 2009-09-30  Ben Pfaff  <blp@gnu.org>
36913
36914         Fix broken build of replacement for Windows tmpfile().
36915         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36916         flags argument added along with the 'mkostemp' module.
36917
36918 2009-09-28  Bruno Haible  <bruno@clisp.org>
36919
36920         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36921         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36922         to 'remove_elt'.
36923         (gl_list_remove): Update.
36924         * lib/gl_list.c (gl_list_remove): Update.
36925         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36926         to 'remove_elt'.
36927         (gl_oset_remove): Update.
36928         * lib/gl_list.c (gl_oset_remove): Update.
36929         Reported by Eric Blake.
36930
36931 2009-09-28  Eric Blake  <ebb9@byu.net>
36932
36933         doc: mention yet more cygwin 1.7 status
36934         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36935         cygwin.
36936         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36937         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36938
36939         argp: fix test failure
36940         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36941         that are not upper-case.  Pass correct range to tolower.
36942
36943 2009-09-27  Jim Meyering  <meyering@redhat.com>
36944
36945         test-yesno: work around sparc-dash here-document infelicity
36946         Without this change, the literal \177 byte in a here document
36947         would make dash 0.5.5.1-3 access uninitialized memory.
36948         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36949         Instead, use a marker, "@", and filter through tr to create the desired
36950         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36951
36952 2009-09-27  Bruno Haible  <bruno@clisp.org>
36953
36954         Disable untested support for new flavours of ACLs on AIX.
36955         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36956         progress.
36957         * lib/set-mode-acl.c (qset_acl): Likewise.
36958
36959 2008-12-07  Bruno Haible  <bruno@clisp.org>
36960
36961         Add support for new flavours of ACLs on AIX. (Untested.)
36962         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36963         (file_has_acl): Add support for newer AIX.
36964         * lib/set-mode-acl.c (qset_acl): Likewise.
36965         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36966         Rainer Tammer <tammer@tammer.net>.
36967
36968 2009-09-26  Eric Blake  <ebb9@byu.net>
36969
36970         argp: fix compilation of getopt
36971         * lib/getopt.in.h (includes): Use different guard than glibc.
36972         Reported by Sergey Poznyakoff.
36973
36974         doc: mention more cygwin 1.7 status
36975         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36976         bug.
36977         * doc/posix-functions/execl.texi (execl): Likewise.
36978         * doc/posix-functions/execle.texi (execle): Likewise.
36979         * doc/posix-functions/execlp.texi (execlp): Likewise.
36980         * doc/posix-functions/execv.texi (execv): Likewise.
36981         * doc/posix-functions/execve.texi (execve): Likewise.
36982         * doc/posix-functions/execvp.texi (execvp): Likewise.
36983         * doc/glibc-functions/canonicalize_file_name.texi
36984         (canonicalize_file_name): Cygwin 1.7 now provides this.
36985         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36986         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36987         on AT_SYMLINK_NOFOLLOW.
36988
36989 2009-09-24  Eric Blake  <ebb9@byu.net>
36990
36991         test-linkat: make test more robust
36992         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36993
36994         getopt: fix inclusion guards for cygwin
36995         * modules/getopt-posix (Depends-on): Add include-next.
36996         (Makefile.am): Substitute more items in replacement header.
36997         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36998         <getopt.h>.
36999         * lib/getopt.in.h (includes): Use split inclusion guard, and
37000         prefer <getopt.h> over include <unistd.h> when one is present.
37001         (option): Also override name of 'struct option'.
37002
37003         same-inode: revert prior change; it is not yet ready
37004         * NEWS: Undo mention of this change.
37005         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37006         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37007         * lib/cycle-check.c (cycle_check): Likewise.
37008         * lib/same.c (same_name): Likewise.
37009         * lib/at-func2.c (at_func2): Likewise.
37010
37011 2009-09-23  Eric Blake  <ebb9@byu.net>
37012
37013         linkat: new module
37014         * modules/linkat: New file.
37015         * lib/at-func2.c (at_func2): Likewise.
37016         * lib/linkat.c (linkat): Likewise.
37017         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37018         * lib/openat-priv.h (at_func2): Add declaration.
37019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37020         * modules/unistd (Makefile.am): Substitute them.
37021         * lib/unistd.in.h (linkat): Declare it.
37022         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37023         * doc/posix-functions/linkat.texi (linkat): Likewise.
37024         * doc/posix-functions/link.texi (link): Tweak wording.
37025         * tests/test-link.c (main): Move guts...
37026         * tests/test-link.h (test_link): ...into new file.
37027         * modules/linkat-tests: New test.
37028         * tests/test-linkat.c: Likewise.
37029         * modules/link-tests (Files): Ship new file.
37030         (Depends-on): Add stdbool.
37031
37032         dirname: add library-safe mdir_name
37033         * lib/dirname.h (mdir_name): New prototype.
37034         * lib/dirname.c (dir_name): Move guts...
37035         (mdir_name): ...to new function that avoids xalloc_die.
37036
37037         fchdir: another mingw fix
37038         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37039         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37040         on mingw (where it has not yet been ported), and make it optional
37041         elsewhere.
37042         (_gl_register_fd): Use it.
37043
37044         same-inode: make SAME_INODE tri-state, to port to mingw
37045         * NEWS: Mention this change.
37046         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37047         st_ino always being 0.
37048         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37049         * lib/cycle-check.c (cycle_check): Likewise.
37050         * lib/same.c (same_name): Likewise.
37051
37052         lstat: avoid mingw compilation error
37053         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37054         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37055         lstat ourselves.
37056         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37057         was adequate.
37058         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37059         the checks for lstat.
37060         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37061
37062         link: fix test failure on Solaris 9
37063         * lib/link.c (rpl_link): Don't assume link will catch bogus
37064         trailing slash on source.
37065
37066         test-symlinkat: enhance test
37067         * tests/test-readlink.c (main): Move guts...
37068         * tests/test-readlink.h (test_readlink): ...into new file.
37069         * tests/test-symlink.c (main): Move guts...
37070         * tests/test-symlink.h (test_symlink): ...into new file.
37071         * tests/test-symlinkat.c (main): Use new files for further
37072         coverage.
37073         (do_symlink, do_readlink): New helper functions.
37074         * modules/symlink-tests (Files): Ship new file.
37075         (Depends-on): Add stdbool.
37076         * modules/readlink-tests (Files): Ship new file.
37077         (Depends-on): Add stdbool.
37078         * modules/symlinkat-tests (Files): Use new files.
37079
37080 2009-09-23  Eric Blake  <ebb9@byu.net>
37081
37082         readlink: document portability issue with symlink length
37083         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37084         systems have bogus st_size on symlinks, and mention the
37085         areadlink-with-size module.
37086         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37087         * doc/posix-functions/readlink.texi (readlink): Mention the
37088         areadlink module, and ERANGE failure.
37089         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37090         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37091
37092         readlink: fix Solaris 9 bug with trailing slash
37093         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37094         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37095         * doc/posix-functions/readlink.texi (readlink): Document this.
37096         * modules/readlink-tests: New test.
37097         * tests/test-readlink.c: Likewise.
37098
37099         readlink: fix cygwin 1.5.x bug with return type
37100         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37101         * lib/unistd.in.h (readlink): Use ssize_t.
37102         * lib/readlink.c (readlink): Likewise.
37103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37104         * modules/unistd (Makefile.am): Substitute it.
37105         * lib/unistd.in.h (readlink): Declare replacement.
37106         * doc/posix-functions/readlink.texi (readlink): Document this.
37107
37108         symlink: use throughout gnulib
37109         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37110         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37111         symlink is not used.
37112         * modules/symlinkat (Depends-on): Add symlink.
37113         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37114         * modules/canonicalize-tests (Depends-on): Likewise.
37115         * modules/lstat-tests (Depends-on): Likewise.
37116         * modules/openat-tests (Depends-on): Likewise.
37117         * modules/remove-tests (Depends-on): Likewise.
37118         * modules/rmdir-tests (Depends-on): Likewise.
37119         * modules/unlink-tests (Depends-on): Likewise.
37120         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37121         * tests/test-canonicalize.c (symlink): Likewise.
37122         * tests/test-fstatat.c (symlink): Likewise.
37123         * tests/test-lstat.c (symlink): Likewise.
37124         * tests/test-remove.c (symlink): Likewise.
37125         * tests/test-rmdir.c (symlink): Likewise.
37126         * tests/test-unlink.c (symlink): Likewise.
37127         * tests/test-unlinkat.c (symlink): Likewise.
37128
37129         symlink: new module, for Solaris 9 bug
37130         * modules/symlink: New file.
37131         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37132         * lib/symlink.c: Likewise.
37133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37134         * modules/unistd (Makefile.am): Substitute them.
37135         * lib/unistd.in.h (symlink): Declare replacement.
37136         * MODULES.html.sh (File system functions): Mention it.
37137         * doc/posix-functions/symlink.texi (symlink): Likewise.
37138         * modules/symlink-tests: New test.
37139         * tests/test-symlink.c: Likewise.
37140
37141 2009-09-23  Bruno Haible  <bruno@clisp.org>
37142
37143         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37144         when needed.
37145         Test case: gnulib-tool --import --with-tests atexit inttypes.
37146         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37147
37148 2009-09-23  Bruno Haible  <bruno@clisp.org>
37149
37150         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37151         subcommand, not in a subshell.
37152
37153 2009-09-22  Eric Blake  <ebb9@byu.net>
37154
37155         unistd: sort replacement declarations
37156         * lib/unistd.in.h: Sort declarations.
37157
37158         open, openat: minor optimization
37159         * lib/open.c (open): If open succeeded, len is non-zero.
37160         * lib/openat.c (rpl_openat): Likewise.
37161
37162         link-follow: ensure correct result
37163         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37164         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37165         distinguish between possible failures.
37166
37167 2009-09-21  Eric Blake  <ebb9@byu.net>
37168
37169         fts: avoid compiler warning
37170         * lib/fts.c (dirent_inode_sort_may_be_useful)
37171         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37172
37173 2009-09-19  Bruno Haible  <bruno@clisp.org>
37174
37175         * lib/progreloc.c (canonicalize_file_name): New declaration.
37176
37177 2009-09-19  Eric Blake  <ebb9@byu.net>
37178
37179         link: fix quoting
37180         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37181
37182         openat: fix openat bugs on Solaris 9
37183         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37184         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37185         * modules/openat (Depends-on): Add open.
37186         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37187         * modules/fcntl-h (Makefile.am): Substitute it.
37188         * lib/fcntl.in.h (openat): Declare replacement.
37189         * doc/posix-functions/openat.texi (openat): Document this.
37190
37191         openat: move fstatat and unlinkat into correct files
37192         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37193         compiled.
37194         * lib/openat.c (fstatat, unlinkat): Move...
37195         * lib/fstatat.c (fstatat): ...into correct files.
37196         * lib/unlinkat.c (unlinkat): Likewise.
37197
37198         openat: fix unlinkat bugs on Solaris 9
37199         * lib/unlinkat.c (unlinkat): New file.
37200         * modules/openat (Depends-on): Add unlink.
37201         (Files): Distribute it.
37202         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37203         trailing slash behavior is broken.
37204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37205         * modules/unistd (Makefile.am): Substitute it.
37206         * lib/unistd.in.h (unlinkat): Declare replacement.
37207         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37208
37209         openat: fix fstatat bugs on Solaris 9
37210         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37211         stat.
37212         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37213
37214         test-unlinkat: enhance test, to expose Solaris 9 bug
37215         * tests/test-unlink.c (main): Factor guts...
37216         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37217         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37218         * tests/test-rmdir.c (main): Adjust caller.
37219         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37220         (unlinker): New helper function.
37221         (rmdirat): Enhance check.
37222         * modules/rmdir-tests (Depends-on): Add stdbool.
37223         * modules/unlink-tests (Depends-on): Likewise.
37224         (Files): Add test-unlink.h.
37225         * modules/openat-tests (Files): Likewise.
37226         (Depends-on): Add unlinkdir.
37227
37228         test-fstatat: new test, to expose Solaris 9 bugs
37229         * tests/test-stat.c (main): Factor guts...
37230         * tests/test-stat.h (test_stat_func): ...into new file.
37231         * tests/test-lstat.c (main): Factor guts...
37232         * tests/test-lstat.h (test_lstat_func): ...into new file.
37233         * tests/test-fstatat.c: New file.
37234         * modules/stat-tests (Files): Add test-stat.h.
37235         * modules/lstat-tests (Files): Add test-lstat.h.
37236         (Depends-on): Add stdbool.
37237         * modules/openat-tests (Depends-on): Add pathmax.
37238         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37239         (Makefile.am): Run new test.
37240
37241         remove: new module, for mingw and Solaris 9 bugs
37242         * modules/remove: New file.
37243         * lib/remove.c: Likewise.
37244         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37246         * modules/stdio (Makefile.am): Use them.
37247         * lib/stdio.in.h (remove): Declare replacement.
37248         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37249         * doc/posix-functions/remove.texi (remove): Likewise.
37250         * modules/remove-tests: New test.
37251         * tests/test-remove.c: Likewise.
37252
37253         unlink: new module, for Solaris 9 bug
37254         * modules/unlink: New file.
37255         * lib/unlink.c: Likewise.
37256         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37258         * modules/unistd (Makefile.am): Use them.
37259         * lib/unistd.in.h (stat): Declare replacement.
37260         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37261         * doc/posix-functions/unlink.texi (unlink): Likewise.
37262         * modules/unlink-tests: New test.
37263         * tests/test-unlink.c: Likewise.
37264
37265         lstat: fix Solaris 9 bug
37266         * lib/lstat.c (lstat): Also check for trailing slash on
37267         non-symlink, non-directories.  Use stat module to simplify logic.
37268         * doc/posix-functions/lstat.texi (lstat): Document it.
37269         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37270         (configure.ac): Check for symlink.
37271         * tests/test-lstat.c (main): Add more tests.
37272
37273         stat: add as dependency to other modules
37274         * modules/chown (Depends-on): Add stat.
37275         * modules/euidaccess (Depends-on): Likewise.
37276         * modules/fchdir (Depends-on): Likewise.
37277         * modules/isdir (Depends-on): Likewise.
37278         * modules/link (Depends-on): Likewise.
37279         * modules/lstat (Depends-on): Likewise.
37280         * modules/mkdir-p (Depends-on): Likewise.
37281         * modules/modechange (Depends-on): Likewise.
37282         * modules/open (Depends-on): Likewise.
37283         * modules/readlink (Depends-on): Likewise.
37284         * modules/same (Depends-on): Likewise.
37285
37286         stat: fix Solaris 9 bug
37287         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37288         slash.
37289         * lib/stat.c (rpl_stat): Work around it.
37290         * doc/posix-functions/stat.texi (stat): Update documentation.
37291
37292         stat: new module, for mingw bug
37293         * modules/stat: New file.
37294         * lib/stat.c: Likewise.
37295         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37297         * modules/sys_stat (Makefile.am): Use them.
37298         * lib/sys_stat.in.h (stat): Declare replacement.
37299         * lib/openat.c (fstatat): Deal with lstat and stat being function
37300         macros.
37301         * modules/openat (Depends-on): Add inline.
37302         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37303         * doc/posix-functions/stat.texi (stat): Likewise.
37304         * modules/stat-tests: New test.
37305         * tests/test-stat.c: Likewise.
37306
37307 2009-09-19  Jim Meyering  <meyering@redhat.com>
37308
37309         syntax-check: detect unnecessary inclusion of canonicalize.h
37310         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37311
37312 2009-09-19  Eric Blake  <ebb9@byu.net>
37313
37314         canonicalize-lgpl: adjust clients to use correct header
37315         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37316         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37317         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37318         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37319         * lib/progreloc.c (includes): Likewise.
37320
37321 2009-09-19  Jim Meyering  <meyering@redhat.com>
37322
37323         test-posixtm.c: correct a comment
37324         * tests/test-posixtm.c: Correct first-line comment.
37325         Spotted by Eric Blake.
37326
37327 2009-09-16  Jim Meyering  <meyering@redhat.com>
37328
37329         posixtm-tests: make T const-correct; add a test case
37330         * tests/test-posixtm.c (T): Declare const.
37331         Add a test for -(2^31+1).
37332         Remove useless can-succeed-only-in-2002 test.
37333
37334         posixtm-tests: adjust the sole failing test
37335         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37336         expected output matches what mktime now produces.  Cross-checked via
37337         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37338
37339         posixtm: move #ifdef'd tests into a new module
37340         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37341         * tests/test-posixtm.c: ... this new file.
37342         * modules/posixtm-tests: New module.
37343
37344 2009-09-19  Eric Blake  <ebb9@byu.net>
37345
37346         openat: simplify use of at-func.c
37347         * lib/at-func.c (includes): Include prerequisites here, to
37348         simplify requirements on client files.
37349         * lib/openat-priv.h: Add double-inclusion guard.
37350         * lib/faccessat.c (includes): Simplify.
37351         * lib/fchmodat.c (includes): Likewise.
37352         * lib/fchownat.c (includes): Likewise.
37353         * lib/mkdirat.c (includes): Likewise.
37354         * lib/mkfifoat.c (includes): Likewise.
37355         * lib/symlinkat.c (includes): Likewise.
37356
37357         openat: allow return of fd 0
37358         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37359         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37360         unistd-safer.
37361         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37362         <fcntl.h>; this module does not leak fds.
37363         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37364         must be allowed to return 0, leaving openat_safer to add the
37365         safety.
37366         (openat_permissive): Avoid writing to just-opened fd 2 if
37367         restoring the current directory fails.
37368         * lib/openat-die.c (openat_restore_fail): Add comment.
37369         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37370         (save_cwd): Guarantee safe fd, but without use of open_safer.
37371         * tests/test-openat.c: New test.
37372         * modules/openat-tests (Files, Makefile.am): Distribute and build
37373         new file.
37374
37375         relocatable-prog-wrapper: fix build
37376         * modules/relocatable-prog-wrapper (Files): Update name of
37377         canonicalize m4 file, broken on 2009-09-17.
37378         Reported by emad hajjar <aleppos@hotmail.com>.
37379
37380 2009-09-19  Bruno Haible  <bruno@clisp.org>
37381
37382         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37383         * lib/safe-alloc.c: Likewise.
37384         Reported by Ian Beckwith <ianb@erislabs.net>.
37385
37386 2009-09-18  Bruno Haible  <bruno@clisp.org>
37387
37388         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37389         Reported by <erobles@sensacd.com.mx>.
37390
37391 2009-09-17  Eric Blake  <ebb9@byu.net>
37392
37393         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37394         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37395         slashes when checking if last component is missing.
37396         * tests/test-canonicalize.c (main): Test this.
37397
37398         canonicalize, canonicalize-lgpl: honor // if distinct from /
37399         * modules/canonicalize (Files): Add double-slash-root.m4.
37400         * modules/canonicalize-lgpl (Files): Likewise.
37401         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37402         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37403         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37404         fallback definition.
37405         (canonicalize_filename_mode): Use it to protect //.
37406         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37407         (__realpath): Likewise.
37408         * tests/test-canonicalize.c (main): Test this.
37409         * tests/test-canonicalize-lgpl.c (main): Likewise.
37410         * modules/canonicalize-tests (Depends-on): Add same-inode.
37411         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37412
37413         canonicalize-lgpl: fix glibc bug with trailing slash
37414         * m4/canonicalize-lgpl.m4: Move contents...
37415         * m4/canonicalize.m4: ...here.
37416         (gl_CANONICALIZE_LGPL): Factor realpath check...
37417         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37418         glibc 2.3.5 bug, fixed 2005-04-27.
37419         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37420         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37421         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37422         * modules/canonicalize-lgpl (Files): Manage file rename.
37423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37424         * modules/stdlib (Makefile.am): Substitute witness.
37425         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37426         is needed.
37427         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37428         replacement is required.
37429         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37430         * doc/glibc-functions/canonicalize_file_name.texi
37431         (canonicalize_file_name): Document this.
37432         * doc/posix-functions/realpath.texi (realpath): Likewise.
37433
37434         canonicalize-lgpl: reject non-directory with trailing slash
37435         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37436         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37437         catches failures in glibc 2.3.5.
37438         * tests/test-canonicalize.c (main): Likewise.
37439
37440         canonicalize-lgpl: use native realpath if it works
37441         * lib/canonicalize-lgpl.c (realpath): Guard with
37442         FUNC_REALPATH_WORKS.
37443         * lib/stdlib.in.h (realpath): Make declaration optional based on
37444         HAVE_REALPATH.
37445         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37446         native realpath works.
37447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37448         * modules/stdlib (Makefile.am): Substitute witness.
37449
37450         canonicalize, canonicalize-lgpl: use <stdlib.h>
37451         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37452         (Include): Mention <stdlib.h>.
37453         (configure.ac): Mention functions we provide.
37454         * modules/canonicalize (configure.ac): Likewise.
37455         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37456         realpath if canonicalize_file_name is missing.
37457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37458         * modules/stdlib (Makefile.am): Substitute witnesses.
37459         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37460         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37461         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37462         * NEWS: Document this.
37463         * doc/glibc-functions/canonicalize_file_name.texi
37464         (canonicalize_file_name): Likewise.
37465         * doc/posix-functions/realpath.texi (realpath): Likewise.
37466         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37467
37468         test-canonicalize: consolidate into single C program
37469         * tests/test-canonicalize.sh: Delete; move setup into...
37470         * tests/test-canonicalize.c (main): ...the program, making it
37471         easier to run in debugger.  Add some tests.
37472         * modules/canonicalize-tests (Files): Remove unused file.
37473         (Depends-on): Add progname.
37474         (configure.ac, Makefile.am): Simplify.
37475
37476         test-canonicalize-lgpl: consolidate into single C program
37477         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37478         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37479         easier to run in debugger.  Add some tests.
37480         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37481         (configure.ac, Makefile.am): Simplify.
37482
37483         canonicalize: avoid resolvepath
37484         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37485         unnecessary checks.
37486         * lib/canonicalize.c (includes): Simplify.
37487         (canonicalize_file_name): Drop resolvepath implementation.
37488         * modules/canonicalize (Depends-on): Drop filenamecat.
37489
37490         canonicalize: don't lose errno
37491         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37492         over calls to free.
37493
37494         canonicalize: simplify errno handling
37495         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37496         assignment.
37497
37498         canonicalize, canonicalize-lgpl: update module dependencies
37499         * modules/canonicalize (Depends-on): Add extensions, lstat,
37500         pathmax, stdlib.
37501         (Files): Drop pathmax.h.
37502         (configure.ac): Adjust macro name.
37503         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37504         lstat, stdlib, sys_stat.
37505         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37506         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37507         extensions.
37508         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37509         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37510         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37511         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37512         declaration, if available.
37513         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37514         we can rely on the readlink module.
37515         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37516         (includes): Use <unistd.h> unconditionally.
37517
37518 2009-09-17  Eric Blake  <ebb9@byu.net>
37519
37520         maint: make Include sections of modules consistent
37521         * modules/alloca: Use only header name; no need to list #include.
37522         * modules/alloca-opt: Likewise.
37523         * modules/arpa_inet: Likewise.
37524         * modules/canon-host: Likewise.
37525         * modules/configmake: Likewise.
37526         * modules/dirent: Likewise.
37527         * modules/eealloc: Likewise.
37528         * modules/environ: Likewise.
37529         * modules/fchdir: Likewise.
37530         * modules/fcntl: Likewise.
37531         * modules/fcntl-h: Likewise.
37532         * modules/gethrxtime: Likewise.
37533         * modules/gettime: Likewise.
37534         * modules/ignore-value: Likewise.
37535         * modules/inet_ntop: Likewise.
37536         * modules/inet_pton: Likewise.
37537         * modules/inttypes: Likewise.
37538         * modules/isnand-nolibm: Likewise.
37539         * modules/isnanf-nolibm: Likewise.
37540         * modules/mbchar: Likewise.
37541         * modules/mbfile: Likewise.
37542         * modules/mbiter: Likewise.
37543         * modules/mbuiter: Likewise.
37544         * modules/netdb: Likewise.
37545         * modules/netinet_in: Likewise.
37546         * modules/nproc: Likewise.
37547         * modules/pagealign_alloc: Likewise.
37548         * modules/poll: Likewise.
37549         * modules/printf-frexp: Likewise.
37550         * modules/pthread: Likewise.
37551         * modules/putenv: Likewise.
37552         * modules/random_r: Likewise.
37553         * modules/relocatable-prog: Likewise.
37554         * modules/search: Likewise.
37555         * modules/select: Likewise.
37556         * modules/selinux-h: Likewise.
37557         * modules/settime: Likewise.
37558         * modules/signal: Likewise.
37559         * modules/size_max: Likewise.
37560         * modules/socklen: Likewise.
37561         * modules/ssize_t: Likewise.
37562         * modules/stdarg: Likewise.
37563         * modules/stdbool: Likewise.
37564         * modules/stddef: Likewise.
37565         * modules/stdint: Likewise.
37566         * modules/stdio: Likewise.
37567         * modules/stdlib: Likewise.
37568         * modules/string: Likewise.
37569         * modules/strings: Likewise.
37570         * modules/sys_file: Likewise.
37571         * modules/sys_ioctl: Likewise.
37572         * modules/sys_select: Likewise.
37573         * modules/sys_socket: Likewise.
37574         * modules/sys_stat: Likewise.
37575         * modules/sys_time: Likewise.
37576         * modules/sys_times: Likewise.
37577         * modules/sys_utsname: Likewise.
37578         * modules/sys_wait: Likewise.
37579         * modules/sysexits: Likewise.
37580         * modules/time: Likewise.
37581         * modules/times: Likewise.
37582         * modules/tmpfile: Likewise.
37583         * modules/trim: Likewise.
37584         * modules/unistd: Likewise.
37585         * modules/wchar: Likewise.
37586         * modules/wctype: Likewise.
37587
37588 2009-09-17  Bruno Haible  <bruno@clisp.org>
37589
37590         Make getdate.y compile on QNX and NetBSD 5 / i386.
37591         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37592         TIME_T_FITS_IN_LONG_INT.
37593         * lib/getdate.y (long_time_t): New type.
37594         (relative_time): Change type of 'seconds' field to long_time_t.
37595         (get_date): Update types of local variables. Check against overflow
37596         during conversion from long_time_t to time_t.
37597         Reported by Matt Kraai <kraai@ftbfs.org>
37598         and Hasso Tepper <hasso@netbsd.org>.
37599
37600 2009-09-17  Bruno Haible  <bruno@clisp.org>
37601
37602         * modules/COPYING: Update copyright years.
37603         * modules/README: Likeiwse.
37604         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37605         Reported by Ian Beckwith <ianb@erislabs.net>.
37606
37607 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37608
37609         * users.txt: Update references for gnuit package.
37610
37611 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37612
37613         * m4/getdelim.m4: Fix typo in copyright line.
37614
37615 2009-09-17  Bruno Haible  <bruno@clisp.org>
37616
37617         * lib/atoll.c: Use the standard header with GPL copyright.
37618         * lib/argz.in.h: Likewise.
37619         * lib/glob.c: Likewise.
37620         * lib/glob-libc.h: Likewise.
37621         * lib/random_r.c: Likewise.
37622         * lib/siglist.h: Likewise.
37623         * lib/strsignal.c: Likewise.
37624         Reported by Ian Beckwith <ianb@erislabs.net>.
37625
37626 2009-09-17  Eric Blake  <ebb9@byu.net>
37627
37628         rmdir: ensure correct dependency order
37629         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37630
37631 2009-09-17  Bruno Haible  <bruno@clisp.org>
37632
37633         Disable assertion that fails on NetBSD 5 / i386.
37634         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37635         Reported by Sam Steingold <sds@gnu.org>
37636         and Hasso Tepper <hasso@netbsd.org>.
37637
37638 2009-09-16  Eric Blake  <ebb9@byu.net>
37639
37640         unlinkdir: port to mingw
37641         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37642         on which no one can unlink a directory.
37643
37644         stdlib: sort witness names
37645         * modules/stdlib (Makefile.am): Sort replacements.
37646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37647         * lib/stdlib.in.h: Likewise.
37648
37649         parse-duration-tests: avoid link failure
37650         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37651         LIBINTL.
37652         Reported by Tom G. Christensen.
37653
37654         openat-tests: ensure unlinkat behaves like rmdir
37655         * tests/test-rmdir.c (main): Factor guts...
37656         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37657         * modules/rmdir-tests (Files): Ship new file.
37658         * modules/openat-tests: New test.
37659         * tests/test-unlinkat.c: Likewise.
37660
37661         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37662         * modules/rmdir-errno (Status, Notice): Now obsolete.
37663
37664         rmdir: work around cygwin 1.5.x and mingw bugs
37665         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37666         * lib/rmdir.c (rmdir): Work around it.
37667         * modules/rmdir (Status, Notice): No longer obsolete.
37668         (Files): Add dos.m4.
37669         (Depends-on): Add unistd.
37670         (configure.ac): Set witnesses.
37671         (License): Relax to LGPLv2+.
37672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37673         * modules/unistd (Makefile.am): Substitute witnesses.
37674         * lib/unistd.in.h (rmdir): Declare replacement.
37675         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37676         * modules/rmdir-tests: New tests.
37677         * tests/test-rmdir.c: Likewise.
37678
37679 2009-09-15  Eric Blake  <ebb9@byu.net>
37680
37681         fchdir: improve use of replacement functions
37682         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37683         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37684         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37685         REPLACE_CLOSEDIR.
37686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37687         * modules/sys_stat (Makefile.am): Substitute correct witness.
37688         * modules/dirent (Makefile.am): Likewise.
37689         * modules/unistd (Makefile.am): Likewise.
37690         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37691         * lib/unistd.in.h (dup): Likewise.
37692         * lib/sys_stat.in.h (fstat): Likewise.
37693
37694         maint: ignore gnulib-tool temp files
37695         * .gitignore: Ignore files created during gnulib-tool --test.
37696
37697 2009-09-13  Jim Meyering  <meyering@redhat.com>
37698
37699         posixtm: don't reject a time that specify "60" as the number of seconds
37700         * lib/posixtm.c (posixtime): The code to reject invalid dates
37701         would also reject a time specified with the .60 suffix.
37702         But POSIX allows that, in order to accommodate leap seconds.
37703         So don't reject it.
37704         (main): Adjust tests accordingly.
37705         * modules/posixtm (Depends-on): Add stpcpy.
37706
37707 2009-09-11  Jim Meyering  <meyering@redhat.com>
37708
37709         announce-gen: include [$release_type] in emitted Subject:
37710         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
37711         e.g., [stable] in the emitted Subject: line.
37712
37713 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37714
37715         Remove obsolete macros from several modules.
37716         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
37717         obsolete Autoconf macros with their modern counterparts.
37718         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
37719         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
37720         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
37721         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37722         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
37723         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37724         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37725         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37726         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37727         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
37728         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37729         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37730         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
37731         * m4/sockets.m4 (gl_SOCKETS): Likewise.
37732         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
37733         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
37734         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37735         * m4/time_r.m4 (gl_TIME_R): Likewise.
37736         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37737         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
37738         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37739
37740         Fix copyright header in build-aux scripts.
37741         * build-aux/git-version-gen: Fix copyright header to match GPLv3
37742         recommendation.
37743         * build-aux/ncftpput-ftp: Likewise.
37744         * build-aux/update-copyright: Likewise.
37745
37746 2009-09-09  Eric Blake  <ebb9@byu.net>
37747
37748         test-link: allow Linux choice of errno
37749         * tests/test-link.c (main): Relax test for alternate error.
37750
37751         strndup: fix improper m4 caching
37752         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
37753         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37754         (gl_PREREQ_STRNDUP): Delete.
37755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37756         * modules/string (Makefile.am): Substitute it.
37757         * lib/string.in.h (strndup): Modernize prototype.
37758
37759         getcwd: port to mingw
37760         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37761         different from the POSIX assumptions made throughout the getcwd
37762         module; fortunately, the mingw getcwd does not need replacement.
37763         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37764         * modules/getcwd-tests: New test.
37765         * tests/test-getcwd.c: Likewise.
37766
37767         link: fix platform bugs
37768         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37769         * lib/link.c (link): Work around them.  Fix related mingw bug.
37770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
37771         * modules/unistd (Makefile.am): Substitute it.
37772         * lib/unistd.in.h (link): Declare replacement.
37773         * doc/posix-functions/link.texi (link): Document this.
37774         * modules/link (Depends-on): Add strdup-posix, sys_stat.
37775
37776         test-link: consolidate into single C program, test more cases
37777         * tests/test-link.sh: Delete.
37778         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37779         at least Cygwin and Solaris.
37780         * modules/link-tests (Files): Remove unused file.
37781         (Depends-on): Add errno, sys_stat.
37782         (Makefile.am): Simplify.
37783
37784 2009-09-08  Bruno Haible  <bruno@clisp.org>
37785
37786         Work around towlower, towupper bug on mingw.
37787         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37788         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37789         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37790         * doc/posix-functions/towupper.texi: Likewise.
37791         Reported by Eric Blake.
37792
37793 2009-09-08  Jim Meyering  <meyering@redhat.com>
37794
37795         build: don't try to run autoheader if we don't use it
37796         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37797         is not used in configure.ac.
37798
37799 2009-09-08  Eric Blake  <ebb9@byu.net>
37800
37801         euidaccess: fix compilation error
37802         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37803
37804         rawmemchr: relax license
37805         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37806         okay.
37807         Reported by Jim Meyering.
37808
37809         mkfifoat: new module
37810         * modules/mkfifoat: New file.
37811         * lib/mkfifoat.c: Likewise.
37812         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37813         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37814         * modules/sys_stat (Makefile.am): Use them.
37815         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37816         * MODULES.html.sh (File system functions): Mention module.
37817         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37818         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37819         * modules/mkfifoat-tests: New test.
37820         * tests/test-mkfifoat.c: Likewise.
37821
37822         strchrnul: relax license
37823         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37824         okay.
37825         Reported by Jim Meyering.
37826
37827 2009-09-08  Eric Blake  <ebb9@byu.net>
37828
37829         fstatat: fix compilation on Solaris
37830         * lib/fstatat.c (includes): Add fcntl.h.
37831         Reported by Pádraig Brady.
37832
37833 2009-09-07  Eric Blake  <ebb9@byu.net>
37834
37835         rename: modernize replacement
37836         * modules/rename (Depends-on): Add stdio.
37837         (configure.ac): Declare witness.
37838         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37839         stdio take care of replacement.
37840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37841         * modules/stdio (Makefile.am): Substitute them.
37842         * lib/stdio.in.h (rename): Declare replacement.
37843         * lib/rename.c (includes): Allow cross-compilation to non-windows
37844         machines.
37845         * doc/posix-functions/rename.texi (rename): Improve
37846         documentation.
37847
37848         stdio: sort witness names
37849         * modules/stdio (Makefile.am): Sort replacements.
37850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37851         * lib/stdio.in.h: Likewise.
37852
37853         getcwd: minor cleanups
37854         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37855         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37856
37857         openat: provide more convenience names
37858         * modules/faccessat (configure.ac): Add C witness.
37859         * lib/unistd.in.h (readlinkat): Fix typo.
37860         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37861         convenience wrappers.
37862         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37863         wrappers in syntax checks.
37864
37865 2009-09-06  Eric Blake  <ebb9@byu.net>
37866
37867         doc: fix comments in recent patches
37868         * lib/faccessat.c: Mention correct function.
37869         * lib/fchmodat.c: Likewise.
37870         * lib/fchownat.c: Likewise.
37871         * lib/symlinkat.c: Likewise.
37872         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37873         constants.
37874
37875         faccessat, symlinkat: continue cleanup of previous patch
37876         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37877         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37878         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37880         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37881         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37882         set.
37883
37884 2009-09-06  Bruno Haible  <bruno@clisp.org>
37885
37886         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37887         (fstatat): Declare if GNULIB_FSTATAT is set.
37888         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37889         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37890         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37891         * modules/fcntl-h (Files): Remove m4/openat.m4.
37892         * modules/sys_stat (Files): Remove m4/openat.m4.
37893         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37894         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37895         * modules/unistd (Files): Remove m4/openat.m4.
37896         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37897         GNULIB_OPENAT.
37898         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37899         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37900         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37901         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37902         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37903         gl_OPENAT_DEFAULTS.
37904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37905         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37906         Don't require gl_OPENAT_DEFAULTS.
37907         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37908         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37909         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37910         (gl_OPENAT_DEFAULTS): Remove macro.
37911
37912 2009-09-06  Bruno Haible  <bruno@clisp.org>
37913
37914         * modules/openat (configure.ac): Remove unneeded witness.
37915
37916 2009-09-06  Bruno Haible  <bruno@clisp.org>
37917
37918         Set errno to ENOSYS when a function is entirely unsupported.
37919         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37920         EOPNOTSUPP.
37921         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37922         * modules/chown (Depends-on): Remove errno.
37923
37924 2009-09-06  Bruno Haible  <bruno@clisp.org>
37925
37926         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37927
37928 2009-09-06  Bruno Haible  <bruno@clisp.org>
37929
37930         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37931
37932 2009-09-06  Ben Pfaff  <blp@gnu.org>
37933             Bruno Haible  <bruno@clisp.org>
37934
37935         Work around a glibc bug in strtok_r.
37936         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37937         Undefine if UNDEFINE_STRTOK_R is set.
37938         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37940         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37941         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37942         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37943         UNDEFINE_STRTOK_R.
37944         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37945
37946 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37947
37948         exclude: minor fix
37949         * lib/exclude.c: Include wctype.h
37950
37951 2009-09-06  Akim Demaille  <demaille@gostai.com>
37952
37953         bootstrap: improve error message
37954         * build-aux/bootstrap (find_tool): Upon failure, report the list
37955         of candidates.
37956         Honor the initial value of the envvar.
37957
37958 2009-09-05  Eric Blake  <ebb9@byu.net>
37959
37960         symlinkat: new module
37961         * modules/symlinkat: New file.
37962         * lib/symlinkat.c: Likewise.
37963         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37965         * modules/unistd (Makefile.am): Use them.
37966         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37967         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37968         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37969         * MODULES.html.sh (File system functions): Mention module.
37970         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37971         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37972         * modules/symlinkat-tests: New test.
37973         * tests/test-symlinkat.c: Likewise.
37974
37975         test-openat-safer: add more checks
37976         * tests/test-openat-safer.c (main): Check more code paths.
37977
37978 2009-09-05  Jim Meyering  <meyering@redhat.com>
37979
37980         syntax-check: detect unnecessary inclusion of openat.h
37981         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37982
37983 2009-09-05  Bruno Haible  <bruno@clisp.org>
37984
37985         Support towlower, towupper.
37986         * doc/posix-functions/towlower.texi: Mention module wctype.
37987         * doc/posix-functions/towupper.texi: Likewise.
37988         * lib/wctype.in.h (towlower, towupper): New functions.
37989         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37990         (ASSERT): New macro.
37991         (e): New variable.
37992         (main): Test also towlower, towupper. Test WEOF argument.
37993         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37994
37995 2009-09-05  Bruno Haible  <bruno@clisp.org>
37996
37997         Fix conversion behaviour when the input is invalid.
37998         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37999         mark occurring in first pass of indirect conversion.
38000         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38001         input.
38002         Found by clang's static analyzer.
38003
38004 2009-09-05  Bruno Haible  <bruno@clisp.org>
38005
38006         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38007         where direct conversion is possible.
38008
38009 2009-09-04  Eric Blake  <ebb9@byu.net>
38010
38011         openat: fail with ENOENT on empty name
38012         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38013         buffer.
38014
38015         link-follow: fix logic bug in prior patch
38016         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38017         reversed sense of yes and no in prior patch.  Avoid confusing
38018         compilation failure with desired semantics.
38019
38020         link-follow: accomodate mingw and cross-compilation
38021         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38022         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38023         cross-compilation results to -1, to make linkat easier to
38024         implement when cross-compiling.  Trivially support mingw.
38025         * modules/link-follow (configure.ac): Call new name.
38026         * NEWS: Mention this.
38027
38028 2009-09-03  Eric Blake  <ebb9@byu.net>
38029
38030         faccessat: compile replacement
38031         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38032         needed.
38033
38034         fts: fix compilation error
38035         * lib/fts.c (includes): Re-add "openat.h", for
38036         openat_needs_fchdir.
38037
38038         faccessat: new module
38039         * modules/faccessat: New file.
38040         * lib/faccessat.c: Likewise.
38041         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38043         * modules/unistd (Makefile.am): Use it.
38044         * lib/unistd.in.h (faccessat): Declare it.
38045         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38046         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38047         * MODULES.html.sh (File system functions): Mention it.
38048         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38049         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38050
38051         euidaccess: prefer POSIX over non-standard implementation
38052         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38053         * lib/euidaccess.c (euidaccess): Use it if available.
38054
38055         openat: make template easier to use
38056         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38057         AT_FUNC_F2 to be undefined.
38058         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38059         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38060         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38061         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38062         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38063         Likewise.
38064         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38065         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38066         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38067         Likewise.
38068
38069         openat: declare in POSIX headers
38070         * NEWS: Mention this.
38071         * modules/openat (configure.ac): Declare witnesses.
38072         (Depends-on): Add fcntl-h, sys_stat, unistd.
38073         (Include): Mention correct headers.
38074         * modules/fcntl-h (Depends-on): Add link-warning.
38075         (Files): Add openat.m4.
38076         (Makefile.am): Substitute witnesses.
38077         * modules/sys_stat (Files, Makefile.am): Likewise.
38078         * modules/unistd (Files, Makefile.am): Likewise.
38079         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38080         (gl_OPENAT_DEFAULTS): New macro.
38081         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38083         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38084         (SYS_STAT_H): Remove unused variable.
38085         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38086         * lib/fcntl--.h (includes): Remove unneeded header.
38087         * lib/openat-safer.c (includes): Likewise.
38088         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38089         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38090         appropriate headers.
38091         (__OPENAT_PREFIX): Delete.
38092         * lib/fcntl.in.h (openat): Provide declaration.
38093         (AT_FDCWD): Fix Solaris bug.
38094         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38095         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38096         * lib/fchmodat.c (includes):  Adjust to find declaration.
38097         * lib/fchownat.c (includes): Likewise.
38098         * lib/mkdirat.c (includes): Likewise.
38099         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38100         still visible.
38101
38102 2009-09-02  Eric Blake  <ebb9@byu.net>
38103
38104         errno: use consistently
38105         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38106         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38107         * lib/canonicalize.c (ELOOP): Likewise.
38108         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38109         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38110         * lib/lchown.c (EOPNOTSUPP): Likewise.
38111         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38112         * lib/savewd.c (ESTALE): Likewise.
38113         * lib/settime.c (ENOSYS): Likewise.
38114         * lib/utimens.c (ENOSYS): Likewise.
38115         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38116         * lib/chdir-safer.c (ELOOP): Likewise.
38117         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38118         * modules/c-stack (Depends-on): Add errno.
38119         * modules/canonicalize (Depends-on): Likewise.
38120         * modules/chdir-safer (Depends-on): Likewise.
38121         * modules/fdopendir (Depends-on): Likewise.
38122         * modules/inet_ntop (Depends-on): Likewise.
38123         * modules/inet_pton (Depends-on): Likewise.
38124         * modules/lchown (Depends-on): Likewise.
38125         * modules/openat (Depends-on): Likewise.
38126         * modules/savewd (Depends-on): Likewise.
38127         * modules/settime (Depends-on): Likewise.
38128         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38129
38130         fts: avoid leaking fds
38131         * modules/fts (Depends-on): Add cloexec.
38132         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38133         flag.
38134
38135         fts: make directory fds more robust
38136         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38137         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38138
38139         backupfile, chdir-long, fts, savedir: make safer
38140         * lib/backupfile.c (includes): Use "dirent--.h", since
38141         numbered_backup can write to stderr during readdir.
38142         * lib/savedir.c (includes): Likewise.
38143         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38144         emulation can write to stderr on failure.
38145         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38146         * lib/getcwd.c: Document why opendir_safer is unused.
38147         * lib/glob.c: Likewise.
38148         * lib/scandir.c: Likewise.
38149         * lib/openat-proc.c: Likewise, for open_safer.
38150         * modules/backupfile (Depends-on): Add dirent-safer.
38151         * modules/savedir (Depends-on): Likewise.
38152         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38153         * modules/chdir-long (Depends-on): Add openat-safer.
38154
38155         openat-safer: new module
38156         * modules/openat-safer: New file.
38157         * lib/openat-safer.c: Likewise.
38158         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38159         * lib/fcntl-safer.h (openat_safer): Declare.
38160         * lib/fcntl--.h (openat): Override.
38161         * MODULES.html.sh (File descriptor based I/O): Mention it.
38162         * lib/openat.h: Add double-inclusion guards.
38163         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38164         "fcntl--.h", so we can implement openat.
38165         * modules/openat-safer-tests: New test.
38166         * tests/test-openat-safer.c: New file.
38167
38168         dirent-safer: new module
38169         * modules/dirent-safer: New file.
38170         * lib/dirent--.h: Likewise.
38171         * lib/dirent-safer.h: Likewise.
38172         * lib/opendir-safer.c: Likewise.
38173         * m4/dirent-safer.m4: Likewise.
38174         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38175         * modules/dirent-safer-tests: New test.
38176         * tests/test-dirent-safer.c: New file.
38177         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38178
38179         fdopendir: optimize on mingw
38180         * lib/unistd.in.h (_gl_directory_name): New prototype.
38181         * lib/fchdir.c (_gl_directory_name): Implement it.
38182         (fchdir): Use it to simplify implementation.
38183         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38184         fchdir, when available, to avoid calling [f]chdir().
38185
38186         fdopendir: split into its own module
38187         * lib/openat.c (fdopendir): Move...
38188         * lib/fdopendir.c: ...into new file.
38189         * modules/fdopendir: New module.
38190         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38191         * modules/openat (Depends-on): Add fdopendir.
38192         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38193         fdopendir here.
38194         * modules/savedir (Depends-on): Only need fdopendir, not full
38195         openat.
38196         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38197         * lib/openat.h (fdopendir): Drop prototype.
38198         * lib/dirent.in.h (fdopendir): Provide prototype.
38199         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38200         * modules/dirent (Makefile.am): Substitute them.
38201         * MODULES.html.sh (File system functions): Mention it.
38202         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38203         * modules/fdopendir-tests: New file.
38204         * tests/test-fdopendir.c: Likewise.
38205
38206         fchdir: use more consistent macro convention
38207         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38208         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38209         REPLACE_FCHDIR, rather than relying on config.h macros.
38210         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38211         inside a single make-time REPLACE_FCHDIR block, rather than using
38212         the config.h FCHDIR_REPLACEMENT.
38213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38214         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38215         Manage fstat replacement.
38216         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38217         REPLACE_FCHDIR.
38218         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38219         (Makefile.am): Substitute REPLACE_FCHDIR.
38220         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38221         FCHDIR_REPLACEMENT.
38222         * lib/dup-safer.c (dup_safer): Likewise.
38223         * lib/dup2.c (rpl_dup2): Likewise.
38224         * lib/dup3.c (rpl_dup3): Likewise.
38225         * lib/open.c (rpl_open): Likewise.
38226
38227         fchdir: simplify error handling, and support dup3
38228         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38229         stdbool, malloc-posix, realloc-posix.
38230         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38231         (ensure_dirs_slot): Return false on allocation failure.
38232         (rpl_dup2): Delete.
38233         (_gl_register_dup): New function.
38234         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38235         (_gl_register_fd): Close fd on allocation failure.
38236         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38237         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38238         prototype.
38239         (rpl_dup2_fchdir): Delete prototype.
38240         * lib/open.c (open): Update caller.
38241         * lib/dup2.c (dup2): Track fchdir metadata.
38242         * lib/dup3.c (dup3): Likewise.
38243         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38244         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38245
38246 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38247
38248         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38249         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38250         don't pass arguments to AC_OUTPUT.
38251
38252 2009-09-02  Bruno Haible  <bruno@clisp.org>
38253
38254         * modules/mkdtemp (License): Relicense under LGPLv2+.
38255         Reported by Paolo Bonzini.
38256
38257 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38258
38259         Replace uses of obsolete autoconf macros in Jim's modules.
38260         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38261         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38262         can evoke a warning from autoconf when run with -Wobsolete
38263         enabled.  They were declared obsolete for good reasons (see
38264         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38265         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38266         should not continue using the deprecated macros.
38267         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38268         obsolete Autoconf macros with modern counterparts.
38269         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38270         * m4/dos.m4 (gl_AC_DOS): Likewise.
38271         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38272         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38273         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38274         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38275         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38276         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38277         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38278         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38279         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38280         Likewise.
38281         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38282         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38283         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38284         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38285         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38286         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38287
38288 2009-09-01  Eric Blake  <ebb9@byu.net>
38289
38290         fchdir: fix off-by-one bug in previous patch
38291         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38292         (_gl_unregister_fd): Delete useless if.
38293
38294 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38295
38296         maint.mk: sort the list of syntax-check rules
38297         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38298         easier to get a sense of progress when the rules are run sequentially
38299         and take a long time.
38300
38301 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38302
38303         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38304         * modules/netinet_in: Likewise.
38305         * modules/sys_file: Likewise.
38306         * modules/sys_ioctl: Likewise.
38307         * modules/sys_select: Likewise.
38308         * modules/sys_socket: Likewise.
38309         * modules/sys_stat: Likewise.
38310         * modules/sys_time: Likewise.
38311         * modules/sys_times: Likewise.
38312         * modules/sys_utsname: Likewise.
38313         * modules/sys_wait: Likewise.
38314
38315 2009-09-01  Jim Meyering  <meyering@redhat.com>
38316
38317         fts: help ensure that return values are not ignored
38318         * lib/fts_.h (__GNUC_PREREQ): Define.
38319         (__attribute_warn_unused_result__): Define.
38320         (fts_children, fts_close, fts_open, fts_read): Declare with
38321         __attribute_warn_unused_result__.
38322
38323         fts: fts_close now fails also when closing a dir file descriptor fails
38324         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38325         and propagate to caller, along with errno.
38326
38327         announce-gen: correct formatting in --help output
38328         * build-aux/announce-gen (usage): Move the one-line description in
38329         --help output "up", to where it belongs, just after Usage:.
38330
38331 2009-08-31  Eric Blake  <ebb9@byu.net>
38332
38333         fchdir: port to mingw
38334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38335         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38336         opened, then use a substitute.
38337         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38338         replacement.
38339         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38340         (_gl_register_fd): No need to check stat if open already filters
38341         all directories.
38342         (fchdir): Fix error condition to match POSIX.
38343         * modules/fchdir (Depends-on): Add sys_stat.
38344         * doc/posix-functions/open.texi (open): Document the limitation.
38345         * modules/fchdir-tests: New file.
38346         * tests/test-fchdir.c: Likewise.
38347
38348         canonicalize: allow cross-testing from cygwin to mingw
38349         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38350         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38351         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38352         Likewise.
38353         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38354         target does not support symlinks.
38355         * tests/test-canonicalize-lgpl.sh: Likewise.
38356
38357         chown: avoid compilation warning on mingw
38358         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38359         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38360         mingw.
38361         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38362         * modules/chown (Depends-on): Add errno.
38363
38364 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38365
38366         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38367         command.
38368
38369 2009-08-31  Jim Meyering  <meyering@redhat.com>
38370
38371         canonicalize: remove useless initialization
38372         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38373         initialization of local, "end".
38374
38375 2009-08-30  Bruno Haible  <bruno@clisp.org>
38376
38377         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38378         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38379         ENOSYS.
38380
38381 2009-08-30  Bruno Haible  <bruno@clisp.org>
38382
38383         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38384         /usr/xpg4/bin/tr when it exists.
38385         * tests/test-pipe-filter-gi1.sh: Likewise.
38386
38387 2009-08-30  Bruno Haible  <bruno@clisp.org>
38388
38389         Work around deficient /usr/bin/id program on Solaris.
38390         * tests/test-file-has-acl.sh (ID): New variable.
38391         * tests/test-set-mode-acl.sh (ID): Likewise.
38392         * tests/test-copy-acl.sh (ID): Likewise.
38393         * tests/test-copy-file.sh (ID): Likewise.
38394
38395 2009-08-30  Bruno Haible  <bruno@clisp.org>
38396
38397         New module 'xstriconveh'.
38398         * lib/xstriconveh.h: New file.
38399         * lib/xstriconveh.c: New file.
38400         * modules/xstriconveh: New file.
38401
38402 2009-08-30  Bruno Haible  <bruno@clisp.org>
38403
38404         Make it easier to use mem_cd_iconveh.
38405         * lib/striconveh.h (iconveh_t): New type.
38406         (iconveh_open, iconveh_close): New declarations.
38407         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38408         with a single 'const iconveh_t *' argument.
38409         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38410         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38411         with a single 'const iconveh_t *' argument.
38412         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38413         * tests/test-striconveh.c (main): Update.
38414         * NEWS: Mention the change.
38415
38416 2009-08-30  Bruno Haible  <bruno@clisp.org>
38417
38418         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38419         problem.
38420
38421 2009-08-30  Bruno Haible  <bruno@clisp.org>
38422
38423         Work around iconv_open problem on Solaris.
38424         * lib/iconv_open-solaris.gperf: New file.
38425         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38426         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38427         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38428         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38429         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38430         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38431
38432 2009-08-29  Jim Meyering  <meyering@redhat.com>
38433
38434         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38435         * top/maint.mk (cvs-check): Remove target; it was just an alias
38436         to the better-named vc-diff-check.
38437         (maintainer-distcheck): Remove rule.  It was used only from
38438         the (alpha/beta/major) target, and all of its commands but one
38439         were coreutils-specific.
38440         (vc-dist): Remove rule.
38441         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38442         Run vc-diff-check, not vc-dist.
38443         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38444
38445 2009-08-27  Bruno Haible  <bruno@clisp.org>
38446
38447         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38448         of 0.
38449
38450 2009-08-27  Bruno Haible  <bruno@clisp.org>
38451
38452         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38453         compilers.
38454         * doc/func.texi: Document the SunPRO C bug.
38455
38456 2009-08-27  Bruno Haible  <bruno@clisp.org>
38457
38458         Fix link error on Solaris.
38459         * tests/test-parse-duration.c (xstrdup): Remove function.
38460
38461 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38462
38463         ignore-value: handle pointer types, too
38464         * lib/ignore-value.h (__attribute__): Remove definition.
38465         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38466         of a more concise and more-often effective "(void) i" statement.
38467         (ignore_ptr): New function to suppress warnings from functions that
38468         return pointers, and to make it explicit that one function doesn't
38469         handle all cases.
38470
38471 2009-08-25  Bruno Haible  <bruno@clisp.org>
38472
38473         dup2: work around a Linux bug.
38474         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38475         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38476         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38477         Reported by Simon Josefsson.
38478
38479 2009-08-25  Jim Meyering  <meyering@redhat.com>
38480
38481         libguestfs uses gnulib
38482         * users.txt: Add libguestfs.
38483
38484 2009-08-24  Eric Blake  <ebb9@byu.net>
38485
38486         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38487         * lib/pipe2.c (includes): Add binary-io.h.
38488         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38489
38490 2009-08-24  Bruno Haible  <bruno@clisp.org>
38491
38492         Tolerate declared but missing accept4 syscall.
38493         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38494         available.
38495         * lib/sys_socket.in.h (accept4): If the function is already present,
38496         override it.
38497         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38498         * modules/accept4 (Makefile.am): Compile accept4.c always.
38499         Reported by Paolo Bonzini and Eric Blake.
38500
38501 2009-08-23  Bruno Haible  <bruno@clisp.org>
38502
38503         New module 'accept4'.
38504         * lib/sys_socket.in.h (accept4): New declaration.
38505         * lib/accept4.c: New file.
38506         * m4/accept4.m4: New file.
38507         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38508         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38509         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38510         HAVE_ACCEPT4.
38511         * modules/accept4: New file.
38512         * doc/glibc-functions/accept4.texi: Mention the new module.
38513
38514 2009-08-24  Jim Meyering  <meyering@redhat.com>
38515
38516         progname: also set global program_invocation_name, when possible
38517         Before this change, a libtool-enabled program that calls glibc's
38518         error function would report the program name as
38519         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38520         * modules/progname (configure.ac): Check for a declaration of
38521         program_invocation_name.
38522         * lib/progname.c:  Include <errno.h>.
38523         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38524         Set program_invocation_name.
38525
38526 2009-08-23  Bruno Haible  <bruno@clisp.org>
38527
38528         * lib/dup3.c: Include <string.h>.
38529
38530 2009-08-23  Bruno Haible  <bruno@clisp.org>
38531
38532         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38533         * lib/pipe2.c (pipe2): Likewise.
38534         Suggested by Eric Blake.
38535
38536 2009-08-23  Bruno Haible  <bruno@clisp.org>
38537
38538         Tolerate declared but missing dup3 syscall.
38539         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38540         * lib/unistd.in.h (dup3): If the function is already present,
38541         override it.
38542         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38543         * modules/dup3 (Makefile.am): Compile dup3.c always.
38544         Reported by Paolo Bonzini.
38545
38546 2009-08-23  Bruno Haible  <bruno@clisp.org>
38547
38548         Tolerate declared but missing pipe2 syscall.
38549         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38550         available.
38551         * lib/unistd.in.h (pipe2): If the function is already present,
38552         override it.
38553         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38554         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38555         Reported by Paolo Bonzini.
38556
38557 2009-08-23  Bruno Haible  <bruno@clisp.org>
38558
38559         * lib/pipe2.c (pipe2): Move #ifs inside function.
38560
38561 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38562
38563         quotearg: document limitations of quote_these_too
38564         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38565         those limitations are created.
38566         * lib/quotearg.h (set_char_quoting): Document that digits and
38567         letters that are special after backslash are not permitted.
38568         (quotearg_char): Cross-reference set_char_quoting documentation.
38569
38570 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38571
38572         quotearg: implement custom_quoting_style
38573         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38574         right_quote fields.
38575         (set_custom_quoting): New public function.
38576         (quotearg_buffer_restyled): Add left_quote and right_quote
38577         arguments, handle them very much like locale quoting, and update
38578         all uses.
38579         (quotearg_n_custom): New public function.
38580         (quotearg_n_custom_mem): New public function.
38581         (quotearg_custom): New public function.
38582         (quotearg_custom_mem): New public function.
38583         * lib/quotearg.h: Prototype and document new public functions.
38584         (enum quoting_style): For escape_quoting_style and
38585         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38586         ignored even though they're otherwise like c_quoting_style.
38587         Add custom_quoting_style member and document with comparison to
38588         clocale_quoting_style.
38589         * tests/test-quotearg.c (custom_quotes): New array.
38590         (custom_results): New array.
38591         (main): Extend to test custom quoting.
38592
38593 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38594
38595         quotearg: fix right quote escaping when it's in quote_these_too
38596         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38597         quote, be sure to prepend only one backslash.
38598         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38599         (main): Test it.
38600
38601 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38602
38603         quotearg-tests: test escaping of embedded locale quotes
38604         * tests/test-quotearg.c (struct result_strings): Add member for
38605         new input.
38606         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38607         (inputs): Add new input.
38608         (results_g): Add expected results.
38609         (flag_results): Likewise.
38610         (locale_results): Likewise.
38611         (compare_strings): Check those.
38612
38613 2009-08-23  Bruno Haible  <bruno@clisp.org>
38614
38615         Tests for module 'dup3'.
38616         * modules/dup3-tests: New file.
38617         * tests/test-dup3.c: New file.
38618
38619         New module 'dup3'.
38620         * lib/unistd.in.h (dup3): New declaration.
38621         * lib/dup3.c: New file.
38622         * m4/dup3.m4: New file.
38623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38624         HAVE_DUP3.
38625         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38626         * modules/dup3: New file.
38627         * doc/glibc-functions/dup3.texi: Mention the new module.
38628
38629 2009-08-23  Bruno Haible  <bruno@clisp.org>
38630
38631         Tweak the dup2 test.
38632         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38633         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38634         the test file is still empty. Fix argument order of lseek.
38635
38636 2009-08-23  Bruno Haible  <bruno@clisp.org>
38637
38638         Avoid test link errors when the modules getopt-gnu, gettext are used.
38639         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38641
38642 2009-08-23  Bruno Haible  <bruno@clisp.org>
38643
38644         Fix getdtablesize() on mingw.
38645         * lib/getdtablesize.c (getdtablesize): Implement differently.
38646         * lib/unistd.in.h (getdtablesize): Improve comment.
38647
38648 2009-08-23  Bruno Haible  <bruno@clisp.org>
38649
38650         New module 'mkostemp'.
38651         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38652         * lib/stdlib.in.h (mksotemp): New declaration.
38653         * lib/mkostemp.c: New file, from glibc with modifications.
38654         * lib/tempname.h (GT_FILE): Remove outdated comment.
38655         (gen_tempname): Add flags argument.
38656         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38657         (__GT_FILE): Map to 1.
38658         (small_open, large_open): Remove macros.
38659         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38660         * lib/mkstemp.c (mkstemp): Update.
38661         * lib/mkdtemp.c (mkdtemp): Likewise.
38662         * m4/mkostemp.m4: New file.
38663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38664         HAVE_MKOSTEMP.
38665         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38666         HAVE_MKOSTEMP.
38667         * modules/mkostemp: New file, based on modules/mkstemp.
38668         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38669         * NEWS: Mention the change.
38670
38671 2009-08-23  Bruno Haible  <bruno@clisp.org>
38672
38673         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38674         Reported by Eric Blake.
38675
38676 2009-08-23  Bruno Haible  <bruno@clisp.org>
38677
38678         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38679         Reported by Eric Blake.
38680
38681 2009-08-23  Bruno Haible  <bruno@clisp.org>
38682
38683         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38684         * modules/pipe2 (Depends-on): Likewise.
38685
38686 2009-08-23  Eric Blake  <ebb9@byu.net>
38687
38688         fcntl-h: add O_TTY_INIT support
38689         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38690         * tests/test-fcntl-h.c (o): Test it.
38691         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38692
38693         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38694         * modules/fcntl: Move <fcntl.h> header replacement...
38695         * modules/fcntl-h: ...to new name, so as not to collide with
38696         like-named function.
38697         * tests/test-fcntl.c: Rename...
38698         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
38699         * modules/fcntl-tests: Rename...
38700         * modules/fcntl-h-tests: ...to this.  Update test file name.
38701         * modules/chdir-long (Depends-on): Update clients.
38702         * modules/chdir-safer (Depends-on): Likewise.
38703         * modules/fcntl-safer (Depends-on): Likewise.
38704         * modules/fts (Depends-on): Likewise.
38705         * modules/mkancesdirs (Depends-on): Likewise.
38706         * modules/mkdir-p (Depends-on): Likewise.
38707         * modules/open (Depends-on): Likewise.
38708         * modules/savewd (Depends-on): Likewise.
38709         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
38710         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38711
38712 2009-08-22  Bruno Haible  <bruno@clisp.org>
38713
38714         * modules/binary-io (License): Relicense under LGPL.
38715         * modules/pipe2 (License): Likewise.
38716
38717 2009-08-22  Bruno Haible  <bruno@clisp.org>
38718
38719         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
38720         return value.
38721         * lib/pipe-filter-gi.c (filter_init): Likewise.
38722         Reported by Eric Blake.
38723
38724 2009-08-22  Bruno Haible  <bruno@clisp.org>
38725
38726         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
38727         * modules/pipe (Depends-on): Add pipe2.
38728
38729 2009-08-22  Bruno Haible  <bruno@clisp.org>
38730
38731         Tests for module 'pipe2'.
38732         * modules/pipe2-tests: New file.
38733         * tests/test-pipe2.c: New file.
38734
38735         New module 'pipe2'.
38736         * lib/unistd.in.h (pipe2): New declaration.
38737         * lib/pipe2.c: New file.
38738         * m4/pipe2.m4: New file.
38739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
38740         HAVE_PIPE2.
38741         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
38742         * modules/pipe2: New file.
38743         * doc/glibc-functions/pipe2.texi: Mention the new module.
38744
38745 2009-08-22  Bruno Haible  <bruno@clisp.org>
38746
38747         Reference some new glibc functions.
38748         * doc/glibc-functions/accept4.texi: New file.
38749         * doc/glibc-functions/dup3.texi: New file.
38750         * doc/glibc-functions/mkostemp.texi: New file.
38751         * doc/glibc-functions/pipe2.texi: New file.
38752         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
38753         (Glibc sys/socket.h): Refer to accept4.
38754         (Glibc unistd.h): Refer to dup3, pipe2.
38755         Reported by Eric Blake.
38756
38757 2009-08-22  Jim Meyering  <meyering@redhat.com>
38758             Bruno Haible  <bruno@clisp.org>
38759
38760         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38761         This makes it so packages using automake-1.11's silent-rules option
38762         can print e.g., a single "GEN    configmake.h" line, rather than
38763         the 30+ statements that perform the job.  If you want to see the
38764         actual commands, you can still run "make V=1".
38765         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38766         so that make output is abbreviated when those variables are defined
38767         appropriately.
38768         * modules/argz: Likewise.
38769         * modules/arpa_inet: Likewise.
38770         * modules/byteswap: Likewise.
38771         * modules/configmake: Likewise.
38772         * modules/dirent: Likewise.
38773         * modules/errno: Likewise.
38774         * modules/fcntl: Likewise.
38775         * modules/float: Likewise.
38776         * modules/fnmatch: Likewise.
38777         * modules/getopt-posix: Likewise.
38778         * modules/glob: Likewise.
38779         * modules/iconv_open: Likewise.
38780         * modules/inttypes: Likewise.
38781         * modules/localcharset: Likewise.
38782         * modules/locale: Likewise.
38783         * modules/math: Likewise.
38784         * modules/netdb: Likewise.
38785         * modules/netinet_in: Likewise.
38786         * modules/poll: Likewise.
38787         * modules/posix_spawnp-tests: Likewise.
38788         * modules/sched: Likewise.
38789         * modules/search: Likewise.
38790         * modules/selinux-h: Likewise.
38791         * modules/signal: Likewise.
38792         * modules/spawn: Likewise.
38793         * modules/stdarg: Likewise.
38794         * modules/stdbool: Likewise.
38795         * modules/stddef: Likewise.
38796         * modules/stdint: Likewise.
38797         * modules/stdio: Likewise.
38798         * modules/stdlib: Likewise.
38799         * modules/string: Likewise.
38800         * modules/strings: Likewise.
38801         * modules/sys_file: Likewise.
38802         * modules/sys_ioctl: Likewise.
38803         * modules/sys_select: Likewise.
38804         * modules/sys_socket: Likewise.
38805         * modules/sys_stat: Likewise.
38806         * modules/sys_time: Likewise.
38807         * modules/sys_times: Likewise.
38808         * modules/sys_utsname: Likewise.
38809         * modules/sys_wait: Likewise.
38810         * modules/sysexits: Likewise.
38811         * modules/time: Likewise.
38812         * modules/unistd: Likewise.
38813         * modules/wchar: Likewise.
38814         * modules/wctype: Likewise.
38815
38816 2009-08-22  Jim Meyering  <meyering@redhat.com>
38817
38818         announce-gen: detect write failure
38819         * build-aux/announce-gen: Add Coda at end.
38820         Remove equivalent-but-more-verbose block at top.
38821
38822 2009-08-19  Akim Demaille  <demaille@gostai.com>
38823
38824         bootstrap: --help to stdout.
38825         * bootstrap (usage): Don't send --help to stderr.
38826         Use a here doc instead of a long string.
38827
38828 2009-08-21  Eric Blake  <ebb9@byu.net>
38829
38830         test-popen-safer: split from test-popen
38831         * tests/test-popen.c (main): Move...
38832         * tests/test-popen.h: ...into new file.
38833         * tests/test-popen-safer2.c: New file.
38834         * modules/popen-tests (Files): Add test-popen.h.
38835         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38836         Suggested by Bruno Haible.
38837
38838         test-fcntl-safer: split from test-open
38839         * tests/test-open.c (main): Move...
38840         * tests/test-open.h: ...into new file.
38841         * tests/test-fcntl-safer.c: New file.
38842         * modules/open-tests (Files): Add test-open.h.
38843         * modules/fcntl-safer-tests: New file.
38844         Suggested by Bruno Haible.
38845
38846         test-fopen-safer: split from test-fopen
38847         * tests/test-fopen.c (main): Move...
38848         * tests/test-fopen.h: ...into new file.
38849         * tests/test-fopen-safer.c: New file.
38850         * modules/fopen-tests (Files): Add test-fopen.h.
38851         * modules/fopen-safer-tests: New file.
38852         Suggested by Bruno Haible.
38853
38854 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38855
38856         popen-safer: test O_CLOEXEC at run-time.
38857         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38858
38859 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38860
38861         fcntl: move more flags to the header
38862         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38863         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38864         * lib/fcntl.in.h: Do both things here.
38865
38866 2009-08-21  Jim Meyering  <meyering@redhat.com>
38867
38868         consistently remove $@-t before redirecting to it
38869         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38870         * modules/alloca-opt: Likewise.
38871         * modules/byteswap: Likewise.
38872         * modules/fnmatch: Likewise.
38873         * modules/getopt-posix: Likewise.
38874         * modules/glob: Likewise.
38875         * modules/poll: Likewise.
38876         * modules/posix_spawnp-tests: Likewise.
38877         * modules/sys_socket: Likewise.
38878         * modules/sysexits: Likewise.
38879
38880 2009-08-21  Eric Blake  <ebb9@byu.net>
38881
38882         popen: simplify access to original popen
38883         * lib/popen.c (rpl_popen): No need to worry about popen being a
38884         macro.
38885         Reported by Bruno Haible.
38886
38887 2009-08-20  Eric Blake  <ebb9@byu.net>
38888
38889         build: avoid some compiler warnings
38890         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38891         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38892         type.
38893         (new_exclude_segment, excluded_file_pattern_p)
38894         (excluded_file_name_p): Reduce scope.
38895         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38896         old-style declaration.
38897
38898 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38899
38900         * tests/test-exclude1.sh: Handle Windows EOL.
38901         * tests/test-exclude2.sh: Likewise.
38902         * tests/test-exclude3.sh: Likewise.
38903         * tests/test-exclude4.sh: Likewise.
38904         * tests/test-exclude5.sh: Likewise.
38905         * tests/test-exclude6.sh: Likewise.
38906         * tests/test-exclude7.sh: Likewise.
38907
38908 2009-08-19  Akim Demaille  <demaille@gostai.com>
38909
38910         bootstrap: find sha1sum when named gsha1sum.
38911         * bootstrap (find_tool): New.
38912         ($SHA1SUM): New.
38913         Use it.
38914
38915 2009-08-20  Jim Meyering  <meyering@redhat.com>
38916
38917         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38918         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38919         expression that converts "." in a file name to "\." in the resulting
38920         regexp.  Start with a dummy statement, so that prior shell variable
38921         definitions are expanded portably.  Reported by Simon Josefsson.
38922
38923 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38924
38925         Fix polling for writeability of a screen buffer.
38926         * lib/poll.c: Distinguish input and screen buffers for the
38927         Win32 implementation.
38928         * lib/select.c: Likewise.
38929
38930 2009-08-19  Eric Blake  <ebb9@byu.net>
38931
38932         popen-safer: prevent popen from clobbering std descriptors
38933         * modules/popen-safer: New file.
38934         * lib/popen-safer.c: Likewise.
38935         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38936         * lib/stdio--.h (popen): Provide override.
38937         * lib/stdio-safer.h (popen_safer): Provide declaration.
38938         * tests/test-popen.c (includes): Partially test this.
38939         * modules/popen-safer-tests: New file, for more tests.
38940         * tests/test-popen-safer.c: Likewise.
38941         * MODULES.html.sh (file stream based Input/Output): Mention it.
38942
38943         tests: test some of the *-safer modules
38944         * modules/fopen-safer (Depends-on): Add fopen.
38945         * modules/fcntl-safer (Depends-on): Add fcntl.
38946         * modules/stdlib-safer (Depends-on): Add stdlib.
38947         (configure.ac): Set indicator.
38948         * modules/unistd-safer (configure.ac): Likewise.
38949         * modules/tmpfile-safer (configure.ac): Likewise.
38950         (Depends-on): Add tmpfile.
38951         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38952         active.
38953         * tests/test-fopen.c (includes): Test safer versions when they are
38954         in use.
38955         * tests/test-open.c (includes): Likewise.
38956
38957         popen: fix cygwin 1.5 bug when stdin closed
38958         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38959         * modules/popen: New file.
38960         * modules/popen-tests: Likewise.
38961         * tests/test-popen.c: Likewise.
38962         * m4/popen.m4: Likewise.
38963         * lib/popen.c: Likewise.
38964         * lib/stdio.in.h (popen): New declaration.
38965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38966         * modules/stdio (Makefile.am): Likewise.
38967         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38968
38969 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38970
38971         maint.mk: give full control over update-copyright exclusions
38972         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38973         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38974         (update-copyright): Don't force inclusion of top-level
38975         ChangeLog.  Don't force exclusion of all COPYING files, but make
38976         them the default exclusion instead.
38977
38978 2009-08-16  Bruno Haible  <bruno@clisp.org>
38979
38980         Fix test failures on Solaris 10.
38981         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38982         tests when Solaris iconv() is used.
38983         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38984         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38985         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38986         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38987         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38988
38989 2009-08-16  Bruno Haible  <bruno@clisp.org>
38990
38991         Fix test failures on Solaris 10.
38992         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38993         'tr' program and pass it as first argument.
38994         * tests/test-pipe-filter-gi1.sh: Likewise.
38995         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38996         program as first argument.
38997         * tests/test-pipe-filter-gi1.c (main): Likewise.
38998
38999 2009-08-16  Eric Blake  <ebb9@byu.net>
39000
39001         fpurge: fix previous commits
39002         * modules/fpurge (Makefile.am): Make replacement conditional,
39003         partially reverting 2007-04-29 change; missed in previous
39004         attempt.
39005         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39006         is missing.
39007
39008 2009-08-16  Bruno Haible  <bruno@clisp.org>
39009
39010         Clarify fpurge's effect on the file position.
39011         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39012         * tests/test-fpurge.c (main): Make a second pass for checking the file
39013         position.
39014
39015 2009-08-16  Bruno Haible  <bruno@clisp.org>
39016
39017         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39018         declaration of fpurge is missing.
39019         * tests/test-fpurge.c (main): Check that the file has not more contents
39020         than expected. Close the file before removing it.
39021
39022 2009-08-15  Eric Blake  <ebb9@byu.net>
39023
39024         fpurge: don't wrap working cygwin implementation
39025         * lib/fpurge.c (fpurge): Fix comment typo.
39026         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39027         1.7 to avoid replacement.
39028         * tests/test-fpurge.c (main): Enhance test.
39029
39030 2009-08-15  Eric Blake  <ebb9@byu.net>
39031         and Jim Meyering  <meyering@redhat.com>
39032
39033         test-update-copyright: skip if perl is insufficient
39034         * tests/test-update-copyright.sh: Failure to run maintainer tool
39035         should not cause testsuite failure on cygwin 1.5.
39036
39037 2009-08-14  Eric Blake  <ebb9@byu.net>
39038
39039         doc: mention more functions added in cygwin 1.7.0
39040         * doc/posix-headers/limits.texi (limits.h): Update for recent
39041         cygwin additions.
39042         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39043         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39044         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39045         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39046         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39047
39048 2009-08-14  Eric Blake  <ebb9@byu.net>
39049
39050         maint.mk: simplify update-copyright rule
39051         * top/maint.mk (update-copyright-local): Delete, and document how
39052         to do it in cfg.mk instead.
39053         (update-copyright-exclude-regexp): Delete, and document how to do
39054         it in .x-update-copyright instead.
39055         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39056         exclude ChangeLog.
39057
39058 2009-08-14  Bruno Haible  <bruno@clisp.org>
39059
39060         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39061
39062 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39063
39064         maint.mk: support update-copyright-env
39065         * top/maint.mk (update-copyright-env): Define place-holder.
39066         (update-copyright): Expand $(update-copyright-env) before
39067         invoking update-copyright.
39068
39069 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39070
39071         update-copyright: implement forced reformatting
39072         * build-aux/update-copyright: Implement and document
39073         UPDATE_COPYRIGHT_FORCE.
39074         * tests/test-update-copyright.sh: Test it.
39075
39076 2009-08-14  Eric Blake  <ebb9@byu.net>
39077         and Bruno Haible  <bruno@clisp.org>
39078
39079         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39080         * tests/test-locale.c: Revert previous patch related to NULL.
39081         * tests/test-stdio.c: Likewise.
39082         * tests/test-stdlib.c: Likewise.
39083         * tests/test-string.c: Likewise.
39084         * tests/test-unistd.c: Likewise.
39085         * modules/time-tests (Depends-on): Add verify.
39086         * modules/wchar-tests (Depends-on): Likewise.
39087         * tests/test-time.c: Test for NULL compliance.
39088         * tests/test-wchar.c: Likewise.
39089         * modules/locale (Depends-on): Add stddef.
39090         * modules/stdio (Depends-on): Likewise.
39091         * modules/stdlib (Depends-on): Likewise.
39092         * modules/string (Depends-on): Likewise.
39093         * modules/time (Depends-on): Likewise.
39094         * modules/unistd (Depends-on): Likewise.
39095         * modules/wchar (Depends-on): Likewise.
39096         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39097         * lib/stdlib.in.h (includes): Likewise.
39098         * lib/string.in.h (includes): Likewise.
39099         * lib/time.in.h (includes): Likewise.
39100         * lib/unistd.in.h (includes): Likewise.
39101         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39102         replaced.
39103         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39104         * m4/stddef_h.m4: New file.
39105         * modules/stddef: Likewise.
39106         * lib/stddef.in.h: Likewise.
39107         * modules/stddef-tests: Likewise.
39108         * tests/test-stddef.c: Likewise.
39109         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39110         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39111         * doc/posix-headers/locale.texi (locale.h): Likewise.
39112         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39113         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39114         * doc/posix-headers/string.texi (string.h): Likewise.
39115         * doc/posix-headers/time.texi (time.h): Likewise.
39116         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39117         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39118
39119 2009-08-14  Eric Blake  <ebb9@byu.net>
39120
39121         doc: improve git diff of texinfo files
39122         * .gitattributes: Add rule for *.texi files, with hint on how to
39123         use it.
39124         Copied from m4, and based on a report by Bruno Haible.
39125
39126 2009-08-14  Bruno Haible  <bruno@clisp.org>
39127
39128         Disable multithread support by default on Cygwin 1.5.x for real.
39129         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39130
39131 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39132
39133         update-copyright: much ado about intervals
39134         * build-aux/update-copyright: Implement and document
39135         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39136         of copyright year intervals.
39137         Also, document UPDATE_COPYRIGHT_YEAR.
39138         * tests/test-update-copyright.sh: Test it.
39139
39140         update-copyright: convert 2-digit to 4-digit years
39141         * build-aux/update-copyright: Implement and document.
39142         * tests/test-update-copyright.sh: Update.
39143
39144 2009-08-14  Jim Meyering  <meyering@redhat.com>
39145
39146         test-exclude: avoid coreutils "make check" failure
39147         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39148         just as in test-argmatch.c.
39149
39150 2009-08-13  Eric Blake  <ebb9@byu.net>
39151
39152         test-dup2: fix bad assumption
39153         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39154         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39155
39156         test-version-etc: fix CRLF portability issue
39157         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39158         recognize \r.
39159         * tests/test-argp-version-etc-1.sh: Likewise.
39160
39161         getopt: update client modules
39162         * modules/argp (Depends-on): Use getopt-gnu.
39163         * modules/git-merge-changelog (Depends-on): Likewise.
39164         * modules/long-options (Depends-on): Likewise.
39165         * modules/xstrtol (Depends-on): Likewise.
39166
39167 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39168
39169         * tests/test-version-etc.sh: Don't fail on different
39170         project/version.  Don't fail on CRLF differences.  Rewrite to use
39171         multiple -e instead of multiple sed forks, suggested by Eric Blake
39172         <ebb9@byu.net>.
39173         * tests/test-argp-version-etc-1.sh: Likewise.
39174
39175 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39176
39177         * tests/test-version-etc.sh: Don't fail on different
39178         project/version.
39179
39180 2009-08-12  Bruno Haible  <bruno@clisp.org>
39181
39182         Tests for modules 'getopt-posix', 'getopt-gnu'.
39183         * modules/getopt-posix-tests: New file.
39184         * tests/test-getopt.c: New file.
39185         * tests/test-getopt.h: New file.
39186         * tests/test-getopt_long.h: New file.
39187
39188         New modules 'getopt-posix', 'getopt-gnu'.
39189         * modules/getopt-gnu: New file, renamed from modules/getopt.
39190         * modules/getopt-posix: New file.
39191         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39192         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39193         (gl_GETOPT): Remove macro.
39194         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39195         Disable the test against BSD systems that declare optreset. Test
39196         against mingw bug. Test against lack of support of optional arguments
39197         on many platforms.
39198         * doc/glibc-headers/getopt.texi: Update module name and list of
39199         relevant platforms.
39200         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39201         'getopt-gnu' and more portability problems.
39202         * NEWS: Mention the changes.
39203
39204 2009-08-12  Bruno Haible  <bruno@clisp.org>
39205
39206         Ensure that optarg etc. get declared by <unistd.h>.
39207         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39208         AC_USE_SYSTEM_EXTENSIONS.
39209         * modules/getopt (Depends-on): Add 'extensions'.
39210
39211 2009-08-12  Bruno Haible  <bruno@clisp.org>
39212
39213         Avoid test link errors.
39214         * modules/pipe-filter-ii-tests (Makefile.am): Define
39215         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39216         * modules/pipe-filter-gi-tests (Makefile.am): Define
39217         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39219
39220 2009-08-12  Bruno Haible  <bruno@clisp.org>
39221
39222         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39223         gl_GETOPT_SUBSTITUTE before.
39224         (gl_GETOPT): Use it.
39225         * m4/argp.m4 (gl_ARGP): Update.
39226         Reported by Sergey Poznyakoff.
39227
39228         * m4/getopt.m4: Reorder macros.
39229         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39230         (gl_GETOPT_SUBSTITUTE): Remove macro.
39231
39232 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39233
39234         Minor improvement in gitlog-to-changelog
39235
39236         * build-aux/gitlog-to-changelog: New option `--format' makes
39237         output format string configurable.
39238
39239 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39240
39241         Optimize exclude: use hash tables for non-wildcard patterns.
39242
39243         * lib/exclude.c: Include hash.h and mbuiter.h
39244         (struct exclude_pattern, exclude_segment): New data types.
39245         (struct exclude): Rewrite.
39246         (fnmatch_pattern_has_wildcards): New function.
39247         (new_exclude_segment, free_exclude_segment): New functions.
39248         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39249         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39250         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39251         * modules/exclude: Depend on hash and mbuiter.
39252
39253         * modules/exclude-tests: New file.
39254         * tests/test-exclude.c: New file.
39255         * tests/test-exclude1.sh: New file.
39256         * tests/test-exclude2.sh: New file.
39257         * tests/test-exclude3.sh: New file.
39258         * tests/test-exclude4.sh: New file.
39259         * tests/test-exclude5.sh: New file.
39260         * tests/test-exclude6.sh: New file.
39261         * tests/test-exclude7.sh: New file.
39262
39263 2009-08-12  Bruno Haible  <bruno@clisp.org>
39264
39265         Ensure that getopt() gets declared by <unistd.h>.
39266         * lib/unistd.in.h: Conditionally include getopt.h.
39267         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39268         Set GNULIB_UNISTD_H_GETOPT.
39269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39270         GNULIB_UNISTD_H_GETOPT.
39271         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39272
39273 2009-08-12  Bruno Haible  <bruno@clisp.org>
39274
39275         Clarify logic.
39276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39277         gl_replace_getopt instead of GETOPT_H.
39278
39279 2009-08-12  Bruno Haible  <bruno@clisp.org>
39280
39281         * m4/getopt.m4: Add comments.
39282
39283 2009-08-12  Bruno Haible  <bruno@clisp.org>
39284
39285         Disable multithread support by default on Cygwin 1.5.x.
39286         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39287         set gl_use_threads=no if not specified otherwise.
39288
39289 2009-08-11  Bruno Haible  <bruno@clisp.org>
39290
39291         Avoid compilation error on NetBSD 5.0.
39292         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39293         * tests/test-stdio.c: Likewise.
39294         * tests/test-stdlib.c: Likewise.
39295         * tests/test-string.c: Likewise.
39296         * tests/test-unistd.c: Likewise.
39297         Reported by Greg Troxel <gdt@ir.bbn.com>
39298         at <https://savannah.gnu.org/support/?106973>.
39299
39300 2009-08-11  Bruno Haible  <bruno@clisp.org>
39301
39302         * modules/dup2-tests (Depends-on): Remove close.
39303
39304         Undo 2009-07-19 commit.
39305         * modules/acl-tests (Depends-on): Remove close.
39306         * modules/binary-io-tests (Depends-on): Likewise.
39307         * modules/closein-tests (Depends-on): Likewise.
39308         * modules/flock-tests (Depends-on): Likewise.
39309         * modules/fsync-tests (Depends-on): Likewise.
39310         * modules/lseek-tests (Depends-on): Likewise.
39311         * modules/pipe-tests (Depends-on): Likewise.
39312         * modules/posix_spawn-tests (Depends-on): Likewise.
39313         * modules/posix_spawnp-tests (Depends-on): Likewise.
39314         * modules/stat-time-tests (Depends-on): Likewise.
39315         * modules/yesno-tests (Depends-on): Likewise.
39316
39317 2009-08-10  Bruno Haible  <bruno@clisp.org>
39318
39319         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39320
39321 2009-08-10  Bruno Haible  <bruno@clisp.org>
39322
39323         Fix a gcc warning.
39324         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39325
39326 2009-08-10  Bruno Haible  <bruno@clisp.org>
39327
39328         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39329         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39330         not only the first time.
39331         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39332         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39333         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39334         is 1, not only the the first time.
39335
39336 2009-08-10  Bruno Haible  <bruno@clisp.org>
39337
39338         Make it possible to use module 'gethostname' without module 'close'.
39339         * lib/unistd.in.h (close): Evoke a link error only if
39340         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39342         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39343         * modules/unistd (Makefile.am): Substitute
39344         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39345         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39346         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39347         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39348         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39349         * modules/sys_ioctl (Makefile.am): Substitute
39350         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39351         * modules/socket (configure.ac): On native Windows, set
39352         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39353         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39354         Reported by Sam Steingold <sds@gnu.org>.
39355
39356 2009-08-10  Bruno Haible  <bruno@clisp.org>
39357
39358         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39359         * modules/ioctl (configure.ac): Likewise.
39360
39361 2009-08-10  Bruno Haible  <bruno@clisp.org>
39362
39363         Avoid collision between gnulib wrapper and libintl wrapper.
39364         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39365         already defined in intl/printf.c.
39366         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39367         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39368
39369 2009-08-09  Bruno Haible  <bruno@clisp.org>
39370
39371         Make <sys/select.h> really self-contained, also on Solaris 10.
39372         * lib/sys_select.in.h: Include <string.h>.
39373         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39374         Solaris 10 problem.
39375         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39376         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39377         Reported by Jim Meyering.
39378
39379 2009-08-09  Bruno Haible  <bruno@clisp.org>
39380
39381         Avoid warnings from 'aclocal' that are due to a use of macro name
39382         AM_XGETTEXT_OPTION that is not defined in automake.
39383         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39384         automake.
39385         * modules/error (configure.ac): Likewise.
39386         * modules/propername (configure.ac): Likewise.
39387         * modules/vasprintf (configure.ac): Likewise.
39388         * modules/verror (configure.ac): Likewise.
39389         * modules/xprintf (configure.ac): Likewise.
39390         * modules/xvasprintf (configure.ac): Likewise.
39391
39392 2009-08-08  Bruno Haible  <bruno@clisp.org>
39393
39394         Avoid compilation error in C++ mode.
39395         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39396         Reported by Sam Steingold <sds@gnu.org>.
39397
39398 2009-08-08  Bruno Haible  <bruno@clisp.org>
39399
39400         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39401         for the various Unix platforms.
39402         * doc/posix-headers/limits.texi: Update platforms list regarding
39403         HOST_NAME_MAX.
39404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39405
39406 2009-08-07  Jim Meyering  <meyering@redhat.com>
39407
39408         selinux-at: fix typo in a comment
39409         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39410         Spotted by Paolo Bonzini.
39411
39412         selinux-at: remove redundant m4 code, add documentation
39413         * modules/selinux-at (configure.ac): Remove redundant code.
39414         LIB_SELINUX is already set via the dependent module, selinux-h.
39415         (Include): Add quotes around selinux-at.h.
39416         * lib/selinux-at.h: Add documentation.
39417         Reported by Bruno Haible in
39418         http://marc.info/?l=gnulib-bug&m=124958988300749
39419
39420 2009-08-07  Bruno Haible  <bruno@clisp.org>
39421
39422         Avoid link error on MacOS X 10.3 and 10.4.
39423         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39424         on non-ELF systems.
39425         * lib/argp-pv.c (argp_program_version): Likewise.
39426         Reported by Simon Josefsson.
39427
39428 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39429
39430         * tests/test-version-etc.sh: Use $EXEEXT.
39431
39432 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39433
39434         update-copyright: update documentation to point to maint.mk
39435         * build-aux/update-copyright: Here.
39436
39437 2009-08-06  Jim Meyering  <meyering@redhat.com>
39438
39439         maint.mk: support update-copyright-local
39440         * top/maint.mk (update-copyright-local): Define place-holder.
39441         (update-copyright): Depend on $(update-copyright-local).
39442
39443 2009-08-06  Jim Meyering  <meyering@redhat.com>
39444
39445         selinux-at: new module
39446         Initially written for coreutils, this module will soon be
39447         used by findutils, too.
39448         * MODULES.html.sh [Misc]: Add selinux-at.
39449         * lib/selinux-at.h: New file, from coreutils.
39450         * lib/selinux-at.c: Likewise.
39451         * modules/selinux-at: Likewise.
39452         (License): Change from LGPL to GPL, since it depends
39453         on the GPL'd openat module.
39454
39455         doc: update README
39456         * README: Remove references to cogito.
39457         Remove cvs-repo-updating instructions from 2007.
39458         Don't imply that CVS is better if you have limited disk space.
39459
39460 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39461
39462         update-copyright: support C-style comments
39463         * build-aux/update-copyright: Implement and document.
39464         * tests/test-update-copyright.sh: Test.
39465
39466 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39467
39468         update-copyright: support omitted "(C)"
39469         * build-aux/update-copyright: Implement and document.  Also,
39470         allow variable whitespace before "(C)".
39471         * tests/test-update-copyright.sh: Test.
39472
39473 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39474
39475         update-copyright: don't trip on non-FSF copyright statements
39476         * build-aux/update-copyright: Fix so that the first correctly
39477         formatted FSF copyright statement is recognized no matter what
39478         appears before it.  Update documentation.
39479         * tests/test-update-copyright.sh: Test that.
39480
39481 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39482
39483         update-copyright: clean up code a little
39484         * build-aux/update-copyright: Append "_re" to the name of any
39485         variable holding a regular expression.
39486         Replace "old" and "new" with "stmt" in variable names.
39487         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39488         handled correctly.
39489         Format code more consistently.
39490
39491 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39492
39493         update-copyright-tests: improve portability
39494         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39495         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39496
39497 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39498
39499         update-copyright: support @copyright{} and &copy;
39500         * build-aux/update-copyright: Implement and document.
39501         * tests/test-update-copyright.sh: Test.
39502
39503 2009-08-04  Jim Meyering  <meyering@redhat.com>
39504
39505         update-copyright-tests: correctly test EOL=\r\n handling
39506         * tests/test-update-copyright.sh: Put \r at the end of some lines
39507         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39508
39509         maint.mk: make update-copyright exclusion list more configurable
39510         * top/maint.mk (update-copyright): Default to excluding COPYING,
39511         but allow an override, in case someone does want to update that file.
39512
39513         maint.mk: don't update copyright date in COPYING
39514         * top/maint.mk (update-copyright): Exclude COPYING.
39515
39516         maint.mk: add a copyright-updating rule
39517         * top/maint.mk (update-copyright): New rule.
39518         Derived from coreutils/Makefile.am.
39519
39520         update-copyright: rename some variables
39521         * build-aux/update-copyright: Rename a few variables for clarity.
39522         Tweak syntax.  List Joel E. Denny as coauthor.
39523
39524 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39525
39526         update-copyright: fix bug for 2-digit last year and add tests
39527         * build-aux/update-copyright: Fix bug.
39528         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39529         specified.
39530         * modules/update-copyright-tests: New
39531         * tests/test-update-copyright.sh: New.
39532
39533 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39534
39535         update-copyright: handle leading tabs in line prefix
39536         * build-aux/update-copyright: Count leading tabs as 8 spaces
39537         when computing margin.  This helps with the formatting of
39538         ChangeLogs, for example.
39539         Fix documentation a little.
39540
39541 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39542
39543         update-copyright: support EOL=\r\n
39544         * build-aux/update-copyright: Implement that.
39545
39546 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39547
39548         update-copyright: automatically format copyright statements
39549         * build-aux/update-copyright: Implement that.
39550         Also, be a little more predictable and safer by always failing
39551         when the full copyright format is not perfectly recognized as an
39552         unbroken whole.  Discussed at
39553         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39554         Rewrite documentation.
39555
39556 2009-08-03  Bruno Haible  <bruno@clisp.org>
39557
39558         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39559
39560 2009-08-02  Bruno Haible  <bruno@clisp.org>
39561
39562         Tests for module 'uname'.
39563         * modules/uname-tests: New file.
39564         * tests/test-uname.c: New file.
39565
39566         New module 'uname'.
39567         * lib/uname.c: New file.
39568         * m4/uname.m4: New file.
39569         * modules/uname: New file.
39570         * doc/posix-functions/uname.texi: Mention the new module.
39571
39572 2009-08-02  Bruno Haible  <bruno@clisp.org>
39573
39574         Tests for module 'sys_utsname'.
39575         * modules/sys_utsname-tests: New file.
39576         * tests/test-sys_utsname.c: New file.
39577
39578         New module 'sys_utsname'.
39579         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39580         * m4/sys_utsname_h.m4: New file.
39581         * modules/sys_utsname: New file.
39582         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39583
39584 2009-08-02  Bruno Haible  <bruno@clisp.org>
39585
39586         Implicitly initialize the sockets library.
39587         * lib/gethostname.c: Include sockets.h.
39588         (rpl_gethostname): Invoke gl_sockets_startup.
39589         * lib/socket.c: Include sockets.h.
39590         (rpl_socket): Invoke gl_sockets_startup.
39591         * modules/gethostname (Depends-on): Add sockets.
39592         * modules/socket (Depends-on): Likewise.
39593         * tests/test-poll.c: Don't include sockets.h.
39594         (main): Don't invoke gl_sockets_startup.
39595         * tests/test-select.c: Don't include sockets.h.
39596         (main): Don't invoke gl_sockets_startup.
39597
39598 2009-08-02  Bruno Haible  <bruno@clisp.org>
39599
39600         Allow multiple calls to gl_sockets_startup.
39601         * lib/sockets.c (initialized_sockets_version): New variable.
39602         (gl_sockets_startup): Do nothing if already called for this or a higher
39603         version.
39604         (gl_sockets_cleanup): Reset initialized_sockets_version.
39605
39606 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39607
39608         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39609         different project/version.
39610
39611 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39612             Bruno Haible  <bruno@clisp.org>
39613
39614         Tests for module 'pipe-filter-gi'.
39615         * modules/pipe-filter-gi-tests: New file.
39616         * tests/test-pipe-filter-gi1.sh: New file.
39617         * tests/test-pipe-filter-gi1.c: New file.
39618         * tests/test-pipe-filter-gi2.sh: New file.
39619         * tests/test-pipe-filter-gi2-main.c: New file.
39620         * tests/test-pipe-filter-gi2-child.c: New file.
39621
39622         New module 'pipe-filter-gi'.
39623         * lib/pipe-filter-gi.c: New file.
39624         * modules/pipe-filter-gi: New file.
39625
39626 2009-08-02  Bruno Haible  <bruno@clisp.org>
39627             Paolo Bonzini  <bonzini@gnu.org>
39628
39629         Tests for module 'pipe-filter-ii'.
39630         * modules/pipe-filter-ii-tests: New file.
39631         * tests/test-pipe-filter-ii1.sh: New file.
39632         * tests/test-pipe-filter-ii1.c: New file.
39633         * tests/test-pipe-filter-ii2.sh: New file.
39634         * tests/test-pipe-filter-ii2-main.c: New file.
39635         * tests/test-pipe-filter-ii2-child.c: New file.
39636
39637         New module 'pipe-filter-ii'.
39638         * lib/pipe-filter.h: New file.
39639         * lib/pipe-filter-ii.c: New file.
39640         * lib/pipe-filter-aux.h: New file.
39641         * modules/pipe-filter-ii: New file.
39642
39643 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39644
39645         * lib/gc-libgcrypt.c: Change copyright to FSF.
39646         * lib/gc-gnulib.c: Likewise.
39647
39648 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39649
39650         * lib/gethostname.c: Include limits.h.
39651
39652 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39653             Bruno Haible  <bruno@clisp.org>
39654
39655         Ensure HOST_NAME_MAX as part of the gethostname module.
39656         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39657         define also HOST_NAME_MAX.
39658         * tests/test-gethostname.c: Include <limits.h>.
39659         (main): Check also HOST_NAME_MAX.
39660         * doc/posix-headers/limits.texi: Document the mingw problem.
39661
39662 2009-08-02  Bruno Haible  <bruno@clisp.org>
39663
39664         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39665         Add comments.
39666
39667 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39668
39669         * lib/gethostname.c: Add Windows wrapper.
39670         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39671         * modules/gethostname: Depend on sys_socket & errno, for also
39672         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39673         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39674
39675 2009-07-31  Jim Meyering  <meyering@redhat.com>
39676
39677         getloadavg: fix symbol name in comment
39678         * lib/getloadavg.c: Correct a typo I introduced when adding
39679         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39680         Matt Kraai spotted the problem.
39681
39682 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39683
39684         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39685         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39686         code also if ! defined N_NAME_POINTER.
39687         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39688         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39689         but the n_name member is a 12-byte array.
39690
39691 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39692
39693         update-copyright: generalize comment handling
39694         * build-aux/update-copyright: Handle copyright statements
39695         within more comment styles.
39696         Document usage.
39697         Report any file with an external copyright holder or parse failure.
39698
39699 2009-07-29  Jim Meyering  <meyering@redhat.com>
39700
39701         mktime: correct setting of REPLACE_MKTIME
39702         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
39703
39704         update-copyright: new module
39705         * modules/update-copyright: New file.
39706         * build-aux/update-copyright: New file.
39707         * MODULES.html.sh (maint+release support): Add update-copyright.
39708
39709 2009-07-27  Bruno Haible  <bruno@clisp.org>
39710
39711         Fix compilation error when <ctime> is used and mktime is replaced.
39712         * lib/time.in.h (mktime): New declaration.
39713         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
39714         REPLACE_MKTIME instead of defining mktime in config.h.
39715         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
39716         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
39717         Reported by Ross McFarland <rwmcfa1@neces.com>.
39718
39719 2009-07-27  Bruno Haible  <bruno@clisp.org>
39720
39721         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
39722         Reported by Matt Kraai <mkraai@beckman.com>.
39723
39724 2009-07-25  Jim Meyering  <meyering@redhat.com>
39725
39726         maint.mk: avoid warnings about missing files
39727         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
39728         diagnostic when .prev-version does not exist.
39729         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
39730         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
39731         nonexistent cfg.mk.
39732         Suggestions from Simon Josefsson.
39733
39734 2009-07-25  Bruno Haible  <bruno@clisp.org>
39735
39736         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
39737         defined as macros. Needed on QNX 6.4.1.
39738         Reported by Matt Kraai <mkraai@beckman.com>.
39739
39740 2009-07-23  Jim Meyering  <meyering@redhat.com>
39741
39742         maint.mk: invoke "make dist" with a working value of XZ_OPT
39743         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
39744
39745 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
39746
39747         Make fseeko.c compile on QNX.
39748         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
39749
39750 2009-07-22  Peter Simons  <simons@cryp.to>
39751
39752         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
39753         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39754         * lib/md4.h: Likewise.
39755         * lib/md5.h: Likewise.
39756         * lib/sha1.h: Likewise.
39757         * lib/sha256.h: Likewise.
39758         * lib/sha512.h: Likewise.
39759
39760         tests-sha1: don't assign literal string to 'char *' variable
39761         * tests/test-sha1.c (main): Declare locals with "const" to match
39762         attributes of the right hand side.
39763
39764 2009-07-21  Eric Blake  <ebb9@byu.net>
39765
39766         dup2: fix more mingw problems
39767         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39768         fd to itself.
39769         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39770         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
39771         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
39772         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
39773         care of mingw bugs.
39774
39775 2009-07-21  Jim Meyering  <meyering@redhat.com>
39776
39777         vc-list-files: avoid failure when /bin/sh is dash
39778         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39779         On some Debian based systems, /bin/sh is a symlink to dash, and running
39780         this command would omit the "/" following each 'tests' prefix:
39781           dash -x build-aux/vc-list-files -C . tests
39782         That is because bash and dash work differently:
39783           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39784           bash ok
39785           dash odd
39786
39787 2009-07-21  Eric Blake  <ebb9@byu.net>
39788
39789         dup2-tests: test previous patch
39790         * modules/dup2-tests: New file.
39791         * tests/test-dup2.c: Likewise.
39792         * tests/test-open.c (main): Avoid unspecified behavior.
39793         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39794         test.
39795
39796         dup2: work around mingw and cygwin 1.5 bug
39797         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39799         * modules/unistd (Makefile.am): Substitute it.
39800         * lib/unistd.in.h (dup2): Declare the replacement.
39801         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39802         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39803         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39804         * modules/execute (Depends-on): Add dup2.
39805         * modules/fseterr (Depends-on): Likewise.
39806         * modules/pipe (Depends-on): Likewise.
39807         * modules/posix_spawn-internal (Depends-on): Likewise.
39808
39809 2009-07-21  Bruno Haible  <bruno@clisp.org>
39810
39811         * modules/.gitattributes: New file.
39812
39813 2009-07-20  Bruno Haible  <bruno@clisp.org>
39814
39815         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39816         (main): Use it.
39817
39818 2009-07-20  Eric Blake  <ebb9@byu.net>
39819
39820         test-pipe: make a bit more robust.
39821         * tests/test-pipe.c (myerr): Allow error messages regardless of
39822         what we do to stderr.
39823         (test_pipe): Rearrange to avoid deadlock.
39824         (child_main): Try a larger read, to ensure we avoided deadlock.
39825         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39826         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39827         if misused.
39828
39829 2009-07-19  Jim Meyering  <meyering@redhat.com>
39830
39831         fts: avoid false-positive cycle-detection
39832         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39833         for each new command line argument.
39834
39835 2009-07-19  Bruno Haible  <bruno@clisp.org>
39836
39837         Fix build error on mingw with the modules sys_select and unistd.
39838         * modules/acl-tests (Depends-on): Add close.
39839         * modules/binary-io-tests (Depends-on): Likewise.
39840         * modules/closein-tests (Depends-on): Likewise.
39841         * modules/flock-tests (Depends-on): Likewise.
39842         * modules/fsync-tests (Depends-on): Likewise.
39843         * modules/lseek-tests (Depends-on): Likewise.
39844         * modules/pipe-tests (Depends-on): Likewise.
39845         * modules/posix_spawn-tests (Depends-on): Likewise.
39846         * modules/posix_spawnp-tests (Depends-on): Likewise.
39847         * modules/stat-time-tests (Depends-on): Likewise.
39848         * modules/yesno-tests (Depends-on): Likewise.
39849
39850 2009-07-19  Bruno Haible  <bruno@clisp.org>
39851
39852         Unify conditionals.
39853         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39854         macros, not at the compiler macros.
39855         * lib/pipe.c: Likewise.
39856         * lib/execute.c: Likewise.
39857         * lib/spawni.c: Likewise.
39858
39859 2009-07-19  Bruno Haible  <bruno@clisp.org>
39860
39861         Fix handling of closed stdin/stdout/stderr on mingw.
39862         * lib/w32spawn.h: Include unistd.h.
39863         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39864         file descriptor with O_NOINHERIT flag.
39865         (fd_safer_noinherit): New function, based on fd-safer.c.
39866         (dup_safer_noinherit): New function, based on dup-safer.c.
39867         (undup_safer_noinherit): New function.
39868         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39869         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39870         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39871         instead of fd_safer.
39872         * tests/test-pipe.c: Include <windows.h>.
39873         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39874         result.
39875
39876         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39877         from main.
39878         (test_pipe): Pass an extra argument for disambiguation.
39879         (main): Invoke parent_main or child_main.
39880
39881         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39882         consistently.
39883
39884 2009-07-18  Eric Blake  <ebb9@byu.net>
39885
39886         test-pipe: fix mingw build
39887         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39888
39889 2009-07-18  Bruno Haible  <bruno@clisp.org>
39890
39891         * modules/pipe-tests (Makefile.am): Fix typo.
39892
39893 2009-07-18  Eric Blake  <ebb9@byu.net>
39894
39895         error: fix mingw build
39896         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39897         Reported by Bruno Haible.
39898
39899         error: avoid undefined use of stdout
39900         * lib/error.c (error, error_at_line): Check that fd 1 is open
39901         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39902         is handling faults and the close_stdout module wants to report the
39903         detection of closed stdout as an error.
39904
39905 2009-07-17  Eric Blake  <ebb9@byu.net>
39906
39907         pipe: be robust in face of closed fds
39908         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39909         should cause child to misbehave.
39910         * modules/pipe-tests: New module.
39911         * tests/test-pipe.c: New file.
39912         * tests/test-pipe.sh: New file.
39913         Reported by Akim Demaille.
39914
39915 2009-07-14  Bruno Haible  <bruno@clisp.org>
39916
39917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39918         Reported by anonymous kc.
39919
39920 2009-07-07  Jim Meyering  <meyering@redhat.com>
39921
39922         maint.mk: don't look for translatable strings in *.m4 or *.mk
39923         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39924         when searching for translatable strings.
39925
39926 2009-07-05  Jim Meyering  <meyering@redhat.com>
39927
39928         remove superfluous parentheses in STREQ definition
39929         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39930         * lib/getugroups.c (STREQ): Likewise.
39931         * lib/fnmatch.c (STREQ): Likewise.
39932         Spotted by Bruno Haible.
39933
39934 2009-07-04  Jim Meyering  <meyering@redhat.com>
39935
39936         argv-iter: new module
39937         * MODULES.html.sh: Add argv-iter.
39938         * lib/argv-iter.c, lib/argv-iter.h: New files.
39939         * modules/argv-iter: New file.
39940         * modules/argv-iter-tests: New file.
39941         * tests/test-argv-iter.c: Test it.
39942
39943 2009-07-04  Bruno Haible  <bruno@clisp.org>
39944
39945         Fix assertion.
39946         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39947         contains more exact copies of a given entry than file2, leave the extra
39948         copies unpaired rather than aborting.
39949         Reported by Eric Blake.
39950
39951 2009-07-02  Bruno Haible  <bruno@clisp.org>
39952
39953         Speedup git-merge-changelog for git cherry-pick.
39954         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39955         (entries_mapping_get): New function, extracted from compute_mapping.
39956         (entries_mapping_reverse_get): New function.
39957         (compute_mapping): Add a 'full' argument. Return the result in a
39958         'struct entries_mapping'.
39959         (main): Update. Access the mappings through entries_mapping_get.
39960         Reported by Eric Blake.
39961
39962 2009-07-02  Bruno Haible  <bruno@clisp.org>
39963
39964         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39965         best_i.
39966
39967 2009-07-02  Bruno Haible  <bruno@clisp.org>
39968
39969         Speed up approximate search for matching ChangeLog entries.
39970         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39971         argument. Call fstrcmp_bounded instead of fstrcmp.
39972         (compute_mapping, try_split_merged_entry, main): Update callers.
39973
39974 2009-07-02  Bruno Haible  <bruno@clisp.org>
39975
39976         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39977
39978 2009-06-30  Bruno Haible  <bruno@clisp.org>
39979
39980         Reduce the number of uc_is_cased calls.
39981         * lib/unicase.h (casing_suffix_context_t): Add
39982         'first_char_except_ignorable' field.
39983         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39984         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39985         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39986         Update initializer.
39987         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39988         case-ignorable characters.
39989         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39990         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39991         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39992         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39993         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39994
39995 2009-06-30  Bruno Haible  <bruno@clisp.org>
39996
39997         Tests for module 'unicase/ignorable'.
39998         * modules/unicase/ignorable-tests: New file.
39999         * tests/unicase/test-ignorable.c: New file, generated by
40000         gen-uni-tables.
40001
40002         Tests for module 'unicase/cased'.
40003         * modules/unicase/cased-tests: New file.
40004         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40005         * tests/unicase/test-predicate-part1.h: New file, derived from
40006         tests/unictype/test-predicate-part1.h.
40007         * tests/unicase/test-predicate-part2.h: New file, same as
40008         tests/unictype/test-predicate-part2.h.
40009
40010         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40011         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40012         (output_casing_properties): New function.
40013         (main): Call it.
40014         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40015         * lib/unicase/cased.c: Include unictype/bitmap.h.
40016         (uc_is_cased): Define through a bitmap lookup.
40017         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40018         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40019         (uc_is_case_ignorable): Define through a bitmap lookup.
40020         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40021         lib/unictype/bitmap.h.
40022         (Depends-on): Add inline. Clean up.
40023         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40024         lib/unictype/bitmap.h.
40025         (Depends-on): Add inline. Clean up.
40026         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40027         recognition.
40028         * tests/unicase/test-u16-tolower.c (main): Likewise.
40029         * tests/unicase/test-u32-tolower.c (main): Likewise.
40030
40031 2009-06-30  Bruno Haible  <bruno@clisp.org>
40032
40033         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40034         * lib/unicase/u16-casemap.c: Likewise.
40035         * lib/unicase/u32-casemap.c: Likewise.
40036
40037 2009-06-29  Bruno Haible  <bruno@clisp.org>
40038
40039         Define u32_casefold as a wrapper around u32_ct_casefold.
40040         * lib/unicase/u32-casefold.c: Update.
40041         * modules/unicase/u32-casefold (Depends-on): Add
40042         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40043         unicase/empty-suffix-context. Clean up.
40044
40045         Define u16_casefold as a wrapper around u16_ct_casefold.
40046         * lib/unicase/u16-casefold.c: Update.
40047         * modules/unicase/u16-casefold (Depends-on): Add
40048         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40049         unicase/empty-suffix-context. Clean up.
40050
40051         Define u8_casefold as a wrapper around u8_ct_casefold.
40052         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40053         * lib/unicase/u8-casefold.c: Update.
40054         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40055         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40056
40057         Define u32_totitle as a wrapper around u32_ct_totitle.
40058         * lib/unicase/u32-totitle.c: Update.
40059         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40060         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40061
40062         Define u16_totitle as a wrapper around u16_ct_totitle.
40063         * lib/unicase/u16-totitle.c: Update.
40064         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40065         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40066
40067         Define u8_totitle as a wrapper around u8_ct_totitle.
40068         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40069         functions.
40070         (FUNC): Delegate to U_CT_TOTITLE.
40071         * lib/unicase/u8-totitle.c: Update.
40072         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40073         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40074
40075         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40076         invocation.
40077         * modules/unicase/u32-tolower (Depends-on): Add
40078         unicase/empty-prefix-context, unicase/empty-suffix-context.
40079
40080         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40081         invocation.
40082         * modules/unicase/u16-tolower (Depends-on): Add
40083         unicase/empty-prefix-context, unicase/empty-suffix-context.
40084
40085         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40086         * modules/unicase/u8-tolower (Depends-on): Add
40087         unicase/empty-prefix-context, unicase/empty-suffix-context.
40088
40089         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40090         invocation.
40091         * modules/unicase/u32-toupper (Depends-on): Add
40092         unicase/empty-prefix-context, unicase/empty-suffix-context.
40093
40094         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40095         invocation.
40096         * modules/unicase/u16-toupper (Depends-on): Add
40097         unicase/empty-prefix-context, unicase/empty-suffix-context.
40098
40099         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40100         * modules/unicase/u8-toupper (Depends-on): Add
40101         unicase/empty-prefix-context, unicase/empty-suffix-context.
40102
40103         New module 'unicase/u32-ct-casefold'.
40104         * lib/unicase/u32-ct-casefold.c: New file.
40105         * modules/unicase/u32-ct-casefold: New file.
40106
40107         New module 'unicase/u16-ct-casefold'.
40108         * lib/unicase/u16-ct-casefold.c: New file.
40109         * modules/unicase/u16-ct-casefold: New file.
40110
40111         New module 'unicase/u8-ct-casefold'.
40112         * lib/unicase/u8-ct-casefold.c: New file.
40113         * lib/unicase/u-ct-casefold.h: New file, derived from
40114         lib/unicase/u-casefold.h.
40115         * modules/unicase/u8-ct-casefold: New file.
40116
40117         New module 'unicase/u32-ct-totitle'.
40118         * lib/unicase/u32-ct-totitle.c: New file.
40119         * modules/unicase/u32-ct-totitle: New file.
40120
40121         New module 'unicase/u16-ct-totitle'.
40122         * lib/unicase/u16-ct-totitle.c: New file.
40123         * modules/unicase/u16-ct-totitle: New file.
40124
40125         New module 'unicase/u8-ct-totitle'.
40126         * lib/unicase/u8-ct-totitle.c: New file.
40127         * lib/unicase/u-ct-totitle.h: New file, derived from
40128         lib/unicase/u-totitle.h.
40129         * modules/unicase/u8-ct-totitle: New file.
40130
40131         New module 'unicase/u32-ct-tolower'.
40132         * lib/unicase/u32-ct-tolower.c: New file.
40133         * modules/unicase/u32-ct-tolower: New file.
40134
40135         New module 'unicase/u16-ct-tolower'.
40136         * lib/unicase/u16-ct-tolower.c: New file.
40137         * modules/unicase/u16-ct-tolower: New file.
40138
40139         New module 'unicase/u8-ct-tolower'.
40140         * lib/unicase/u8-ct-tolower.c: New file.
40141         * modules/unicase/u8-ct-tolower: New file.
40142
40143         New module 'unicase/u32-ct-toupper'.
40144         * lib/unicase/u32-ct-toupper.c: New file.
40145         * modules/unicase/u32-ct-toupper: New file.
40146
40147         New module 'unicase/u16-ct-toupper'.
40148         * lib/unicase/u16-ct-toupper.c: New file.
40149         * modules/unicase/u16-ct-toupper: New file.
40150
40151         New module 'unicase/u8-ct-toupper'.
40152         * lib/unicase/u8-ct-toupper.c: New file.
40153         * modules/unicase/u8-ct-toupper: New file.
40154
40155         Add context arguments to u*_casemap functions.
40156         * lib/unicase/unicasemap.h: Include unicase.h.
40157         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40158         suffix_context arguments.
40159         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40160         functions.
40161         (FUNC): Add prefix_context and suffix_context arguments. Use
40162         uc_is_cased and uc_is_case_ignorable.
40163         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40164         * lib/unicase/u16-casemap.c: Likewise.
40165         * lib/unicase/u32-casemap.c: Likewise.
40166         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40167         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40168         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40169         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40170         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40171         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40172
40173         New module 'unicase/u32-suffix-context'.
40174         * lib/unicase/u32-suffix-context.c: New file.
40175         * modules/unicase/u32-suffix-context: New file.
40176
40177         New module 'unicase/u16-suffix-context'.
40178         * lib/unicase/u16-suffix-context.c: New file.
40179         * modules/unicase/u16-suffix-context: New file.
40180
40181         New module 'unicase/u8-suffix-context'.
40182         * lib/unicase/u8-suffix-context.c: New file.
40183         * lib/unicase/u-suffix-context.h: New file.
40184         * modules/unicase/u8-suffix-context: New file.
40185
40186         New module 'unicase/empty-suffix-context'.
40187         * lib/unicase/empty-suffix-context.c: New file.
40188         * modules/unicase/empty-suffix-context: New file.
40189
40190         New module 'unicase/u32-prefix-context'.
40191         * lib/unicase/u32-prefix-context.c: New file.
40192         * modules/unicase/u32-prefix-context: New file.
40193
40194         New module 'unicase/u16-prefix-context'.
40195         * lib/unicase/u16-prefix-context.c: New file.
40196         * modules/unicase/u16-prefix-context: New file.
40197
40198         New module 'unicase/u8-prefix-context'.
40199         * lib/unicase/u8-prefix-context.c: New file.
40200         * lib/unicase/u-prefix-context.h: New file.
40201         * lib/unicase/context.h: New file.
40202         * modules/unicase/u8-prefix-context: New file.
40203
40204         New module 'unicase/empty-prefix-context'.
40205         * lib/unicase/empty-prefix-context.c: New file.
40206         * modules/unicase/empty-prefix-context: New file.
40207
40208         New module 'unicase/ignorable'.
40209         * lib/unicase/ignorable.c: New file.
40210         * modules/unicase/ignorable: New file.
40211
40212         New module 'unicase/cased'.
40213         * lib/unicase/caseprop.h: New file.
40214         * lib/unicase/cased.c: New file.
40215         * modules/unicase/cased: New file.
40216
40217         New functions for case mapping of substrings.
40218         * lib/unicase.h (casing_prefix_context_t): New type.
40219         (unicase_empty_prefix_context): New variable.
40220         (u8_casing_prefix_context, u16_casing_prefix_context,
40221         u32_casing_prefix_context, u8_casing_prefixes_context,
40222         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40223         declarations.
40224         (casing_suffix_context_t): New type.
40225         (unicase_empty_suffix_context): New variable.
40226         (u8_casing_suffix_context, u16_casing_suffix_context,
40227         u32_casing_suffix_context, u8_casing_suffixes_context,
40228         u16_casing_suffixes_context, u32_casing_suffixes_context,
40229         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40230         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40231         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40232         declarations.
40233
40234 2009-06-28  Jim Meyering  <meyering@redhat.com>
40235
40236         boostrap: indent only with spaces
40237         * build-aux/bootstrap: Indent only with spaces, never TABs.
40238
40239         bootstrap: split long lines
40240         * build-aux/bootstrap: Keep line length < 80.
40241
40242         bootstrap: sync from coreutils
40243         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40244         just as autoreconf does.  Verify a list of prerequisite
40245         package-name,version-number pairs if defined in bootstrap.conf.
40246         Refer to README-prereq, if prerequisites are not satisfied.
40247
40248 2009-06-27  Eric Blake  <ebb9@byu.net>
40249
40250         tests: add test for bogus NULL definition
40251         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40252         * tests/test-stdlib.c: Likewise.
40253         * tests/test-string.c: Likewise.
40254         * tests/test-locale.c: Likewise.
40255         * tests/test-unistd.c: Likewise.
40256         * modules/stdio-tests (Depends-on): Add verify.
40257         * modules/stdlib-tests (Depends-on): Likewise.
40258         * modules/string-tests (Depends-on): Likewise.
40259         * modules/locale-tests (Depends-on): Likewise.
40260         * modules/unistd-tests (Depends-on): Likewise.
40261
40262 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40263
40264         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40265         self-explaining comment.
40266         * m4/selinux-selinux-h: Update serial.
40267         (gl_LIBSELINUX): New macro, adding a warning for missing development
40268         packages to code extracted from...
40269         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40270         Add warning for missing development packages here, too.
40271
40272 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40273
40274         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40275
40276 2009-06-25  Eric Blake  <ebb9@byu.net>
40277
40278         version-etc: fix regression
40279         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40280         gcc.
40281         (version_etc): Use it, to catch bugs with trailing NULL.
40282         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40283         (version_etc_va): Fix logic bug.
40284         * modules/version-etc-tests: Add test.
40285         * tests/test-version-etc.c: New file.
40286         * tests/test-version-etc.sh: Likewise.
40287
40288 2009-06-25  Sam Steingold  <sds@gnu.org>
40289
40290         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40291         mbtowc declaration.
40292
40293 2009-06-25  Eric Blake  <ebb9@byu.net>
40294
40295         fpurge: migrate into <stdio.h>
40296         * lib/fpurge.h: Delete...
40297         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40298         * lib/fpurge.c (fpurge): Change declaring header.
40299         * modules/fpurge (Files): Drop deleted file.
40300         (Depends-on): Add stdio.
40301         (configure.ac): Set witness.
40302         * modules/stdio (Makefile.am): Support fpurge macros.
40303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40304         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40305         * lib/fflush.c: Update client.
40306         * tests/test-fpurge.c: Likewise.
40307         * NEWS: Mention the change.
40308
40309 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40310
40311         * lib/argp-version-etc.c (program_authors): Add const
40312         qualifier.
40313         * lib/version-etc.c: Fix typos in the comments.
40314         * modules/argp-version-etc: Depends on version-etc.
40315
40316 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40317
40318         argp-version-etc: new module.
40319
40320         * lib/argp-version-etc.c: New file.
40321         * lib/argp-version-etc.h: New file.
40322         * modules/argp-version-etc: New file.
40323         * modules/argp-version-etc-tests: New file.
40324         * tests/test-argp-version-etc.c: New test.
40325         * tests/test-argp-version-etc-1.sh: New test.
40326
40327 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40328
40329         Provide additional interfaces and documentation for version-etc
40330         module.
40331
40332         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40333         interfaces.
40334         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40335         prototypes.
40336
40337 2009-06-24  Bruno Haible  <bruno@clisp.org>
40338
40339         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40340         HAVE_LIB${NAME} macro.
40341         Reported by Sam Steingold <sds@gnu.org>.
40342
40343 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40344
40345         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40346         needed.
40347
40348 2009-06-21  Bruno Haible  <bruno@clisp.org>
40349
40350         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40351         work.
40352         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40353         together with LIB${NAME}, LTLIB${NAME}.
40354         Reported by Sam Steingold <sds@gnu.org>.
40355
40356 2009-06-20  Jim Meyering  <meyering@redhat.com>
40357
40358         tests: make sc_require_test_exit_idiom more generic
40359         * top/maint.mk (Exit_witness_file): New overridable variable.
40360         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40361         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40362
40363 2009-06-19  Jim Meyering  <meyering@redhat.com>
40364
40365         hash: reverse order of src/dst parameters in an internal interface
40366         * lib/hash.c (transfer_entries): Reverse order of parameters to
40367         put DST before SRC.  Adjust callers.
40368
40369         tests: test-hash: avoid wholesale duplication
40370         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40371         Instead, use a loop and add a single conditional.
40372
40373         tests: test-hash: allow seed selection via a command line argument
40374         * tests/test-hash.c (get_seed): New function.
40375         (main): Use it.
40376
40377 2009-06-19  Eric Blake  <ebb9@byu.net>
40378
40379         hash: avoid memory leak on allocation failure
40380         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40381         failure.  Factor repeated algorithm...
40382         (transfer_entries): ...into new helper routine.
40383         (hash_delete): React to hash_rehash return value.
40384
40385         hash: reduce memory pressure in hash_rehash no-op case
40386         * lib/hash.c (next_prime): Avoid overflow.
40387         (hash_initialize): Factor bucket size computation...
40388         (compute_bucket_size): ...into new helper function.
40389         (hash_rehash): Use new function and open coding to reduce memory
40390         pressure, and avoid a memory leak in USE_OBSTACK code.
40391         Reported by Jim Meyering.
40392
40393 2009-06-18  Eric Blake  <ebb9@byu.net>
40394
40395         hash: make rotation more obvious
40396         * modules/hash (Depends-on): Add bitrotate and stdint.
40397         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40398         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40399         (SIZE_MAX): Rely on headers for definition.
40400         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40401         (raw_hasher): Use rotr_sz.
40402         Suggested by Jim Meyering.
40403
40404         hash: fix memory leak in last patch
40405         * lib/hash.c (hash_rehash): Avoid memory leak.
40406
40407         hash: avoid no-op rehashing
40408         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40409
40410         hash: provide default callback functions
40411         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40412         (hash_initialize): Use them as defaults.
40413         * tests/test-hash.c (main): Test this.
40414
40415         hash: minor optimization
40416         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40417         when possible.
40418         (hash_initialize): Document this promise.
40419         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40420         * tests/test-hash.c (hash_compare_strings): Test this.
40421
40422 2009-06-18  Bruno Haible  <bruno@clisp.org>
40423
40424         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40425         going to be replaced anyway.
40426
40427 2009-06-18  Bruno Haible  <bruno@clisp.org>
40428
40429         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40430         in one place.
40431         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40432         be replaced anyway.
40433
40434 2009-06-18  Eric Blake  <ebb9@byu.net>
40435
40436         hash: check for resize before insertion
40437         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40438         threshold before insertion, so that a pathological hash_rehash
40439         that fills every bucket can still trigger another rehash.
40440
40441 2009-06-18  Jim Meyering  <meyering@redhat.com>
40442
40443         hash-tests: add a loop around the small tests
40444         * tests/test-hash.c (main): Repeat small tests with selected
40445         small initial table sizes.
40446
40447 2009-06-17  Eric Blake  <ebb9@byu.net>
40448
40449         hash: minor cleanups
40450         * lib/hash.h (hash_entry): Make opaque, by moving...
40451         * lib/hash.c (hash_entry): ...here.
40452         (hash_insert): Clarify restrictions on what can be inserted.
40453         (hash_get_next): Clarify when it is safe to remove an element
40454         during traversal.
40455         (check_tuning): Skip verification when tuning is known safe.
40456         (hash_initialize): Clarify restrictions on tuning.
40457
40458 2009-06-17  Jim Meyering  <jim@meyering.net>
40459         and Eric Blake  <ebb9@byu.net>
40460
40461         hash-tests: new module
40462         * modules/hash-tests: New file.
40463         * tests/test-hash.c: New file.
40464
40465 2009-06-17  Eric Blake  <ebb9@byu.net>
40466
40467         strstr-simple: document new module
40468         * MODULES.html.sh: Document new module.
40469
40470         strstr, strcasestr: replace on platforms with broken memchr
40471         * modules/strstr: Split into...
40472         * modules/strstr-simple: ...new module that does not care about
40473         performance, but does care about glibc bug.
40474         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40475         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40476         if platform memchr is broken, per Debian bug 521737.
40477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40478         memchr.
40479         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40480         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40481         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40482         * modules/mountlist (Depends-on): Add strstr-simple.
40483         * modules/gen-uni-tables (Depends-on): Likewise.
40484         * modules/argz (Depends-on): Add strstr.
40485
40486 2009-06-17  Bruno Haible  <bruno@clisp.org>
40487
40488         * modules/posix_spawn-internal (Depends-on): Add errno.
40489
40490 2009-06-17  Bruno Haible  <bruno@clisp.org>
40491
40492         Define missing ESTALE on Interix 3.5.
40493         * lib/errno.in.h (ESTALE): Assign a value if missing.
40494         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40495         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40496         missing.
40497         * doc/posix-headers/errno.texi: Mention the Interix bug.
40498         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40499
40500 2009-06-15  Eric Blake  <ebb9@byu.net>
40501
40502         memchr, memchr2: add valgrind exception
40503         * lib/memchr.valgrind: New file.
40504         * lib/memchr2.valgrind: New file.
40505         * modules/memchr (Files): Distribute valgrind file.
40506         * modules/memchr2 (Files): Likewise.
40507
40508         docs: memchr is no longer obsolete
40509         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40510         * lib/string.in.h (memchr): Simplify logic.
40511
40512 2009-06-14  Jim Meyering  <meyering@redhat.com>
40513
40514         link-follow: fix the "checking..." message to not mention trailing slash
40515         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40516         never considered trailing slashes.
40517
40518 2009-06-14  Bruno Haible  <bruno@clisp.org>
40519
40520         * m4/memchr.m4: Mention also the bug on IA-64.
40521         * doc/posix-functions/memchr.texi: Likewise.
40522
40523 2009-06-12  Eric Blake  <ebb9@byu.net>
40524
40525         memchr: detect broken x86_64 and alpha implementations
40526         * modules/memchr-tests (Depends-on): Move mmap detection...
40527         * modules/memchr (Depends-on): ...here.
40528         (configure.ac): Set indicator.
40529         * lib/string.in.h (memchr): Declare replacement.
40530         * modules/string (Makefile.am): Trigger replacement.
40531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40532         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40533         bugs.
40534         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40535         * modules/getpagesize (License): Relax license.
40536
40537 2009-06-11  Bruno Haible  <bruno@clisp.org>
40538
40539         * lib/idpriv.h: Add more references.
40540
40541 2009-06-08  Bruno Haible  <bruno@clisp.org>
40542
40543         Tests for module 'idpriv-droptemp'.
40544         * modules/idpriv-droptemp-tests: New file.
40545         * tests/test-idpriv-droptemp.sh: New file.
40546         * tests/test-idpriv-droptemp.su.sh: New file.
40547         * tests/test-idpriv-droptemp.c: New file.
40548
40549         New module 'idpriv-droptemp'.
40550         * lib/idpriv-droptemp.c: New file.
40551         * modules/idpriv-droptemp: New file.
40552
40553 2009-06-08  Bruno Haible  <bruno@clisp.org>
40554
40555         Tests for module 'idpriv-drop'.
40556         * modules/idpriv-drop-tests: New file.
40557         * tests/test-idpriv-drop.sh: New file.
40558         * tests/test-idpriv-drop.su.sh: New file.
40559         * tests/test-idpriv-drop.c: New file.
40560
40561         New module 'idpriv-drop'.
40562         * lib/idpriv.h: New file.
40563         * lib-idpriv-drop.c: New file.
40564         * m4/idpriv.m4: New file.
40565         * modules/idpriv-drop: New file.
40566
40567 2009-06-08  Bruno Haible  <bruno@clisp.org>
40568
40569         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40570         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40571         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40572         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40573         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40574         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40575         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40576
40577 2009-06-08  Eric Blake  <ebb9@byu.net>
40578
40579         test-strstr: use memory fence, when possible
40580         * tests/test-strstr.c (main): Use memory fence, in order to be
40581         more likely to trigger Debian bug 521737.
40582         * modules/strstr-tests (Files): Pull in additional files.
40583
40584         memchr: no longer obsolete, for wider field testing
40585         * modules/memchr (Status, Notice): Delete, this module is no
40586         longer obsolete.
40587         * modules/vasnprintf (Depends-on): Add memchr.
40588
40589 2009-06-07  Jim Meyering  <meyering@redhat.com>
40590
40591         hash: declare some functions with the warn_unused_result attribute
40592         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40593
40594 2009-06-07  Bruno Haible  <bruno@clisp.org>
40595
40596         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40597         Reported by Eric Blake.
40598
40599 2009-06-06  Eric Blake  <ebb9@byu.net>
40600
40601         test-alignof: fix typo with long double
40602         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40603         compiler error.
40604
40605 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40606
40607         Escape non-texinfo { and }s.
40608         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40609         markup error.
40610
40611 2009-06-04  Jim Meyering  <meyering@redhat.com>
40612
40613         gitlog-to-changelog: don't infloop on an empty commit log
40614         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40615         Reported by Boris Petersen <transacid@centerim.org>.
40616
40617 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40618
40619         version-etc: extend for packagers
40620         Add three new configure options, intended for packagers:
40621           --with-packager="packager name"
40622           --with-packager-version="packager-specific version"
40623           --with-packager-bug-reports="packager bug reporting"
40624         An example with coreutils:
40625           $ ./configure \
40626             --with-packager=Gentoo \
40627             --with-packager-bug-report=http://bugs.gentoo.org/ \
40628             --with-packager-version="patchset 1.6"
40629           $ ./src/ls --version | head -n2
40630           ls (GNU coreutils) 7.1-dirty
40631           Packaged by Gentoo (patchset 1.6)
40632         Note that the bug reporting info via --help doesn't show up because
40633         coreutils uses its own custom emit_bug_reporting_address() implementation
40634         in src/system.h.  If it didn't, it'd look like:
40635           $ ./src/ls --help | tail -n4
40636           Report bugs to <bug-coreutils@gnu.org>.
40637           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40638           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40639           General help using GNU software: <http://www.gnu.org/gethelp/>.
40640         * lib/version-etc.c: Print new information, if provided.
40641         * m4/version-etc.m4: New file.
40642         * modules/version-etc (Files): Add m4/version-etc.m4.
40643         (configure.ac): Add gl_VERSION_ETC.
40644
40645 2009-05-31  Bruno Haible  <bruno@clisp.org>
40646
40647         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40648         and 'int64_t'.
40649         * modules/alignof-tests (Dependencies): Add stdint.
40650         Reported by Eric Blake.
40651
40652 2009-05-31  Bruno Haible  <bruno@clisp.org>
40653
40654         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40655         restriction due to compiler bugs.
40656         Reported by Eric Blake.
40657
40658 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40659             Bruno Haible  <bruno@clisp.org>
40660
40661         Fix test-alignof failure.
40662         * lib/alignof.h (alignof_slot): New macro.
40663         (alignof_type): New macro, with the same semantics as the previous
40664         'alignof'.
40665         (alignof): Alias to alignof_slot.
40666         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40667         check that the results are usable as constant expressions.
40668
40669 2009-05-31  Bruno Haible  <bruno@clisp.org>
40670
40671         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40672         * tests/test-memchr.c (main): Check that memchr does not read past the
40673         first occurrence of the byte.
40674         * tests/test-strstr.c (main): Update comment.
40675         Suggested by Eric Blake.
40676
40677 2009-05-30  Bruno Haible  <bruno@clisp.org>
40678
40679         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40680         detail how to use dumpbin.
40681         Reported by David Byron <dbyron@dbyron.com>.
40682
40683 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40684
40685         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40686
40687 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40688
40689         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40690
40691 2009-05-28  Bruno Haible  <bruno@clisp.org>
40692
40693         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40694         build-aux/ files.
40695
40696 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40697
40698         * gnulib-tool (func_import): Transform license on build-aux/ files too.
40699
40700 2009-05-27  Simon Josefsson  <simon@josefsson.org>
40701
40702         * gnulib-tool (sed_transform_main_lib_file)
40703         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
40704         regexps.
40705
40706 2009-05-26  Simon Josefsson  <simon@josefsson.org>
40707
40708         * tests/test-strstr.c: Add another self-test.
40709         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
40710         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
40711
40712 2009-05-23  Bruno Haible  <bruno@clisp.org>
40713
40714         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
40715         change.
40716
40717 2009-05-21  Bruno Haible  <bruno@clisp.org>
40718
40719         Simplify use of mode_t varargs.
40720         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
40721         uses 'mode_t' or 'int'.
40722         * lib/openat.c (openat): Likewise.
40723         * lib/open-safer.c (open_safer): Likewise.
40724         * m4/mode_t.m4: New file.
40725         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
40726         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
40727         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
40728         * modules/open (Files): Add m4/mode_t.m4.
40729         * modules/openat (Files): Likewise.
40730         * modules/fcntl-safer (Files): Likewise.
40731         Suggested by Eric Blake.
40732
40733 2009-05-21  Pádraig Brady  <P@draigbrady.com>
40734
40735         * doc/glibc-functions/fallocate.texi: New file.
40736         * doc/gnulib.texi: Include it.
40737
40738 2009-05-21  Eric Blake  <ebb9@byu.net>
40739             Bruno Haible  <bruno@clisp.org>
40740
40741         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
40742         invocations.
40743         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40744
40745 2009-05-21  Eric Blake  <ebb9@byu.net>
40746             Bruno Haible  <bruno@clisp.org>
40747
40748         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
40749         include_next. Fix of 2008-11-20 commit.
40750         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
40751         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
40752         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
40753         NEXT_MATH_H.
40754         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40755         instead of NEXT_MATH_H.
40756
40757 2009-05-21  Bruno Haible  <bruno@clisp.org>
40758
40759         Avoid redefinition warnings for SIZE_MAX.
40760         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40761         Reported by Simon Josefsson.
40762
40763 2009-05-21  Bruno Haible  <bruno@clisp.org>
40764
40765         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40766         AC_CACHE_VAL.
40767
40768 2009-05-20  Bruno Haible  <bruno@clisp.org>
40769
40770         Make zeroptr.h work on mingw.
40771         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
40772         mprotect.
40773         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
40774         * modules/memchr2-tests (configure.ac): Likewise.
40775         * modules/memcmp-tests (configure.ac): Likewise.
40776         * modules/memmem-tests (configure.ac): Likewise.
40777         * modules/memrchr-tests (configure.ac): Likewise.
40778         Reported by Simon Josefsson.
40779
40780 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40781
40782         * tests/test-glob.c: Include string.h for strcmp prototype.
40783
40784 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40785
40786         * modules/getdelim (Depends-on): Add explicit stdint, although it
40787         was implicitly already pulled in via realloc-posix.
40788         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40789
40790 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40791
40792         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40793         G. Christensen" <tgc@jupiterrise.com>.
40794         * m4/sys_socket_h.m4: Check for sa_family_t.
40795         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40796         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40797         * tests/test-sys_socket.c: Check that sa_family_t works.
40798
40799 2009-05-18  Eric Blake  <ebb9@byu.net>
40800
40801         maint.mk: allow gnulib_dir in VPATH build
40802         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40803
40804 2009-05-15  Jim Meyering  <meyering@redhat.com>
40805
40806         maint.mk: Give gnulib_dir a default definition.
40807         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40808         Thus, most packages no longer need to specify this variable in cfg.mk
40809
40810 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40811
40812         rename.m4: fix typos that would make non-mingw cross-configure fail
40813         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40814
40815 2009-05-13  Eric Blake  <ebb9@byu.net>
40816
40817         mmap-anon: avoid out-of-order autoconf expansion
40818         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40819         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40820         * modules/memchr-tests (Depends-on): Add extensions.
40821         * modules/memchr2-tests (Depends-on): Add extensions.
40822         * modules/memcmp-tests (Depends-on): Add extensions.
40823         * modules/memmem-tests (Depends-on): Add extensions.
40824         * modules/memrchr-tests (Depends-on): Add extensions.
40825
40826 2009-05-13  Bruno Haible  <bruno@clisp.org>
40827
40828         Make some tests ISO C 99 compliant.
40829         * tests/zerosize-ptr.h: New file.
40830         * tests/test-memchr.c: Include zerosize-ptr.h.
40831         (main): Use a zero-size object pointer instead of NULL.
40832         * tests/test-memchr2.c: Include zerosize-ptr.h.
40833         (main): Use a zero-size object pointer instead of NULL.
40834         * tests/test-memcmp.c: Include zerosize-ptr.h.
40835         (main): Use a zero-size object pointer instead of NULL.
40836         * tests/test-memmem.c: Include zerosize-ptr.h.
40837         (main): Use a zero-size object pointer instead of NULL.
40838         * tests/test-memrchr.c: Include zerosize-ptr.h.
40839         (main): Use a zero-size object pointer instead of NULL.
40840         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40841         m4/mmap-anon.m4.
40842         (Depends-on): Add getpagesize.
40843         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40844         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40845         m4/mmap-anon.m4.
40846         (Depends-on): Add getpagesize.
40847         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40848         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40849         m4/mmap-anon.m4.
40850         (Depends-on): Add getpagesize.
40851         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40852         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40853         m4/mmap-anon.m4.
40854         (Depends-on): Add getpagesize.
40855         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40856         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40857         m4/mmap-anon.m4.
40858         (Depends-on): Add getpagesize.
40859         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40860
40861 2009-05-12  Bruno Haible  <bruno@clisp.org>
40862
40863         Tests for module 'alignof'.
40864         * modules/alignof-tests: New file.
40865         * tests/test-alignof.c: New file.
40866
40867 2009-05-12  Bruno Haible  <bruno@clisp.org>
40868
40869         Fix alignof macro.
40870         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40871         vendor compilers that are always correct.
40872
40873 2009-05-12  Bruno Haible  <bruno@clisp.org>
40874
40875         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40876         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40877         not whether its fully works.
40878
40879 2009-05-12  Bruno Haible  <bruno@clisp.org>
40880
40881         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40882
40883 2009-05-12  Jim Meyering  <meyering@redhat.com>
40884
40885         * top/maint.mk: Adjust backslash alignment.
40886
40887 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40888
40889         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40890
40891 2009-05-11  Eric Blake  <ebb9@byu.net>
40892
40893         argp: avoid undefined behavior
40894         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40895         macros.
40896
40897 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40898
40899         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40900         user.name to prevent git commit from complaining.
40901
40902 2009-05-10  Bruno Haible  <bruno@clisp.org>
40903
40904         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40905         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40906         it rewrites every file name only once.
40907         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40908
40909 2009-05-08  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40912         instead of 'max'.
40913
40914 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40915
40916         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40917         sockaddr_storage test.
40918
40919 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40920
40921         * modules/sys_socket (Makefile.am): Substitute
40922         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40923         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40924         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40925         * tests/test-sys_socket.c: Check sockaddr_storage.
40926
40927 2009-05-08  Bruno Haible  <bruno@clisp.org>
40928
40929         New module 'alignof'.
40930         * lib/alignof.h: New file.
40931         * modules/alignof: New file.
40932
40933 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40934             Bruno Haible  <bruno@clisp.org>
40935
40936         Fix test-file-has-acl on FreeBSD.
40937         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40938         mask is implicitly added.
40939         * tests/test-file-has-acl.c: Include <signal.h>.
40940         (main): Terminate the test after 5 seconds.
40941         * modules/acl-tests (configure.ac): Check for alarm function.
40942
40943 2009-05-04  Bruno Haible  <bruno@clisp.org>
40944
40945         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40946         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40947         * modules/errno (configure.ac): Drop AC_REQUIRE.
40948         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40949         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40950
40951 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40952
40953         * modules/glob-tests: New module.
40954         * tests/test-glob.c: Add.
40955
40956 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40957
40958         * modules/fnmatch-tests: New module.
40959         * tests/test-fnmatch.c: Add.
40960
40961 2009-05-04  Eric Blake  <ebb9@byu.net>
40962
40963         maint: make the new no-submodule-changes rule VPATH-safe
40964         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40965
40966 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40967             Bruno Haible  <bruno@clisp.org>
40968
40969         acl: Fix infinite loop on FreeBSD.
40970         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40971         of return value from acl_get_entry.
40972         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40973         Likewise.
40974
40975 2009-05-03  Bruno Haible  <bruno@clisp.org>
40976
40977         * lib/acl-internal.h (acl_entries): Clarify return value.
40978         * lib/acl_entries.c (acl_entries): Likewise.
40979
40980 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40981
40982         Bug fix in acl module.
40983         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40984
40985 2009-05-03  Bruno Haible  <bruno@clisp.org>
40986
40987         Create gperf-generated file in the source dir, not in the build dir.
40988         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40989         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40990         * modules/unicase/locale-language (unicase/locale-languages.h):
40991         Likewise.
40992         * modules/unicase/special-casing (unicase/special-casing-table.h):
40993         Likewise.
40994         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40995         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40996         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40997         Reported by Ralf Wildenhues.
40998
40999 2009-05-03  Bruno Haible  <bruno@clisp.org>
41000
41001         * modules/fnmatch (Description, configure.ac): Taken from
41002         fnmatch-posix.
41003         * modules/fnmatch-posix: Turn into a symbolic reference to the
41004         'fnmatch' module, and deprecate.
41005         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41006
41007 2009-05-03  Bruno Haible  <bruno@clisp.org>
41008
41009         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41010         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41011         Reported by Ralf Wildenhues.
41012
41013 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41014
41015         * m4/fnmatch.m4: Fix fnmatch re-define.
41016
41017 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41018
41019         priv-set: new module and tests; adapt write-any-file
41020         * lib/priv-set.c: New file.
41021         * lib/priv-set.h: New file.
41022         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41023         * lib/write-any-file.c: Simplify by using priv-set module.
41024         * m4/priv-set.m4: New file.
41025         * modules/priv-set: New file.
41026         * modules/unlinkdir: Add dependency on priv-set module.
41027         * modules/write-any-file: Likewise.
41028
41029         Tests for module 'priv-set'.
41030         * modules/priv-set-tests: New file.
41031         * tests/test-priv-set.c: New file.
41032
41033 2009-05-03  Jim Meyering  <meyering@redhat.com>
41034             Bruno Haible  <bruno@clisp.org>
41035
41036         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41037         use the converted UTF-8 variant of the name instead.
41038
41039 2009-05-03  Jim Meyering  <meyering@redhat.com>
41040
41041         tests: tighten some getdate tests
41042         * tests/test-getdate.c (main): Tighten tests: require equality,
41043         not just greater than.  Set TZ envvar to UTC0.
41044
41045 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41046
41047         getdate: correctly interpret "next monday" when run on a Monday
41048         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41049         that e.g., "next tues" (when run on a tuesday) results in a date
41050         that is one week in the future, and not today's date.
41051         I.e., add a week when the wday is the same as the current one.
41052         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41053         and earlier by Martin Bernreuther and Jan Minář.
41054         * tests/test-getdate.c (main): Check that "next DAY" is always in
41055         the future and that "last DAY" is always in the past.
41056
41057 2009-05-02  Jim Meyering  <meyering@redhat.com>
41058
41059         build: ensure that a release build fails when a submodule is unclean
41060         * top/maint.mk (no-submodule-changes): New rule.
41061         (alpha beta major): Depend on it.
41062
41063 2009-05-02  Bruno Haible  <bruno@clisp.org>
41064
41065         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41066         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41067         shell variable gl_fnmatch_required to detect which variant is
41068         requested.
41069         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41070         gl_FUNC_FNMATCH_POSIX.
41071         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41072         exclude fnmatch-posix.
41073
41074 2009-05-02  Bruno Haible  <bruno@clisp.org>
41075
41076         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41077         * modules/mbsrtowcs (License): Change to LGPLv2+.
41078         * modules/strnlen1 (License): Likewise.
41079         Reported by Simon Josefsson.
41080
41081 2009-05-02  Bruno Haible  <bruno@clisp.org>
41082
41083         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41084         "cross".
41085         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41086         gnulib-tool was called with option --source-base=lib.
41087
41088 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41089
41090         Use automake *-local hooks without commands, for extensibility.
41091         * modules/localcharset (Makefile.am): Rename install-exec-local
41092         rule to install-exec-localcharset, and make it a prerequisite of
41093         install-exec-local.  Likewise, rename the uninstall-local rule to
41094         uninstall-localcharset, and make it a prerequisite of the former.
41095
41096 2009-05-01  Bruno Haible  <bruno@clisp.org>
41097
41098         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41099         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41100         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41101         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41102         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41103         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41104         m4/locale-zh.m4, m4/codeset.m4.
41105
41106         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41107         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41108         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41109         m4/locale-zh.m4.
41110
41111         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41112         REPLACE_WCRTOMB if mbstate_t must be replaced.
41113         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41114         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41115
41116 2009-05-01  Bruno Haible  <bruno@clisp.org>
41117
41118         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41119         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41120         dngettext, dcngettext, textdomain, bindtextdomain,
41121         bind_textdomain_codeset): Undefine before redefining.
41122
41123 2009-04-30  Bruno Haible  <bruno@clisp.org>
41124
41125         Fix bug introduced on 2009-04-25.
41126         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41127         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41128         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41129         is defined.
41130         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41131         is defined.
41132         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41133         is defined.
41134         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41135
41136 2009-04-28  Bruno Haible  <bruno@clisp.org>
41137
41138         Comment tweaks.
41139         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41140         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41141         * lib/unicase.h (u*_casexfrm): Likewise.
41142         Reported by Paolo Bonzini.
41143
41144 2009-04-28  Bruno Haible  <bruno@clisp.org>
41145
41146         Fix a compilation error.
41147         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41148         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41149         Reported by Jim Meyering.
41150
41151 2009-04-27  Bruno Haible  <bruno@clisp.org>
41152
41153         New module 'libunistring'.
41154         * modules/libunistring: New file.
41155         * m4/libunistring.m4: New file.
41156         * MODULES.html.sh (Unicode string functions): Add it.
41157
41158 2009-04-27  Eric Blake  <ebb9@byu.net>
41159
41160         maint.mk: allow package-specific header to provide <config.h>
41161         * top/maint.mk (sc_require_config_h): New variable.
41162         (sc_require_config_h, sc_require_config_h_first): Use it.
41163
41164 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41165
41166         * top/maint.mk (sc_avoid_if_before_free): Except
41167         useless-if-before-free script.
41168
41169 2009-04-27  Eric Blake  <ebb9@byu.net>
41170
41171         maintainer-makefile: depend on all required helper scripts
41172         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41173         useless-if-before-free.
41174         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41175         version, rather than assuming gnulib checkout is available.
41176         Reported by Simen Josefsson.
41177
41178 2009-04-26  Bruno Haible  <bruno@clisp.org>
41179
41180         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41181         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41182         "../" or "..".
41183
41184 2009-04-26  Bruno Haible  <bruno@clisp.org>
41185
41186         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41187         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41188         AC_LIB_HAVE_LINKFLAGS.
41189
41190 2009-04-26  Bruno Haible  <bruno@clisp.org>
41191
41192         Simplify calling convention of u*_conv_from_encoding.
41193         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41194         u32_conv_from_encoding): Expect a resultbuf argument and return the
41195         result directly as a pointer.
41196         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41197         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41198         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41199         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41200         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41201         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41202         Update.
41203         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41204         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41205         * lib/vasnprintf.c (VASNPRINTF): Update.
41206         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41207         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41208         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41209         * NEWS: Mention the change.
41210
41211 2009-04-26  Bruno Haible  <bruno@clisp.org>
41212
41213         Simplify calling convention of u*_conv_to_encoding.
41214         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41215         u32_conv_to_encoding): Expect a resultbuf argument and return the
41216         result directly as a pointer.
41217         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41218         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41219         freeing scaled_offsets if mem_iconveha failed.
41220         * lib/unicase/u-casexfrm.h (FUNC): Update.
41221         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41222         * lib/vasnprintf.c (VASNPRINTF): Update.
41223         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41224         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41225         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41226         * NEWS: Mention the change.
41227
41228 2009-04-26  Bruno Haible  <bruno@clisp.org>
41229
41230         Avoid test failures on AIX and OSF/1.
41231         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41232         malloc(0).
41233         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41234         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41235         Likewise.
41236         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41237         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41238         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41239         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41240         * doc/posix-functions/malloc.texi: Document the portability problem
41241         related to malloc(0).
41242
41243 2009-04-26  Bruno Haible  <bruno@clisp.org>
41244
41245         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41246         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41247         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41248
41249 2009-04-25  Bruno Haible  <bruno@clisp.org>
41250
41251         Avoid link error when creating a namespace clean library.
41252         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41253         as macro with arguments if already defined as an alias.
41254         * lib/signbitf.c (gl_signbitf): Don't undefine.
41255         * lib/signbitd.c (gl_signbitd): Don't undefine.
41256         * lib/signbitl.c (gl_signbitl): Don't undefine.
41257
41258 2009-04-25  Jim Meyering  <meyering@redhat.com>
41259
41260         vc-list-files: fix another quoting bug
41261         * build-aux/vc-list-files: Avoid sed backslash expansion
41262         of pathological directory names.
41263
41264 2009-04-25  Eric Blake  <ebb9@byu.net>
41265
41266         vc-list-files: fix shell quoting error
41267         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41268         timestamp.
41269
41270 2009-04-25  Jim Meyering  <meyering@redhat.com>
41271
41272         vc-list-files: restore lost functionality with subdir argument
41273         * build-aux/vc-list-files: When given a non-"." sub-directory
41274         argument, substitute the $dir/ prefix back onto each resulting name.
41275         Otherwise, coreutils' root_tests check would fail.
41276
41277 2009-04-24  Eric Blake  <ebb9@byu.net>
41278
41279         vc-list-files: ignore git symlinks
41280         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41281         than ls-files, to ignore git symlinks.
41282
41283         maint.mk: import improvements from m4
41284         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41285         (move_if_change): Delete unused macro.
41286         (news-date-check, vc-diff-check): Support VPATH builds.
41287         (announcement): Likewise.  Split --bootstrap-tools list...
41288         (boostrap-tools): ...into separate list, which can be overridden
41289         in cfg.mk.
41290         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41291         requiring dependency on useless-if-before-free module.
41292         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41293         Support VPATH builds.
41294
41295 2009-04-24  Jim Meyering  <meyering@redhat.com>
41296
41297         maint.mk: remove coreutils-specific rules and variables
41298         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41299         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41300         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41301
41302         maint.mk: remove obsolete rule
41303         * top/maint.mk (rel-check): Remove rule.
41304         (WGET, WGETFLAGS): Remove now-unused variables.
41305
41306 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41307
41308         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41309         consistency.
41310
41311         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41312         '$(PATH_SEPARATOR)' instead of ':'.
41313
41314 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41315
41316         * lib/getopt1.c (main): Use 'const' for static array.
41317
41318 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41319
41320         * top/maint.mk: Sync with coreutils.
41321         * NEWS: Explain incompatibilities.
41322
41323 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41324             Bruno Haible  <bruno@clisp.org>
41325
41326         Fix cross-compilation results.
41327         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41328         statement, as third argument of AC_TRY_RUN.
41329         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41330         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41331         Likewise.
41332         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41333         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41334         Likewise.
41335         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41336         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41337         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41338
41339 2009-04-20  Bruno Haible  <bruno@clisp.org>
41340
41341         Avoid test failure on mingw.
41342         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41343
41344 2009-04-20  Bruno Haible  <bruno@clisp.org>
41345
41346         Avoid compilation error on mingw.
41347         * modules/localename-tests (Depends-on): Add locale.
41348
41349 2009-04-19  Bruno Haible  <bruno@clisp.org>
41350
41351         Support for building a shared library on Windows platforms.
41352         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41353         (main): Test the presence of UNINORM_NFC here.
41354         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41355         (main): Test the presence of UNINORM_NFD here.
41356         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41357         (main): Test the presence of UNINORM_NFKC here.
41358         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41359         (main): Test the presence of UNINORM_NFKD here.
41360
41361 2009-04-19  Bruno Haible  <bruno@clisp.org>
41362
41363         Avoid a compiler warning.
41364         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41365         Change type of variable 'sequence'.
41366
41367 2009-04-19  Bruno Haible  <bruno@clisp.org>
41368
41369         * modules/configmake (Makefile.am): When the contents of configmake.h
41370         does not change, arrange to preserve its modification time.
41371
41372 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41373
41374         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41375         gettext domain.
41376
41377 2009-04-16  Jim Meyering  <meyering@redhat.com>
41378
41379         useless-if-before-free: improve conversion code
41380         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41381         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41382
41383 2009-04-14  Bruno Haible  <bruno@clisp.org>
41384
41385         * modules/fcntl (Depends-on): Add extensions.
41386         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41387
41388 2009-04-12  Ben Pfaff  <blp@gnu.org>
41389
41390         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41391         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41392
41393 2009-03-20  Ben Pfaff  <blp@gnu.org>
41394
41395         Make rename replace existing destinations on Windows.
41396         * m4/rename.m4: Add test for Mingw.
41397         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41398         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41399         * doc/posix-functions/rename.texi: Document.
41400
41401 2009-04-10  Bruno Haible  <bruno@clisp.org>
41402
41403         New include file "iconveh.h".
41404         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41405         * lib/striconveh.h: Include it.
41406         (enum iconv_ilseq_handler): Remove definition.
41407         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41408         striconveh.h.
41409         * lib/striconveha.c: Include striconveh.h.
41410         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41411         * modules/striconveh (Files): Add lib/iconveh.h.
41412         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41413         lib/striconveh.h.
41414
41415 2009-04-10  Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/uniconv.h: Update comment.
41418
41419 2009-04-10  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41422         always.
41423         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41424         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41425         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41426         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41427         "unistring-notinline.h", so that the function gets defined always.
41428         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41429         * lib/unistr/u8-uctomb.c: Likewise.
41430         * lib/unistr/u16-mbtouc.c: Likewise.
41431         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41432         * lib/unistr/u16-uctomb.c: Likewise.
41433         * lib/unistr/u32-mbtouc.c: Likewise.
41434         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41435         * lib/unistr/u32-uctomb.c: Likewise.
41436
41437 2009-04-10  Bruno Haible  <bruno@clisp.org>
41438
41439         Mark 'utime' obsolete.
41440         * modules/utime (Status, Notice): New sections.
41441         Suggested by Jim Meyering.
41442
41443         Fix cross-compile guess for utime test.
41444         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41445         autoconf.
41446         * doc/posix-functions/utime.texi: Give more precisions.
41447         Reported by Jan <ipif@ymail.com>.
41448
41449 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41450
41451         filevercmp: correct today's change
41452         * lib/filevercmp.c: Also handle coreutils' test inputs.
41453         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41454
41455         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41456         for reporting it.
41457         * lib/filevercmp.c: Special handle for "", "." and "..".
41458         * tests/test-filevercmp.c: Enlarge the set suite.
41459
41460 2009-04-07  Jim Meyering  <meyering@redhat.com>
41461
41462         useless-if-before-free: show how to remove braced useless free, too
41463         * build-aux/useless-if-before-free: still only in a comment, though.
41464
41465 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41466
41467         maint.mk: import changes to syntax-check macros from coreutils
41468         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41469         Use them in the relevant macros.
41470
41471 2009-04-06  Bruno Haible  <bruno@clisp.org>
41472
41473         Fix unportable use of bit-fields.
41474         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41475         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41476         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41477
41478 2009-04-06  Bruno Haible  <bruno@clisp.org>
41479
41480         Avoid test failures on AIX and OSF/1.
41481         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41482         that malloc(0) = NULL.
41483         * tests/unicase/test-u8-tolower.c (check): Likewise.
41484         * tests/unicase/test-u8-totitle.c (check): Likewise.
41485         * tests/unicase/test-u8-toupper.c (check): Likewise.
41486         * tests/unicase/test-u16-casefold.c (check): Likewise.
41487         * tests/unicase/test-u16-tolower.c (check): Likewise.
41488         * tests/unicase/test-u16-totitle.c (check): Likewise.
41489         * tests/unicase/test-u16-toupper.c (check): Likewise.
41490         * tests/unicase/test-u32-casefold.c (check): Likewise.
41491         * tests/unicase/test-u32-tolower.c (check): Likewise.
41492         * tests/unicase/test-u32-totitle.c (check): Likewise.
41493         * tests/unicase/test-u32-toupper.c (check): Likewise.
41494         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41495         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41496         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41497         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41498         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41499         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41500         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41501         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41502         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41503         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41504         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41505         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41506
41507 2009-04-05  Bruno Haible  <bruno@clisp.org>
41508
41509         Work around an autoconf limitation.
41510         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41511         comment line if it would be longer than 3 KB.
41512
41513 2009-04-05  Bruno Haible  <bruno@clisp.org>
41514
41515         Avoid test failure with libiconv-1.13.
41516         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41517         of the expected test results.
41518
41519 2009-04-05  Bruno Haible  <bruno@clisp.org>
41520
41521         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41522         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41523         that it should be installed.
41524
41525 2009-04-05  Bruno Haible  <bruno@clisp.org>
41526
41527         * gnulib-tool: New option --copy-file.
41528         (func_usage): Document it.
41529         (func_dest_tmpfilename): Moved out of func_import.
41530         (func_add_file, func_update_file): New functions, extracted from
41531         func_import.
41532         (func_import): Update.
41533
41534 2009-04-05  Karl Berry  <karl@gnu.org>
41535
41536         * README: prominently mention gnulib-tool.
41537         Rearrange sections so getting the code is near the top.
41538
41539 2009-04-05  Bruno Haible  <bruno@clisp.org>
41540
41541         * lib/unicase.h: Mention u*_cmp2.
41542         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41543         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41544         * lib/unicase/ulc-casecmp.c: Likewise.
41545         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41546         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41547         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41548         unistr/u8-cmp.
41549         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41550         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41551         unistr/u16-cmp.
41552         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41553         unistr/u32-cmp.
41554
41555         * lib/uninorm.h: Mention u*_cmp2.
41556         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41557         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41558         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41559         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41560         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41561         unistr/u8-cmp.
41562         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41563         unistr/u16-cmp.
41564         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41565         unistr/u32-cmp.
41566
41567         New module 'unistr/u32-cmp2'.
41568         * lib/unistr/u32-cmp2.c: New file.
41569         * modules/unistr/u32-cmp2: New file.
41570
41571         New module 'unistr/u16-cmp2'.
41572         * lib/unistr/u16-cmp2.c: New file.
41573         * modules/unistr/u16-cmp2: New file.
41574
41575         New module 'unistr/u8-cmp2'.
41576         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41577         * lib/unistr/u8-cmp2.c: New file.
41578         * lib/unistr/u-cmp2.h: New file.
41579         * modules/unistr/u8-cmp2: New file.
41580
41581 2009-04-05  Bruno Haible  <bruno@clisp.org>
41582
41583         * lib/unictype.h (uc_property_is_valid): New macro.
41584         * tests/unictype/test-pr_byname.c (main): Use it.
41585
41586         * lib/unistr.h: Doc fixes.
41587         * lib/uniconv.h: Doc fixes.
41588         * lib/unictype.h: Doc fixes.
41589
41590 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41591
41592         Port coreutils 7.2 to Solaris 8.
41593
41594         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41595         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41596         for Solaris 8.  This is a bit of a hack, as it means it's the
41597         caller's responsibility to add -lnsl if needed, but most likely it
41598         won't be needed since only getaddrinfo uses this and getaddrinfo
41599         isn't needed on Solaris 8.
41600
41601         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41602         problem to Solaris 8 encountered with coreutils 7.2, which
41603         resulted in a message "fnmatch.c:292: warning: passing argument 4
41604         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41605         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41606
41607 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41608
41609         * m4/ld-version-script.m4: Add FIXME comment.
41610
41611 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41612
41613         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41614         SOVERSION variable.
41615
41616 2009-04-02  Bruno Haible  <bruno@clisp.org>
41617
41618         * Makefile (info, html, dvi, pdf): Combine the rules.
41619         Suggested by Jim Meyering.
41620
41621 2009-04-01  Bruno Haible  <bruno@clisp.org>
41622
41623         * Makefile (info, html, dvi, pdf): New targets.
41624         Reported by Reuben Thomas <rrt@sc3d.org>.
41625
41626 2009-04-01  Bruno Haible  <bruno@clisp.org>
41627
41628         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41629         can be put into PATH.
41630         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41631
41632 2009-04-01  Bruno Haible  <bruno@clisp.org>
41633
41634         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41635
41636 2009-04-01  Bruno Haible  <bruno@clisp.org>
41637
41638         Rename module 'visibility'.
41639         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41640         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41641         * doc/gnulib.texi: Update.
41642         * MODULES.html.sh (Misc): Update.
41643         * NEWS: Mention the change.
41644
41645 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41646
41647         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41648         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41649         Eric Blake <ebb9@byu.net> for review.
41650         * MODULES.html.sh: Add lib-msvc-compat.
41651         * doc/gnulib.texi: Link to new section.
41652         * m4/ld-output-def.m4: New file.
41653         * doc/ld-output-def.texi: New file.
41654
41655 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41656
41657         Rename ld-version-script to lib-symbol-versions.  Suggested by
41658         Bruno Haible <bruno@clisp.org>.
41659         * modules/ld-version-script: Renamed to lib-symbol-versions.
41660         * doc/ld-version-script.texi: Fix module name.
41661         * MODULES.html.sh: Add lib-symbol-versions.
41662
41663 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41664
41665         * modules/u64-tests: New file.
41666         * tests/test-u64.c: New file.
41667
41668 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41669
41670         * MODULES.html.sh: Mention u64.
41671         * modules/u64: New module.
41672         * modules/crypto/sha512: Depend on u64 module instead of providing
41673         u64.h.
41674
41675 2009-03-27  Eric Blake  <ebb9@byu.net>
41676
41677         test-strerror: make debugging EAI_SYSTEM easier
41678         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41679         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41680         failure was EAI_SYSTEM.
41681
41682 2009-03-25  Bruno Haible  <bruno@clisp.org>
41683
41684         Fix a problem with --enable-relocatable on Solaris 7.
41685         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41686         since 2008-02-24.
41687
41688 2009-03-25  Eric Blake  <ebb9@byu.net>
41689
41690         test-sockets: avoid gcc warning
41691         * tests/test-sockets.c (main): Silence compiler warning.
41692
41693 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41694
41695         New modules nproc, pthread, contributed by Glen Lenker.
41696
41697         * MODULES.html.sh: Add pthread, nproc.
41698         * lib/nproc.c: New file.
41699         * lib/nproc.h: New file.
41700         * lib/pthread.in.h: New file.
41701         * m4/pthread.m4: New file.
41702         * modules/nproc: New file.
41703         * modules/pthread: New file.
41704
41705 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41706
41707         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
41708         New variable.
41709
41710 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
41711
41712         filevercmp: handle simple~ and numbered.~3~ backup suffixes
41713         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
41714         * tests/test-filevercmp.c: Add tests for backup suffixes.
41715
41716 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41717
41718         * modules/stdlib (Depends-on): Add stdint, needed when defining
41719         struct random_data on, for example, HP-UX 10.20.  Reported by
41720         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41721
41722 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41723
41724         * lib/readline.c (readline): Call fflush on stdout after printing
41725         prompt.
41726
41727 2009-03-20  Bruno Haible  <bruno@clisp.org>
41728
41729         Remove dependency from 'close' module to -lws2_32 on native Windows.
41730         * lib/close-hook.h: New file.
41731         * lib/close-hook.c: New file.
41732         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
41733         w32sock.h.
41734         (_gl_close_fd_maybe_socket): Remove function.
41735         (rpl_close): Invoke execute_all_close_hooks instead of
41736         _gl_close_fd_maybe_socket.
41737         * lib/sockets.c: Include close-hook.h, w32sock.h.
41738         (close_fd_maybe_socket): New function, essentially from lib/close.c.
41739         (close_sockets_hook): New variable.
41740         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
41741         (gl_sockets_cleanup): Unregister it.
41742         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
41743         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
41744         * modules/close-hook: New file.
41745         * modules/close (Files): Remove lib/w32sock.h.
41746         (Depends-on): Add close-hook.
41747         (Link): Remove section.
41748         * modules/sockets (Files): Add lib/w32sock.h.
41749         (Depends-on): Add close-hook.
41750         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
41751         invocation.
41752         * NEWS: Mention that LIB_CLOSE is gone.
41753
41754 2009-03-23  Eric Blake  <ebb9@byu.net>
41755
41756         signal-tests: test previous patch
41757         * tests/test-signal.c: New file.
41758         * modules/signal-tests: Likewise.
41759
41760         signal.h: always support 'volatile sig_atomic_t'
41761         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41762         (gl_SIGNAL_H_DEFAULTS): Add a default.
41763         * modules/signal (Makefile.am): Substitute if needed.
41764         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41765         users can blindly add volatile.
41766         * doc/posix-headers/signal.texi (signal.h): Document it.
41767         Reported by Matthew Woehlke.
41768
41769 2009-03-23  Jim Meyering  <meyering@redhat.com>
41770
41771         pathmax: PATH_MAX: use pathconf only when available
41772         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
41773         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
41774         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
41775         This avoids a link failure in a PSP cross-compilation environment
41776         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
41777
41778         * lib/vasnprintf.c (divide): Fix typo in comment.
41779
41780 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41781
41782         * gnulib-tool (func_filter_filelist): Fix comment.
41783
41784 2009-03-20  Bruno Haible  <bruno@clisp.org>
41785
41786         Make sockets.h self-contained.
41787         * lib/sockets.c: Include sockets.h first.
41788         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41789
41790 2009-03-19  Eric Blake  <ebb9@byu.net>
41791
41792         doc: mention more functions added in cygwin 1.7.0
41793         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41794         addition.
41795         * doc/posix-functions/log2f.texi: Likewise.
41796
41797 2009-03-19  Jim Meyering  <meyering@redhat.com>
41798
41799         fsusage: avoid syntax error due to statement-before-declaration
41800         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41801         after all declarations.  Reported by Matthew Woehlke in
41802         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41803
41804 2009-03-18  Eric Blake  <ebb9@byu.net>
41805
41806         build-aux/compile: sync from automake
41807         * build-aux/compile: New file, from automake.
41808         * config/srclist.txt: Mention build-aux/compile.
41809
41810 2009-03-17  Bruno Haible  <bruno@clisp.org>
41811
41812         * lib/git-merge-changelog.c: Fix typo in comment.
41813         Reported by Reuben Thomas <rrt@sc3d.org>.
41814
41815 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41816
41817         * m4/regex.m4: update and improve help for
41818         --without-included-regex.
41819
41820 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41821
41822         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41823         failure on missing include files.
41824
41825 2009-03-17  Eric Blake  <ebb9@byu.net>
41826
41827         doc: mention more functions added in cygwin 1.7.0
41828         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41829         addition.
41830         * doc/posix-functions/fwscanf.texi: Likewise.
41831         * doc/posix-functions/swprintf.texi: Likewise.
41832         * doc/posix-functions/swscanf.texi: Likewise.
41833         * doc/posix-functions/vfwprintf.texi: Likewise.
41834         * doc/posix-functions/vfwscanf.texi: Likewise.
41835         * doc/posix-functions/vswprintf.texi: Likewise.
41836         * doc/posix-functions/vswscanf.texi: Likewise.
41837         * doc/posix-functions/vwprintf.texi: Likewise.
41838         * doc/posix-functions/vwscanf.texi: Likewise.
41839         * doc/posix-functions/wcscasecmp.texi: Likewise.
41840         * doc/posix-functions/wcsdup.texi: Likewise.
41841         * doc/posix-functions/wcsftime.texi: Likewise.
41842         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41843         * doc/posix-functions/wprintf.texi: Likewise.
41844         * doc/posix-functions/wscanf.texi: Likewise.
41845         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41846
41847 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41848
41849         maint.mk: really add $(AM_MAKEFLAGS)
41850         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41851         was inadvertently omitted in the last commit.
41852         Spotted by Bruno Haible.
41853
41854         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41855         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41856         $(AM_MAKEFLAGS)' rather than plain `make'.
41857
41858         gnulib-tool: execute $MAKE not make
41859         * gnulib-tool: Default $MAKE to 'make'.
41860         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41861         than make.  Initialize $MAKE in the do-autobuild script.
41862
41863         gnulib-tool: use $MAKE not make in generated files
41864         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41865         make, in generated files.  Initialize $MAKE in the do-autobuild
41866         script.
41867
41868         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41869
41870         GNUmakefile: disable parallelism only for multiple, recursive targets
41871         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41872         additions in the Makefile.
41873         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41874         by Automake.
41875         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41876         are listed on the command line and at least one of them is
41877         listed in $(ALL_RECURSIVE_TARGETS).
41878
41879 2009-03-14  Bruno Haible  <bruno@clisp.org>
41880
41881         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41882         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41883         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41884         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41885         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41886         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41887         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41888         unistr/u8-uctomb.
41889         * modules/unistr/u8-strchr (Depends-on): Likewise.
41890         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41891         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41892         unistr/u16-uctomb.
41893         * modules/unistr/u16-strchr (Depends-on): Likewise.
41894         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41895
41896 2009-03-12  Bruno Haible  <bruno@clisp.org>
41897
41898         Work around select() bug on Interix 3.5.
41899         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41900         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41901         * m4/select.m4: New file.
41902         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41903         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41904         * modules/select (Files): Add m4/select.m4.
41905         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41906         * modules/nanosleep (Depends-on): Add select.
41907         * modules/poll (Depends-on): Likewise.
41908         * doc/posix-functions/select.texi: Mention the Interix bug.
41909         Reported by Markus Duft <mduft@gentoo.org>.
41910
41911         * lib/select.c: Renamed from lib/winsock-select.c.
41912         * modules/select (Files): Add lib/select.c, remove
41913         lib/winsock-select.c.
41914         (configure.ac): Update.
41915
41916 2009-03-12  Jim Meyering  <meyering@redhat.com>
41917
41918         avoid gcc warnings about unused macro definitions
41919         * lib/readtokens.c (STREQ): Remove unused definition.
41920         * lib/xmalloc.c (SIZE_MAX): Likewise.
41921         * lib/openat-die.c (N_): Likewise.
41922         * lib/mountlist.c (SIZE_MAX): Remove definition.
41923         Instead, include <stdint.h>.
41924         * lib/readutmp.c: Likewise.
41925         * modules/readutmp (Depends-on): Add stdint.
41926         * modules/mountlist (Depends-on): Add stdint.
41927         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41928
41929 2009-03-10  Bruno Haible  <bruno@clisp.org>
41930
41931         Tests for module 'mbmemcasecoll'.
41932         * modules/mbmemcasecoll-tests: New file.
41933         * tests/test-mbmemcasecoll1.sh: New file.
41934         * tests/test-mbmemcasecoll2.sh: New file.
41935         * tests/test-mbmemcasecoll3.sh: New file.
41936         * tests/test-mbmemcasecoll.c: New file.
41937
41938         New module 'mbmemcasecoll'.
41939         * lib/mbmemcasecoll.h: New file.
41940         * lib/mbmemcasecoll.c: New file.
41941         * modules/mbmemcasecoll: New file.
41942
41943         * tests/test-mbmemcasecmp.h: New file, extracted from
41944         tests/test-mbmemcasecmp.c.
41945         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41946         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41947         (main): Update.
41948         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41949
41950 2009-03-09  Bruno Haible  <bruno@clisp.org>
41951
41952         Tests for module 'mbmemcasecmp'.
41953         * modules/mbmemcasecmp-tests: New file.
41954         * tests/test-mbmemcasecmp1.sh: New file.
41955         * tests/test-mbmemcasecmp2.sh: New file.
41956         * tests/test-mbmemcasecmp3.sh: New file.
41957         * tests/test-mbmemcasecmp.c: New file.
41958
41959         New module 'mbmemcasecmp'.
41960         * lib/mbmemcasecmp.h: New file.
41961         * lib/mbmemcasecmp.c: New file.
41962         * modules/mbmemcasecmp: New file.
41963
41964 2009-03-09  Bruno Haible  <bruno@clisp.org>
41965
41966         Tests for module 'unicase/ulc-casecoll'.
41967         * modules/unicase/ulc-casecoll-tests: New file.
41968         * tests/unicase/test-ulc-casecoll1.sh: New file.
41969         * tests/unicase/test-ulc-casecoll2.sh: New file.
41970         * tests/unicase/test-ulc-casecoll.c: New file.
41971
41972         New module 'unicase/ulc-casecoll'.
41973         * lib/unicase.h (ulc_casecoll): New declaration.
41974         * lib/unicase/ulc-casecoll.c: New file.
41975         * modules/unicase/ulc-casecoll: New file.
41976
41977         New module 'unicase/ulc-casexfrm'.
41978         * lib/unicase.h (ulc_casexfrm): New declaration.
41979         * lib/unicase/ulc-casexfrm.c: New file.
41980         * modules/unicase/ulc-casexfrm: New file.
41981
41982 2009-03-09  Bruno Haible  <bruno@clisp.org>
41983
41984         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41985         invocations.
41986
41987         * m4/mbscasecmp.m4: Remove file.
41988         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41989         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41990
41991         * m4/mbscasestr.m4: Remove file.
41992         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41993         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41994
41995         * m4/mbschr.m4: Remove file.
41996         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41997         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41998
41999         * m4/mbscspn.m4: Remove file.
42000         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42001         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42002
42003         * m4/mbslen.m4: Remove file.
42004         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42005         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42006
42007         * m4/mbsncasecmp.m4: Remove file.
42008         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42009         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42010
42011         * m4/mbsnlen.m4: Remove file.
42012         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42013         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42014
42015         * m4/mbspbrk.m4: Remove file.
42016         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42017         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42018
42019         * m4/mbspcasecmp.m4: Remove file.
42020         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42021         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42022
42023         * m4/mbsrchr.m4: Remove file.
42024         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42025         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42026
42027         * m4/mbssep.m4: Remove file.
42028         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42029         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42030
42031         * m4/mbsspn.m4: Remove file.
42032         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42033         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42034
42035         * m4/mbsstr.m4: Remove file.
42036         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42037         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42038
42039         * m4/mbstok_r.m4: Remove file.
42040         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42041         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42042
42043         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42044
42045         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42046         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42047
42048         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42049
42050 2009-03-08  Bruno Haible  <bruno@clisp.org>
42051
42052         Tests for module 'unicase/ulc-casecmp'.
42053         * modules/unicase/ulc-casecmp-tests: New file.
42054         * tests/unicase/test-ulc-casecmp1.sh: New file.
42055         * tests/unicase/test-ulc-casecmp2.sh: New file.
42056         * tests/unicase/test-ulc-casecmp.c: New file.
42057
42058         New module 'unicase/ulc-casecmp'.
42059         * lib/unicase.h (ulc_casecmp): New declaration.
42060         * lib/unicase/ulc-casecmp.c: New file.
42061         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42062         'const SRC_UNIT *'.
42063         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42064         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42065         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42066         * modules/unicase/ulc-casecmp: New file.
42067
42068         Tests for module 'unicase/u32-is-cased'.
42069         * modules/unicase/u32-is-cased-tests: New file.
42070         * tests/unicase/test-u32-is-cased.c: New file.
42071
42072         Tests for module 'unicase/u16-is-cased'.
42073         * modules/unicase/u16-is-cased-tests: New file.
42074         * tests/unicase/test-u16-is-cased.c: New file.
42075
42076         Tests for module 'unicase/u8-is-cased'.
42077         * modules/unicase/u8-is-cased-tests: New file.
42078         * tests/unicase/test-u8-is-cased.c: New file.
42079         * tests/unicase/test-is-cased.h: New file.
42080
42081         New module 'unicase/u32-is-cased'.
42082         * lib/unicase/u32-is-cased.c: New file.
42083         * modules/unicase/u32-is-cased: New file.
42084
42085         New module 'unicase/u16-is-cased'.
42086         * lib/unicase/u16-is-cased.c: New file.
42087         * modules/unicase/u16-is-cased: New file.
42088
42089         New module 'unicase/u8-is-cased'.
42090         * lib/unicase/u8-is-cased.c: New file.
42091         * lib/unicase/u-is-cased.h: New file.
42092         * modules/unicase/u8-is-cased: New file.
42093
42094         Tests for module 'unicase/u32-is-casefolded'.
42095         * modules/unicase/u32-is-casefolded-tests: New file.
42096         * tests/unicase/test-u32-is-casefolded.c: New file.
42097
42098         Tests for module 'unicase/u16-is-casefolded'.
42099         * modules/unicase/u16-is-casefolded-tests: New file.
42100         * tests/unicase/test-u16-is-casefolded.c: New file.
42101
42102         Tests for module 'unicase/u8-is-casefolded'.
42103         * modules/unicase/u8-is-casefolded-tests: New file.
42104         * tests/unicase/test-u8-is-casefolded.c: New file.
42105         * tests/unicase/test-is-casefolded.h: New file.
42106
42107         New module 'unicase/u32-is-casefolded'.
42108         * lib/unicase/u32-is-casefolded.c: New file.
42109         * modules/unicase/u32-is-casefolded: New file.
42110
42111         New module 'unicase/u16-is-casefolded'.
42112         * lib/unicase/u16-is-casefolded.c: New file.
42113         * modules/unicase/u16-is-casefolded: New file.
42114
42115         New module 'unicase/u8-is-casefolded'.
42116         * lib/unicase/u8-is-casefolded.c: New file.
42117         * modules/unicase/u8-is-casefolded: New file.
42118
42119         Tests for module 'unicase/u32-is-titlecase'.
42120         * modules/unicase/u32-is-titlecase-tests: New file.
42121         * tests/unicase/test-u32-is-titlecase.c: New file.
42122
42123         Tests for module 'unicase/u16-is-titlecase'.
42124         * modules/unicase/u16-is-titlecase-tests: New file.
42125         * tests/unicase/test-u16-is-titlecase.c: New file.
42126
42127         Tests for module 'unicase/u8-is-titlecase'.
42128         * modules/unicase/u8-is-titlecase-tests: New file.
42129         * tests/unicase/test-u8-is-titlecase.c: New file.
42130         * tests/unicase/test-is-titlecase.h: New file.
42131
42132         New module 'unicase/u32-is-titlecase'.
42133         * lib/unicase/u32-is-titlecase.c: New file.
42134         * modules/unicase/u32-is-titlecase: New file.
42135
42136         New module 'unicase/u16-is-titlecase'.
42137         * lib/unicase/u16-is-titlecase.c: New file.
42138         * modules/unicase/u16-is-titlecase: New file.
42139
42140         New module 'unicase/u8-is-titlecase'.
42141         * lib/unicase/u8-is-titlecase.c: New file.
42142         * modules/unicase/u8-is-titlecase: New file.
42143
42144         Tests for module 'unicase/u32-is-lowercase'.
42145         * modules/unicase/u32-is-lowercase-tests: New file.
42146         * tests/unicase/test-u32-is-lowercase.c: New file.
42147
42148         Tests for module 'unicase/u16-is-lowercase'.
42149         * modules/unicase/u16-is-lowercase-tests: New file.
42150         * tests/unicase/test-u16-is-lowercase.c: New file.
42151
42152         Tests for module 'unicase/u8-is-lowercase'.
42153         * modules/unicase/u8-is-lowercase-tests: New file.
42154         * tests/unicase/test-u8-is-lowercase.c: New file.
42155         * tests/unicase/test-is-lowercase.h: New file.
42156
42157         New module 'unicase/u32-is-lowercase'.
42158         * lib/unicase/u32-is-lowercase.c: New file.
42159         * modules/unicase/u32-is-lowercase: New file.
42160
42161         New module 'unicase/u16-is-lowercase'.
42162         * lib/unicase/u16-is-lowercase.c: New file.
42163         * modules/unicase/u16-is-lowercase: New file.
42164
42165         New module 'unicase/u8-is-lowercase'.
42166         * lib/unicase/u8-is-lowercase.c: New file.
42167         * modules/unicase/u8-is-lowercase: New file.
42168
42169         Tests for module 'unicase/u32-is-uppercase'.
42170         * modules/unicase/u32-is-uppercase-tests: New file.
42171         * tests/unicase/test-u32-is-uppercase.c: New file.
42172
42173         Tests for module 'unicase/u16-is-uppercase'.
42174         * modules/unicase/u16-is-uppercase-tests: New file.
42175         * tests/unicase/test-u16-is-uppercase.c: New file.
42176
42177         Tests for module 'unicase/u8-is-uppercase'.
42178         * modules/unicase/u8-is-uppercase-tests: New file.
42179         * tests/unicase/test-u8-is-uppercase.c: New file.
42180         * tests/unicase/test-is-uppercase.h: New file.
42181
42182         New module 'unicase/u32-is-uppercase'.
42183         * lib/unicase/u32-is-uppercase.c: New file.
42184         * modules/unicase/u32-is-uppercase: New file.
42185
42186         New module 'unicase/u16-is-uppercase'.
42187         * lib/unicase/u16-is-uppercase.c: New file.
42188         * modules/unicase/u16-is-uppercase: New file.
42189
42190         New module 'unicase/u8-is-uppercase'.
42191         * lib/unicase/u8-is-uppercase.c: New file.
42192         * modules/unicase/u8-is-uppercase: New file.
42193
42194         New module 'unicase/u32-is-invariant'.
42195         * lib/unicase/u32-is-invariant.c: New file.
42196         * modules/unicase/u32-is-invariant: New file.
42197
42198         New module 'unicase/u16-is-invariant'.
42199         * lib/unicase/u16-is-invariant.c: New file.
42200         * modules/unicase/u16-is-invariant: New file.
42201
42202         New module 'unicase/u8-is-invariant'.
42203         * lib/unicase/u8-is-invariant.c: New file.
42204         * lib/unicase/invariant.h: New file.
42205         * lib/unicase/u-is-invariant.h: New file.
42206         * modules/unicase/u8-is-invariant: New file.
42207
42208         Tests for module 'unicase/u32-casecoll'.
42209         * modules/unicase/u32-casecoll-tests: New file.
42210         * tests/unicase/test-u32-casecoll.c: New file.
42211
42212         Tests for module 'unicase/u16-casecoll'.
42213         * modules/unicase/u16-casecoll-tests: New file.
42214         * tests/unicase/test-u16-casecoll.c: New file.
42215
42216         Tests for module 'unicase/u8-casecoll'.
42217         * modules/unicase/u8-casecoll-tests: New file.
42218         * tests/unicase/test-u8-casecoll.c: New file.
42219
42220         New module 'unicase/u32-casecoll'.
42221         * lib/unicase/u32-casecoll.c: New file.
42222         * modules/unicase/u32-casecoll: New file.
42223
42224         New module 'unicase/u16-casecoll'.
42225         * lib/unicase/u16-casecoll.c: New file.
42226         * modules/unicase/u16-casecoll: New file.
42227
42228         New module 'unicase/u8-casecoll'.
42229         * lib/unicase/u8-casecoll.c: New file.
42230         * lib/unicase/u-casecoll.h: New file.
42231         * modules/unicase/u8-casecoll: New file.
42232
42233         New module 'unicase/u32-casexfrm'.
42234         * lib/unicase/u32-casexfrm.c: New file.
42235         * modules/unicase/u32-casexfrm: New file.
42236
42237         New module 'unicase/u16-casexfrm'.
42238         * lib/unicase/u16-casexfrm.c: New file.
42239         * modules/unicase/u16-casexfrm: New file.
42240
42241         New module 'unicase/u8-casexfrm'.
42242         * lib/unicase/u8-casexfrm.c: New file.
42243         * lib/unicase/u-casexfrm.h: New file.
42244         * modules/unicase/u8-casexfrm: New file.
42245
42246         Tests for module 'unicase/u32-casecmp'.
42247         * modules/unicase/u32-casecmp-tests: New file.
42248         * tests/unicase/test-u32-casecmp.c: New file.
42249
42250         Tests for module 'unicase/u16-casecmp'.
42251         * modules/unicase/u16-casecmp-tests: New file.
42252         * tests/unicase/test-u16-casecmp.c: New file.
42253
42254         Tests for module 'unicase/u8-casecmp'.
42255         * modules/unicase/u8-casecmp-tests: New file.
42256         * tests/unicase/test-u8-casecmp.c: New file.
42257         * tests/unicase/test-casecmp.h: New file.
42258
42259         New module 'unicase/u32-casecmp'.
42260         * lib/unicase/u32-casecmp.c: New file.
42261         * modules/unicase/u32-casecmp: New file.
42262
42263         New module 'unicase/u16-casecmp'.
42264         * lib/unicase/u16-casecmp.c: New file.
42265         * modules/unicase/u16-casecmp: New file.
42266
42267         New module 'unicase/u8-casecmp'.
42268         * lib/unicase/u8-casecmp.c: New file.
42269         * lib/unicase/u-casecmp.h: New file.
42270         * modules/unicase/u8-casecmp: New file.
42271
42272         Tests for module 'unicase/u32-casefold'.
42273         * modules/unicase/u32-casefold-tests: New file.
42274         * tests/unicase/test-u32-casefold.c: New file.
42275
42276         Tests for module 'unicase/u16-casefold'.
42277         * modules/unicase/u16-casefold-tests: New file.
42278         * tests/unicase/test-u16-casefold.c: New file.
42279
42280         Tests for module 'unicase/u8-casefold'.
42281         * modules/unicase/u8-casefold-tests: New file.
42282         * tests/unicase/test-u8-casefold.c: New file.
42283
42284         New module 'unicase/u32-casefold'.
42285         * lib/unicase/u32-casefold.c: New file.
42286         * modules/unicase/u32-casefold: New file.
42287
42288         New module 'unicase/u16-casefold'.
42289         * lib/unicase/u16-casefold.c: New file.
42290         * modules/unicase/u16-casefold: New file.
42291
42292         New module 'unicase/u8-casefold'.
42293         * lib/unicase/u8-casefold.c: New file.
42294         * lib/unicase/u-casefold.h: New file.
42295         * modules/unicase/u8-casefold: New file.
42296
42297         New module 'unicase/tocasefold'.
42298         * lib/unicase/casefold.h: New file.
42299         * lib/unicase/tocasefold.c: New file.
42300         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42301         * modules/unicase/tocasefold: New file.
42302
42303         Tests for module 'unicase/u32-totitle'.
42304         * modules/unicase/u32-totitle-tests: New file.
42305         * tests/unicase/test-u32-totitle.c: New file.
42306
42307         Tests for module 'unicase/u16-totitle'.
42308         * modules/unicase/u16-totitle-tests: New file.
42309         * tests/unicase/test-u16-totitle.c: New file.
42310
42311         Tests for module 'unicase/u8-totitle'.
42312         * modules/unicase/u8-totitle-tests: New file.
42313         * tests/unicase/test-u8-totitle.c: New file.
42314
42315         New module 'unicase/u32-totitle'.
42316         * lib/unicase/u32-totitle.c: New file.
42317         * modules/unicase/u32-totitle: New file.
42318
42319         New module 'unicase/u16-totitle'.
42320         * lib/unicase/u16-totitle.c: New file.
42321         * modules/unicase/u16-totitle: New file.
42322
42323         New module 'unicase/u8-totitle'.
42324         * lib/unicase/u8-totitle.c: New file.
42325         * lib/unicase/u-totitle.h: New file.
42326         * modules/unicase/u8-totitle: New file.
42327
42328         Tests for module 'unicase/u32-tolower'.
42329         * modules/unicase/u32-tolower-tests: New file.
42330         * tests/unicase/test-u32-tolower.c: New file.
42331
42332         Tests for module 'unicase/u16-tolower'.
42333         * modules/unicase/u16-tolower-tests: New file.
42334         * tests/unicase/test-u16-tolower.c: New file.
42335
42336         Tests for module 'unicase/u8-tolower'.
42337         * modules/unicase/u8-tolower-tests: New file.
42338         * tests/unicase/test-u8-tolower.c: New file.
42339
42340         New module 'unicase/u32-tolower'.
42341         * lib/unicase/u32-tolower.c: New file.
42342         * modules/unicase/u32-tolower: New file.
42343
42344         New module 'unicase/u16-tolower'.
42345         * lib/unicase/u16-tolower.c: New file.
42346         * modules/unicase/u16-tolower: New file.
42347
42348         New module 'unicase/u8-tolower'.
42349         * lib/unicase/u8-tolower.c: New file.
42350         * modules/unicase/u8-tolower: New file.
42351
42352         Tests for module 'unicase/u32-toupper'.
42353         * modules/unicase/u32-toupper-tests: New file.
42354         * tests/unicase/test-u32-toupper.c: New file.
42355
42356         Tests for module 'unicase/u16-toupper'.
42357         * modules/unicase/u16-toupper-tests: New file.
42358         * tests/unicase/test-u16-toupper.c: New file.
42359
42360         Tests for module 'unicase/u8-toupper'.
42361         * modules/unicase/u8-toupper-tests: New file.
42362         * tests/unicase/test-u8-toupper.c: New file.
42363
42364         New module 'unicase/u32-toupper'.
42365         * lib/unicase/u32-toupper.c: New file.
42366         * modules/unicase/u32-toupper: New file.
42367
42368         New module 'unicase/u16-toupper'.
42369         * lib/unicase/u16-toupper.c: New file.
42370         * modules/unicase/u16-toupper: New file.
42371
42372         New module 'unicase/u8-toupper'.
42373         * lib/unicase/u8-toupper.c: New file.
42374         * modules/unicase/u8-toupper: New file.
42375
42376         New module 'unicase/u32-casemap'.
42377         * lib/unicase/u32-casemap.c: New file.
42378         * modules/unicase/u32-casemap: New file.
42379
42380         New module 'unicase/u16-casemap'.
42381         * lib/unicase/u16-casemap.c: New file.
42382         * modules/unicase/u16-casemap: New file.
42383
42384         New module 'unicase/u8-casemap'.
42385         * lib/unicase/unicasemap.h: New file.
42386         * lib/unicase/u8-casemap.c: New file.
42387         * lib/unicase/u-casemap.h: New file.
42388         * modules/unicase/u8-casemap: New file.
42389
42390         New module 'unicase/special-casing'.
42391         * lib/unicase/special-casing.h: New file.
42392         * lib/unicase/special-casing.c: New file.
42393         * lib/unicase/special-casing-table.gperf: New file, generated by
42394         gen-uni-tables.c.
42395         * modules/unicase/special-casing: New file.
42396
42397         Tests for module 'unicase/locale-language'.
42398         * modules/unicase/locale-language-tests: New file.
42399         * tests/unicase/test-locale-language.sh: New file.
42400         * tests/unicase/test-locale-language.c: New file.
42401
42402         New module 'unicase/locale-language'.
42403         * lib/unicase/locale-language.c: New file.
42404         * lib/unicase/locale-languages.gperf: New file.
42405         * modules/unicase/locale-language: New file.
42406
42407         Generate more tables for case conversion and case folding.
42408         * lib/gen-uni-tables.c (SCC_*): New enum items.
42409         (struct special_casing_rule): New type.
42410         (casing_rules, num_casing_rules, allocated_casing_rules): New
42411         variables.
42412         (add_casing_rule, fill_casing_rules): New functions.
42413         (struct casefold_rule): New type.
42414         (casefolding_rules, num_casefolding_rules,
42415         allocated_casefolding_rules): New variables.
42416         (fill_casefolding_rules): New function.
42417         (unicode_casefold): New variable.
42418         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42419         sort_casing_rules, output_casing_rules): New functions.
42420         (main): Accept to more arguments: SpecialCasing.txt and
42421         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42422         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42423         Output mapping for casefolding.
42424
42425         * lib/unicase.h: Include stdbool.h, uninorm.h.
42426         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42427         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42428         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42429         arguments.
42430         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42431         resultp arguments.
42432         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42433         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42434         resultp arguments.
42435         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42436         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42437         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42438         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42439         declarations.
42440         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42441
42442 2009-03-08  Bruno Haible  <bruno@clisp.org>
42443
42444         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42445         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42446         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42447         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42448
42449 2009-03-07  Bruno Haible  <bruno@clisp.org>
42450
42451         Adjust u*_normcmp, u*_normcoll API.
42452         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42453         u16_normcoll, u32_normcoll): Change failure conventions.
42454         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42455         errno and return -1.
42456         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42457
42458 2009-03-07  Bruno Haible  <bruno@clisp.org>
42459
42460         Tests for module 'uninorm/u32-normcoll'.
42461         * modules/uninorm/u32-normcoll-tests: New file.
42462         * tests/uninorm/test-u32-normcoll.c: New file.
42463
42464         Tests for module 'uninorm/u16-normcoll'.
42465         * modules/uninorm/u16-normcoll-tests: New file.
42466         * tests/uninorm/test-u16-normcoll.c: New file.
42467
42468         Tests for module 'uninorm/u8-normcoll'.
42469         * modules/uninorm/u8-normcoll-tests: New file.
42470         * tests/uninorm/test-u8-normcoll.c: New file.
42471
42472 2009-03-07  Bruno Haible  <bruno@clisp.org>
42473
42474         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42475         tests/uninorm/test-u32-normcmp.c.
42476         * tests/uninorm/test-u32-normcmp.c: Include it.
42477         (test_nonascii): New function, extracted from main. Add some more
42478         tests.
42479         (main): Invoke test_ascii and test_nonascii.
42480         * modules/uninorm/u32-normcmp-tests (Files): Add
42481         tests/uninorm/test-u32-normcmp.h.
42482         (Depends-on): Remove uninorm/u32-normcmp.
42483
42484         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42485         tests/uninorm/test-u16-normcmp.c.
42486         * tests/uninorm/test-u16-normcmp.c: Include it.
42487         (test_nonascii): New function, extracted from main. Add some more
42488         tests.
42489         (main): Invoke test_ascii and test_nonascii.
42490         * modules/uninorm/u16-normcmp-tests (Files): Add
42491         tests/uninorm/test-u16-normcmp.h.
42492         (Depends-on): Remove uninorm/u16-normcmp.
42493
42494         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42495         tests/uninorm/test-u8-normcmp.c.
42496         * tests/uninorm/test-u8-normcmp.c: Include it.
42497         (test_nonascii): New function, extracted from main. Add some more
42498         tests.
42499         (main): Invoke test_ascii and test_nonascii.
42500         * modules/uninorm/u8-normcmp-tests (Files): Add
42501         tests/uninorm/test-u8-normcmp.h.
42502         (Depends-on): Remove uninorm/u8-normcmp.
42503
42504 2009-03-07  Bruno Haible  <bruno@clisp.org>
42505
42506         New module 'uninorm/u32-normcoll'.
42507         * lib/uninorm/u32-normcoll.c: New file.
42508         * modules/uninorm/u32-normcoll: New file.
42509
42510         New module 'uninorm/u16-normcoll'.
42511         * lib/uninorm/u16-normcoll.c: New file.
42512         * modules/uninorm/u16-normcoll: New file.
42513
42514         New module 'uninorm/u8-normcoll'.
42515         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42516         declarations.
42517         * lib/uninorm/u8-normcoll.c: New file.
42518         * lib/uninorm/u-normcoll.h: New file.
42519         * modules/uninorm/u8-normcoll: New file.
42520
42521         New module 'uninorm/u32-normxfrm'.
42522         * lib/uninorm/u32-normxfrm.c: New file.
42523         * modules/uninorm/u32-normxfrm: New file.
42524
42525         New module 'uninorm/u16-normxfrm'.
42526         * lib/uninorm/u16-normxfrm.c: New file.
42527         * modules/uninorm/u16-normxfrm: New file.
42528
42529         New module 'uninorm/u8-normxfrm'.
42530         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42531         declarations.
42532         * lib/uninorm/u8-normxfrm.c: New file.
42533         * lib/uninorm/u-normxfrm.h: New file.
42534         * modules/uninorm/u8-normxfrm: New file.
42535
42536 2009-03-07  Bruno Haible  <bruno@clisp.org>
42537
42538         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42539         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42540         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42541
42542 2009-03-07  Bruno Haible  <bruno@clisp.org>
42543
42544         New module 'memxfrm'.
42545         * lib/memxfrm.h: New file.
42546         * lib/memxfrm.c: New file.
42547         * modules/memxfrm: New file.
42548
42549 2009-03-07  Bruno Haible  <bruno@clisp.org>
42550
42551         New module 'memcmp2'.
42552         * lib/memcmp2.h: New file.
42553         * lib/memcmp2.c: New file.
42554         * modules/memcmp2: New file.
42555
42556 2009-03-07  Bruno Haible  <bruno@clisp.org>
42557
42558         Tests for module 'uninorm/decomposing-form'.
42559         * modules/uninorm/decomposing-form-tests: New file.
42560         * tests/uninorm/test-decomposing-form.c: New file.
42561
42562         New module 'uninorm/decomposing-form'.
42563         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42564         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42565         Add 'decomposing_variant' field.
42566         * lib/uninorm/decomposing-form.c: New file.
42567         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42568         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42569         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42570         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42571         * modules/uninorm/decomposing-form: New file.
42572         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42573         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42574
42575 2009-03-07  Bruno Haible  <bruno@clisp.org>
42576
42577         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42578         strings.
42579
42580 2009-03-06  Bruno Haible  <bruno@clisp.org>
42581
42582         Tests for module 'uninorm/u32-normcmp'.
42583         * tests/uninorm/test-u32-normcmp.c: New file.
42584         * modules/uninorm/u32-normcmp-tests: New file.
42585
42586         Tests for module 'uninorm/u16-normcmp'.
42587         * tests/uninorm/test-u16-normcmp.c: New file.
42588         * modules/uninorm/u16-normcmp-tests: New file.
42589
42590         Tests for module 'uninorm/u8-normcmp'.
42591         * tests/uninorm/test-u8-normcmp.c: New file.
42592         * modules/uninorm/u8-normcmp-tests: New file.
42593
42594         New module 'uninorm/u32-normcmp'.
42595         * lib/uninorm/u32-normcmp.c: New file.
42596         * modules/uninorm/u32-normcmp: New file.
42597
42598         New module 'uninorm/u16-normcmp'.
42599         * lib/uninorm/u16-normcmp.c: New file.
42600         * modules/uninorm/u16-normcmp: New file.
42601
42602         New module 'uninorm/u8-normcmp'.
42603         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42604         declarations.
42605         * lib/uninorm/u8-normcmp.c: New file.
42606         * lib/uninorm/u-normcmp.h: New file.
42607         * modules/uninorm/u8-normcmp: New file.
42608
42609 2009-03-06  Bruno Haible  <bruno@clisp.org>
42610
42611         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42612         Reported by Eric Blake.
42613
42614 2009-03-06  Eric Blake  <ebb9@byu.net>
42615             Bruno Haible  <bruno@clisp.org>
42616
42617         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42618         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42619         condition.
42620         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42621         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42622         condition.
42623         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42624
42625 2009-03-06  Eric Blake  <ebb9@byu.net>
42626
42627         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42628         to avoid compiler warnings.
42629         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42630
42631 2009-03-05  Bruno Haible  <bruno@clisp.org>
42632
42633         * tests/test-ftell.c (main): Disable test beyond end of file on
42634         FreeMiNT.
42635         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42636
42637 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42638
42639         * lib/filevercmp.c: Move hidden files up in ordering.
42640         * tests/test-filevercmp.c: Add tests for hidden files.
42641
42642 2009-03-04  Bruno Haible  <bruno@clisp.org>
42643
42644         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42645         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42646         AM_CFLAGS.
42647         Reported by Simon Josefsson.
42648
42649 2009-03-03  Bruno Haible  <bruno@clisp.org>
42650
42651         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42652         Reported by Simon Josefsson.
42653
42654         * doc/ld-version-script.texi: Update node reference.
42655
42656 2009-03-03  Bruno Haible  <bruno@clisp.org>
42657
42658         * modules/visibility (License): Change to 'unlimited'.
42659         Suggested by Simon Josefsson.
42660
42661 2009-03-03  Jim Meyering  <meyering@redhat.com>
42662
42663         unlinkdir: cannot_unlink_dir may modify process state
42664         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42665         it's neither thread-safe nor appropriate for use in a library.
42666
42667 2009-03-03  Eric Blake  <ebb9@byu.net>
42668
42669         test-closein: silence test under Darwin
42670         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42671         care if it dies from EPIPE or EBADF.
42672
42673 2009-03-03  Bruno Haible  <bruno@clisp.org>
42674
42675         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42676         earlier.
42677         * doc/visibility.texi: Fix @node and @section.
42678
42679 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42680
42681         * doc/gnulib.texi: Link to sections for ld version script and
42682         visibility.
42683         * doc/visibility.texi: Add @node and @section.
42684         * modules/ld-version-script: New module.
42685         * m4/ld-version-script.m4: New file.
42686         * doc/ld-version-script.texi: New file.
42687
42688 2009-03-02  David Lutterkort  <lutter@redhat.com>
42689
42690         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42692
42693 2009-03-02  Bruno Haible  <bruno@clisp.org>
42694
42695         * doc/visibility.texi: Mention libtool's -export-symbols option.
42696
42697 2009-03-02  Jim Meyering  <meyering@redhat.com>
42698
42699         announce-gen: new option: --no-print-checksums
42700         * build-aux/announce-gen (usage): Describe it.
42701         (print_checksums): Print a newline here, not in the [*] footnote.
42702         (main): Honor it.
42703
42704 2009-03-01  Bruno Haible  <bruno@clisp.org>
42705
42706         Use socklen_t in the native Windows replacements prototypes.
42707         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
42708         instead of 'int'.
42709         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42710         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42711         * modules/getsockopt (Depends-on): Add socklen.
42712         * modules/setsockopt (Depends-on): Add socklen.
42713
42714 2009-03-01  Bruno Haible  <bruno@clisp.org>
42715
42716         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
42717         least 4.2.
42718
42719 2009-03-01  Eric Blake  <ebb9@byu.net>
42720             Bruno Haible  <bruno@clisp.org>
42721
42722         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
42723         error messages.
42724         * lib/wait-process.c (wait_subprocess): Omit error message about
42725         deadly signal sent to the child of termsigp != NULL.
42726
42727 2009-03-01  Eric Blake  <ebb9@byu.net>
42728
42729         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
42730
42731 2009-03-01  Bruno Haible  <bruno@clisp.org>
42732
42733         Avoid a gcc warning.
42734         * tests/test-sched.c (b): Make global.
42735         Reported by Eric Blake.
42736
42737 2009-01-19  Martin Lambers  <marlam@marlam.de>
42738
42739         Provide POSIX semantics for socket timeout options on W32.
42740         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
42741         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
42742         * modules/setsockopt: Depend on sys_time module for struct timeval.
42743         * modules/getsockopt: Depend on sys_time module for struct timeval.
42744
42745 2009-03-01  Simon Josefsson  <simon@josefsson.org>
42746
42747         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
42748         __USE_GNU, for consistency with netdb.in.h.
42749         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42750
42751 2009-03-01  Bruno Haible  <bruno@clisp.org>
42752
42753         More support for FreeMiNT.
42754         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42755         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42756
42757 2009-03-01  Bruno Haible  <bruno@clisp.org>
42758
42759         More support for FreeMiNT.
42760         * lib/fpurge.c (fpurge): Correct last commit.
42761         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42762
42763 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42764
42765         Fix unportable awk script in vc-list-files.
42766         * build-aux/vc-list-files: In the replacement awk script, use
42767         substr with a second argument of 1, not zero.
42768         Report by Simon Josefsson.
42769
42770 2009-02-28  Bruno Haible  <bruno@clisp.org>
42771
42772         More support for FreeMiNT.
42773         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
42774         to FreeMiNT today.
42775         * lib/fwriting.c (fwriting): Likewise.
42776         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
42777
42778 2009-02-28  Bruno Haible  <bruno@clisp.org>
42779
42780         * tests/test-freadseek.c (main): Disable test beyond end of file on
42781         FreeMiNT.
42782         * tests/test-ftello.c (main): Likewise.
42783         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42784
42785 2009-02-28  Bruno Haible  <bruno@clisp.org>
42786
42787         Add tentative support for FreeMiNT.
42788         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42789         * lib/fpurge.c (fpurge): Likewise.
42790         * lib/freadable.c (freadable): Likewise.
42791         * lib/freading.c (freading): Likewise.
42792         * lib/freadptr.c (freadptr): Likewise.
42793         * lib/freadseek.c (freadptrinc): Likewise.
42794         * lib/fseeko.c (rpl_fseeko): Likewise.
42795         * lib/fseterr.c (fseterr): Likewise.
42796         * lib/fwritable.c (fwritable): Likewise.
42797         * lib/fwriting.c (fwriting): Likewise.
42798         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42799         Hourihane.
42800         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42801
42802 2009-02-28  Bruno Haible  <bruno@clisp.org>
42803
42804         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42805         SIGCHLD.
42806         Reported by Jim Meyering.
42807
42808 2009-02-28  Bruno Haible  <bruno@clisp.org>
42809
42810         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42811         Mention the results of these tests on various platforms.
42812         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42813         order.
42814         * doc/posix-functions/printf.texi: Likewise.
42815         * doc/posix-functions/snprintf.texi: Likewise.
42816         * doc/posix-functions/sprintf.texi: Likewise.
42817         * doc/posix-functions/vfprintf.texi: Likewise.
42818         * doc/posix-functions/vprintf.texi: Likewise.
42819         * doc/posix-functions/vsnprintf.texi: Likewise.
42820         * doc/posix-functions/vsprintf.texi: Likewise.
42821         * doc/glibc-functions/obstack_printf.texi: Likewise.
42822         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42823
42824 2009-02-28  Bruno Haible  <bruno@clisp.org>
42825
42826         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42827         Reported by Loïc Minier <lool@dooz.org>.
42828
42829 2009-02-27  Bruno Haible  <bruno@clisp.org>
42830
42831         * gnulib-tool (func_import): Make the sed expression used to create the
42832         sed script for updating the .gitignore file POSIX compliant.
42833         Reported by Eric Blake.
42834
42835 2009-02-27  Bruno Haible  <bruno@clisp.org>
42836
42837         * gnulib-tool (sed): Don't alias as "sed --posix".
42838         Reported by Eric Blake.
42839
42840 2009-02-27  Bruno Haible  <bruno@clisp.org>
42841
42842         Avoid test link errors.
42843         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42844         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42845         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42846         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42848
42849 2009-02-27  Bruno Haible  <bruno@clisp.org>
42850
42851         Avoid spurious "(cached)" in configure output.
42852         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42853         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42854         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42855         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42856         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42857         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42858         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42859         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42860         Reported by Eric Blake.
42861
42862 2009-02-27  Eric Blake  <ebb9@byu.net>
42863
42864         printf: fix regression in previous patch
42865         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42866
42867 2009-02-27  Bruno Haible  <bruno@clisp.org>
42868
42869         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42870         value.
42871         * lib/stdint.in.h: Likewise.
42872         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42873
42874 2009-02-27  Eric Blake  <ebb9@byu.net>
42875
42876         doc: mention more functions added in cygwin 1.7.0
42877         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42878         addition.
42879         * doc/posix-functions/open_wmemstream.texi: Likewise.
42880         * doc/posix-functions/wcsnlen.texi: Likewise.
42881         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42882         * doc/posix-functions/wcstod.texi: Likewise.
42883         * doc/posix-functions/wcstof.texi: Likewise.
42884         * doc/posix-functions/wcstoimax.texi: Likewise.
42885         * doc/posix-functions/wcstok.texi: Likewise.
42886         * doc/posix-functions/wcstoumax.texi: Likewise.
42887
42888         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42889         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42890         * doc/posix-functions/fprintf.texi: Update.
42891         * doc/posix-functions/printf.texi: Update.
42892         * doc/posix-functions/snprintf.texi: Update.
42893         * doc/posix-functions/sprintf.texi: Update.
42894         * doc/posix-functions/vfprintf.texi: Update.
42895         * doc/posix-functions/vprintf.texi: Update.
42896         * doc/posix-functions/vsnprintf.texi: Update.
42897         * doc/posix-functions/vsprintf.texi: Update.
42898         * doc/glibc-functions/obstack_printf.texi: Update.
42899         * doc/glibc-functions/obstack_vprintf.texi: Update.
42900
42901 2009-02-26  Eric Blake  <ebb9@byu.net>
42902
42903         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42904         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42905         compilation bug by using runtime conversion.
42906         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42907         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42908         * modules/ceill-tests (Files): Use nan.h.
42909         * modules/floorl-tests (Files): Likewise.
42910         * modules/frexpl-tests (Files): Likewise.
42911         * modules/isnanl-tests (Files): Likewise.
42912         * modules/ldexpl-tests (Files): Likewise.
42913         * modules/roundl-tests (Files): Likewise.
42914         * modules/truncl-tests (Files): Likewise.
42915         * tests/test-ceill.c (main): Use a working NaN.
42916         * tests/test-floorl.c (main): Likewise.
42917         * tests/test-frexpl.c (main): Likewise.
42918         * tests/test-isnan.c (test_long_double): Likewise.
42919         * tests/test-isnanl.h (main): Likewise.
42920         * tests/test-ldexpl.h (main): Likewise.
42921         * tests/test-roundl.h (main): Likewise.
42922         * tests/test-truncl.h (main): Likewise.
42923         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42924
42925 2009-02-26  Eric Blake  <ebb9@byu.net>
42926             Bruno Haible  <bruno@clisp.org>
42927
42928         Work around a *printf bug with %ls on Solaris.
42929         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42930         precision is specified, sprintf stops converting the wide string
42931         argument when the number of bytes that have been produced by this
42932         conversion equals or exceeds the precision.
42933         * doc/posix-functions/fprintf.texi: Update.
42934         * doc/posix-functions/printf.texi: Update.
42935         * doc/posix-functions/snprintf.texi: Update.
42936         * doc/posix-functions/sprintf.texi: Update.
42937         * doc/posix-functions/vfprintf.texi: Update.
42938         * doc/posix-functions/vprintf.texi: Update.
42939         * doc/posix-functions/vsnprintf.texi: Update.
42940         * doc/posix-functions/vsprintf.texi: Update.
42941         * doc/glibc-functions/obstack_printf.texi: Update.
42942         * doc/glibc-functions/obstack_vprintf.texi: Update.
42943
42944 2009-02-26  Eric Blake  <ebb9@byu.net>
42945
42946         stdlib: favor compiler check of random.h
42947         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42948         to avoid an ObjC random.h installed by Swarm.
42949
42950 2009-02-26  Bruno Haible  <bruno@clisp.org>
42951
42952         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42953         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42954         Reported by Gary V. Vaughan <gary@gnu.org>.
42955
42956 2009-02-26  Bruno Haible  <bruno@clisp.org>
42957
42958         Fix *printf behaviour regarding the %ls directive.
42959         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42960         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42961         NEED_PRINTF_DIRECTIVE_LS.
42962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42963         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42965         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42966         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42967         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42968         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42973         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42977         * doc/posix-functions/fprintf.texi: Update.
42978         * doc/posix-functions/printf.texi: Update.
42979         * doc/posix-functions/snprintf.texi: Update.
42980         * doc/posix-functions/sprintf.texi: Update.
42981         * doc/posix-functions/vfprintf.texi: Update.
42982         * doc/posix-functions/vprintf.texi: Update.
42983         * doc/posix-functions/vsnprintf.texi: Update.
42984         * doc/posix-functions/vsprintf.texi: Update.
42985         * doc/glibc-functions/obstack_printf.texi: Update.
42986         * doc/glibc-functions/obstack_vprintf.texi: Update.
42987         Reported by Eric Blake.
42988
42989 2009-02-25  Bruno Haible  <bruno@clisp.org>
42990
42991         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42992         with known value.
42993         Reported by Gary V. Vaughan <gary@gnu.org>.
42994
42995 2009-02-25  Bruno Haible  <bruno@clisp.org>
42996
42997         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42998         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42999         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43000         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43001         Reported by Gary V. Vaughan <gary@gnu.org>.
43002
43003 2009-02-25  Bruno Haible  <bruno@clisp.org>
43004
43005         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43006         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43007         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43008         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43009         Reported by Gary V. Vaughan <gary@gnu.org>.
43010
43011 2009-02-25  Eric Blake  <ebb9@byu.net>
43012
43013         tests: skip fseek/ftell tests if ungetc is broken
43014         * m4/ungetc.m4: New file.
43015         * modules/fseek-tests: Split test, so ungetc dependency is
43016         separate from rest of test.
43017         * modules/fseeko-tests: Likewise.
43018         * modules/ftell-tests: Likewise.
43019         * modules/ftello-tests: Likewise.
43020         * tests/test-fseek.c (main): Isolate ungetc dependency.
43021         * tests/test-fseeko.c (main): Likewise.
43022         * tests/test-ftell.c (main): Likewise.
43023         * tests/test-ftello.c (main): Likewise.
43024         * tests/test-fseek2.sh: New file.
43025         * tests/test-fseeko2.sh: Likewise.
43026         * tests/test-ftell2.sh: Likewise.
43027         * tests/test-ftello2.sh: Likewise.
43028
43029 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43030
43031         test-getaddrinfo: fix usage of skip return code 77
43032         * tests/test-gettaddrinfo.c: Return skip code 77 only
43033         for first occurance of skip (4x77 is not 77)
43034
43035 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43036
43037         strtod: avoid C99 decl-after-statement
43038         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43039
43040 2009-02-24  Eric Blake  <ebb9@byu.net>
43041
43042         strtod: detect HP-UX 11.31 bug
43043         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43044         Reported by Gary V. Vaughan.
43045
43046 2009-02-23  Bruno Haible  <bruno@clisp.org>
43047
43048         Fix invalid read past end of memory block.
43049         * lib/vasnprintf.c (DCHAR_SET): Define.
43050         (local_wcslen): Define only when needed.
43051         (local_strnlen, local_wcsnlen): New functions.
43052         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43053         directives that involve a conversion ourselves.
43054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43055         wcsnlen, mbrtowc, wcrtomb.
43056         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43057         * tests/test-vasprintf-posix.c (test_function): Likewise.
43058         * tests/test-snprintf-posix.h (test_function): Likewise.
43059         * tests/test-sprintf-posix.h (test_function): Likewise.
43060         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43061
43062 2009-02-22  Bruno Haible  <bruno@clisp.org>
43063
43064         Implement new clarified decomposition of Hangul syllables.
43065         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43066         of type LTV, return only a pairwise decomposition.
43067         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43068         Likewise.
43069         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43070         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43071         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43072
43073 2009-02-22  Bruno Haible  <bruno@clisp.org>
43074
43075         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43076         zero-length results and shrink excess allocated memory.
43077         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43078         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43079         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43080         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43081         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43082         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43083         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43084         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43085         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43086         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43087         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43088         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43089
43090 2009-02-21  Bruno Haible  <bruno@clisp.org>
43091
43092         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43093         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43094         spaces after a period. Put a space between a macro name and its
43095         argument list. Trivial rewordings.
43096         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43097         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43098         (main): Return 0 explicitly.
43099
43100 2009-02-21  Bruno Haible  <bruno@clisp.org>
43101
43102         Tests for module 'uninorm/filter'.
43103         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43104         * modules/uninorm/filter-tests: New file.
43105
43106         New module 'uninorm/filter'.
43107         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43108         uninorm_filter_flush, uninorm_filter_free): New declarations.
43109         * lib/uninorm/uninorm-filter.c: New file.
43110         * modules/uninorm/filter: New file.
43111
43112 2009-02-21  Bruno Haible  <bruno@clisp.org>
43113
43114         Tests for module 'uninorm/nfkc'.
43115         * tests/uninorm/test-nfkc.c: New file.
43116         * tests/uninorm/test-u8-nfkc.c: New file.
43117         * tests/uninorm/test-u16-nfkc.c: New file.
43118         * tests/uninorm/test-u32-nfkc.c: New file.
43119         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43120         * tests/uninorm/test-u32-nfkc-big.c: New file.
43121         * modules/uninorm/nfkc-tests: New file.
43122
43123         New module 'uninorm/nfkc'.
43124         * lib/uninorm/nfkc.c: New file.
43125         * modules/uninorm/nfkc: New file.
43126
43127         Tests for module 'uninorm/nfkd'.
43128         * tests/uninorm/test-nfkd.c: New file.
43129         * tests/uninorm/test-u8-nfkd.c: New file.
43130         * tests/uninorm/test-u16-nfkd.c: New file.
43131         * tests/uninorm/test-u32-nfkd.c: New file.
43132         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43133         * tests/uninorm/test-u32-nfkd-big.c: New file.
43134         * modules/uninorm/nfkd-tests: New file.
43135
43136         New module 'uninorm/nfkd'.
43137         * lib/uninorm/nfkd.c: New file.
43138         * modules/uninorm/nfkd: New file.
43139
43140         Tests for module 'uninorm/nfc'.
43141         * tests/uninorm/test-nfc.c: New file.
43142         * tests/uninorm/test-u8-nfc.c: New file.
43143         * tests/uninorm/test-u16-nfc.c: New file.
43144         * tests/uninorm/test-u32-nfc.c: New file.
43145         * tests/uninorm/test-u32-nfc-big.sh: New file.
43146         * tests/uninorm/test-u32-nfc-big.c: New file.
43147         * modules/uninorm/nfc-tests: New file.
43148
43149         New module 'uninorm/nfc'.
43150         * lib/uninorm/nfc.c: New file.
43151         * modules/uninorm/nfc: New file.
43152
43153         Tests for module 'uninorm/nfd'.
43154         * tests/uninorm/test-nfd.c: New file.
43155         * tests/uninorm/test-u8-nfd.c: New file.
43156         * tests/uninorm/test-u16-nfd.c: New file.
43157         * tests/uninorm/test-u32-nfd.c: New file.
43158         * tests/uninorm/test-u32-nfd-big.sh: New file.
43159         * tests/uninorm/test-u32-nfd-big.c: New file.
43160         * tests/uninorm/test-u32-normalize-big.h: New file.
43161         * tests/uninorm/test-u32-normalize-big.c: New file.
43162         * tests/uninorm/NormalizationTest.txt: New file, created from
43163         Unicode 5.1.0 NormalizationTest.txt.
43164         * modules/uninorm/nfd-tests: New file.
43165
43166         New module 'uninorm/nfd'.
43167         * lib/uninorm/nfd.c: New file.
43168         * modules/uninorm/nfd: New file.
43169
43170         New module 'uninorm/u32-normalize'.
43171         * lib/uninorm/u32-normalize.c: New file.
43172         * modules/uninorm/u32-normalize: New file.
43173
43174         New module 'uninorm/u16-normalize'.
43175         * lib/uninorm/u16-normalize.c: New file.
43176         * modules/uninorm/u16-normalize: New file.
43177
43178         New module 'uninorm/u8-normalize'.
43179         * lib/uninorm/u8-normalize.c: New file.
43180         * lib/uninorm/normalize-internal.h: New file.
43181         * lib/uninorm/u-normalize-internal.h: New file.
43182         * modules/uninorm/u8-normalize: New file.
43183
43184         New module 'uninorm/decompose-internal'.
43185         * lib/uninorm/decompose-internal.c: New file.
43186         * modules/uninorm/decompose-internal: New file.
43187
43188         Tests for module 'uninorm/composition'.
43189         * tests/uninorm/test-composition.c: New file.
43190         * modules/uninorm/composition-tests: New file.
43191
43192         New module 'uninorm/composition'.
43193         * lib/uninorm/composition.c: New file.
43194         * lib/uninorm/composition-table.gperf: New file, generated by
43195         gen-uni-tables.
43196         * modules/uninorm/composition: New file.
43197
43198         Tests for module 'uninorm/compat-decomposition'.
43199         * tests/uninorm/test-compat-decomposition.c: New file.
43200         * modules/uninorm/compat-decomposition-tests: New file.
43201
43202         New module 'uninorm/compat-decomposition'.
43203         * lib/uninorm/decompose-internal.h: New file.
43204         * lib/uninorm/compat-decomposition.c: New file.
43205         * modules/uninorm/compat-decomposition: New file.
43206
43207         Tests for module 'uninorm/canonical-decomposition'.
43208         * tests/uninorm/test-canonical-decomposition.c: New file.
43209         * modules/uninorm/canonical-decomposition-tests: New file.
43210
43211         New module 'uninorm/canonical-decomposition'.
43212         * lib/uninorm/canonical-decomposition.c: New file.
43213         * modules/uninorm/canonical-decomposition: New file.
43214
43215         Tests for module 'uninorm/decomposition'.
43216         * tests/uninorm/test-decomposition.c: New file.
43217         * modules/uninorm/decomposition-tests: New file.
43218
43219         New module 'uninorm/decomposition'.
43220         * lib/uninorm/decomposition.c: New file.
43221         * modules/uninorm/decomposition: New file.
43222
43223         New module 'uninorm/decomposition-table'.
43224         * lib/uninorm/decomposition-table.h: New file.
43225         * lib/uninorm/decomposition-table.c: New file.
43226         * lib/uninorm/decomposition-table1.h: New file, generated by
43227         gen-uni-tables.
43228         * lib/uninorm/decomposition-table2.h: New file, generated by
43229         gen-uni-tables.
43230         * modules/uninorm/decomposition-table: New file.
43231
43232         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43233         (UC_DECOMP_*): New enumeration items.
43234         (get_decomposition): New function.
43235         (struct decomp_table): New type.
43236         (output_decomposition, output_decomposition_tables): New functions.
43237         (unicode_composition_exclusions): New variable.
43238         (fill_composition_exclusions, debug_output_composition_tables): New
43239         functions.
43240         (main): Accept one more argument. Invoke fill_composition_exclusions.
43241         Output decomposition and composition tables.
43242
43243         New module 'uninorm/base'.
43244         * lib/uninorm.h: New file.
43245         * lib/unictype.h: Update comment.
43246         * modules/uninorm/base: New file.
43247
43248 2009-02-21  David Lutterkort  <lutter@redhat.com>
43249
43250         Tests for module 'safe-alloc'.
43251         * tests/test-safe-alloc.c: New file.
43252         * modules/safe-alloc-tests: New file.
43253
43254         New module 'safe-alloc'.
43255         * lib/safe-alloc.h: New file.
43256         * lib/safe-alloc.c: New file.
43257         * m4/safe-alloc.m4: New file.
43258         * modules/safe-alloc: New file.
43259         * doc/safe-alloc.texi: New file.
43260         * doc/gnulib.texi: Include it.
43261         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43262         safe-alloc.
43263
43264 2009-02-18  Bruno Haible  <bruno@clisp.org>
43265
43266         Fix link error on non-glibc systems.
43267         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43268         variable.
43269         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43270
43271 2009-02-18  Jim Meyering  <meyering@redhat.com>
43272
43273         fts: avoid used-uninitialized error due to recent change
43274         * lib/fts.c (fts_read): Guard uses of the new member,
43275         parent->fts_n_dirs_remaining, since it's not relevant for
43276         the parent of a directory specified on the command-line.
43277
43278 2009-02-17  James Youngman  <jay@gnu.org>
43279             Bruno Haible  <bruno@clisp.org>
43280
43281         * m4/include_next.m4: Reformulate comment.
43282
43283 2009-02-16  Jim Meyering  <meyering@redhat.com>
43284
43285         fts: add #if guards so that the fts_lgpl module still builds
43286         * lib/fts.c: Guard just-added hash-table-using parts with
43287         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43288         Reported by Simon Josefsson.
43289
43290 2009-02-15  Bruno Haible  <bruno@clisp.org>
43291
43292         * modules/array-mergesort-tests: New file.
43293         * tests/test-array-mergesort.c: New file.
43294
43295         New module 'array-mergesort'.
43296         * modules/array-mergesort: New file.
43297         * lib/array-mergesort.h: New file.
43298
43299 2009-02-15  Bruno Haible  <bruno@clisp.org>
43300
43301         Fix 2009-02-07 commit.
43302         * lib/gen-uni-tables.c (output_predicate, output_category,
43303         output_combclass, output_bidi_category, output_decimal_digit,
43304         output_digit, output_numeric, output_mirror, output_scripts,
43305         output_ident_category, output_simple_mapping): Fix format directives.
43306         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43307
43308 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43309
43310         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43311         fixes are available from IBM.
43312
43313 2009-02-13  Jim Meyering  <meyering@redhat.com>
43314
43315         fts: arrange not to stat non-directories in more cases
43316         This makes GNU find (when it doesn't need to stat each file)
43317         *much* more efficient at traversing reiserfs file systems.
43318         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43319         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43320         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43321         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43322         (leaf_optimization_applies): New function.
43323         (LCO_hash, LCO_compare): New helper functions.
43324         (link_count_optimize_ok): New function.
43325         (fts_stat): Initialize new member (if dir).
43326         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43327         we've just stat'ed a directory.  Skip the stat call when possible.
43328         ---
43329         Note this AFS-related exchange:
43330         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43331         and note find's pioctl call in find/fstype.c.
43332         But that is necessary only if you want to enable the
43333         optimization for AFS, and for now, I don't.
43334
43335         fts: move a function definition "up" (no semantic change)
43336         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43337         "up" to precede upcoming use of a related function.
43338
43339 2009-02-11  Jim Meyering  <meyering@redhat.com>
43340
43341         fts: correct internal computation of nlinks (optimization-related)
43342         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43343         whether the current entry is a directory, so don't test it.
43344
43345 2009-02-10  Bruno Haible  <bruno@clisp.org>
43346
43347         Tests for module 'uniwbrk/ulc-wordbreaks'.
43348         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43349         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43350         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43351
43352         Tests for module 'uniwbrk/u32-wordbreaks'.
43353         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43354         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43355
43356         Tests for module 'uniwbrk/u16-wordbreaks'.
43357         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43358         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43359
43360         Tests for module 'uniwbrk/u8-wordbreaks'.
43361         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43362         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43363
43364 2009-02-10  Bruno Haible  <bruno@clisp.org>
43365
43366         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43367         property.
43368         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43369         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43370         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43371
43372 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43373
43374         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43375         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43376
43377 2009-02-10  Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43380         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43381         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43382         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43383         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43384         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43385
43386 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43387
43388         * lib/sockets.h (gl_fd_to_handle): New function.
43389
43390         * tests/test-sockets.c: Call gl_fd_to_handle.
43391
43392 2009-02-09  Bruno Haible  <bruno@clisp.org>
43393
43394         * doc/havelib.texi: Document the conventions on bi-arch systems.
43395
43396 2009-02-08  Bruno Haible  <bruno@clisp.org>
43397
43398         Document the AC_LIB_LINKFLAGS macro.
43399         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43400         * doc/gnulib.texi: Include it.
43401
43402 2009-02-08  Bruno Haible  <bruno@clisp.org>
43403
43404         Fix wrong order of sections, compared to TOC.
43405         * doc/gnulib.texi: Include relocatable-maint.texi after the
43406         "Regular expressions" node, not before.
43407
43408 2009-02-08  Bruno Haible  <bruno@clisp.org>
43409
43410         Tests for module 'unicase/totitle'.
43411         * modules/unicase/totitle-tests: New file.
43412
43413         Tests for module 'unicase/tolower'.
43414         * modules/unicase/tolower-tests: New file.
43415
43416         Tests for module 'unicase/toupper'.
43417         * modules/unicase/toupper-tests: New file.
43418         * tests/unicase/test-mapping-part1.h: New file.
43419         * tests/unicase/test-mapping-part2.h: New file.
43420
43421         New module 'unicase/totitle'.
43422         * modules/unicase/totitle: New file.
43423         * lib/unicase/totitle.c: New file.
43424
43425         New module 'unicase/tolower'.
43426         * modules/unicase/tolower: New file.
43427         * lib/unicase/tolower.c: New file.
43428
43429         New module 'unicase/toupper'.
43430         * modules/unicase/toupper: New file.
43431         * lib/unicase/toupper.c: New file.
43432         * lib/unicase/simple-mapping.h: New file.
43433
43434         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43435         (mapping_table): New structure.
43436         (output_simple_mapping): New function.
43437         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43438         * modules/gen-uni-tables (Description): Update.
43439         * lib/unicase/toupper.h: New file, automatically generated by
43440         gen-uni-tables.
43441         * lib/unicase/tolower.h: New file, automatically generated by
43442         gen-uni-tables.
43443         * lib/unicase/totitle.h: New file, automatically generated by
43444         gen-uni-tables.
43445         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43446         gen-uni-tables.
43447         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43448         gen-uni-tables.
43449         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43450         gen-uni-tables.
43451
43452         New module 'unicase/base'.
43453         * modules/unicase/base: New file.
43454         * lib/unicase.h: New file.
43455
43456 2009-02-08  Bruno Haible  <bruno@clisp.org>
43457
43458         New module 'uniwbrk/ulc-wordbreaks'.
43459         * modules/uniwbrk/ulc-wordbreaks: New file.
43460         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43461
43462         New module 'uniwbrk/u32-wordbreaks'.
43463         * modules/uniwbrk/u32-wordbreaks: New file.
43464         * lib/uniwbrk/u32-wordbreaks.c: New file.
43465
43466         New module 'uniwbrk/u16-wordbreaks'.
43467         * modules/uniwbrk/u16-wordbreaks: New file.
43468         * lib/uniwbrk/u16-wordbreaks.c: New file.
43469
43470         New module 'uniwbrk/u8-wordbreaks'.
43471         * modules/uniwbrk/u8-wordbreaks: New file.
43472         * lib/uniwbrk/u8-wordbreaks.c: New file.
43473         * lib/uniwbrk/u-wordbreaks.h: New file.
43474
43475         New module 'uniwbrk/table'.
43476         * modules/uniwbrk/table: New file.
43477         * lib/uniwbrk/wbrktable.h: New file.
43478         * lib/uniwbrk/wbrktable.c: New file.
43479
43480         New module 'uniwbrk/wordbreak-property'.
43481         * modules/uniwbrk/wordbreak-property: New file.
43482         * lib/uniwbrk/wordbreak-property.c: New file.
43483
43484         * lib/gen-uni-tables.c (WBP_*): New enum items.
43485         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43486         (unicode_org_wbp): New variable.
43487         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43488         New functions.
43489         (wbp_table): New structure.
43490         (output_wbp, output_wbrk_tables): New functions.
43491         (main): Accept additional argument. Invoke fill_org_wbp,
43492         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43493         output_wbrk_tables.
43494         * modules/gen-uni-tables (Description): Update.
43495         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43496         gen-uni-tables.
43497
43498         New module 'uniwbrk/base'.
43499         * modules/uniwbrk/base: New file.
43500         * lib/uniwbrk.h: New file.
43501
43502 2009-02-08  Bruno Haible  <bruno@clisp.org>
43503
43504         Update to Unicode 5.1.0.
43505         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43506         U+2185..U+2188.
43507         (is_property_default_ignorable_code_point): Don't include characters
43508         of category Cc or Cs and not-a-characters.
43509         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43510         U+0D79, U+109E, U+109F, U+A60C.
43511         * lib/unictype/bidi_of.h: Regenerated.
43512         * lib/unictype/blocks.h: Regenerated.
43513         * lib/unictype/categ_C.h: Regenerated.
43514         * lib/unictype/categ_Cf.h: Regenerated.
43515         * lib/unictype/categ_Cn.h: Regenerated.
43516         * lib/unictype/categ_L.h: Regenerated.
43517         * lib/unictype/categ_Ll.h: Regenerated.
43518         * lib/unictype/categ_Lm.h: Regenerated.
43519         * lib/unictype/categ_Lo.h: Regenerated.
43520         * lib/unictype/categ_Lu.h: Regenerated.
43521         * lib/unictype/categ_M.h: Regenerated.
43522         * lib/unictype/categ_Mc.h: Regenerated.
43523         * lib/unictype/categ_Me.h: Regenerated.
43524         * lib/unictype/categ_Mn.h: Regenerated.
43525         * lib/unictype/categ_N.h: Regenerated.
43526         * lib/unictype/categ_Nd.h: Regenerated.
43527         * lib/unictype/categ_Nl.h: Regenerated.
43528         * lib/unictype/categ_No.h: Regenerated.
43529         * lib/unictype/categ_P.h: Regenerated.
43530         * lib/unictype/categ_Pd.h: Regenerated.
43531         * lib/unictype/categ_Pe.h: Regenerated.
43532         * lib/unictype/categ_Pf.h: Regenerated.
43533         * lib/unictype/categ_Pi.h: Regenerated.
43534         * lib/unictype/categ_Po.h: Regenerated.
43535         * lib/unictype/categ_Ps.h: Regenerated.
43536         * lib/unictype/categ_S.h: Regenerated.
43537         * lib/unictype/categ_Sk.h: Regenerated.
43538         * lib/unictype/categ_Sm.h: Regenerated.
43539         * lib/unictype/categ_So.h: Regenerated.
43540         * lib/unictype/categ_of.h: Regenerated.
43541         * lib/unictype/combining.h: Regenerated.
43542         * lib/unictype/ctype_alnum.h: Regenerated.
43543         * lib/unictype/ctype_alpha.h: Regenerated.
43544         * lib/unictype/ctype_graph.h: Regenerated.
43545         * lib/unictype/ctype_lower.h: Regenerated.
43546         * lib/unictype/ctype_print.h: Regenerated.
43547         * lib/unictype/ctype_punct.h: Regenerated.
43548         * lib/unictype/ctype_upper.h: Regenerated.
43549         * lib/unictype/decdigit.h: Regenerated.
43550         * lib/unictype/digit.h: Regenerated.
43551         * lib/unictype/mirror.h: Regenerated.
43552         * lib/unictype/numeric.h: Regenerated.
43553         * lib/unictype/pr_alphabetic.h: Regenerated.
43554         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43555         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43556         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43557         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43558         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43559         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43560         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43561         * lib/unictype/pr_combining.h: Regenerated.
43562         * lib/unictype/pr_dash.h: Regenerated.
43563         * lib/unictype/pr_decimal_digit.h: Regenerated.
43564         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43565         * lib/unictype/pr_deprecated.h: Regenerated.
43566         * lib/unictype/pr_diacritic.h: Regenerated.
43567         * lib/unictype/pr_extender.h: Regenerated.
43568         * lib/unictype/pr_format_control.h: Regenerated.
43569         * lib/unictype/pr_grapheme_base.h: Regenerated.
43570         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43571         * lib/unictype/pr_grapheme_link.h: Regenerated.
43572         * lib/unictype/pr_id_continue.h: Regenerated.
43573         * lib/unictype/pr_id_start.h: Regenerated.
43574         * lib/unictype/pr_ideographic.h: Regenerated.
43575         * lib/unictype/pr_ignorable_control.h: Regenerated.
43576         * lib/unictype/pr_lowercase.h: Regenerated.
43577         * lib/unictype/pr_math.h: Regenerated.
43578         * lib/unictype/pr_numeric.h: Regenerated.
43579         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43580         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43581         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43582         * lib/unictype/pr_other_id_continue.h: Regenerated.
43583         * lib/unictype/pr_other_lowercase.h: Regenerated.
43584         * lib/unictype/pr_other_math.h: Regenerated.
43585         * lib/unictype/pr_punctuation.h: Regenerated.
43586         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43587         * lib/unictype/pr_soft_dotted.h: Regenerated.
43588         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43589         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43590         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43591         * lib/unictype/pr_uppercase.h: Regenerated.
43592         * lib/unictype/pr_xid_continue.h: Regenerated.
43593         * lib/unictype/pr_xid_start.h: Regenerated.
43594         * lib/unictype/pr_zero_width.h: Regenerated.
43595         * lib/unictype/scripts.h: Regenerated.
43596         * lib/unictype/scripts_byname.gperf: Regenerated.
43597         * lib/unictype/sy_java_ident.h: Regenerated.
43598         * lib/unilbrk/lbrkprop1.h: Regenerated.
43599         * lib/unilbrk/lbrkprop2.h: Regenerated.
43600         * tests/unictype/test-categ_C.c: Regenerated.
43601         * tests/unictype/test-categ_Cf.c: Regenerated.
43602         * tests/unictype/test-categ_Cn.c: Regenerated.
43603         * tests/unictype/test-categ_L.c: Regenerated.
43604         * tests/unictype/test-categ_Ll.c: Regenerated.
43605         * tests/unictype/test-categ_Lm.c: Regenerated.
43606         * tests/unictype/test-categ_Lo.c: Regenerated.
43607         * tests/unictype/test-categ_Lu.c: Regenerated.
43608         * tests/unictype/test-categ_M.c: Regenerated.
43609         * tests/unictype/test-categ_Mc.c: Regenerated.
43610         * tests/unictype/test-categ_Me.c: Regenerated.
43611         * tests/unictype/test-categ_Mn.c: Regenerated.
43612         * tests/unictype/test-categ_N.c: Regenerated.
43613         * tests/unictype/test-categ_Nd.c: Regenerated.
43614         * tests/unictype/test-categ_Nl.c: Regenerated.
43615         * tests/unictype/test-categ_No.c: Regenerated.
43616         * tests/unictype/test-categ_P.c: Regenerated.
43617         * tests/unictype/test-categ_Pd.c: Regenerated.
43618         * tests/unictype/test-categ_Pe.c: Regenerated.
43619         * tests/unictype/test-categ_Pf.c: Regenerated.
43620         * tests/unictype/test-categ_Pi.c: Regenerated.
43621         * tests/unictype/test-categ_Po.c: Regenerated.
43622         * tests/unictype/test-categ_Ps.c: Regenerated.
43623         * tests/unictype/test-categ_S.c: Regenerated.
43624         * tests/unictype/test-categ_Sk.c: Regenerated.
43625         * tests/unictype/test-categ_Sm.c: Regenerated.
43626         * tests/unictype/test-categ_So.c: Regenerated.
43627         * tests/unictype/test-ctype_alnum.c: Regenerated.
43628         * tests/unictype/test-ctype_alpha.c: Regenerated.
43629         * tests/unictype/test-ctype_graph.c: Regenerated.
43630         * tests/unictype/test-ctype_lower.c: Regenerated.
43631         * tests/unictype/test-ctype_print.c: Regenerated.
43632         * tests/unictype/test-ctype_punct.c: Regenerated.
43633         * tests/unictype/test-ctype_upper.c: Regenerated.
43634         * tests/unictype/test-decdigit.h: Regenerated.
43635         * tests/unictype/test-digit.h: Regenerated.
43636         * tests/unictype/test-numeric.h: Regenerated.
43637         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43638         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43639         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43640         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43641         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43642         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43643         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43644         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43645         * tests/unictype/test-pr_combining.c: Regenerated.
43646         * tests/unictype/test-pr_dash.c: Regenerated.
43647         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43648         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43649         * tests/unictype/test-pr_deprecated.c: Regenerated.
43650         * tests/unictype/test-pr_diacritic.c: Regenerated.
43651         * tests/unictype/test-pr_extender.c: Regenerated.
43652         * tests/unictype/test-pr_format_control.c: Regenerated.
43653         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43654         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43655         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43656         * tests/unictype/test-pr_id_continue.c: Regenerated.
43657         * tests/unictype/test-pr_id_start.c: Regenerated.
43658         * tests/unictype/test-pr_ideographic.c: Regenerated.
43659         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43660         * tests/unictype/test-pr_lowercase.c: Regenerated.
43661         * tests/unictype/test-pr_math.c: Regenerated.
43662         * tests/unictype/test-pr_numeric.c: Regenerated.
43663         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43664         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43665         Regenerated.
43666         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43667         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43668         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43669         * tests/unictype/test-pr_other_math.c: Regenerated.
43670         * tests/unictype/test-pr_punctuation.c: Regenerated.
43671         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43672         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43673         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43674         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43675         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43676         * tests/unictype/test-pr_uppercase.c: Regenerated.
43677         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43678         * tests/unictype/test-pr_xid_start.c: Regenerated.
43679         * tests/unictype/test-pr_zero_width.c: Regenerated.
43680
43681         Update to Unicode 5.1.0.
43682         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43683         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43684         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43685         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43686         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43687         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43688         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43689         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43690         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43691         (nonspacing_table_ind): Update.
43692         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43693
43694         Update to Unicode 5.1.0.
43695         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43696         code transform.
43697         * lib/uniname/uniname.c (unicode_character_name,
43698         unicode_name_character): Add the range 0x1Fxxx to the code transform.
43699         * lib/uniname/uninames.h: Regenerated.
43700         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
43701
43702 2009-02-07  Bruno Haible  <bruno@clisp.org>
43703
43704         Merge gen-ctype and gen-lbrk into a single program.
43705         * lib/gen-uni-tables.c: New file, incorporating
43706         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
43707         Add directory prefixes to the names of the generated files.
43708         * lib/unictype/gen-ctype.c: Remove file.
43709         * lib/unilbrk/gen-lbrk.c: Remove file.
43710         * modules/gen-uni-tables: New file.
43711         * modules/unictype/gen-ctype: Remove file.
43712         * modules/unilbrk/gen-lbrk: Remove file.
43713
43714 2009-02-07  Bruno Haible  <bruno@clisp.org>
43715
43716         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
43717
43718         New module 'unistr/u32-strcoll'.
43719         * modules/unistr/u32-strcoll: New file.
43720         * lib/unistr/u32-strcoll.c: New file.
43721
43722         New module 'unistr/u16-strcoll'.
43723         * modules/unistr/u16-strcoll: New file.
43724         * lib/unistr/u16-strcoll.c: New file.
43725
43726         New module 'unistr/u8-strcoll'.
43727         * modules/unistr/u8-strcoll: New file.
43728         * lib/unistr/u8-strcoll.c: New file.
43729         * lib/unistr/u-strcoll.h: New file.
43730
43731 2009-02-07  Bruno Haible  <bruno@clisp.org>
43732
43733         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
43734         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43735         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43736         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
43737         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
43738         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
43739
43740 2009-02-07  Bruno Haible  <bruno@clisp.org>
43741
43742         Make 64-bit clean.
43743         * lib/unictype/gen-ctype.c (output_predicate, output_category,
43744         output_combclass, output_bidi_category, output_decimal_digit,
43745         output_digit, output_numeric, output_mirror, output_scripts,
43746         output_ident_category): Use proper width specifier in format strings.
43747
43748 2009-02-07  Bruno Haible  <bruno@clisp.org>
43749
43750         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
43751         failure behaviour.
43752
43753 2009-02-07  Jim Meyering  <meyering@redhat.com>
43754
43755         regex: avoid compilation failure with upcoming gcc-4.4
43756         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43757         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43758         "... error: integer overflow in preprocessor expression".
43759
43760 2009-02-05  Ben Pfaff  <blp@gnu.org>
43761
43762         Fix link errors on Windows when close module is used.
43763         * modules/close: Add $(LIB_CLOSE) to Link section.
43764         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43765         $(LIB_CLOSE) on Windows.
43766
43767 2009-02-05  Jim Meyering  <meyering@redhat.com>
43768
43769         still avoid unused-parameter warnings, but do it cleanly
43770         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
43771         (get_fs_usage): Cast to void instead.
43772         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
43773         (dev_from_mount_options, read_file_system_list): Cast to void.
43774         Prompted by Bruno Haible.
43775
43776 2009-02-04  Jim Meyering  <meyering@redhat.com>
43777
43778         fsusage.c: correct copyright year
43779         * lib/fsusage.c: Reflect year in which the change is pushed into
43780
43781         avoid misc. warnings
43782         * lib/fsusage.c (UNUSED_PARAM): Define.
43783         (get_fs_usage): Mark parameter "disk" as unused.
43784         * lib/getugroups.c (getgrent): Use "void" in prototype.
43785         * lib/mountlist.c: Mark unused parameters.
43786         (read_file_system_list): Declare a local with "const".
43787         * lib/nanosleep.c (getnow): Declare static.
43788         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43789
43790         dirfd: set errno upon failure
43791         * lib/dirfd.c: Include <errno.h>.
43792         Set errno to ENOTSUP when returning -1.
43793         * modules/dirfd (Depends-on): Add errno.
43794         Suggested by John Kodis <kodis@comcast.net>.
43795
43796 2009-02-01  Bruno Haible  <bruno@clisp.org>
43797
43798         Don't assume sizeof (long) >= sizeof (void *).
43799         * lib/memcmp.c: Include stdint.h.
43800         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43801         srcp2 to 'const byte *'.
43802         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43803         types to uintptr_t.
43804         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43805         * modules/memcmp (Depends-on): Add stdint.
43806         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43807
43808 2009-01-30  Eric Blake  <ebb9@byu.net>
43809
43810         fix more require-before-expand issues
43811         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43812         expand, AC_PROG_AWK.
43813         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43814
43815 2009-01-28  Eric Blake  <ebb9@byu.net>
43816
43817         version-etc: use consistent URL formatting
43818         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43819         Improve formatting.  Use fputs for string without %.
43820
43821 2009-01-28  Jim Meyering  <meyering@redhat.com>
43822
43823         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43824         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43825         "underquoted definition of NAME" from autoconf-2.59.
43826
43827 2009-01-28  Bruno Haible  <bruno@clisp.org>
43828
43829         * doc/gnulib.texi: Add "Obsolete modules" to index.
43830
43831 2009-01-28  Jim Meyering  <meyering@redhat.com>
43832
43833         useless-if-before-free: recognize more variants
43834         * build-aux/useless-if-before-free: Also recognize e.g.,
43835         if (NULL != p) free (p);
43836
43837 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43838
43839         test-getaddrinfo: skip (don't fail) this test when there's no network
43840         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43841         on the presumption that it means you lack network access.
43842
43843 2009-01-26  Jim Meyering  <meyering@redhat.com>
43844
43845         fflush: avoid warnings on modern systems
43846         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43847         pos and result, into scopes where they're used.
43848
43849 2009-01-26  Eric Blake  <ebb9@byu.net>
43850
43851         Silence warning reintroduced by recent extensions patch.
43852         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43853         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43854         autoconf.
43855
43856         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43857         * m4/00gnulib.m4: New file.
43858         * gnulib-tool (func_get_filelist): Always use it.
43859         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43860         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43861
43862 2009-01-25  Bruno Haible  <bruno@clisp.org>
43863
43864         Make test-quotearg work on MacOS X and AIX.
43865         * tests/test-quotearg.sh: New file.
43866         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43867         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43868         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43869         include <libintl.h>.
43870         (fake_locale): Remove variable.
43871         (gettext, dgettext, dcgettext): Remove functions.
43872         (main): Instead of setting a fake locale, set a real locale. Call
43873         textdomain and bindtextdomain.
43874         * modules/quotearg-tests (Files): Add the new files.
43875         (Depends-on): Add gettext, setenv, unsetenv.
43876         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43877         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43878         Augment TESTS_ENVIRONMENT.
43879
43880 2009-01-25  Bruno Haible  <bruno@clisp.org>
43881
43882         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43883         fr_FR.ISO8859-1 locale on MacOS X.
43884         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43885         ja_JP.eucJP locale on MacOS X.
43886         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43887         zh_CN.GB18030 locale on MacOS X.
43888
43889 2009-01-25  Bruno Haible  <bruno@clisp.org>
43890
43891         Avoid link errors on MacOS X 10.3.
43892         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43893         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43894
43895 2009-01-25  Bruno Haible  <bruno@clisp.org>
43896
43897         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43898         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43899         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43900         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43901         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43902         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43903         posix_spawnattr_init, posix_spawnattr_setsigmask,
43904         posix_spawnattr_setflags, posix_spawnattr_destroy.
43905
43906         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43907         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43908         * modules/execute (Files): Remove m4/posix_spawn.m4.
43909         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43910         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43911         posix_spawnattr_init, posix_spawnattr_setsigmask,
43912         posix_spawnattr_setflags, posix_spawnattr_destroy.
43913
43914 2009-01-25  Bruno Haible  <bruno@clisp.org>
43915
43916         * lib/glthread/threadlib.c: Include <stdlib.h>.
43917
43918 2009-01-25  Bruno Haible  <bruno@clisp.org>
43919
43920         * lib/glthread/threadlib.c (dummy): New declaration.
43921
43922 2009-01-25  Bruno Haible  <bruno@clisp.org>
43923
43924         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43925         multibyte characters also for the GB18030 encoding. Don't crash when
43926         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43927
43928 2009-01-25  Bruno Haible  <bruno@clisp.org>
43929
43930         Avoid redefining 'struct random_data' on OSF/1 5.1.
43931         * lib/stdlib.in.h: Include <random.h> if it exists.
43932         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43933         HAVE_RANDOM_H. Include <random.h> when testing whether
43934         'struct random_data' exists.
43935         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43936
43937 2009-01-25  Bruno Haible  <bruno@clisp.org>
43938
43939         Don't install charset.alias on MacOS X >= 10.3.
43940         * lib/localcharset.c (DARWIN7): New macro.
43941         (get_charset_aliases): Hardcode the result for Darwin7.
43942         * modules/localcharset (install-exec-local): Don't install
43943         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43944
43945 2009-01-25  Bruno Haible  <bruno@clisp.org>
43946
43947         Don't install charset.alias on mingw and Cygwin.
43948         * modules/localcharset (install-exec-local): Don't install
43949         charset.alias on mingw and Cygwin, if the file does not yet exist.
43950         The result for these platforms is hardcoded in localcharset.c.
43951
43952 2009-01-25  Bruno Haible  <bruno@clisp.org>
43953
43954         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43955         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43956         before requiring AC_USE_SYSTEM_EXTENSIONS.
43957
43958 2009-01-25  Jim Meyering  <meyering@redhat.com>
43959
43960         c-strtod: avoid warnings
43961         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43962         "assignment discards qualifiers from pointer target type" warnings.
43963
43964 2009-01-24  Bruno Haible  <bruno@clisp.org>
43965
43966         Add support for non-UTF-8 locales on MacOS X.
43967         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43968         canonical encodings. For Darwin 7 and newer, don't map traditional
43969         encodings to UTF-8.
43970         Reported by Vincent Lefevre <vincent@vinc17.org>
43971         at <http://savannah.gnu.org/bugs/?25235>.
43972
43973 2009-01-24  Bruno Haible  <bruno@clisp.org>
43974
43975         * doc/gnulib.texi (Obsolete modules): New section.
43976         Reported by Mike Frysinger <vapier@gentoo.org>.
43977
43978 2009-01-24  Bruno Haible  <bruno@clisp.org>
43979
43980         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43981         (%.dvi): New rule.
43982
43983 2009-01-24  Bruno Haible  <bruno@clisp.org>
43984
43985         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43986         Reported by Eric Blake.
43987
43988 2009-01-24  Bruno Haible  <bruno@clisp.org>
43989
43990         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43991         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43992         Reported by Gary V. Vaughan <gary@gnu.org>.
43993
43994 2009-01-24  Bruno Haible  <bruno@clisp.org>
43995
43996         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43997
43998 2009-01-23  Bruno Haible  <bruno@clisp.org>
43999
44000         Make c-strtod, c-strtold usable in libraries.
44001         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44002         (C_STRTOD): Call strdup instead of xstrdup.
44003         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44004         * modules/c-strtold (Depends-on): Likewise.
44005         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44006         * NEWS: Mention the change.
44007         Reported by Michael Gold <mgold@ncf.ca>.
44008
44009 2009-01-23  Jim Meyering  <meyering@redhat.com>
44010
44011         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44012         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44013         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44014
44015 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44016
44017         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44018         GNU CoreUtils.
44019         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44020         * modules/version-etc (Description): Update.
44021
44022 2009-01-22  Bruno Haible  <bruno@clisp.org>
44023
44024         Cache the C locale object.
44025         * lib/c-strtod.c (c_locale_cache): New variable.
44026         (c_locale): New function.
44027         (C_STRTOD): Use it, and don't call freelocale.
44028         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44029         Suggested by Paolo Bonzini.
44030
44031 2009-01-21  Bruno Haible  <bruno@clisp.org>
44032
44033         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44034         conditions other than overflow.
44035
44036 2009-01-21  Bruno Haible  <bruno@clisp.org>
44037
44038         * lib/c-strtod.c: Include errno.h.
44039         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44040         value from STRTOD_L and STRTOD.
44041
44042 2009-01-21  Bruno Haible  <bruno@clisp.org>
44043         and Jim Meyering  <meyering@redhat.com>
44044
44045         nanosleep: skip configure test (fail it) for apple universal builds
44046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44047         universal builds, assume that nanosleep does not work.
44048         * modules/nanosleep (Depends-on): Add multiarch.
44049
44050         mktime: skip configure test (fail it) for apple universal builds
44051         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44052         universal builds, assume that mktime does not work.
44053         * modules/mktime (Depends-on): Add multiarch.
44054
44055 2009-01-21  Eric Blake  <ebb9@byu.net>
44056
44057         multiarch: avoid expand-before-require warning
44058         * modules/multiarch (configure.ac): Require, rather than expand,
44059         gl_MULTIARCH.
44060         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44061         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44062         enforce that all clients require it.  Partial reversion of
44063         2008-12-29 patch.
44064
44065         error: avoid expand-before-require warning
44066         * modules/errno (configure.ac): Require, rather than expand,
44067         gl_HEADER_ERRNO_H.
44068         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44069         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44070         enforce that all clients require it.
44071
44072         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44073         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44074         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44075         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44076
44077 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44078
44079         Revert:
44080         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44081
44082         regex: do not depend on obsolete modules.
44083         * modules/regex: Remove memcmp and memmove.
44084
44085 2009-01-20  Bruno Haible  <bruno@clisp.org>
44086
44087         Make the 'link' module link on Windows NT 4.
44088         * lib/link.c (_WIN32_WINNT): Don't define.
44089         (CreateHardLinkFuncType): New type.
44090         (CreateHardLinkFunc, initialized): New variables.
44091         (initialize): New function.
44092         (link): Invoke CreateHardLink indirectly through the function pointer.
44093
44094 2009-01-20  Bruno Haible  <bruno@clisp.org>
44095
44096         Fix compilation failure on mingw.
44097         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44098
44099 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44100
44101         * doc/c-strtod.texi: Mention a couple of restrictions.
44102
44103 2009-01-20  Jim Meyering  <meyering@redhat.com>
44104
44105         gettimeofday: move more declarations out of functions
44106         * lib/gettimeofday.c: Move extern declarations of tzset and
44107         gmtime out of containing functions.  Prompted by Bruno Haible.
44108
44109 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44110
44111         regex: do not depend on obsolete modules.
44112         * modules/regex: Remove memcmp and memmove.
44113
44114 2009-01-19  Bruno Haible  <bruno@clisp.org>
44115
44116         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44117         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44118         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44119         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44120         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44121
44122 2009-01-19  Bruno Haible  <bruno@clisp.org>
44123
44124         * tests/test-link.c: Include <errno.h>.
44125         (main): Exit with code 77 when a hard link cannot be created due to
44126         the file system.
44127         * tests/test-link.sh: Skip test when a hard link cannot be created due
44128         to the file system.
44129         Suggested by Eric Blake.
44130
44131 2009-01-19  Martin Lambers  <marlam@marlam.de>
44132
44133         * modules/link-tests: New file.
44134         * tests/test-link.sh: New file.
44135         * tests/test-link.c: New file.
44136
44137 2009-01-19  Eric Blake  <ebb9@byu.net>
44138
44139         doc: mention another function added in cygwin 1.7.0
44140         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44141         Another new function in cygwin 1.7.
44142
44143 2009-01-19  Bruno Haible  <bruno@clisp.org>
44144
44145         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44146         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44147         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44148         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44149         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44150         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44151         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44152         * m4/md4.m4 (gl_MD4): Likewise.
44153         * m4/md5.m4 (gl_MD5): Likewise.
44154         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44155         * m4/sha1.m4 (gl_SHA1): Likewise.
44156         * m4/sha256.m4 (gl_SHA256): Likewise.
44157         * m4/sha512.m4 (gl_SHA512): Likewise.
44158
44159 2009-01-19  Bruno Haible  <bruno@clisp.org>
44160
44161         * modules/uniname/uniname-tests (Depends-on): Add progname.
44162         * tests/uniname/test-uninames.c: Include progname.h.
44163         (main): Call set_program_name.
44164
44165         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44166         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44167         (main): Call set_program_name.
44168
44169         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44170         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44171         (main): Call set_program_name.
44172
44173         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44174         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44175         (main): Call set_program_name.
44176
44177         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44178         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44179         (main): Call set_program_name.
44180
44181         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44182         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44183         (main): Call set_program_name.
44184
44185         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44186         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44187         (main): Call set_program_name.
44188
44189         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44190         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44191         (main): Call set_program_name.
44192
44193         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44194         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44195         (main): Call set_program_name.
44196
44197 2009-01-19  Eric Blake  <ebb9@byu.net>
44198
44199         test-unistd: test previous patch
44200         * tests/test-unistd.c: Test *_FILENO macros.
44201
44202         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44203         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44204         Guarantee a definition.
44205         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44206         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44207         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44208         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44209         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44210         Likewise.
44211         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44212         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44213         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44214         Likewise.
44215         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44216         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44217         (STDERR_FILENO): Likewise.
44218         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44219         (STDERR_FILENO): Likewise.
44220         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44221         (STDERR_FILENO): Likewise.
44222         Reported by Elbert Pol.
44223
44224 2009-01-19  Eric Blake  <ebb9@byu.net>
44225
44226         doc: mention more functions added in cygwin 1.7.0
44227         * doc/posix-functions/abort.texi (abort): Update wording related
44228         to cygwin.
44229         * doc/posix-functions/daylight.texi (daylight): Likewise.
44230         * doc/posix-functions/optarg.texi (optarg): Likewise.
44231         * doc/posix-functions/optarg.texi (opterr): Likewise.
44232         * doc/posix-functions/optarg.texi (optind): Likewise.
44233         * doc/posix-functions/optarg.texi (optopt): Likewise.
44234         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44235         worked in 1.5.x, and was withdrawn in 1.7.
44236         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44237         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44238         cygwin versions.
44239         * doc/posix-functions/perror.texi (perror): Likewise.
44240         * doc/posix-functions/printf.texi (printf): Likewise.
44241         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44242         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44243         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44244         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44245         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44246         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44247         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44248         Likewise.
44249         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44250         Likewise.
44251         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44252         this function.
44253         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44254         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44255         Likewise.
44256         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44257         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44258         * doc/posix-functions/confstr.texi (confstr): Likewise.
44259         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44260         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44261         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44262         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44263         * doc/posix-functions/fputws.texi (fputws): Likewise.
44264         * doc/posix-functions/fwide.texi (fwide): Likewise.
44265         * doc/posix-functions/getwc.texi (getwc): Likewise.
44266         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44267         * doc/posix-functions/putwc.texi (putwc): Likewise.
44268         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44269         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44270         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44271         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44272         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44273         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44274         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44275         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44276         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44277         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44278         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44279
44280 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44281
44282         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44283         * lib/ioctl.c: Include <sys/ioctl.h>.
44284
44285 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44286
44287         * modules/getdate-tests (Depends-on): Add progname.
44288         * tests/test-getdate.c: Use progname module, to avoid link errors
44289         on non-glibc systems.
44290
44291 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44292
44293         * modules/filenamecat-tests (Depends-on): Add progname.
44294         * modules/fstrcmp-tests (Depends-on): Likewise.
44295
44296         * tests/test-filenamecat.c: Use progname module, to avoid link
44297         errors on non-glibc systems.
44298         * tests/test-fstrcmp.c: Likewise.
44299
44300 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44301
44302         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44303         * lib/gettimeofday.c: Move extern declaration out of function.
44304
44305 2009-01-18  Bruno Haible  <bruno@clisp.org>
44306
44307         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44308         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44309         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44310
44311 2009-01-18  Bruno Haible  <bruno@clisp.org>
44312
44313         * lib/strftime.c (MEMPCPY): Remove unused macro.
44314         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44315
44316 2009-01-18  Martin Lambers  <marlam@marlam.de>
44317
44318         New module 'link'.
44319         * lib/unistd.in.h (link): New declaration.
44320         * lib/link.c: New file.
44321         * m4/link.m4: New file.
44322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44323         HAVE_LINK.
44324         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44325         * modules/link: New file.
44326         * doc/posix-functions/link.texi: Mention the new module.
44327
44328 2009-01-18  Bruno Haible  <bruno@clisp.org>
44329
44330         * tests/test-avltree_list.c (main): Call set_program_name.
44331         * tests/test-avltree_oset.c (main): Likewise.
44332         * tests/test-obstack-printf.c: Include progname.h.
44333         (main): Call set_program_name.
44334         * tests/test-quotearg.c: Include progname.h.
44335         (main): Call set_program_name.
44336         * tests/test-xmemdup0.c: Include progname.h.
44337         (main): Call set_program_name.
44338
44339 2009-01-18  Bruno Haible  <bruno@clisp.org>
44340
44341         New module 'alphasort'.
44342         * lib/dirent.in.h (alphasort): New declaration.
44343         * lib/alphasort.c: New file, from glibc with modifications.
44344         * m4/alphasort.m4: New file.
44345         * modules/alphasort: New file.
44346         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44347         HAVE_ALPHASORT.
44348         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44349         HAVE_ALPHASORT.
44350         * doc/posix-functions/alphasort.texi: Mention the new module and the
44351         portability problems.
44352
44353 2009-01-18  Bruno Haible  <bruno@clisp.org>
44354
44355         New module 'scandir'.
44356         * lib/dirent.in.h (scandir): New declaration.
44357         * lib/scandir.c: New file, from glibc with modifications.
44358         * m4/scandir.m4: New file.
44359         * modules/scandir: New file.
44360         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44361         HAVE_SCANDIR.
44362         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44363         HAVE_SCANDIR.
44364         * doc/posix-functions/scandir.texi: Mention the new module and the
44365         portability problems.
44366
44367 2009-01-17  Bruno Haible  <bruno@clisp.org>
44368
44369         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44370         Update documentation.
44371         (func_remove_suffix): Escape all dots in the suffix. Update
44372         documentation.
44373         (func_filter_filelist): Update documentation.
44374         Reported by Ralf Wildenhues.
44375
44376 2009-01-17  Bruno Haible  <bruno@clisp.org>
44377
44378         * modules/dprintf-posix-tests: New file.
44379         * tests/test-dprintf-posix.sh: New file.
44380         * tests/test-dprintf-posix.c: New file.
44381
44382         New modules 'dprintf', 'dprintf-posix'.
44383         * lib/stdio.in.h (dprintf): New declaration.
44384         * lib/dprintf.c: New file.
44385         * m4/dprintf.m4: New file.
44386         * m4/dprintf-posix.m4: New file.
44387         * modules/dprintf: New file.
44388         * modules/dprintf-posix: New file.
44389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44390         HAVE_DPRINTF, REPLACE_DPRINTF.
44391         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44392         HAVE_DPRINTF, REPLACE_DPRINTF.
44393         * doc/posix-functions/dprintf.texi: Mention the new modules.
44394
44395 2009-01-17  Bruno Haible  <bruno@clisp.org>
44396
44397         * modules/vdprintf-posix-tests: New file.
44398         * tests/test-vdprintf-posix.sh: New file.
44399         * tests/test-vdprintf-posix.c: New file.
44400
44401         New modules 'vdprintf', 'vdprintf-posix'.
44402         * lib/stdio.in.h (vdprintf): New declaration.
44403         * lib/vdprintf.c: New file.
44404         * m4/vdprintf.m4: New file.
44405         * m4/vdprintf-posix.m4: New file.
44406         * modules/vdprintf: New file.
44407         * modules/vdprintf-posix: New file.
44408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44409         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44410         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44411         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44412         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44413
44414 2009-01-17  Bruno Haible  <bruno@clisp.org>
44415
44416         Fix replacement of fopen on mingw.
44417         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44418         mingw.
44419
44420 2009-01-17  Bruno Haible  <bruno@clisp.org>
44421
44422         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44423         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44424
44425 2009-01-17  Bruno Haible  <bruno@clisp.org>
44426
44427         Avoid test-fflush2.sh failure on mingw.
44428         * tests/test-fflush2.c: Include binary-io.h.
44429         (main): Put standard input into binary mode.
44430         * modules/fflush-tests (Depends-on): Add binary-io.
44431
44432 2009-01-17  Bruno Haible  <bruno@clisp.org>
44433
44434         * lib/wchar.in.h: In another particular situation, include only the
44435         system's <wchar.h> file.
44436         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44437         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44438         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44439
44440 2009-01-17  Bruno Haible  <bruno@clisp.org>
44441
44442         Support for stripping executables in --enable-relocatable.
44443         * build-aux/install-reloc: Expect one more argument, or an environment
44444         variable RELOC_STRIP_PROG. If set, strip the destination program and
44445         its wrapper.
44446         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44447         RELOC_STRIP_PROG.
44448         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44449         to set RELOCATABLE_STRIP.
44450         * NEWS: Mention the new Makefile requirement.
44451
44452 2009-01-17  Bruno Haible  <bruno@clisp.org>
44453
44454         * build-aux/install-reloc: Remove debugging information left over by
44455         C compiler on MacOS X.
44456
44457 2009-01-17  Bruno Haible  <bruno@clisp.org>
44458
44459         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44460         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44461         _NSGetExecutablePath.
44462
44463 2009-01-16  Jim Meyering  <meyering@redhat.com>
44464
44465         strerror: avoid warnings about discarding "const"
44466         * lib/strerror.c (rpl_strerror): Instead of returning a const
44467         string from each and every "case", use a variable, and add a single
44468         cast after the switch.
44469
44470 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44471
44472         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44473
44474 2009-01-16  Bruno Haible  <bruno@clisp.org>
44475
44476         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44477         array initializer syntax that also works in C++ mode.
44478         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44479
44480 2009-01-16  Jim Meyering  <meyering@redhat.com>
44481
44482         poll: suppress a warning
44483         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44484         to ignore "...unsigned expression < 0 is always false" warnings.
44485
44486 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44487
44488         poll: remove declarations of unused variables
44489         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44490         sockbuf and optlen.
44491
44492 2009-01-15  Bruno Haible  <bruno@clisp.org>
44493
44494         Make fflush-after-ungetc POSIX compliant on BSD systems.
44495         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44496         (clear_ungetc_buffer): Implement also for other systems.
44497         (rpl_fflush): On glibc systems, invoke
44498         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44499         clear_ungetc_buffer after fetching the stream's position, not before.
44500
44501 2009-01-15  Bruno Haible  <bruno@clisp.org>
44502
44503         Make fflush-after-ungetc POSIX compliant on glibc systems.
44504         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44505         after ungetc.
44506         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44507         (rpl_fflush): On glibc systems, simply call the system's fflush
44508         function after clearing the ungetc buffer.
44509         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44510         Instead, lseek only to the end of file, then use the system's fseeko
44511         for the rest. On glibc systems, reset the EOF indicator bit.
44512
44513 2009-01-15  Jim Meyering  <meyering@redhat.com>
44514
44515         openmp.m4: revert quote-adding change, for portability to older autoconf
44516         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44517         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44518         Simon Josefsson noticed the problem when using autoconf-2.61.
44519
44520 2009-01-15  Bruno Haible  <bruno@clisp.org>
44521
44522         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44523         * tests/test-fflush2.c (ASSERT): Always fail.
44524         (main): Add two tests for fflush() after ungetc(), taking into account
44525         the Austin Group's clarification.
44526         Suggested by Eric Blake.
44527
44528 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44529
44530         mktime.m4: remove K&R-style function prototypes
44531         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44532         for the Sun C++ compiler.
44533
44534 2009-01-14  Bruno Haible  <bruno@clisp.org>
44535
44536         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44537         while including <wchar.h>.
44538         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44539         the system's <wchar.h> file.
44540         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44541
44542 2009-01-14  Bruno Haible  <bruno@clisp.org>
44543
44544         * m4/csharp.m4: Don't mention gettext on the serial number line.
44545         * m4/csharpexec.m4: Likewise.
44546         * m4/eaccess.m4: Likewise.
44547         * m4/javaexec.m4: Likewise.
44548         * m4/sig_atomic_t.m4: Likewise.
44549         * m4/tmpdir.m4: Likewise.
44550         * m4/intldir.m4: Bump gettext version.
44551         * m4/lib-ld.m4: Likewise.
44552
44553 2009-01-14  Bruno Haible  <bruno@clisp.org>
44554
44555         * lib/progname.c (set_program_name): Add more comments.
44556         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44557
44558 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44559
44560         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44561         were sys/stat.h does not define it.
44562
44563 2009-01-14  Jim Meyering  <meyering@redhat.com>
44564
44565         many *.m4 files: improve m4 quoting
44566         99% of this change was performed by running the following commands:
44567         git ls-files | grep '\.m4$' | xargs perl -pi \
44568           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44569           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44570           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44571           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44572         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44573         The remainder were to add Copyright dates, increment serial numbers,
44574         undo some changes in comments, exclude m4/intl.m4, and add quotes
44575         around the "1" in ",1" where the unusual spacing prohibited the
44576         above regexps from doing the job.  For more details, see
44577         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44578         * m4/acl.m4: Modified.
44579         * m4/afs.m4: Likewise.
44580         * m4/alloca.m4: Likewise.
44581         * m4/argp.m4: Likewise.
44582         * m4/argz.m4: Likewise.
44583         * m4/atexit.m4: Likewise.
44584         * m4/bison-i18n.m4: Likewise.
44585         * m4/bison.m4: Likewise.
44586         * m4/byteswap.m4: Likewise.
44587         * m4/c-stack.m4: Likewise.
44588         * m4/c-strtod.m4: Likewise.
44589         * m4/calloc.m4: Likewise.
44590         * m4/canonicalize-lgpl.m4: Likewise.
44591         * m4/chown.m4: Likewise.
44592         * m4/clock_time.m4: Likewise.
44593         * m4/codeset.m4: Likewise.
44594         * m4/copy-file.m4: Likewise.
44595         * m4/csharp.m4: Likewise.
44596         * m4/csharpcomp.m4: Likewise.
44597         * m4/csharpexec.m4: Likewise.
44598         * m4/d-ino.m4: Likewise.
44599         * m4/d-type.m4: Likewise.
44600         * m4/dirfd.m4: Likewise.
44601         * m4/double-slash-root.m4: Likewise.
44602         * m4/eaccess.m4: Likewise.
44603         * m4/eealloc.m4: Likewise.
44604         * m4/environ.m4: Likewise.
44605         * m4/errno_h.m4: Likewise.
44606         * m4/euidaccess.m4: Likewise.
44607         * m4/execute.m4: Likewise.
44608         * m4/fatal-signal.m4: Likewise.
44609         * m4/fchdir.m4: Likewise.
44610         * m4/fcntl_h.m4: Likewise.
44611         * m4/fileblocks.m4: Likewise.
44612         * m4/filenamecat.m4: Likewise.
44613         * m4/findprog.m4: Likewise.
44614         * m4/flexmember.m4: Likewise.
44615         * m4/fnmatch.m4: Likewise.
44616         * m4/fopen.m4: Likewise.
44617         * m4/fpending.m4: Likewise.
44618         * m4/fprintf-posix.m4: Likewise.
44619         * m4/free.m4: Likewise.
44620         * m4/frexp.m4: Likewise.
44621         * m4/frexpl.m4: Likewise.
44622         * m4/fsusage.m4: Likewise.
44623         * m4/ftruncate.m4: Likewise.
44624         * m4/gc-camellia.m4: Likewise.
44625         * m4/gc-random.m4: Likewise.
44626         * m4/gc.m4: Likewise.
44627         * m4/getaddrinfo.m4: Likewise.
44628         * m4/getcwd-abort-bug.m4: Likewise.
44629         * m4/getcwd-path-max.m4: Likewise.
44630         * m4/getdate.m4: Likewise.
44631         * m4/getdomainname.m4: Likewise.
44632         * m4/getgroups.m4: Likewise.
44633         * m4/gethostname.m4: Likewise.
44634         * m4/gethrxtime.m4: Likewise.
44635         * m4/getline.m4: Likewise.
44636         * m4/getloadavg.m4: Likewise.
44637         * m4/getndelim2.m4: Likewise.
44638         * m4/getpass.m4: Likewise.
44639         * m4/gettext.m4: Likewise.
44640         * m4/gettime.m4: Likewise.
44641         * m4/gettimeofday.m4: Likewise.
44642         * m4/gnulib-common.m4: Likewise.
44643         * m4/group-member.m4: Likewise.
44644         * m4/host-os.m4: Likewise.
44645         * m4/iconv.m4: Likewise.
44646         * m4/iconv_open.m4: Likewise.
44647         * m4/inet_ntop.m4: Likewise.
44648         * m4/inet_pton.m4: Likewise.
44649         * m4/inline.m4: Likewise.
44650         * m4/intldir.m4: Likewise.
44651         * m4/intlmacosx.m4: Likewise.
44652         * m4/intmax.m4: Likewise.
44653         * m4/intmax_t.m4: Likewise.
44654         * m4/inttypes.m4: Likewise.
44655         * m4/inttypes_h.m4: Likewise.
44656         * m4/inttypes-pri.m4: Likewise.
44657         * m4/isapipe.m4: Likewise.
44658         * m4/isnand.m4: Likewise.
44659         * m4/isnanf.m4: Likewise.
44660         * m4/isnanl.m4: Likewise.
44661         * m4/javacomp.m4: Likewise.
44662         * m4/javaexec.m4: Likewise.
44663         * m4/jm-winsz1.m4: Likewise.
44664         * m4/jm-winsz2.m4: Likewise.
44665         * m4/lchown.m4: Likewise.
44666         * m4/lcmessage.m4: Likewise.
44667         * m4/ldexpl.m4: Likewise.
44668         * m4/lib-ld.m4: Likewise.
44669         * m4/lib-link.m4: Likewise.
44670         * m4/libsigsegv.m4: Likewise.
44671         * m4/link-follow.m4: Likewise.
44672         * m4/localcharset.m4: Likewise.
44673         * m4/locale-fr.m4: Likewise.
44674         * m4/locale-ja.m4: Likewise.
44675         * m4/locale-tr.m4: Likewise.
44676         * m4/locale-zh.m4: Likewise.
44677         * m4/lock.m4: Likewise.
44678         * m4/longlong.m4: Likewise.
44679         * m4/ls-mntd-fs.m4: Likewise.
44680         * m4/lstat.m4: Likewise.
44681         * m4/malloc.m4: Likewise.
44682         * m4/mathl.m4: Likewise.
44683         * m4/mbrtowc.m4: Likewise.
44684         * m4/mbstate_t.m4: Likewise.
44685         * m4/mbswidth.m4: Likewise.
44686         * m4/memchr.m4: Likewise.
44687         * m4/memcmp.m4: Likewise.
44688         * m4/memcpy.m4: Likewise.
44689         * m4/memmem.m4: Likewise.
44690         * m4/memmove.m4: Likewise.
44691         * m4/mempcpy.m4: Likewise.
44692         * m4/memrchr.m4: Likewise.
44693         * m4/memset.m4: Likewise.
44694         * m4/minmax.m4: Likewise.
44695         * m4/mkdir-slash.m4: Likewise.
44696         * m4/mkdtemp.m4: Likewise.
44697         * m4/mktime.m4: Likewise.
44698         * m4/mmap-anon.m4: Likewise.
44699         * m4/mountlist.m4: Likewise.
44700         * m4/nanosleep.m4: Likewise.
44701         * m4/nls.m4: Likewise.
44702         * m4/nocrash.m4: Likewise.
44703         * m4/open.m4: Likewise.
44704         * m4/openat.m4: Likewise.
44705         * m4/openmp.m4: Likewise.
44706         * m4/pathmax.m4: Likewise.
44707         * m4/perl.m4: Likewise.
44708         * m4/physmem.m4: Likewise.
44709         * m4/pipe.m4: Likewise.
44710         * m4/po.m4: Likewise.
44711         * m4/poll.m4: Likewise.
44712         * m4/posixtm.m4: Likewise.
44713         * m4/posixver.m4: Likewise.
44714         * m4/printf-frexp.m4: Likewise.
44715         * m4/printf-frexpl.m4: Likewise.
44716         * m4/printf-posix.m4: Likewise.
44717         * m4/printf-posix-rpl.m4: Likewise.
44718         * m4/printf.m4: Likewise.
44719         * m4/progtest.m4: Likewise.
44720         * m4/putenv.m4: Likewise.
44721         * m4/readline.m4: Likewise.
44722         * m4/readlink.m4: Likewise.
44723         * m4/readutmp.m4: Likewise.
44724         * m4/realloc.m4: Likewise.
44725         * m4/regex.m4: Likewise.
44726         * m4/relocatable.m4: Likewise.
44727         * m4/relocatable-lib.m4: Likewise.
44728         * m4/rename-dest-slash.m4: Likewise.
44729         * m4/rename.m4: Likewise.
44730         * m4/rmdir-errno.m4: Likewise.
44731         * m4/rmdir.m4: Likewise.
44732         * m4/roundf.m4: Likewise.
44733         * m4/roundl.m4: Likewise.
44734         * m4/rpmatch.m4: Likewise.
44735         * m4/save-cwd.m4: Likewise.
44736         * m4/selinux-selinux-h.m4: Likewise.
44737         * m4/setenv.m4: Likewise.
44738         * m4/settime.m4: Likewise.
44739         * m4/sig2str.m4: Likewise.
44740         * m4/sig_atomic_t.m4: Likewise.
44741         * m4/signalblocking.m4: Likewise.
44742         * m4/signbit.m4: Likewise.
44743         * m4/sigpipe.m4: Likewise.
44744         * m4/sockets.m4: Likewise.
44745         * m4/sockpfaf.m4: Likewise.
44746         * m4/st_dm_mode.m4: Likewise.
44747         * m4/stat-time.m4: Likewise.
44748         * m4/stdbool.m4: Likewise.
44749         * m4/stdint.m4: Likewise.
44750         * m4/stdint_h.m4: Likewise.
44751         * m4/stpcpy.m4: Likewise.
44752         * m4/stpncpy.m4: Likewise.
44753         * m4/strcase.m4: Likewise.
44754         * m4/strchrnul.m4: Likewise.
44755         * m4/strcspn.m4: Likewise.
44756         * m4/strdup.m4: Likewise.
44757         * m4/strftime.m4: Likewise.
44758         * m4/strndup.m4: Likewise.
44759         * m4/strnlen.m4: Likewise.
44760         * m4/strpbrk.m4: Likewise.
44761         * m4/strptime.m4: Likewise.
44762         * m4/strsep.m4: Likewise.
44763         * m4/strtod.m4: Likewise.
44764         * m4/strtoimax.m4: Likewise.
44765         * m4/strtok_r.m4: Likewise.
44766         * m4/strtol.m4: Likewise.
44767         * m4/strtoll.m4: Likewise.
44768         * m4/strtoul.m4: Likewise.
44769         * m4/strtoull.m4: Likewise.
44770         * m4/strtoumax.m4: Likewise.
44771         * m4/strverscmp.m4: Likewise.
44772         * m4/threadlib.m4: Likewise.
44773         * m4/timegm.m4: Likewise.
44774         * m4/tm_gmtoff.m4: Likewise.
44775         * m4/tmpdir.m4: Likewise.
44776         * m4/tmpfile.m4: Likewise.
44777         * m4/tzset.m4: Likewise.
44778         * m4/uintmax_t.m4: Likewise.
44779         * m4/unlinkdir.m4: Likewise.
44780         * m4/unlocked-io.m4: Likewise.
44781         * m4/uptime.m4: Likewise.
44782         * m4/userspec.m4: Likewise.
44783         * m4/utimbuf.m4: Likewise.
44784         * m4/utime.m4: Likewise.
44785         * m4/utimes-null.m4: Likewise.
44786         * m4/utimes.m4: Likewise.
44787         * m4/vararrays.m4: Likewise.
44788         * m4/vasnprintf.m4: Likewise.
44789         * m4/vfprintf-posix.m4: Likewise.
44790         * m4/vprintf-posix.m4: Likewise.
44791         * m4/wait-process.m4: Likewise.
44792         * m4/wchar_t.m4: Likewise.
44793         * m4/wint_t.m4: Likewise.
44794         * m4/write-any-file.m4: Likewise.
44795         * m4/yield.m4: Likewise.
44796
44797 2009-01-13  Bruno Haible  <bruno@clisp.org>
44798
44799         Avoid test-copy-file.sh failures when ACL support insufficient.
44800         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44801         TESTS_ENVIRONMENT.
44802         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44803         Reported by Jim Meyering.
44804
44805 2009-01-13  Bruno Haible  <bruno@clisp.org>
44806
44807         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44808         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44809         * modules/unistdio/u8-printf-parse (Files): Likewise.
44810         * modules/unistdio/u32-printf-parse (Files): Likewise.
44811         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44812
44813 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44814
44815         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44816         and m4/inttypes_h.m4 too.
44817
44818 2009-01-12  Eric Blake  <ebb9@byu.net>
44819
44820         tests: IRIX 6.2 cc can't compile -0.0 into .data
44821         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44822         rather than at compile-time.
44823         * tests/test-floorl.c (minus_zero): Likewise.
44824         * tests/test-frexpl.c (minus_zero): Likewise.
44825         * tests/test-isnan.c (minus_zerol): Likewise.
44826         * tests/test-isnanl.h (minus_zero): Likewise.
44827         * tests/test-ldexpl.c (minus_zero): Likewise.
44828         * tests/test-roundl.c (minus_zero): Likewise.
44829         * tests/test-signbit.c (minus_zerol): Likewise.
44830         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44831         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44832         * tests/test-truncl.c (minus_zero): Likewise.
44833         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44834         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44835         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44836
44837 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44838
44839         regex: fix glibc bug 9697
44840         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44841         handling.
44842
44843 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44844
44845         regex: fix glibc bug 697
44846         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44847         being NULL also if there are no backreferences.
44848
44849 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44850
44851         regex: merge glibc changes
44852         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44853         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44854         re_string_skip_chars, re_string_reconstruct): Likewise.
44855         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44856
44857 2009-01-07  Jim Meyering  <meyering@redhat.com>
44858
44859         poll: filter through cppi
44860         * lib/poll.c: Indent cpp directives to reflect nesting.
44861
44862 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44863
44864         poll: don't return uninitialized
44865         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44866
44867 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44868
44869         avoid compile failure on AIX 6.1
44870         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44871         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44872
44873 2009-01-04  Jim Meyering  <meyering@redhat.com>
44874
44875         remove duplicate inclusion of <stdio.h>
44876         * tests/test-fprintf-posix.c: Likewise.
44877         * tests/test-printf-posix.c: Likewise.
44878         * tests/test-snprintf-posix.c: Likewise.
44879         * tests/test-sprintf-posix.c: Likewise.
44880         * tests/test-vasprintf-posix.c: Likewise.
44881         * tests/test-vfprintf-posix.c: Likewise.
44882         * tests/test-vprintf-posix.c: Likewise.
44883         * tests/test-vsnprintf-posix.c: Likewise.
44884         * tests/test-vsprintf-posix.c: Likewise.
44885
44886 2009-01-03  Jim Meyering  <meyering@redhat.com>
44887
44888         gnulib-tool: fix sed-based filtering
44889         * gnulib-tool (func_filter_filelist): Remove extra backslash
44890         in sed_fff_filter definition.
44891
44892 2009-01-02  Jim Meyering  <meyering@redhat.com>
44893
44894         strftime: avoid compilation failure on Solaris 2.6
44895         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44896         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44897         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44898         be available.  Reported by Tom G. Christensen.  Details in
44899         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44900
44901 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44902             Bruno Haible  <bruno@clisp.org>
44903
44904         Speed up gnulib-tool by doing more string processing through shell
44905         built-ins.
44906         * gnulib-tool (fast_func_append): New variable.
44907         (func_remove_prefix, func_remove_suffix): New functions.
44908         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44909         (func_filter_filelist): New function.
44910         (func_get_dependencies): Use func_remove_suffix instead of sed.
44911         (func_get_automake_snippet): Use func_filter_filelist instead of a
44912         subshell and sed invocation.
44913
44914 2009-01-01  Bruno Haible  <bruno@clisp.org>
44915
44916         Fix a security bug.
44917         * gnulib-tool (func_import, import, update): Don't allow the characters
44918         '"', '$', '`', '\' in macro arguments that become part of commands that
44919         are evaluated.
44920
44921 2009-01-01  Bruno Haible  <bruno@clisp.org>
44922
44923         * gnulib-tool (func_reset_sigpipe): Add more comments.
44924
44925 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44926
44927         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44928         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44929         already know the answer.
44930
44931 2009-01-01  Jim Meyering  <meyering@redhat.com>
44932
44933         * lib/version-etc.c (version_etc_va): Update copyright year.
44934
44935 2008-12-30  Bruno Haible  <bruno@clisp.org>
44936
44937         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44938         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44939         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44940
44941 2008-12-29  Eric Blake  <ebb9@byu.net>
44942
44943         multiarch: avoid autoconf AC_REQUIRE bug
44944         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44945         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44946         2.63 and older.
44947         Reported by Bruno Haible, and analyzed in
44948         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44949
44950 2008-12-29  Bruno Haible  <bruno@clisp.org>
44951
44952         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44953         files in subdirectories correctly.
44954         Reported by Ralf Wildenhues.
44955
44956 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44957
44958         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44959         rather than 'join FILE -', for Solaris join.
44960
44961 2008-12-29  Bruno Haible  <bruno@clisp.org>
44962
44963         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44964         quoting.
44965         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44966         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44967         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44968         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44969         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44970         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44971         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44972         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44973         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44974         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44975         * m4/nls.m4 (AM_NLS): Likewise.
44976         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44977         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44978         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44979         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44980         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44981         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44982         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44983         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44984         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44985         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44986         * m4/xsize.m4 (gl_XSIZE): Likewise.
44987         Suggested by Jim Meyering.
44988
44989 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44990
44991         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44992         * lib/parse-duration.c: use a switch instead of cascading if's.
44993
44994 2008-12-29  Eric Blake  <ebb9@byu.net>
44995
44996         wchar.h: supply WEOF on Irix 5.3
44997         * lib/wchar.in.h (wint_t): Also supply WEOF.
44998         * lib/wctype.in.h (wint_t): Likewise.
44999         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45000         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45001         Reported by Tom G. Christensen.
45002
45003 2008-12-26  Bruno Haible  <bruno@clisp.org>
45004
45005         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45006         i486, i586, i686.
45007
45008 2008-12-26  Bruno Haible  <bruno@clisp.org>
45009
45010         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45011
45012 2008-12-26  Bruno Haible  <bruno@clisp.org>
45013
45014         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45015         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45016         not __STDC_CONSTANT_MACROS.
45017         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45018
45019 2008-12-25  Bruno Haible  <bruno@clisp.org>
45020
45021         Add support for universal builds to vasnprintf.
45022         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45023         universal builds, guess no.
45024         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45025         * modules/vasprintf-posix (Depends-on): Likewise.
45026         * modules/fprintf-posix (Depends-on): Likewise.
45027         * modules/vfprintf-posix (Depends-on): Likewise.
45028         * modules/snprintf-posix (Depends-on): Likewise.
45029         * modules/vsnprintf-posix (Depends-on): Likewise.
45030         * modules/sprintf-posix (Depends-on): Likewise.
45031         * modules/vsprintf-posix (Depends-on): Likewise.
45032         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45033         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45034         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45035         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45036         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45037         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45038         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45039
45040         Add support for universal builds to <inttypes.h>.
45041         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45042         _SCNu64_PREFIX): In Apple
45043         universal builds, define directly, using _LP64.
45044         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45045         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45046         * modules/inttypes (Depends-on): Add multiarch.
45047         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45048
45049         Add support for universal builds to <stdint.h>.
45050         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45051         universal builds, define directly, using _LP64.
45052         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45053         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45054         and size_t.
45055         * modules/stdint (Depends-on): Add multiarch.
45056         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45057
45058         New module 'multiarch'.
45059         * modules/multiarch: New file.
45060         * m4/multiarch.m4: New file.
45061
45062 2008-12-25  Bruno Haible  <bruno@clisp.org>
45063
45064         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45065
45066 2008-12-25  Bruno Haible  <bruno@clisp.org>
45067
45068         * modules/btowc (License): Relicense under LGPLv2+.
45069         * modules/mbsinit (License): Likewise.
45070         * modules/mbrtowc (License): Likewise.
45071         * modules/wcrtomb (License): Likewise.
45072         * modules/streq (License): Likewise.
45073         Reported by David Lutterkort <lutter@redhat.com>.
45074
45075 2008-12-23  Bruno Haible  <bruno@clisp.org>
45076
45077         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45078
45079 2008-12-23  Bruno Haible  <bruno@clisp.org>
45080
45081         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45082         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45083         GETADDRINFO_LIB, not in LIBS.
45084         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45085         * modules/canon-host (Link): Likewise.
45086         * NEWS: Mention the change.
45087         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45088         GETADDRINFO_LIB.
45089
45090 2008-12-22  Bruno Haible  <bruno@clisp.org>
45091
45092         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45093         * doc/posix-functions/iswalpha_l.texi: Likewise.
45094         * doc/posix-functions/iswblank_l.texi: Likewise.
45095         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45096         * doc/posix-functions/iswctype_l.texi: Likewise.
45097         * doc/posix-functions/iswdigit_l.texi: Likewise.
45098         * doc/posix-functions/iswgraph_l.texi: Likewise.
45099         * doc/posix-functions/iswlower_l.texi: Likewise.
45100         * doc/posix-functions/iswprint_l.texi: Likewise.
45101         * doc/posix-functions/iswpunct_l.texi: Likewise.
45102         * doc/posix-functions/iswspace_l.texi: Likewise.
45103         * doc/posix-functions/iswupper_l.texi: Likewise.
45104         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45105         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45106         * doc/posix-functions/open_wmemstream.texi: Likewise.
45107         * doc/posix-functions/swscanf.texi: Likewise.
45108         * doc/posix-functions/towctrans_l.texi: Likewise.
45109         * doc/posix-functions/towlower.texi: Likewise.
45110         * doc/posix-functions/towlower_l.texi: Likewise.
45111         * doc/posix-functions/towupper.texi: Likewise.
45112         * doc/posix-functions/towupper_l.texi: Likewise.
45113         * doc/posix-functions/vfwprintf.texi: Likewise.
45114         * doc/posix-functions/vfwscanf.texi: Likewise.
45115         * doc/posix-functions/vswscanf.texi: Likewise.
45116         * doc/posix-functions/vwprintf.texi: Likewise.
45117         * doc/posix-functions/vwscanf.texi: Likewise.
45118         * doc/posix-functions/wcpcpy.texi: Likewise.
45119         * doc/posix-functions/wcpncpy.texi: Likewise.
45120         * doc/posix-functions/wcscasecmp.texi: Likewise.
45121         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45122         * doc/posix-functions/wcscoll_l.texi: Likewise.
45123         * doc/posix-functions/wcsdup.texi: Likewise.
45124         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45125         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45126         * doc/posix-functions/wcsnlen.texi: Likewise.
45127         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45128         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45129         * doc/posix-functions/wctrans_l.texi: Likewise.
45130         * doc/posix-functions/wctype_l.texi: Likewise.
45131         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45132         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45133         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45134         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45135         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45136         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45137         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45138         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45139         * doc/glibc-functions/wcschrnul.texi: Likewise.
45140         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45141         * doc/glibc-functions/wcstod_l.texi: Likewise.
45142         * doc/glibc-functions/wcstof_l.texi: Likewise.
45143         * doc/glibc-functions/wcstol_l.texi: Likewise.
45144         * doc/glibc-functions/wcstold_l.texi: Likewise.
45145         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45146         * doc/glibc-functions/wcstoq.texi: Likewise.
45147         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45148         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45149         * doc/glibc-functions/wcstouq.texi: Likewise.
45150         * doc/glibc-functions/wmempcpy.texi: Likewise.
45151
45152 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45153             Eric Blake  <ebb9@byu.net>
45154             Paolo Bonzini  <bonzini@gnu.org>
45155             Bruno Haible  <bruno@clisp.org>
45156
45157         Make c-stack work on Haiku.
45158         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45159         (c_stack_action): Use SA_ONSTACK flag.
45160
45161 2008-12-22  Bruno Haible  <bruno@clisp.org>
45162
45163         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45164
45165 2008-12-22  Bruno Haible  <bruno@clisp.org>
45166
45167         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45168         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45169         being overridden.
45170         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45171         New macros.
45172         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45173         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45174         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45175         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45176
45177 2008-12-22  Bruno Haible  <bruno@clisp.org>
45178
45179         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45180         from test code.
45181
45182 2008-12-22  Eric Blake  <ebb9@byu.net>
45183
45184         Avoid gcc warnings on cygwin.
45185         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45186         Avoid unused variable.
45187         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45188         Likewise.
45189
45190 2008-12-22  Bruno Haible  <bruno@clisp.org>
45191
45192         Remove HAVE_MBRTOWC conditionals.
45193         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45194         (mbscasecmp): Assume mbrtowc function.
45195         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45196         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45197         * lib/mbschr.c: Include mbuiter.h unconditionally.
45198         (mbschr): Assume mbrtowc function.
45199         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45200         (mbscspn): Assume mbrtowc function.
45201         * lib/mbslen.c: Include mbuiter.h unconditionally.
45202         (mbslen): Assume mbrtowc function.
45203         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45204         (mbsncasecmp): Assume mbrtowc function.
45205         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45206         (mbsnlen): Assume mbrtowc function.
45207         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45208         (mbspbrk): Assume mbrtowc function.
45209         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45210         (mbspcasecmp): Assume mbrtowc function.
45211         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45212         (mbsrchr): Assume mbrtowc function.
45213         * lib/mbssep.c: Include mbuiter.h unconditionally.
45214         (mbssep): Assume mbrtowc function.
45215         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45216         (mbsspn): Assume mbrtowc function.
45217         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45218         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45219         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45220         (mbstok_r): Assume mbrtowc function.
45221         * lib/propername.c: Include mbuiter.h unconditionally.
45222         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45223         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45224         (trim2): Assume mbrtowc function.
45225         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45226         (mbsnwidth): Assume mbrtowc function.
45227         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45228         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45229         fallback definitions.
45230         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45231
45232 2008-12-22  Bruno Haible  <bruno@clisp.org>
45233
45234         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45235
45236 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45237
45238         * modules/regex: Request emulations for the mb*/wc* functions we need.
45239         * m4/regex.m4: Don't look for those functions here.
45240         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45241
45242 2008-12-22  Bruno Haible  <bruno@clisp.org>
45243
45244         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45245
45246 2008-12-21  Bruno Haible  <bruno@clisp.org>
45247
45248         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45249         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45250         (Include): Remove conditionalization.
45251         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45252         (Include): Remove conditionalization.
45253         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45254         (Include): Remove conditionalization.
45255         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45256         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45257         * NEWS: Mention the change.
45258         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45259         via Sergey Poznyakoff <gray@gnu.org.ua>.
45260
45261 2008-12-21  Bruno Haible  <bruno@clisp.org>
45262
45263         * MODULES.html.sh (Extended multibyte and wide character utilities
45264         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45265         wcrtomb, wcsrtombs.
45266         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45267         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45268         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45269         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45270
45271 2008-12-21  Bruno Haible  <bruno@clisp.org>
45272
45273         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45274
45275 2008-12-21  Bruno Haible  <bruno@clisp.org>
45276
45277         * modules/wcsnrtombs-tests: New file.
45278         * tests/test-wcsnrtombs1.sh: New file.
45279         * tests/test-wcsnrtombs2.sh: New file.
45280         * tests/test-wcsnrtombs3.sh: New file.
45281         * tests/test-wcsnrtombs4.sh: New file.
45282         * tests/test-wcsnrtombs.c: New file.
45283
45284         New module 'wcsnrtombs'.
45285         * lib/wchar.in.h (wcsnrtombs): New declaration.
45286         * lib/wcsnrtombs.c: New file.
45287         * lib/wcsrtombs-state.c: New file.
45288         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45289         (internal_state): Remove variable.
45290         * m4/wcsnrtombs.m4: New file.
45291         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45292         compilation units.
45293         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45294         HAVE_WCSNRTOMBS.
45295         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45296         HAVE_WCSNRTOMBS.
45297         * modules/wcsnrtombs: New file.
45298         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45299         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45300
45301 2008-12-21  Bruno Haible  <bruno@clisp.org>
45302
45303         * modules/wcsrtombs-tests: New file.
45304         * tests/test-wcsrtombs1.sh: New file.
45305         * tests/test-wcsrtombs2.sh: New file.
45306         * tests/test-wcsrtombs3.sh: New file.
45307         * tests/test-wcsrtombs4.sh: New file.
45308         * tests/test-wcsrtombs.c: New file.
45309
45310         New module 'wcsrtombs'.
45311         * lib/wchar.in.h (wcsrtombs): New declaration.
45312         * lib/wcsrtombs.c: New file.
45313         * m4/wcsrtombs.m4: New file.
45314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45315         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45317         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45318         * modules/wcsrtombs: New file.
45319         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45320         bugs.
45321
45322 2008-12-21  Bruno Haible  <bruno@clisp.org>
45323
45324         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45325         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45326         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45327         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45328         if not correct.
45329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45330         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45331         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45332         m4/locale-zh.m4, m4/codeset.m4.
45333         * doc/posix-functions/wcrtomb.texi: Document the bug.
45334
45335 2008-12-21  Bruno Haible  <bruno@clisp.org>
45336
45337         Work around a btowc() bug on IRIX 6.5.
45338         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45339         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45340         REPLACE_WTOBC if not.
45341         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45342         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45343         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45344
45345 2008-12-21  Bruno Haible  <bruno@clisp.org>
45346
45347         * modules/wcrtomb-tests: New file.
45348         * tests/test-wcrtomb.sh: New file.
45349         * tests/test-wcrtomb.c: New file.
45350
45351         New module 'wcrtomb'.
45352         * lib/wchar.in.h (wcrtomb): New declaration.
45353         * lib/wcrtomb.c: New file.
45354         * m4/wcrtomb.m4: New file.
45355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45356         HAVE_WCRTOMB.
45357         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45358         HAVE_WCRTOMB.
45359         * modules/wcrtomb: New file.
45360         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45361
45362 2008-12-21  Bruno Haible  <bruno@clisp.org>
45363
45364         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45365         * modules/mbsrtowcs (Files): Likewise.
45366         * modules/wctob (Files): Likewise.
45367         * modules/c-strcase-tests (Files): Likewise.
45368         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45369         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45370         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45371         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45372         * modules/vasnprintf-posix-tests (Files): Likewise.
45373
45374 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45375
45376         gitlog-to-changelog: pass all command-line arguments to git-log
45377         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45378         it is sometimes convenient to filter the commits in various ways.
45379         gitlog-to-changelog only allows --since to specify a start date,
45380         but git-log itself supports many other filtering mechanisms.
45381         At the moment, I want to filter by branch name.  Rather than
45382         adding a --branch option to gitlog-to-changelog, it seems more
45383         flexible to simply pass all options directly to git-log and let
45384         git do the work.  Notice that this effectively makes --since a
45385         redundant option for gitlog-to-changelog, but removing it would
45386         require current usage to change since calls would then require
45387         an additional '--'.
45388
45389 2008-12-21  Bruno Haible  <bruno@clisp.org>
45390
45391         * modules/mbsnrtowcs-tests: New file.
45392         * tests/test-mbsnrtowcs1.sh: New file.
45393         * tests/test-mbsnrtowcs2.sh: New file.
45394         * tests/test-mbsnrtowcs3.sh: New file.
45395         * tests/test-mbsnrtowcs4.sh: New file.
45396         * tests/test-mbsnrtowcs.c: New file.
45397
45398         New module 'mbsnrtowcs'.
45399         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45400         * lib/mbsnrtowcs.c: New file.
45401         * lib/mbsrtowcs-state.c: New file.
45402         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45403         (internal_state): Remove variable.
45404         * m4/mbsnrtowcs.m4: New file.
45405         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45406         compilation units.
45407         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45408         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45409         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45410         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45411         * modules/mbsnrtowcs: New file.
45412         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45413         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45414         portability problem.
45415
45416 2008-12-21  Bruno Haible  <bruno@clisp.org>
45417
45418         Work around mbsrtowcs bug.
45419         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45420         (gl_FUNC_MBSRTOWCS): Invoke it.
45421         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45422         m4/locale-zh.m4.
45423         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45424
45425 2008-12-21  Bruno Haible  <bruno@clisp.org>
45426
45427         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45428
45429 2008-12-21  Bruno Haible  <bruno@clisp.org>
45430
45431         Update doc for AIX.
45432         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45433         16-bit wchar_t type.
45434         * doc/posix-functions/btowc.texi: Likewise.
45435         * doc/posix-functions/fgetwc.texi: Likewise.
45436         * doc/posix-functions/fgetws.texi: Likewise.
45437         * doc/posix-functions/fputwc.texi: Likewise.
45438         * doc/posix-functions/fputws.texi: Likewise.
45439         * doc/posix-functions/fwide.texi: Likewise.
45440         * doc/posix-functions/fwprintf.texi: Likewise.
45441         * doc/posix-functions/fwscanf.texi: Likewise.
45442         * doc/posix-functions/getwchar.texi: Likewise.
45443         * doc/posix-functions/getwc.texi: Likewise.
45444         * doc/posix-functions/iswalnum.texi: Likewise.
45445         * doc/posix-functions/iswalpha.texi: Likewise.
45446         * doc/posix-functions/iswblank.texi: Likewise.
45447         * doc/posix-functions/iswcntrl.texi: Likewise.
45448         * doc/posix-functions/iswctype.texi: Likewise.
45449         * doc/posix-functions/iswdigit.texi: Likewise.
45450         * doc/posix-functions/iswgraph.texi: Likewise.
45451         * doc/posix-functions/iswlower.texi: Likewise.
45452         * doc/posix-functions/iswprint.texi: Likewise.
45453         * doc/posix-functions/iswpunct.texi: Likewise.
45454         * doc/posix-functions/iswspace.texi: Likewise.
45455         * doc/posix-functions/iswupper.texi: Likewise.
45456         * doc/posix-functions/iswxdigit.texi: Likewise.
45457         * doc/posix-functions/mbrtowc.texi: Likewise.
45458         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45459         * doc/posix-functions/mbstowcs.texi: Likewise.
45460         * doc/posix-functions/mbtowc.texi: Likewise.
45461         * doc/posix-functions/putwchar.texi: Likewise.
45462         * doc/posix-functions/putwc.texi: Likewise.
45463         * doc/posix-functions/swprintf.texi: Likewise.
45464         * doc/posix-functions/tolower.texi: Likewise.
45465         * doc/posix-functions/toupper.texi: Likewise.
45466         * doc/posix-functions/towctrans.texi: Likewise.
45467         * doc/posix-functions/ungetwc.texi: Likewise.
45468         * doc/posix-functions/vswprintf.texi: Likewise.
45469         * doc/posix-functions/wcrtomb.texi: Likewise.
45470         * doc/posix-functions/wcscat.texi: Likewise.
45471         * doc/posix-functions/wcschr.texi: Likewise.
45472         * doc/posix-functions/wcscmp.texi: Likewise.
45473         * doc/posix-functions/wcscoll.texi: Likewise.
45474         * doc/posix-functions/wcscpy.texi: Likewise.
45475         * doc/posix-functions/wcscspn.texi: Likewise.
45476         * doc/posix-functions/wcsftime.texi: Likewise.
45477         * doc/posix-functions/wcslen.texi: Likewise.
45478         * doc/posix-functions/wcsncat.texi: Likewise.
45479         * doc/posix-functions/wcsncmp.texi: Likewise.
45480         * doc/posix-functions/wcsncpy.texi: Likewise.
45481         * doc/posix-functions/wcspbrk.texi: Likewise.
45482         * doc/posix-functions/wcsrchr.texi: Likewise.
45483         * doc/posix-functions/wcsrtombs.texi: Likewise.
45484         * doc/posix-functions/wcsspn.texi: Likewise.
45485         * doc/posix-functions/wcsstr.texi: Likewise.
45486         * doc/posix-functions/wcstod.texi: Likewise.
45487         * doc/posix-functions/wcstof.texi: Likewise.
45488         * doc/posix-functions/wcstoimax.texi: Likewise.
45489         * doc/posix-functions/wcstok.texi: Likewise.
45490         * doc/posix-functions/wcstold.texi: Likewise.
45491         * doc/posix-functions/wcstoll.texi: Likewise.
45492         * doc/posix-functions/wcstol.texi: Likewise.
45493         * doc/posix-functions/wcstombs.texi: Likewise.
45494         * doc/posix-functions/wcstoull.texi: Likewise.
45495         * doc/posix-functions/wcstoul.texi: Likewise.
45496         * doc/posix-functions/wcstoumax.texi: Likewise.
45497         * doc/posix-functions/wcswidth.texi: Likewise.
45498         * doc/posix-functions/wcsxfrm.texi: Likewise.
45499         * doc/posix-functions/wctob.texi: Likewise.
45500         * doc/posix-functions/wctomb.texi: Likewise.
45501         * doc/posix-functions/wctrans.texi: Likewise.
45502         * doc/posix-functions/wctype.texi: Likewise.
45503         * doc/posix-functions/wcwidth.texi: Likewise.
45504         * doc/posix-functions/wmemchr.texi: Likewise.
45505         * doc/posix-functions/wmemcmp.texi: Likewise.
45506         * doc/posix-functions/wmemcpy.texi: Likewise.
45507         * doc/posix-functions/wmemmove.texi: Likewise.
45508         * doc/posix-functions/wmemset.texi: Likewise.
45509         * doc/posix-functions/wprintf.texi: Likewise.
45510         * doc/posix-functions/wscanf.texi: Likewise.
45511
45512 2008-12-21  Bruno Haible  <bruno@clisp.org>
45513
45514         Update doc for HP-UX 11.11.
45515         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45516         in HP-UX version 11.00, not in all versions of HP-UX 11.
45517         * doc/posix-functions/fwide.texi: Likewise.
45518         * doc/posix-functions/fwprintf.texi: Likewise.
45519         * doc/posix-functions/fwscanf.texi: Likewise.
45520         * doc/posix-functions/inet_ntop.texi: Likewise.
45521         * doc/posix-functions/inet_pton.texi: Likewise.
45522         * doc/posix-functions/mbrlen.texi: Likewise.
45523         * doc/posix-functions/mbrtowc.texi: Likewise.
45524         * doc/posix-functions/mbsinit.texi: Likewise.
45525         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45526         * doc/posix-functions/swprintf.texi: Likewise.
45527         * doc/posix-functions/swscanf.texi: Likewise.
45528         * doc/posix-functions/towctrans.texi: Likewise.
45529         * doc/posix-functions/vfwprintf.texi: Likewise.
45530         * doc/posix-functions/vswprintf.texi: Likewise.
45531         * doc/posix-functions/vwprintf.texi: Likewise.
45532         * doc/posix-functions/wcrtomb.texi: Likewise.
45533         * doc/posix-functions/wcsrtombs.texi: Likewise.
45534         * doc/posix-functions/wcsstr.texi: Likewise.
45535         * doc/posix-functions/wctob.texi: Likewise.
45536         * doc/posix-functions/wctrans.texi: Likewise.
45537         * doc/posix-functions/wmemchr.texi: Likewise.
45538         * doc/posix-functions/wmemcmp.texi: Likewise.
45539         * doc/posix-functions/wmemcpy.texi: Likewise.
45540         * doc/posix-functions/wmemmove.texi: Likewise.
45541         * doc/posix-functions/wmemset.texi: Likewise.
45542         * doc/posix-functions/wprintf.texi: Likewise.
45543         * doc/posix-functions/wscanf.texi: Likewise.
45544
45545 2008-12-21  Bruno Haible  <bruno@clisp.org>
45546
45547         Work around a portability problem.
45548         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45549         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45550
45551 2008-12-20  Bruno Haible  <bruno@clisp.org>
45552
45553         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45554         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45555         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45556         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45557         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45558
45559         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45560         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45561         set.
45562         (GNULIB_defined_mbstate_t): New macro.
45563         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45564         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45565         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45566         reuses the system's mbrtowc function but works around the bugs.
45567         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45568         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45569         macros.
45570         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45571         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45572         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45573         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45574         REPLACE_MBSINIT if mbsinit needs to be overridden.
45575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45576         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45577         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45578         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45579         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45580         m4/locale-zh.m4.
45581         (Depends): Add mbsinit.
45582         * modules/mbsinit (Depends): Add mbrtowc.
45583         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45584
45585 2008-12-20  Bruno Haible  <bruno@clisp.org>
45586
45587         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45588         so that there are no conversion errors on AIX.
45589         * tests/test-mbsrtowcs.c (main): LIkewise.
45590
45591 2008-12-20  Bruno Haible  <bruno@clisp.org>
45592
45593         Work around wctob bug on Solaris <= 9.
45594         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45595         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45596         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45597         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45598         * modules/wctob (Files): Add m4/locale-fr.m4.
45599         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45600
45601 2008-12-20  Bruno Haible  <bruno@clisp.org>
45602
45603         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45604         /dev/null.
45605         * tests/test-select-in.sh: Likewise.
45606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45607
45608 2008-12-20  Bruno Haible  <bruno@clisp.org>
45609
45610         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45611         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45612         Cygwin 1.5.x.
45613
45614 2008-12-20  Bruno Haible  <bruno@clisp.org>
45615
45616         Ensure mbstate_t is defined on HP-UX 11.11.
45617         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45618         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45619         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45620         AC_USE_SYSTEM_EXTENSIONS.
45621         * modules/fnmatch (Depends-on): Add extensions.
45622         * modules/mbrlen (Depends-on): Likewise.
45623         * modules/mbrtowc (Depends-on): Likewise.
45624         * modules/mbsinit (Depends-on): Likewise.
45625         * modules/mbsrtowcs (Depends-on): Likewise.
45626         * modules/mbswidth (Depends-on): Likewise.
45627         * modules/quotearg (Depends-on): Likewise.
45628         * modules/strftime (Depends-on): Likewise.
45629
45630 2008-12-20  Bruno Haible  <bruno@clisp.org>
45631
45632         Ensure wctob is declared on IRIX 6.5.
45633         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45634         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45635         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45636         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45637         of HAVE_WCTOB.
45638         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45639         HAVE_WCTOB.
45640         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45641
45642 2008-12-19  Bruno Haible  <bruno@clisp.org>
45643
45644         * modules/mbsrtowcs-tests: New file.
45645         * tests/test-mbsrtowcs1.sh: New file.
45646         * tests/test-mbsrtowcs2.sh: New file.
45647         * tests/test-mbsrtowcs3.sh: New file.
45648         * tests/test-mbsrtowcs4.sh: New file.
45649         * tests/test-mbsrtowcs.c: New file.
45650
45651         New module 'mbsrtowcs'.
45652         * lib/wchar.in.h (mbsrtowcs): New declaration.
45653         * lib/mbsrtowcs.c: New file.
45654         * m4/mbsrtowcs.m4: New file.
45655         * modules/mbsrtowcs: New file.
45656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45657         HAVE_MBSRTOWCS.
45658         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45659         HAVE_MBSRTOWCS.
45660         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45661
45662 2008-12-19  Bruno Haible  <bruno@clisp.org>
45663
45664         New module 'mbrlen'.
45665         * lib/wchar.in.h (mbrlen): New declaration.
45666         * lib/mbrlen.c: New file.
45667         * m4/mbrlen.m4: New file.
45668         * modules/mbrlen: New file.
45669         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45670         HAVE_MBRLEN.
45671         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45672         HAVE_MBRLEN.
45673         * doc/posix-functions/mbrlen.texi: Document the new module.
45674
45675 2008-12-19  Bruno Haible  <bruno@clisp.org>
45676
45677         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45678         * modules/mbrtowc (Depends-on): Add verify.
45679         Suggested by Paul Eggert.
45680
45681 2008-12-18  Bruno Haible  <bruno@clisp.org>
45682
45683         * modules/mbsinit-tests: New file.
45684         * tests/test-mbsinit.sh: New file.
45685         * tests/test-mbsinit.c: New file.
45686
45687 2008-12-18  Bruno Haible  <bruno@clisp.org>
45688
45689         * modules/mbrtowc-tests: New file.
45690         * tests/test-mbrtowc1.sh: New file.
45691         * tests/test-mbrtowc2.sh: New file.
45692         * tests/test-mbrtowc3.sh: New file.
45693         * tests/test-mbrtowc4.sh: New file.
45694         * tests/test-mbrtowc.c: New file.
45695
45696         New module 'mbrtowc'.
45697         * lib/wchar.in.h (mbstate_t): Override when the system does not have
45698         mbsinit and mbrtowc.
45699         (mbrtowc): New declaration.
45700         * lib/mbrtowc.c: New file.
45701         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
45702         * modules/mbrtowc: New file.
45703         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
45704         HAVE_MBRTOWC.
45705         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
45706         HAVE_MBRTOWC.
45707         * doc/posix-functions/mbrtowc.texi: Document the new module.
45708
45709 2008-12-18  Bruno Haible  <bruno@clisp.org>
45710
45711         New module 'wctob'.
45712         * lib/wchar.in.h (wctob): New declaration.
45713         * lib/wctob.c: New file.
45714         * m4/wctob.m4: New file.
45715         * modules/wctob: New file.
45716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
45717         HAVE_WCTOB.
45718         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
45719         * doc/posix-functions/wctob.texi: Document the new module.
45720
45721 2008-12-18  Bruno Haible  <bruno@clisp.org>
45722
45723         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
45724         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
45725
45726 2008-12-18  Simon Josefsson  <simon@josefsson.org>
45727
45728         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
45729         G. Christensen" <tgc@jupiterrise.com>.
45730
45731         * lib/flock.c: Need to include errno.h.  Reported by "Tom
45732         G. Christensen" <tgc@jupiterrise.com>.
45733
45734         * lib/flock.c: Need to include string.h.  Reported by "Tom
45735         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
45736         <ebb9@byu.net>.
45737
45738 2008-12-18  Bruno Haible  <bruno@clisp.org>
45739
45740         * m4/locale-ja.m4: New file, from GNU gettext.
45741
45742 2008-12-17  Bruno Haible  <bruno@clisp.org>
45743
45744         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
45745         Suggested by Eric Blake.
45746
45747 2008-12-17  Bruno Haible  <bruno@clisp.org>
45748
45749         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
45750
45751 2008-12-17  Bruno Haible  <bruno@clisp.org>
45752
45753         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45754         * modules/mbsinit (Depends-on): Add verify.
45755         Suggested by Paul Eggert.
45756
45757 2008-12-17  Bruno Haible  <bruno@clisp.org>
45758
45759         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45760         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45761         gl_FUNC_MBRTOWC.
45762         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45763         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45764         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45765         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45766         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45767         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45768         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45769         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
45770         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
45771         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
45772         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
45773         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
45774         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
45775         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
45776         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
45777         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45778         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45779         * modules/trim (configure.ac): Likewise.
45780
45781 2008-12-17  Bruno Haible  <bruno@clisp.org>
45782
45783         * modules/btowc-tests: New file.
45784         * tests/test-btowc1.sh: New file.
45785         * tests/test-btowc2.sh: New file.
45786         * tests/test-btowc.c: New file.
45787
45788         New module 'btowc'.
45789         * lib/wchar.in.h (btowc): New declaration.
45790         * lib/btowc.c: New file.
45791         * m4/btowc.m4: New file.
45792         * modules/btowc: New file.
45793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45794         HAVE_BTOWC.
45795         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45796         * doc/posix-functions/btowc.texi: Document the new module.
45797
45798 2008-12-17  Bruno Haible  <bruno@clisp.org>
45799
45800         New module 'mbsinit'.
45801         * lib/wchar.in.h (mbsinit): New declaration.
45802         * lib/mbsinit.c: New file.
45803         * m4/mbsinit.m4: New file.
45804         * modules/mbsinit: New file.
45805         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45806         HAVE_MBSINIT.
45807         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45808         HAVE_MBSINIT.
45809         * doc/posix-functions/mbsinit.texi: Document the new module.
45810
45811 2008-12-16  Bruno Haible  <bruno@clisp.org>
45812
45813         * lib/unistd.in.h: Add comment.
45814         * tests/test-environ.c: Don't include <stdlib.h>.
45815
45816 2008-12-16  Bruno Haible  <bruno@clisp.org>
45817
45818         * lib/parse-duration.h (parse_duration): Document return value
45819         convention.
45820         * lib/parse-duration.c: Include specification header first. Add
45821         comments.
45822         (_): Remove macro.
45823         (parse_year_month_day, parse_hour_minute_second): Move side effects
45824         outside of strchr call.
45825         (parse_non_iso8601): Move side effects outside of isspace call.
45826         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45827         call.
45828
45829 2008-12-16  Bruno Haible  <bruno@clisp.org>
45830
45831         * tests/test-parse-duration.sh: Produce no output when the test
45832         succeeds.
45833
45834 2008-12-16  Bruno Haible  <bruno@clisp.org>
45835
45836         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45837         expressions.
45838
45839 2008-12-15  Bruno Haible  <bruno@clisp.org>
45840
45841         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45842         * doc/glibc-functions/flistxattr.texi: Likewise.
45843         * doc/glibc-functions/fopencookie.texi: Likewise.
45844         * doc/glibc-functions/fremovexattr.texi: Likewise.
45845         * doc/glibc-functions/fsetxattr.texi: Likewise.
45846         * doc/glibc-functions/getxattr.texi: Likewise.
45847         * doc/glibc-functions/lgetxattr.texi: Likewise.
45848         * doc/glibc-functions/listxattr.texi: Likewise.
45849         * doc/glibc-functions/llistxattr.texi: Likewise.
45850         * doc/glibc-functions/lremovexattr.texi: Likewise.
45851         * doc/glibc-functions/lsetxattr.texi: Likewise.
45852         * doc/glibc-functions/removexattr.texi: Likewise.
45853         * doc/glibc-functions/setxattr.texi: Likewise.
45854         * doc/posix-functions/open_memstream.texi: Likewise.
45855
45856 2008-12-15  Eric Blake  <ebb9@byu.net>
45857
45858         Update doc for cygwin 1.7.
45859         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45860         functions.
45861         * doc/posix-functions/fchmodat.texi: Likewise.
45862         * doc/posix-functions/fchownat.texi: Likewise.
45863         * doc/posix-functions/fdopendir.texi: Likewise.
45864         * doc/posix-functions/fmemopen.texi: Likewise.
45865         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45866         * doc/posix-functions/fstatat.texi: Likewise.
45867         * doc/posix-functions/futimens.texi: Likewise.
45868         * doc/posix-functions/gai_strerror.texi: Likewise.
45869         * doc/posix-functions/getaddrinfo.texi: Likewise.
45870         * doc/posix-functions/getnameinfo.texi: Likewise.
45871         * doc/posix-functions/if_freenameindex.texi: Likewise.
45872         * doc/posix-functions/if_indextoname.texi: Likewise.
45873         * doc/posix-functions/if_nameindex.texi: Likewise.
45874         * doc/posix-functions/if_nametoindex.texi: Likewise.
45875         * doc/posix-functions/insque.texi: Likewise.
45876         * doc/posix-functions/linkat.texi: Likewise.
45877         * doc/posix-functions/llrint.texi: Likewise.
45878         * doc/posix-functions/llrintf.texi: Likewise.
45879         * doc/posix-functions/llrintl.texi: Likewise.
45880         * doc/posix-functions/lockf.texi: Likewise.
45881         * doc/posix-functions/lrintl.texi: Likewise.
45882         * doc/posix-functions/mkdirat.texi: Likewise.
45883         * doc/posix-functions/mkfifoat.texi: Likewise.
45884         * doc/posix-functions/mknodat.texi: Likewise.
45885         * doc/posix-functions/mq_close.texi: Likewise.
45886         * doc/posix-functions/mq_getattr.texi: Likewise.
45887         * doc/posix-functions/mq_notify.texi: Likewise.
45888         * doc/posix-functions/mq_open.texi: Likewise.
45889         * doc/posix-functions/mq_receive.texi: Likewise.
45890         * doc/posix-functions/mq_send.texi: Likewise.
45891         * doc/posix-functions/mq_setattr.texi: Likewise.
45892         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45893         * doc/posix-functions/mq_timedsend.texi: Likewise.
45894         * doc/posix-functions/mq_unlink.texi: Likewise.
45895         * doc/posix-functions/open_memstream.texi: Likewise.
45896         * doc/posix-functions/openat.texi: Likewise.
45897         * doc/posix-functions/posix_fadvise.texi: Likewise.
45898         * doc/posix-functions/posix_fallocate.texi: Likewise.
45899         * doc/posix-functions/posix_madvise.texi: Likewise.
45900         * doc/posix-functions/posix_memalign.texi: Likewise.
45901         * doc/posix-functions/posix_openpt.texi: Likewise.
45902         * doc/posix-functions/readlinkat.texi: Likewise.
45903         * doc/posix-functions/remque.texi: Likewise.
45904         * doc/posix-functions/renameat.texi: Likewise.
45905         * doc/posix-functions/rintl.texi: Likewise.
45906         * doc/posix-functions/sem_unlink.texi: Likewise.
45907         * doc/posix-functions/shm_open.texi: Likewise.
45908         * doc/posix-functions/shm_unlink.texi: Likewise.
45909         * doc/posix-functions/signgam.texi: Likewise.
45910         * doc/posix-functions/sigset.texi: Likewise.
45911         * doc/posix-functions/stpcpy.texi: Likewise.
45912         * doc/posix-functions/stpncpy.texi: Likewise.
45913         * doc/posix-functions/strerror.texi: Likewise.
45914         * doc/posix-functions/strtod.texi: Likewise.
45915         * doc/posix-functions/symlinkat.texi: Likewise.
45916         * doc/posix-functions/unlinkat.texi: Likewise.
45917         * doc/posix-functions/utimensat.texi: Likewise.
45918         * doc/glibc-functions/bindresvport.texi: Likewise.
45919         * doc/glibc-functions/dn_expand.texi: Likewise.
45920         * doc/glibc-functions/exp10.texi: Likewise.
45921         * doc/glibc-functions/exp10f.texi: Likewise.
45922         * doc/glibc-functions/fgetxattr.texi: Likewise.
45923         * doc/glibc-functions/flistxattr.texi: Likewise.
45924         * doc/glibc-functions/fopencookie.texi: Likewise.
45925         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45926         * doc/glibc-functions/fremovexattr.texi: Likewise.
45927         * doc/glibc-functions/fsetxattr.texi: Likewise.
45928         * doc/glibc-functions/getifaddrs.texi: Likewise.
45929         * doc/glibc-functions/getxattr.texi: Likewise.
45930         * doc/glibc-functions/lgetxattr.texi: Likewise.
45931         * doc/glibc-functions/listxattr.texi: Likewise.
45932         * doc/glibc-functions/llistxattr.texi: Likewise.
45933         * doc/glibc-functions/lremovexattr.texi: Likewise.
45934         * doc/glibc-functions/lsetxattr.texi: Likewise.
45935         * doc/glibc-functions/pow10.texi: Likewise.
45936         * doc/glibc-functions/pow10f.texi: Likewise.
45937         * doc/glibc-functions/rcmd_af.texi: Likewise.
45938         * doc/glibc-functions/removexattr.texi: Likewise.
45939         * doc/glibc-functions/res_init.texi: Likewise.
45940         * doc/glibc-functions/res_mkquery.texi: Likewise.
45941         * doc/glibc-functions/res_query.texi: Likewise.
45942         * doc/glibc-functions/res_querydomain.texi: Likewise.
45943         * doc/glibc-functions/res_send.texi: Likewise.
45944         * doc/glibc-functions/rresvport_af.texi: Likewise.
45945         * doc/glibc-functions/setxattr.texi: Likewise.
45946         * doc/glibc-functions/strcasestr.texi: Likewise.
45947
45948 2008-12-15  Bruno Haible  <bruno@clisp.org>
45949
45950         Fix compilation error on OSF/1 4.0.
45951         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45952         <sys/time.h>, simply delegate to the system header.
45953         Reported by Daniel Richard G. <oss@teragram.com>.
45954
45955 2008-12-15  Bruno Haible  <bruno@clisp.org>
45956
45957         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45958         * doc/posix-functions/fchmodat.texi: Likewise.
45959         * doc/posix-functions/fchownat.texi: Likewise.
45960         * doc/posix-functions/fdopendir.texi: Likewise.
45961         * doc/posix-functions/fstatat.texi: Likewise.
45962         * doc/posix-functions/mkdirat.texi: Likewise.
45963         * doc/posix-functions/unlinkat.texi: Likewise.
45964
45965 2008-12-14  Bruno Haible  <bruno@clisp.org>
45966
45967         Update doc for POSIX:2008.
45968         * doc/posix-functions/faccessat.texi: New file.
45969         * doc/posix-functions/fchmodat.texi: New file.
45970         * doc/posix-functions/fchownat.texi: New file.
45971         * doc/posix-functions/fdopendir.texi: New file.
45972         * doc/posix-functions/fstatat.texi: New file.
45973         * doc/posix-functions/futimens.texi: New file.
45974         * doc/posix-functions/linkat.texi: New file.
45975         * doc/posix-functions/mkdirat.texi: New file.
45976         * doc/posix-functions/mkfifoat.texi: New file.
45977         * doc/posix-functions/mknodat.texi: New file.
45978         * doc/posix-functions/open_wmemstream.texi: New file.
45979         * doc/posix-functions/openat.texi: New file.
45980         * doc/posix-functions/psiginfo.texi: New file.
45981         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45982         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45983         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45984         * doc/posix-functions/readlinkat.texi: New file.
45985         * doc/posix-functions/renameat.texi: New file.
45986         * doc/posix-functions/strerror_l.texi: New file.
45987         * doc/posix-functions/symlinkat.texi: New file.
45988         * doc/posix-functions/unlinkat.texi: New file.
45989         * doc/posix-functions/utimensat.texi: New file.
45990         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45991
45992 2008-12-14  Bruno Haible  <bruno@clisp.org>
45993
45994         Update doc for POSIX:2008.
45995         * doc/posix-functions/alphasort.texi: Renamed from
45996         doc/glibc-functions/alphasort.texi.
45997         * doc/posix-functions/dirfd.texi: Renamed from
45998         doc/glibc-functions/dirfd.texi.
45999         * doc/posix-functions/dprintf.texi: Renamed from
46000         doc/glibc-functions/dprintf.texi.
46001         * doc/posix-functions/duplocale.texi: Renamed from
46002         doc/glibc-functions/duplocale.texi.
46003         * doc/posix-functions/fexecve.texi: Renamed from
46004         doc/glibc-functions/fexecve.texi.
46005         * doc/posix-functions/fmemopen.texi: Renamed from
46006         doc/glibc-functions/fmemopen.texi.
46007         * doc/posix-functions/freelocale.texi: Renamed from
46008         doc/glibc-functions/freelocale.texi.
46009         * doc/posix-functions/getdate_err.texi: Renamed from
46010         doc/glibc-functions/getdate_err.texi.
46011         * doc/posix-functions/isalnum_l.texi: Renamed from
46012         doc/glibc-functions/isalnum_l.texi.
46013         * doc/posix-functions/isalpha_l.texi: Renamed from
46014         doc/glibc-functions/isalpha_l.texi.
46015         * doc/posix-functions/isblank_l.texi: Renamed from
46016         doc/glibc-functions/isblank_l.texi.
46017         * doc/posix-functions/iscntrl_l.texi: Renamed from
46018         doc/glibc-functions/iscntrl_l.texi.
46019         * doc/posix-functions/isdigit_l.texi: Renamed from
46020         doc/glibc-functions/isdigit_l.texi.
46021         * doc/posix-functions/isgraph_l.texi: Renamed from
46022         doc/glibc-functions/isgraph_l.texi.
46023         * doc/posix-functions/islower_l.texi: Renamed from
46024         doc/glibc-functions/islower_l.texi.
46025         * doc/posix-functions/isprint_l.texi: Renamed from
46026         doc/glibc-functions/isprint_l.texi.
46027         * doc/posix-functions/ispunct_l.texi: Renamed from
46028         doc/glibc-functions/ispunct_l.texi.
46029         * doc/posix-functions/isspace_l.texi: Renamed from
46030         doc/glibc-functions/isspace_l.texi.
46031         * doc/posix-functions/isupper_l.texi: Renamed from
46032         doc/glibc-functions/isupper_l.texi.
46033         * doc/posix-functions/iswalnum_l.texi: Renamed from
46034         doc/glibc-functions/iswalnum_l.texi.
46035         * doc/posix-functions/iswalpha_l.texi: Renamed from
46036         doc/glibc-functions/iswalpha_l.texi.
46037         * doc/posix-functions/iswblank_l.texi: Renamed from
46038         doc/glibc-functions/iswblank_l.texi.
46039         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46040         doc/glibc-functions/iswcntrl_l.texi.
46041         * doc/posix-functions/iswctype_l.texi: Renamed from
46042         doc/glibc-functions/iswctype_l.texi.
46043         * doc/posix-functions/iswdigit_l.texi: Renamed from
46044         doc/glibc-functions/iswdigit_l.texi.
46045         * doc/posix-functions/iswgraph_l.texi: Renamed from
46046         doc/glibc-functions/iswgraph_l.texi.
46047         * doc/posix-functions/iswlower_l.texi: Renamed from
46048         doc/glibc-functions/iswlower_l.texi.
46049         * doc/posix-functions/iswprint_l.texi: Renamed from
46050         doc/glibc-functions/iswprint_l.texi.
46051         * doc/posix-functions/iswpunct_l.texi: Renamed from
46052         doc/glibc-functions/iswpunct_l.texi.
46053         * doc/posix-functions/iswspace_l.texi: Renamed from
46054         doc/glibc-functions/iswspace_l.texi.
46055         * doc/posix-functions/iswupper_l.texi: Renamed from
46056         doc/glibc-functions/iswupper_l.texi.
46057         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46058         doc/glibc-functions/iswxdigit_l.texi.
46059         * doc/posix-functions/isxdigit_l.texi: Renamed from
46060         doc/glibc-functions/isxdigit_l.texi.
46061         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46062         doc/glibc-functions/mbsnrtowcs.texi.
46063         * doc/posix-functions/mkdtemp.texi: Renamed from
46064         doc/glibc-functions/mkdtemp.texi.
46065         * doc/posix-functions/newlocale.texi: Renamed from
46066         doc/glibc-functions/newlocale.texi.
46067         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46068         doc/glibc-functions/nl_langinfo_l.texi.
46069         * doc/posix-functions/open_memstream.texi: Renamed from
46070         doc/glibc-functions/open_memstream.texi.
46071         * doc/posix-functions/opterr.texi: Renamed from
46072         doc/glibc-functions/opterr.texi.
46073         * doc/posix-functions/optind.texi: Renamed from
46074         doc/glibc-functions/optind.texi.
46075         * doc/posix-functions/optopt.texi: Renamed from
46076         doc/glibc-functions/optopt.texi.
46077         * doc/posix-functions/psignal.texi: Renamed from
46078         doc/glibc-functions/psignal.texi.
46079         * doc/posix-functions/scandir.texi: Renamed from
46080         doc/glibc-functions/scandir.texi.
46081         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46082         doc/glibc-functions/sched_get_priority_min.texi.
46083         * doc/posix-functions/signgam.texi: Renamed from
46084         doc/glibc-functions/signgam.texi.
46085         * doc/posix-functions/stpcpy.texi: Renamed from
46086         doc/glibc-functions/stpcpy.texi.
46087         * doc/posix-functions/stpncpy.texi: Renamed from
46088         doc/glibc-functions/stpncpy.texi.
46089         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46090         doc/glibc-functions/strcasecmp_l.texi.
46091         * doc/posix-functions/strcoll_l.texi: Renamed from
46092         doc/glibc-functions/strcoll_l.texi.
46093         * doc/posix-functions/strfmon_l.texi: Renamed from
46094         doc/glibc-functions/strfmon_l.texi.
46095         * doc/posix-functions/strftime_l.texi: Renamed from
46096         doc/glibc-functions/strftime_l.texi.
46097         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46098         doc/glibc-functions/strncasecmp_l.texi.
46099         * doc/posix-functions/strndup.texi: Renamed from
46100         doc/glibc-functions/strndup.texi.
46101         * doc/posix-functions/strnlen.texi: Renamed from
46102         doc/glibc-functions/strnlen.texi.
46103         * doc/posix-functions/strsignal.texi: Renamed from
46104         doc/glibc-functions/strsignal.texi.
46105         * doc/posix-functions/strxfrm_l.texi: Renamed from
46106         doc/glibc-functions/strxfrm_l.texi.
46107         * doc/posix-functions/timer_gettime.texi: Renamed from
46108         doc/glibc-functions/timer_gettime.texi.
46109         * doc/posix-functions/tolower_l.texi: Renamed from
46110         doc/glibc-functions/tolower_l.texi.
46111         * doc/posix-functions/toupper_l.texi: Renamed from
46112         doc/glibc-functions/toupper_l.texi.
46113         * doc/posix-functions/towctrans_l.texi: Renamed from
46114         doc/glibc-functions/towctrans_l.texi.
46115         * doc/posix-functions/towlower_l.texi: Renamed from
46116         doc/glibc-functions/towlower_l.texi.
46117         * doc/posix-functions/towupper_l.texi: Renamed from
46118         doc/glibc-functions/towupper_l.texi.
46119         * doc/posix-functions/uselocale.texi: Renamed from
46120         doc/glibc-functions/uselocale.texi.
46121         * doc/posix-functions/vdprintf.texi: Renamed from
46122         doc/glibc-functions/vdprintf.texi.
46123         * doc/posix-functions/wcpcpy.texi:
46124         Renamed from doc/glibc-functions/wcpcpy.texi.
46125         * doc/posix-functions/wcpncpy.texi: Renamed from
46126         doc/glibc-functions/wcpncpy.texi.
46127         * doc/posix-functions/wcscasecmp.texi: Renamed from
46128         doc/glibc-functions/wcscasecmp.texi.
46129         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46130         doc/glibc-functions/wcscasecmp_l.texi.
46131         * doc/posix-functions/wcscoll_l.texi: Renamed from
46132         doc/glibc-functions/wcscoll_l.texi.
46133         * doc/posix-functions/wcsdup.texi: Renamed from
46134         doc/glibc-functions/wcsdup.texi.
46135         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46136         doc/glibc-functions/wcsncasecmp.texi.
46137         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46138         doc/glibc-functions/wcsncasecmp_l.texi.
46139         * doc/posix-functions/wcsnlen.texi: Renamed from
46140         doc/glibc-functions/wcsnlen.texi.
46141         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46142         doc/glibc-functions/wcsnrtombs.texi.
46143         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46144         doc/glibc-functions/wcsxfrm_l.texi.
46145         * doc/posix-functions/wctrans_l.texi: Renamed from
46146         doc/glibc-functions/wctrans_l.texi.
46147         * doc/posix-functions/wctype_l.texi: Renamed from
46148         doc/glibc-functions/wctype_l.texi.
46149         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46150         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46151         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46152         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46153         these subsections.
46154         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46155         Remove sections.
46156
46157 2008-12-14  Bruno Haible  <bruno@clisp.org>
46158
46159         Update doc for POSIX:2008.
46160         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46161
46162 2008-12-14  Bruno Haible  <bruno@clisp.org>
46163
46164         Update doc for POSIX:2008.
46165         * doc/pastposix-functions/bcmp.texi: Renamed from
46166         doc/posix-functions/bcmp.texi.
46167         * doc/pastposix-functions/bcopy.texi: Renamed from
46168         doc/posix-functions/bcopy.texi.
46169         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46170         doc/posix-functions/bsd_signal.texi.
46171         * doc/pastposix-functions/bzero.texi: Renamed from
46172         doc/posix-functions/bzero.texi.
46173         * doc/pastposix-functions/ecvt.texi: Renamed from
46174         doc/posix-functions/ecvt.texi.
46175         * doc/pastposix-functions/fcvt.texi: Renamed from
46176         doc/posix-functions/fcvt.texi.
46177         * doc/pastposix-functions/ftime.texi: Renamed from
46178         doc/posix-functions/ftime.texi.
46179         * doc/pastposix-functions/gcvt.texi: Renamed from
46180         doc/posix-functions/gcvt.texi.
46181         * doc/pastposix-functions/getcontext.texi: Renamed from
46182         doc/posix-functions/getcontext.texi.
46183         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46184         doc/posix-functions/gethostbyaddr.texi.
46185         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46186         doc/posix-functions/gethostbyname.texi.
46187         * doc/pastposix-functions/getwd.texi: Renamed from
46188         doc/posix-functions/getwd.texi.
46189         * doc/pastposix-functions/h_errno.texi: Renamed from
46190         doc/posix-functions/h_errno.texi.
46191         * doc/pastposix-functions/index.texi: Renamed from
46192         doc/posix-functions/index.texi.
46193         * doc/pastposix-functions/makecontext.texi: Renamed from
46194         doc/posix-functions/makecontext.texi.
46195         * doc/pastposix-functions/mktemp.texi: Renamed from
46196         doc/posix-functions/mktemp.texi.
46197         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46198         doc/posix-functions/pthread_attr_getstackaddr.texi.
46199         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46200         doc/posix-functions/pthread_attr_setstackaddr.texi.
46201         * doc/pastposix-functions/rindex.texi: Renamed from
46202         doc/posix-functions/rindex.texi.
46203         * doc/pastposix-functions/scalb.texi: Renamed from
46204         doc/posix-functions/scalb.texi.
46205         * doc/pastposix-functions/setcontext.texi: Renamed from
46206         doc/posix-functions/setcontext.texi.
46207         * doc/pastposix-functions/swapcontext.texi: Renamed from
46208         doc/posix-functions/swapcontext.texi.
46209         * doc/pastposix-functions/ualarm.texi: Renamed from
46210         doc/posix-functions/ualarm.texi.
46211         * doc/pastposix-functions/usleep.texi: Renamed from
46212         doc/posix-functions/usleep.texi.
46213         * doc/pastposix-functions/vfork.texi: Renamed from
46214         doc/posix-functions/vfork.texi.
46215         * doc/pastposix-functions/wcswcs.texi: Renamed from
46216         doc/posix-functions/wcswcs.texi.
46217         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46218         (Function Substitutes): Update.
46219
46220 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46221
46222         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46223         m4/strerror.m4.
46224
46225 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46226             Bruno Haible  <bruno@clisp.org>
46227
46228         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46229
46230 2008-12-13  Bruno Haible  <bruno@clisp.org>
46231
46232         * modules/strtoull (Depends-on): Remove unistd.
46233
46234 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46235
46236         * modules/strtoull (Depends-on): Add stdlib.
46237
46238 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46239
46240         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46241
46242 2008-12-10  Jim Meyering  <meyering@redhat.com>
46243
46244         gl_ASSERT: don't say assertions are disabled when they're not
46245         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46246         "checking whether to enable assertions... no", when they are in
46247         fact enabled.  This is solely a bug in the output of configure.
46248         In spite of saying "no", NDEBUG was not defined in that case.
46249         Also, as noted by Eric Blake, leave assertions enabled upon
46250         --enable-assert=INVALID.
46251
46252 2008-12-10  Bruno Haible  <bruno@clisp.org>
46253
46254         Change MODULES.html to refer to POSIX:2008 where possible.
46255         * MODULES.html.sh (POSIX2008_URL): New variable.
46256         (posix_headers): Remove sys/timeb, ucontext.
46257         (posix2001_headers): New variable.
46258         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46259         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46260         index, makecontext, mktemp, pthread_attr_getstackaddr,
46261         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46262         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46263         (posix2001_functions): New variable.
46264         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46265         otherwise.
46266
46267 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46268
46269         add missing include to parse-duration.c
46270         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46271         * modules/parse-duration (Depends-on): Add xalloc.
46272
46273         fix sed script reading maint.mk
46274         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46275         (syntax-check-rules): Use it.
46276
46277 2008-12-09  Bruno Haible  <bruno@clisp.org>
46278
46279         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46280         MacOS X 10.4/PowerPC.
46281         Reported by Simon Josefsson.
46282
46283 2008-12-08  Jim Meyering  <meyering@redhat.com>
46284
46285         work around mingw's lack of some S_IF definitions
46286         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46287         Reported by Simon Josefsson.
46288
46289 2008-12-08  Bruno Haible  <bruno@clisp.org>
46290
46291         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46292         applied to variables. Needed on MacOS X 10.4/PowerPC.
46293         Reported by Simon Josefsson.
46294
46295 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46296         and Eric Blake  <ebb9@byu.net>
46297
46298         assert: honor --enable-assert
46299         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46300         order to honor --enable-assert, rather than treating it as a
46301         synonym for --disable-assert.
46302
46303 2008-12-08  Jim Meyering  <meyering@redhat.com>
46304
46305         * lib/posixtm.c: Remove now-useless declaration of mktime.
46306
46307         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46308
46309 2008-12-07  Bruno Haible  <bruno@clisp.org>
46310
46311         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46312         test_once): Mark functions as static.
46313         * tests/test-tls.c (test_tls): Likewise.
46314
46315 2008-12-07  Bruno Haible  <bruno@clisp.org>
46316
46317         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46318         iconv_register_autodetect.
46319
46320 2008-12-07  Jim Meyering  <meyering@redhat.com>
46321
46322         posixtm.c: avoid a warning
46323         * lib/posixtm.c (posixtime): Don't initialize tm0.
46324         It's no longer needed to placate gcc4's -Wuninitialized,
46325         and the attempt to placate would elicit a new warning.
46326
46327         unicodeio.c: mark unused parameters
46328         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46329         (fallback_failure_callback): Likewise.
46330
46331 2008-12-07  Bruno Haible  <bruno@clisp.org>
46332
46333         * gnulib-tool (func_create_testdir): When building the tests
46334         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46335         Reported by Simon Josefsson.
46336
46337 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46338
46339         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46340
46341 2008-12-06  Bruno Haible  <bruno@clisp.org>
46342
46343         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46344         Suggested by Eric Blake.
46345
46346 2008-12-06  Bruno Haible  <bruno@clisp.org>
46347
46348         Fix a c-stack test failure on MacOS X.
46349         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46350         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46351         handler for SIGBUS as well.
46352         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46353         install a signal handler for SIGBUS as well.
46354         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46355
46356 2008-12-06  Bruno Haible  <bruno@clisp.org>
46357
46358         Advocacy documentation.
46359         * doc/gnulib-intro.texi (Benefits): New section.
46360         * doc/gnulib.texi: Update.
46361
46362 2008-12-06  Bruno Haible  <bruno@clisp.org>
46363
46364         Document the 'manywarnings' module.
46365         * doc/manywarnings.texi: New file.
46366         * doc/gnulib.texi: Include it.
46367
46368 2008-12-05  Eric Blake  <ebb9@byu.net>
46369
46370         tests: silence some gcc warnings
46371         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46372         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46373         type mismatches.
46374
46375 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46376             Bruno Haible  <bruno@clisp.org>
46377
46378         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46379
46380 2008-11-29  Jim Meyering  <meyering@redhat.com>
46381
46382         unicodeio.c: mark unused parameters
46383         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46384         (fallback_failure_callback): Likewise.
46385
46386         fts: fix a thinko
46387         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46388         (set_stat_type): Return S_IF*-valued "type" directly.
46389         Prompted by James Youngman's spotting a related bug.
46390         Confirmed by further testing through find.
46391
46392         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46393         * lib/fts.c (D_TYPE): Define.
46394         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46395         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46396         (s_ifmt_shift_bits): New function.
46397         (set_stat_type): New function.
46398         (fts_build): When not calling fts_stat, call set_stat_type
46399         to propagate dirent.d_type info to fts_read caller.
46400         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46401         fts_statp->st_mode type information may be valid.
46402
46403 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46404
46405         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46406         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46407         <sds@gnu.org>.
46408
46409 2008-11-20  Bruno Haible  <bruno@clisp.org>
46410
46411         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46412         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46413         INCLUDE_NEXT.
46414         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46415         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46416         * modules/math (Makefile.am): Substitute
46417         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46418         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46419
46420 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46421             Bruno Haible  <bruno@clisp.org>
46422
46423         * lib/stdint.in.h: Define all type macros so that their expansion is
46424         a single typedef'ed token. Fixes a compilation failure in Boost which
46425         does "using ::int8_t;".
46426
46427 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46428
46429         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46430         gl_MANYWARN_ALL_GCC.
46431         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46432         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46433         * modules/manywarnings: New file.
46434         * MODULES.html.sh: Mention manywarnings module.
46435
46436 2008-11-18  Bruno Haible  <bruno@clisp.org>
46437
46438         * doc/gnulib-tool.texi (Unit tests): New section.
46439
46440 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46441
46442         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46443         paths like 'lib/po/foo.po'.
46444
46445 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46446
46447         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46448         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46449
46450 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46451
46452         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46453         parameter works.
46454
46455 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46456
46457         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46458
46459 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46460
46461         * modules/parse-duration-tests: New file.
46462         * tests/test-parse-duration.sh: New file.
46463         * tests/test-parse-duration.c: New file.
46464
46465         New module 'parse-duration'.
46466         * lib/parse-duration.h: New file.
46467         * lib/parse-duration.c: New file.
46468         * modules/parse-duration: New file.
46469
46470 2008-11-17  Bruno Haible  <bruno@clisp.org>
46471
46472         * tests/test-select-out.sh: Comment out the first pipe test.
46473         Reported by Simon Josefsson.
46474
46475 2008-11-17  Bruno Haible  <bruno@clisp.org>
46476
46477         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46478         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46479         gl_HOSTENT.
46480
46481 2008-11-17  Bruno Haible  <bruno@clisp.org>
46482
46483         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46484         -lnetwork and -lnet. Needed for Haiku and BeOS.
46485
46486 2008-11-16  Bruno Haible  <bruno@clisp.org>
46487
46488         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46489
46490 2008-11-16  Bruno Haible  <bruno@clisp.org>
46491
46492         Avoid test failure on Haiku.
46493         * tests/test-fsync.c: Include <errno.h>.
46494         (main): Don't require that fsync (0) fails.
46495
46496 2008-11-15  Bruno Haible  <bruno@clisp.org>
46497
46498         New module 'hostent'.
46499         * modules/hostent: New file.
46500         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46501
46502 2008-11-15  Bruno Haible  <bruno@clisp.org>
46503
46504         New module 'servent'.
46505         * modules/servent: New file.
46506         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46507
46508 2008-11-15  Bruno Haible  <bruno@clisp.org>
46509
46510         Avoid generating same test program with two different rules.
46511         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46512         test-frexp to test-frexp-nolibm.
46513         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46514         test-frexpl to test-frexpl-nolibm.
46515
46516 2008-11-15  Bruno Haible  <bruno@clisp.org>
46517
46518         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46519         $(FREXPL_LIBM).
46520
46521 2008-11-15  Bruno Haible  <bruno@clisp.org>
46522
46523         * lib/netdb.in.h: Activate the definitions also when the system's
46524         <netdb.h> has 'struct addrinfo'.
46525         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46526         EAI_OVERFLOW or AI_NUMERICSERV.
46527         * doc/posix-headers/netdb.texi: Document the problem.
46528
46529 2008-11-15  Bruno Haible  <bruno@clisp.org>
46530
46531         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46532
46533         Make the 'sched' module work on platforms where <sched.h> exists but
46534         is incomplete (such as Haiku).
46535         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46536         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46537         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46538         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46539         HAVE_STRUCT_SCHED_PARAM.
46540         * modules/sched (Depends-on): Add include_next.
46541         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46542         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46543         * doc/posix-headers/sched.texi: Document the issue.
46544
46545 2008-11-13  Jim Meyering  <meyering@redhat.com>
46546
46547         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46548         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46549         test would fail due to the difference in the Report bugs to ...
46550         line.  The expected address is empty, "<>", while the actual
46551         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46552
46553 2008-11-12  Bruno Haible  <bruno@clisp.org>
46554
46555         lstat: don't compile lstat.c on systems lacking lstat
46556         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46557         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46558         Reported by Daniel P. Berrange via Jim Meyering.
46559
46560 2008-11-12  Jim Meyering  <meyering@redhat.com>
46561
46562         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46563
46564 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46565
46566         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46567         instead.
46568
46569 2008-11-12  Bruno Haible  <bruno@clisp.org>
46570
46571         * lib/unicodeio.c: Include unistr.h.
46572         (utf8_wctomb): Remove function.
46573         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46574
46575 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46576
46577         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46578         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46579         <bruno@clisp.org>.
46580         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46581
46582 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46583
46584         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46585         * doc/gnulib.texi: Add section for warnings.
46586
46587 2008-11-11  Bruno Haible  <bruno@clisp.org>
46588
46589         * lib/sockets.h: Add a comment.
46590
46591 2008-11-11  Karl Berry  <karl@gnu.org>
46592
46593         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46594
46595 2008-11-11  Eric Blake  <ebb9@byu.net>
46596
46597         fdl.texi: avoid git symlinks
46598         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46599
46600 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46601
46602         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46603
46604 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46605
46606         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46607         (gl_WARN_ADD): Substitute $2 if literal.
46608
46609 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46610
46611         * m4/warning.m4: Remove.
46612
46613 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46614
46615         * m4/warnings.m4: Almost complete rewrite. :-)
46616
46617 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46618
46619         * modules/warnings: New module.
46620         * m4/warnings.m4: New file.
46621         * MODULES.html.sh: Mention warnings module.
46622         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46623         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46624
46625 2008-11-10  Eric Blake  <ebb9@byu.net>
46626
46627         fdl.texi: make a symlink to the latest version
46628         * doc/standards.texi: Revert today's earlier change.
46629         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46630         * doc/fdl.texi: ...and replace this with a symlink to the newer
46631         fdl-1.3.texi.
46632
46633 2008-11-10  Bruno Haible  <bruno@clisp.org>
46634
46635         * tests/test-select-fd.c (main): Accept the result file name as fourth
46636         argument.
46637         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46638         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46639
46640 2008-11-10  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46643         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46644         as autoconf-substituted macros.
46645         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46646         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46647         gl_NETDB_H_DEFAULTS. Set these variables.
46648         * modules/netdb (Makefile.am): Substitute these variables.
46649
46650 2008-11-10  Eric Blake  <ebb9@byu.net>
46651
46652         standards.texi: include correct file for FDL 1.3
46653         * doc/standards.texi (GNU Free Documentation License): Change
46654         include file to pull in FDL 1.3, not 1.2.
46655
46656         fdl.texi: revert accidental change to license
46657         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46658
46659 2008-11-10  Bruno Haible  <bruno@clisp.org>
46660
46661         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46662         cross-compiling guesses also when the native compile gives no result.
46663
46664 2008-11-10  Bruno Haible  <bruno@clisp.org>
46665
46666         * lib/spawni.c (__spawni): Force variable into the stack.
46667
46668 2008-11-10  Bruno Haible  <bruno@clisp.org>
46669
46670         Add support for Haiku.
46671         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46672         glibc and BeOS, but also on Haiku.
46673         * lib/fpurge.c (fpurge): Likewise.
46674         * lib/freadable.c (freadable): Likewise.
46675         * lib/freadahead.c (freadahead): Likewise.
46676         * lib/freading.c (freading): Likewise.
46677         * lib/freadptr.c (freadptr): Likewise.
46678         * lib/freadseek.c (freadptrinc): Likewise.
46679         * lib/fseeko.c (rpl_fseeko): Likewise.
46680         * lib/fseterr.c (fseterr): Likewise.
46681         * lib/fwritable.c (fwritable): Likewise.
46682         * lib/fwriting.c (fwriting): Likewise.
46683         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46684
46685 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46686
46687         * lib/config.charset: Treat Haiku like BeOS.
46688
46689 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46690
46691         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46692         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46693
46694 2008-11-08  Bruno Haible  <bruno@clisp.org>
46695
46696         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46697         AC_CACHE_CHECK.
46698
46699 2008-11-08  Bruno Haible  <bruno@clisp.org>
46700
46701         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
46702
46703 2008-11-08  Bruno Haible  <bruno@clisp.org>
46704
46705         * tests/test-select-fd.c: New file.
46706         * tests/test-select-in.sh: New file.
46707         * tests/test-select-out.sh: New file.
46708         * tests/test-select-stdin.c: New file.
46709         * modules/select-tests (Files): Add the new files.
46710         (Depends-on): Add gettimeofday.
46711         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
46712         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
46713         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
46714
46715 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
46716             Bruno Haible  <bruno@clisp.org>
46717
46718         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
46719
46720 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
46721
46722         * build-aux/pmccabe2html: Added support for C++ source files.
46723
46724 2008-11-05  Ben Pfaff  <blp@gnu.org>
46725
46726         Fix lib/close.c build on Windows.
46727         * modules/close (Files): Add lib/w32sock.h.
46728
46729 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
46730
46731         Accept Bison's NEWS format.
46732         * build-aux/announce-gen (print_news_deltas): Tweak
46733         $re_prefix.
46734
46735 2008-11-04  Bruno Haible  <bruno@clisp.org>
46736
46737         * modules/random_r (Maintainer): Add glibc.
46738
46739 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46740
46741         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
46742         by karl@freefriends.org (Karl Berry).
46743         * doc/alloca.texi: Likewise.
46744         * doc/c-ctype.texi: Likewise.
46745         * doc/c-strcase.texi: Likewise.
46746         * doc/c-strcaseeq.texi: Likewise.
46747         * doc/c-strcasestr.texi: Likewise.
46748         * doc/c-strstr.texi: Likewise.
46749         * doc/c-strtod.texi: Likewise.
46750         * doc/c-strtold.texi: Likewise.
46751         * doc/ctime.texi: Likewise.
46752         * doc/error.texi: Likewise.
46753         * doc/fdl.texi: Likewise.
46754         * doc/gcd.texi: Likewise.
46755         * doc/getdate.texi: Likewise.
46756         * doc/gnulib-intro.texi: Likewise.
46757         * doc/gnulib-tool.texi: Likewise.
46758         * doc/gnulib.texi: Likewise.
46759         * doc/inet_ntoa.texi: Likewise.
46760         * doc/maintain.texi: Likewise.
46761         * doc/make-stds.texi: Likewise.
46762         * doc/quote.texi: Likewise.
46763         * doc/regexprops-generic.texi: Likewise.
46764         * doc/standards.texi: Likewise.
46765         * doc/verify.texi: Likewise.
46766         * doc/visibility.texi: Likewise.
46767         * doc/gnulib.texi (GNU Free Documentation License): Include
46768         fdl-1.3.texi instead of fdl.texi.
46769
46770 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46771
46772         * doc/fdl-1.3.texi: New file, from
46773         <http://www.gnu.org/licenses/fdl-1.3.texi>.
46774         * modules/fdl-1.3: Add.
46775         * MODULES.html.sh: Add fdl-1.3.
46776
46777 2008-11-03  Bruno Haible  <bruno@clisp.org>
46778
46779         Make determination of absolute name of header file work with AIX xlc.
46780         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46781         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46782         preprocessing.
46783         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46784         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46785
46786 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46787
46788         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46789         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46790         <ludo@gnu.org>.
46791
46792 2008-11-02  Bruno Haible  <bruno@clisp.org>
46793
46794         Mark 'strpbrk' obsolete.
46795         * modules/strpbrk (Status, Notice): New sections.
46796         * modules/strtok_r (Depends-on): Add strpbrk.
46797
46798 2008-11-02  Bruno Haible  <bruno@clisp.org>
46799
46800         Mark 'strdup' obsolete.
46801         * modules/strdup (Status, Notice): New sections.
46802         * modules/findprog (Depends-on): Add strdup.
46803         * modules/getaddrinfo (Depends-on): Likewise.
46804         * modules/localename (Depends-on): Likewise.
46805         * modules/relocatable-lib (Depends-on): Likewise.
46806         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46807         * modules/relocatable-prog (Depends-on): Likewise.
46808         * modules/trim (Depends-on): Likewise.
46809         * modules/unictype/gen-ctype (Depends-on): Likewise.
46810         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46811
46812 2008-11-02  Bruno Haible  <bruno@clisp.org>
46813
46814         Mark 'strcspn' obsolete.
46815         * modules/strcspn (Status, Notice): New sections.
46816
46817 2008-11-02  Bruno Haible  <bruno@clisp.org>
46818
46819         Mark 'rmdir' obsolete.
46820         * modules/rmdir (Status, Notice): New sections.
46821         * modules/clean-temp (Depends-on): Add rmdir.
46822         * modules/openat (Depends-on): Likewise.
46823
46824 2008-11-02  Bruno Haible  <bruno@clisp.org>
46825
46826         Mark 'raise' obsolete.
46827         * modules/raise (Status, Notice): New sections.
46828         (Include): Specify <signal.h>.
46829         * modules/stdio (Depends-on): Add raise.
46830         * modules/write (Depends-on): Likewise.
46831
46832 2008-11-02  Bruno Haible  <bruno@clisp.org>
46833
46834         Mark 'memset' obsolete.
46835         * modules/memset (Status, Notice): New sections.
46836
46837 2008-11-02  Bruno Haible  <bruno@clisp.org>
46838
46839         Mark 'memmove' obsolete.
46840         * modules/memmove (Status, Notice): New sections.
46841         * modules/argp (Depends-on): Add memmove.
46842         * modules/argz (Depends-on): Likewise.
46843         * modules/canonicalize (Depends-on): Likewise.
46844         * modules/canonicalize-lgpl (Depends-on): Likewise.
46845         * modules/fts (Depends-on): Likewise.
46846         * modules/getcwd (Depends-on): Likewise.
46847         * modules/human (Depends-on): Likewise.
46848         * modules/regex (Depends-on): Likewise.
46849         * modules/striconveh (Depends-on): Likewise.
46850         * modules/trim (Depends-on): Likewise.
46851         * modules/unistr/u8-move (Depends-on): Likewise.
46852         * modules/unistr/u16-move (Depends-on): Likewise.
46853         * modules/unistr/u32-move (Depends-on): Likewise.
46854
46855 2008-11-02  Bruno Haible  <bruno@clisp.org>
46856
46857         Mark 'memcpy' obsolete.
46858         * modules/memcpy (Status, Notice): New sections.
46859
46860 2008-11-02  Bruno Haible  <bruno@clisp.org>
46861
46862         Mark 'memcmp' obsolete.
46863         * modules/memcmp (Status, Notice): New sections.
46864         * modules/argmatch (Depends-on): Add memchr.
46865         * modules/backupfile (Depends-on): Likewise.
46866         * modules/c-strcasestr (Depends-on): Likewise.
46867         * modules/crypto/des (Depends-on): Likewise.
46868         * modules/csharpcomp (Depends-on): Likewise.
46869         * modules/fnmatch (Depends-on): Likewise.
46870         * modules/git-merge-changelog (Depends-on): Likewise.
46871         * modules/isnand (Depends-on): Likewise.
46872         * modules/isnand-nolibm (Depends-on): Likewise.
46873         * modules/isnanf (Depends-on): Likewise.
46874         * modules/isnanf-nolibm (Depends-on): Likewise.
46875         * modules/isnanl (Depends-on): Likewise.
46876         * modules/isnanl-nolibm (Depends-on): Likewise.
46877         * modules/mbchar (Depends-on): Likewise.
46878         * modules/memcoll (Depends-on): Likewise.
46879         * modules/quotearg (Depends-on): Likewise.
46880         * modules/regex (Depends-on): Likewise.
46881         * modules/relocatable-prog (Depends-on): Likewise.
46882         * modules/same (Depends-on): Likewise.
46883         * modules/signbit (Depends-on): Likewise.
46884         * modules/strcasestr-simple (Depends-on): Likewise.
46885         * modules/unictype/gen-ctype (Depends-on): Likewise.
46886         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46887         * modules/uniname/uniname (Depends-on): Likewise.
46888         * modules/unistr/u8-cmp (Depends-on): Likewise.
46889
46890 2008-11-02  Bruno Haible  <bruno@clisp.org>
46891
46892         Mark 'memchr' obsolete.
46893         * modules/memchr (Status, Notice): New sections.
46894         * modules/argp (Depends-on): Add memchr.
46895         * modules/base64 (Depends-on): Likewise.
46896         * modules/c-strcasestr (Depends-on): Likewise.
46897         * modules/chdir-long (Depends-on): Likewise.
46898         * modules/fnmatch (Depends-on): Likewise.
46899         * modules/getsubopt (Depends-on): Likewise.
46900         * modules/git-merge-changelog (Depends-on): Likewise.
46901         * modules/glob (Depends-on): Likewise.
46902         * modules/strcasestr-simple (Depends-on): Likewise.
46903         * modules/strnlen (Depends-on): Likewise.
46904
46905 2008-11-02  Bruno Haible  <bruno@clisp.org>
46906
46907         Mark 'atexit' obsolete.
46908         * modules/atexit (Status, Notice): New sections.
46909         * modules/chdir-long (Depends-on): Add atexit.
46910         * modules/wait-process (Depends-on): Likewise.
46911
46912 2008-11-02  Bruno Haible  <bruno@clisp.org>
46913
46914         * gnulib-tool: New option --with-obsolete.
46915         (func_usage): Document it.
46916         (func_modules_transitive_closure): Drop obsolete dependencies if
46917         incobsolete is not true.
46918         (func_import): Read and save the incobsolete variable to the cache.
46919
46920 2008-11-02  Bruno Haible  <bruno@clisp.org>
46921
46922         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46923         * gnulib-tool: New option --extract-status.
46924         (func_usage): Document it.
46925         (sed_extract_prog): Recognize it.
46926         (func_get_status): New function.
46927
46928 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46929
46930         * modules/sockets (License): Change from LGPL to LGPLv2+.
46931
46932 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46933
46934         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46935
46936 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46937
46938         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46939         Mention times and sys_times.
46940         * modules/sys_times, modules/sys_times-tests: New modules.
46941         * modules/times, modules/times-tests: Likewise
46942         * m4/sys_times_h.m4: New file.
46943         * lib/sys_times.in.h: Likewise
46944         * lib/times.c: Likewise.
46945         * tests/test-sys_times.c: Likewise.
46946         * tests/test-times.c: Likewise.
46947         * doc/posix-headers/sys_times.texi: Update.
46948         * doc/posix-functions/times.texi: Update.
46949
46950 2008-10-28  Jim Meyering  <meyering@redhat.com>
46951
46952         * modules/tempname (Depends-on): Add lstat.
46953
46954         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46955
46956 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46957
46958         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46959         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46960         using idiom used elsewhere in gnulib.
46961
46962 2008-10-27  Jim Meyering  <meyering@redhat.com>
46963
46964         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46965
46966 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46967
46968         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46969         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46970         programs.
46971         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46972
46973 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46974
46975         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46976
46977 2008-10-27  Bruno Haible  <bruno@clisp.org>
46978
46979         * tests/test-lstat.c: Include <stdio.h>.
46980
46981 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46982
46983         * modules/lstat-tests: New module.
46984         * tests/test-lstat.c: New file.
46985
46986 2008-10-26  Jim Meyering  <meyering@redhat.com>
46987
46988         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46989
46990 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46991             Bruno Haible  <bruno@clisp.org>
46992
46993         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46994         * modules/configmake (Include): Add a note that the include must come
46995         after all system headers.
46996         * lib/javaversion.c: Include configmake.h after all other includes.
46997
46998 2008-10-26  Bruno Haible  <bruno@clisp.org>
46999
47000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47001         HAVE_STRUCT_RANDOM_DATA to 1.
47002         (gl_STDLIB_H): Simplify.
47003
47004 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47005
47006         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47007         substitute HAVE_STRUCT_RANDOM_DATA.
47008         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47009         random_data.
47010         * modules/stdlib (Makefile.am): Substitute
47011         HAVE_STRUCT_RANDOM_DATA.
47012
47013 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47014
47015         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47016         * doc/gnulib-intro.texi (Copyright): Likewise.
47017
47018 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47019
47020         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47021         findings.
47022
47023 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47024             Bruno Haible  <bruno@clisp.org>
47025
47026         * lib/unistd.in.h: Include <winsock2.h>.
47027         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47028         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47029         Provide dummy declarations.
47030         (gethostname): Override.
47031         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47032         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47033         gl_PREREQ_SYS_H_WINSOCK2.
47034         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47035         * doc/posix-functions/gethostname.texi: More details.
47036
47037 2008-10-25  Bruno Haible  <bruno@clisp.org>
47038
47039         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47040         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47041         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47042
47043         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47044         here ...
47045         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47046         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47047         gl_UNISTD_H_DEFAULTS.
47048
47049 2008-10-25  Eric Blake  <ebb9@byu.net>
47050
47051         signbit: avoid spurious compiler failure
47052         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47053         declarations inside function.
47054
47055 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47056             Bruno Haible  <bruno@clisp.org>
47057
47058         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47059         * modules/random_r (Depends-on): Add stdint.
47060
47061 2008-10-24  Bruno Haible  <bruno@clisp.org>
47062
47063         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47064         Eggert.
47065         * modules/strerror (License): Likewise.
47066
47067 2008-10-24  Jim Meyering  <meyering@redhat.com>
47068
47069         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47070         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47071
47072 2008-10-24  Eric Blake  <ebb9@byu.net>
47073
47074         getgroups: fix compilation when getgroups is available
47075         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47076         but with <config.h> override of getgroups disabled.
47077
47078 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47079
47080         * doc/gnulib.texi (Header files): Add note about C++ problems.
47081         Explained by Bruno Haible <bruno@clisp.org>.
47082
47083 2008-10-23  Bruno Haible  <bruno@clisp.org>
47084
47085         Define a dummy SA_NODEFER macro on Interix.
47086         * lib/signal.in.h (SA_NODEFER): Define fallback.
47087         Reported by Aleksey Cheusov <cheusov@tut.by> via
47088         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47089
47090 2008-10-23  Bruno Haible  <bruno@clisp.org>
47091
47092         * modules/freadahead (License): Change to LGPLv2+.
47093         Suggested by Simon Josefsson.
47094
47095 2008-10-23  Jim Meyering  <meyering@redhat.com>
47096
47097         random_r: new module
47098         * modules/random_r: New file.
47099         * m4/random_r.m4: New file.
47100         * lib/random_r.c: New file, from glibc.
47101         * modules/random_r-tests: New file.
47102         * tests/test-random_r.c: New file.
47103         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47104          Declare.
47105         (RAND_MAX): Define.
47106         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47107         * modules/stdlib: Substitute them, too.
47108         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47109         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47110         * doc/glibc-functions/random_r.texi: Likewise.
47111         * doc/glibc-functions/setstate_r.texi: Likewise.
47112         * doc/glibc-functions/srandom_r.texi: Likewise.
47113         * config/srclist.txt: Mention it.
47114
47115 2008-10-23  David Lutterkort  <lutter@redhat.com>
47116
47117         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47118         link requirement
47119
47120 2008-10-23  Jim Meyering  <meyering@redhat.com>
47121
47122         selinux-h: mark parameters of stub functions as intentionally unused
47123         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47124         * lib/se-context.in.h: Likewise.
47125
47126 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47127
47128         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47129
47130 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47131
47132         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47133
47134 2008-10-22  Eric Blake  <ebb9@byu.net>
47135
47136         glthread/thread: avoid compiler warning
47137         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47138         Add unreachable abort to silence compiler.
47139
47140 2008-10-22  Eric Blake  <ebb9@byu.net>
47141
47142         netdb: also supply struct addrinfo for cygwin 1.5.x
47143         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47144         older cygwin.
47145         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47146         cygwin.
47147         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47148
47149 2008-10-22  Bruno Haible  <bruno@clisp.org>
47150
47151         * users.txt: Update entry about pspp.
47152
47153 2008-10-21  Bruno Haible  <bruno@clisp.org>
47154
47155         Simplification.
47156         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47157         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47158
47159         Simplification.
47160         * lib/ioctl.c (ioctl): Don't undefine.
47161         * lib/socket.c (socket): Don't undefine.
47162
47163         Remove unused module indicator macros.
47164         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47165         GNULIB_$1 as a C macro.
47166
47167         * doc/posix-functions/close.texi: Undo last change.
47168         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47169         Windows platforms.
47170
47171 2008-10-21  Bruno Haible  <bruno@clisp.org>
47172
47173         Add gethostname() declaration to <unistd.h>.
47174         * lib/unistd.in.h (gethostname): New declaration.
47175         * lib/gethostname.c: Include <unistd.h>.
47176         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47177         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47179         and HAVE_GETHOSTNAME.
47180         * modules/gethostname (Depends-on): Add unistd.
47181         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47182         (Include): Specify <unistd.h>.
47183         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47184         HAVE_GETHOSTNAME.
47185         * tests/test-gethostname.c: Include <unistd.h> first.
47186
47187 2008-10-21  Bruno Haible  <bruno@clisp.org>
47188
47189         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47190         * modules/select-tests (Depends-on): Likewise.
47191         Reported by Simon Josefsson.
47192
47193 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47194
47195         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47196         * lib/accept.c: New file, based on winsock.c.
47197         * lib/bind.c: New file, based on winsock.c.
47198         * lib/connect.c: New file, based on winsock.c.
47199         * lib/getpeername.c: New file, based on winsock.c.
47200         * lib/getsockname.c: New file, based on winsock.c.
47201         * lib/getsockopt.c: New file, based on winsock.c.
47202         * lib/ioctl.c: New file, based on winsock.c.
47203         * lib/listen.c: New file, based on winsock.c.
47204         * lib/recv.c: New file, based on winsock.c.
47205         * lib/recvfrom.c: New file, based on winsock.c.
47206         * lib/send.c: New file, based on winsock.c.
47207         * lib/sendto.c: New file, based on winsock.c.
47208         * lib/setsockopt.c: New file, based on winsock.c.
47209         * lib/shutdown.c: New file, based on winsock.c.
47210         * lib/socket.c: New file, based on winsock.c.
47211         * lib/w32sock.h: New file, based on winsock.c.
47212         * lib/winsock.c: Remove file.
47213         * modules/accept: Likewise.
47214         * modules/bind: Likewise.
47215         * modules/connect: Likewise.
47216         * modules/getpeername: Likewise.
47217         * modules/getsockname: Likewise.
47218         * modules/getsockopt: Likewise.
47219         * modules/ioctl: Likewise.
47220         * modules/listen: Likewise.
47221         * modules/recv: Likewise.
47222         * modules/recvfrom: Likewise.
47223         * modules/send: Likewise.
47224         * modules/sendto: Likewise.
47225         * modules/setsockopt: Likewise.
47226         * modules/shutdown: Likewise.
47227         * modules/socket: Use socket.c instead of winsock.c.
47228         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47229         * doc/posix-functions/accept.texi: Doc fix.
47230         * doc/posix-functions/bind.texi: Doc fix.
47231         * doc/posix-functions/close.texi: Doc fix.
47232         * doc/posix-functions/connect.texi: Doc fix.
47233         * doc/posix-functions/getpeername.texi: Doc fix.
47234         * doc/posix-functions/getsockname.texi: Doc fix.
47235         * doc/posix-functions/getsockopt.texi: Doc fix.
47236         * doc/posix-functions/ioctl.texi: Doc fix.
47237         * doc/posix-functions/listen.texi: Doc fix.
47238         * doc/posix-functions/recv.texi: Doc fix.
47239         * doc/posix-functions/recvfrom.texi: Doc fix.
47240         * doc/posix-functions/send.texi: Doc fix.
47241         * doc/posix-functions/sendto.texi: Doc fix.
47242         * doc/posix-functions/setsockopt.texi: Doc fix.
47243         * doc/posix-functions/shutdown.texi: Doc fix.
47244         * doc/posix-functions/socket.texi: Doc fix.
47245
47246 2008-10-20  Bruno Haible  <bruno@clisp.org>
47247
47248         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47249         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47250         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47251         as an alias for SIGABRT.
47252         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47253         (sigaction): Map it to SIGABRT.
47254         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47255
47256 2008-10-20  Bruno Haible  <bruno@clisp.org>
47257
47258         * lib/fts.c: Don't include lstat.h.
47259         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47260
47261         Move the lstat() declaration to <sys/stat.h>.
47262         * lib/lstat.h: Remove file.
47263         * lib/sys_stat.in.h: Add special invocation convention.
47264         (lstat): New declaration.
47265         * lib/lstat.c (orig_lstat): New function.
47266         (rpl_lstat): Use orig_lstat instead of lstat.
47267         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47268         AC_C_INLINE. Set REPLACE_LSTAT.
47269         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47270         and REPLACE_LSTAT.
47271         * modules/lstat (Files): Remove lib/lstat.h.
47272         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47273         (Include): Specify <sys/stat.h> instead of lstat.h.
47274         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47275         REPLACE_LSTAT.
47276         * NEWS: Mention the change.
47277
47278 2008-10-20  Bruno Haible  <bruno@clisp.org>
47279
47280         * modules/posix_spawn-tests: New file.
47281         * tests/test-posix_spawn3.c: New file.
47282
47283 2008-10-20  Bruno Haible  <bruno@clisp.org>
47284
47285         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47286         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47287         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47288         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47289         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47290
47291 2008-10-20  Bruno Haible  <bruno@clisp.org>
47292
47293         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47294         of posix_spawn on AIX 5.3.
47295
47296 2008-10-20  Bruno Haible  <bruno@clisp.org>
47297
47298         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47299
47300 2008-10-20  Bruno Haible  <bruno@clisp.org>
47301
47302         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47303         of AC_LANG_PROGRAM.
47304
47305 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47306
47307         * lib/netdb.in.h: Don't define GNU specific constants until they
47308         are supported or needed.  Reported by Bruno Haible
47309         <bruno@clisp.org>.
47310
47311 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47312
47313         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47314
47315 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47316
47317         * lib/getaddrinfo.h: Remove file.
47318         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47319         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47320         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47321         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47322         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47323         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47324         * tests/test-getaddrinfo.c: Likewise.
47325         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47326         * NEWS: Mention change.
47327
47328 2008-10-19  Bruno Haible  <bruno@clisp.org>
47329
47330         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47331
47332 2008-10-19  Bruno Haible  <bruno@clisp.org>
47333
47334         * lib/wait-process.c: Include simply <sys/wait.h>.
47335         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47336         WIFSTOPPED): Remove fallback definitions.
47337         * modules/wait-process (Depends-on): Add sys_wait.
47338
47339         New module 'sys_wait'.
47340         * modules/sys_wait: New file.
47341         * lib/sys_wait.in.h: New file, partially copied from
47342         lib/wait-process.c.
47343         * m4/sys_wait_h.m4: New file.
47344         * doc/posix-headers/sys_wait.texi: Mention the new module.
47345
47346 2008-10-19  Bruno Haible  <bruno@clisp.org>
47347
47348         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47349
47350 2008-10-19  Bruno Haible  <bruno@clisp.org>
47351
47352         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47353         * lib/wait-process.c (WAIT_T): Remove type.
47354         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47355         (wait_subprocess): Update.
47356
47357 2008-10-19  Bruno Haible  <bruno@clisp.org>
47358
47359         New module 'atoll'.
47360         * modules/atoll: New file.
47361         * lib/stdlib.in.h (atoll): New declaration.
47362         * lib/atoll.c: New file, from glibc with modifications.
47363         * m4/atoll.m4: New file.
47364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47365         HAVE_ATOLL.
47366         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47367         * doc/posix-functions/atoll.texi: Mention the new module.
47368
47369 2008-10-19  Bruno Haible  <bruno@clisp.org>
47370
47371         Add strtoull() declaration to <stdlib.h>.
47372         * lib/stdlib.in.h (strtoull): New declaration.
47373         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47374         Set HAVE_STRTOULL.
47375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47376         HAVE_STRTOULL.
47377         * modules/strtoull (Depends-on): Add stdlib.
47378         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47379         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47380         HAVE_STRTOULL.
47381
47382 2008-10-19  Bruno Haible  <bruno@clisp.org>
47383
47384         Add strtoll() declaration to <stdlib.h>.
47385         * lib/stdlib.in.h (strtoll): New declaration.
47386         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47387         Set HAVE_STRTOLL.
47388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47389         HAVE_STRTOLL.
47390         * modules/strtoll (Depends-on): Add stdlib.
47391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47392         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47393
47394 2008-10-19  Bruno Haible  <bruno@clisp.org>
47395
47396         * modules/bcopy (Depends-on): Add strings.
47397         (Include): Specify <strings.h>.
47398
47399 2008-10-19  Bruno Haible  <bruno@clisp.org>
47400
47401         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47402
47403 2008-10-19  Bruno Haible  <bruno@clisp.org>
47404
47405         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47406         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47407         mingw.
47408
47409 2008-10-19  Bruno Haible  <bruno@clisp.org>
47410
47411         * lib/atanl.c: Don't include isnanl.h.
47412         * lib/cosl.c: Likewise.
47413         * lib/ldexpl.c: Likewise.
47414         * lib/logl.c: Likewise.
47415         * lib/sinl.c: Likewise.
47416         * lib/sqrtl.c: Likewise.
47417         * lib/tanl.c: Likewise.
47418
47419         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47420         * lib/isnanf.h: Remove file.
47421         * lib/isnand.h: Remove file.
47422         * lib/isnanl.h: Remove file.
47423         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47424         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47425         macros.
47426         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47427         HAVE_ISNANF, don't define it as a C macro.
47428         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47429         HAVE_ISNAND, don't define it as a C macro.
47430         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47431         HAVE_ISNANL, don't define it as a C macro.
47432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47433         HAVE_ISNAN[FDL].
47434         * modules/isnanf (Files): Remove lib/isnanf.h.
47435         (Depends-on): Add math.
47436         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47437         (Include): Specify <math.h> instead of isnanf.h.
47438         * modules/isnand (Files): Remove lib/isnand.h.
47439         (Depends-on): Add math.
47440         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47441         (Include): Specify <math.h> instead of isnand.h.
47442         * modules/isnanl (Files): Remove lib/isnanl.h.
47443         (Depends-on): Add math.
47444         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47445         (Include): Specify <math.h> instead of isnanl.h.
47446         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47447         HAVE_ISNAN[FDL].
47448         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47449         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47450         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47451         * NEWS: Mention the change.
47452
47453 2008-10-18  Bruno Haible  <bruno@clisp.org>
47454
47455         Add getusershell(), setusershell(), endusershell() declarations to
47456         <unistd.h>.
47457         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47458         declarations.
47459         * lib/getusershell.c: Include unistd.h.
47460         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47461         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47462         HAVE_GETUSERSHELL.
47463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47464         and HAVE_GETUSERSHELL.
47465         * modules/getusershell (Depends-on): Add unistd, extensions.
47466         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47467         (Include): Specify <unistd.h>.
47468         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47469         HAVE_GETUSERSHELL.
47470
47471 2008-10-18  Bruno Haible  <bruno@clisp.org>
47472
47473         Add a getloadavg() declaration to <stdlib.h>.
47474         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47475         getloadavg declaration.
47476         (getloadavg): New declaration.
47477         * lib/getloadavg.c: Include <stdlib.h> first.
47478         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47479         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47480         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47482         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47483         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47484         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47485         (Include): Specify <stdlib.h>.
47486         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47487         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47488
47489 2008-10-18  Bruno Haible  <bruno@clisp.org>
47490
47491         * lib/dirchownmod.c: Don't include lchmod.h.
47492
47493         Move the lchmod() declaration to <sys/stat.h>.
47494         * lib/lchmod.h: Remove file.
47495         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47496         (lchmod): New declaration, moved here from lib/lchown.h.
47497         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47498         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47499         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47500         and HAVE_LCHMOD.
47501         * modules/lchmod (Files): Remove lib/lchmod.h.
47502         (Depends-on): Add sys_stat, extensions.
47503         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47504         (Include): Specify <sys/stat.h> instead of lchmod.h.
47505         * modules/sys_stat (Depends-on): Add link-warning.
47506         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47507         definition of GL_LINK_WARNING.
47508         * NEWS: Mention the change.
47509
47510 2008-10-18  Bruno Haible  <bruno@clisp.org>
47511
47512         * lib/fchdir.c: Don't include dirfd.h.
47513         * lib/fts.c: Likewise.
47514         * lib/getcwd.c: Likewise.
47515         * lib/glob.c: Likewise.
47516
47517         Move the dirfd() declaration to <dirent.h>.
47518         * lib/dirfd.h: Remove file.
47519         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47520         (dirfd): New declaration.
47521         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47522         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47523         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47524         HAVE_DECL_DIRFD.
47525         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47526         HAVE_DECL_DIRFD.
47527         * modules/dirfd (Files): Remove lib/dirfd.h.
47528         (Depends-on): Add dirent, extensions.
47529         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47530         (Include): Specify <dirent.h> instead of dirfd.h.
47531         * modules/dirent (Depends-on): Add link-warning.
47532         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47533         definition of GL_LINK_WARNING.
47534         * NEWS: Mention the change.
47535
47536 2008-10-18  Bruno Haible  <bruno@clisp.org>
47537
47538         Move the euidaccess() declaration to <unistd.h>.
47539         * lib/euidaccess.h: Remove file.
47540         * lib/unistd.in.h (euidaccess): New declaration.
47541         * lib/euidaccess.c: Don't include euidaccess.h.
47542         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47543         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47545         and HAVE_EUIDACCESS.
47546         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47547         (Depends-on): Add unistd.
47548         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47549         (Include): Specify <unistd.h> instead of euidaccess.h.
47550         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47551         HAVE_EUIDACCESS.
47552         * NEWS: Mention the change.
47553
47554 2008-10-18  Bruno Haible  <bruno@clisp.org>
47555
47556         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47557
47558         Move the getdomainname() declaration to <unistd.h>.
47559         * lib/getdomainname.h: Remove file.
47560         * lib/unistd.in.h (getdomainname): New declaration.
47561         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47562         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47563         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47564         HAVE_GETDOMAINNAME.
47565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47566         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47567         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47568         (Depends-on): Add unistd, extensions.
47569         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47570         (Includes): Specify <unistd.h> instead of getdomainname.h.
47571         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47572         HAVE_GETDOMAINNAME.
47573         * NEWS: Mention the change.
47574
47575 2008-10-18  Bruno Haible  <bruno@clisp.org>
47576
47577         * modules/dirent: New file.
47578         * m4/dirent_h.m4: New file.
47579         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47580         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47581         * modules/fchdir (Files): Remove lib/dirent.in.h.
47582         (Depends-on): Add dirent.
47583         (Makefile.am): Move rules to modules/dirent.
47584         * doc/posix-headers/dirent.texi: Mention the new module.
47585
47586 2008-10-18  Bruno Haible  <bruno@clisp.org>
47587
47588         Avoid -Wunused-parameter warnings in public gnulib header files.
47589         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47590         macro.
47591         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47592
47593 2008-10-18  Bruno Haible  <bruno@clisp.org>
47594
47595         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47596         * doc/glibc-functions/error.texi: Mention the module 'error'.
47597         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47598         * doc/glibc-functions/getdomainname.texi: Mention the module
47599         'getdomainname'.
47600         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47601         * doc/glibc-functions/getpagesize.texi: Mention the module
47602         'getpagesize'.
47603         * doc/glibc-functions/getusershell.texi: Mention the module
47604         'getusershell'.
47605         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47606         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47607         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47608         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47609         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47610         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47611         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47612         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47613         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47614         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47615         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47616         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47617         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47618         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47619
47620 2008-10-17  Bruno Haible  <bruno@clisp.org>
47621
47622         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47623         HP-UX and IRIX, use -0.0L.
47624         * tests/test-ceill.c (minus_zero): Likewise.
47625         * tests/test-floorl.c (minus_zero): Likewise.
47626         * tests/test-frexpl.c (minus_zero): Likewise.
47627         * tests/test-isnan.c (minus_zerol): Likewise.
47628         * tests/test-isnanl.h (minus_zero): Likewise.
47629         * tests/test-ldexpl.c (minus_zero): Likewise.
47630         * tests/test-roundl.c (minus_zero): Likewise.
47631         * tests/test-signbit.c (minus_zerol): Likewise.
47632         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47633         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47634         * tests/test-truncl.c (minus_zero): Likewise.
47635         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47636         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47637         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47638         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47639
47640 2008-10-17  Bruno Haible  <bruno@clisp.org>
47641
47642         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47643         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47644         that it gets activated only for gcc >= 3.0.
47645         * lib/dirent.in.h: Likewise.
47646         * lib/errno.in.h: Likewise.
47647         * lib/fcntl.in.h: Likewise.
47648         * lib/float.in.h: Likewise.
47649         * lib/iconv.in.h: Likewise.
47650         * lib/inttypes.in.h: Likewise.
47651         * lib/locale.in.h: Likewise.
47652         * lib/math.in.h: Likewise.
47653         * lib/netdb.in.h: Likewise.
47654         * lib/netinet_in.in.h: Likewise.
47655         * lib/search.in.h: Likewise.
47656         * lib/signal.in.h: Likewise.
47657         * lib/spawn.in.h: Likewise.
47658         * lib/stdarg.in.h: Likewise.
47659         * lib/stdint.in.h: Likewise.
47660         * lib/stdio.in.h: Likewise.
47661         * lib/stdlib.in.h: Likewise.
47662         * lib/string.in.h: Likewise.
47663         * lib/strings.in.h: Likewise.
47664         * lib/sys_file.in.h: Likewise.
47665         * lib/sys_ioctl.in.h: Likewise.
47666         * lib/sys_select.in.h: Likewise.
47667         * lib/sys_socket.in.h: Likewise.
47668         * lib/sys_stat.in.h: Likewise.
47669         * lib/sys_time.in.h: Likewise.
47670         * lib/sysexits.in.h: Likewise.
47671         * lib/time.in.h: Likewise.
47672         * lib/unistd.in.h: Likewise.
47673         * lib/wchar.in.h: Likewise.
47674         * lib/wctype.in.h: Likewise.
47675         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47676
47677 2008-10-17  Jim Meyering  <meyering@redhat.com>
47678
47679         ignore-value: don't depend on inline module
47680         * modules/ignore-value (Depends-on): Remove 'inline'.
47681         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47682         Suggestion from Bruno Haible.
47683
47684 2008-10-17  Bruno Haible  <bruno@clisp.org>
47685
47686         New implementation of condition variables for Win32.
47687         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47688         (gl_linked_waitqueue_t): New type.
47689         (gl_cond_t): Use it.
47690         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47691         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47692         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47693         (glthread_cond_init_func, glthread_cond_wait_func,
47694         glthread_cond_timedwait_func, glthread_cond_signal_func,
47695         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47696         Reimplemented on the basis of gl_linked_waitqueue_t.
47697         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
47698         gl_waitqueue_t.
47699         (gl_rwlock_t): Update.
47700         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
47701
47702 2008-10-17  Simon Josefsson  <simon@josefsson.org>
47703
47704         * modules/recvfrom (Depends-on): Add dependency on getpeername.
47705         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47706
47707 2008-10-17  Jim Meyering  <meyering@redhat.com>
47708
47709         ignore-value: new module
47710         * modules/ignore-value: New file.
47711         * lib/ignore-value.h: New file.
47712         * MODULES.html.sh (Compiler warning management): New section,
47713         just for this module.  More to come.
47714
47715 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47716
47717         open-safer.c: avoid 'signed and unsigned in conditional...' warning
47718         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
47719         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
47720
47721 2008-10-16  Jim Meyering  <meyering@redhat.com>
47722
47723         openat-die.c: avoid 'no previous prototype' warning
47724         * lib/openat-die.c: Include "openat.h".
47725         Reported by Reuben Thomas <rrt@sc3d.org>.
47726
47727 2008-10-16  Simon Josefsson  <simon@josefsson.org>
47728
47729         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
47730         * lib/netdb.in.h: Fix typo.
47731         Reported by Bruno Haible  <bruno@clisp.org>
47732
47733         * lib/netdb.in.h: Include sys/socket.h for platforms without
47734         netdb.h, to get structures like hostent on MinGW.
47735         * modules/netdb (Depends-on): Add sys_socket.
47736
47737 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47738
47739         * modules/netdb, modules/netdb-tests: New file.
47740         * m4/netdb_h.m4: New file.
47741         * lib/netdb.in.h: Add, currently just an empty file pending
47742         definitions.
47743         * tests/test-netdb.c: New file.
47744         * doc/posix-headers/netdb.texi: Mention that we replace it if
47745         needed.
47746         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47747         netdb.
47748
47749 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47750
47751         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
47752         with code.
47753
47754 2008-10-13  Bruno Haible  <bruno@clisp.org>
47755
47756         * lib/glthread/cond.c (glthread_cond_wait_func,
47757         glthread_cond_timedwait_func): Add a comment.
47758
47759 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47760
47761         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47762         * tests/test-select.c: Likewise,
47763
47764 2008-10-13  Bruno Haible  <bruno@clisp.org>
47765
47766         * lib/glthread/cond.c (glthread_cond_wait_func,
47767         glthread_cond_timedwait_func): Fix variable name.
47768         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47769
47770 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
47771
47772         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
47773         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
47774         struct sockaddr.sa_len.
47775         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
47776
47777 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47778
47779         * build-aux/pmccabe2html: Add css and css_url parameters.
47780
47781 2008-10-12  Bruno Haible  <bruno@clisp.org>
47782
47783         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47784         calling aclx_get.
47785         Reported by Rainer Tammer <tammer@tammer.net>.
47786
47787 2008-10-12  Bruno Haible  <bruno@clisp.org>
47788
47789         Use msvcrt aware primitives for creation/termination of Win32 threads.
47790         * lib/glthread/thread.c: Include <process.h>.
47791         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47792         (wrapper_func): Update signature.
47793         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47794
47795 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47796             Bruno Haible  <bruno@clisp.org>
47797
47798         Provide a Win32 implementation of the 'cond' module.
47799         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47800         * lib/glthread/cond.c (glthread_cond_init_func,
47801         glthread_cond_wait_func, glthread_cond_timedwait_func,
47802         glthread_cond_signal_func, glthread_cond_broadcast_func,
47803         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47804         * modules/cond (Dependencies): Add gettimeofday.
47805
47806 2008-10-11  Bruno Haible  <bruno@clisp.org>
47807
47808         Make sleep work on older versions of mingw.
47809         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47810         only whether it exists.
47811         * doc/posix-functions/sleep.texi: Mention the problem with older
47812         versions of mingw.
47813
47814 2008-10-11  Bruno Haible  <bruno@clisp.org>
47815
47816         New module 'shutdown'.
47817         * modules/shutdown: New file.
47818         * lib/sys_socket.in.h (shutdown): New declaration.
47819         * lib/winsock.c (shutdown): New function.
47820         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47821         GNULIB_SHUTDOWN.
47822         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47823         * doc/posix-functions/shutdown.texi: Document the new module.
47824
47825 2008-10-11  Jim Meyering  <meyering@redhat.com>
47826
47827         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47828
47829 2008-10-11  Bruno Haible  <bruno@clisp.org>
47830
47831         New module 'fclose'.
47832         * modules/fclose: New file.
47833         * lib/stdio.in.h (fclose): New declaration.
47834         * lib/fclose.c: New file.
47835         * m4/fclose.m4: New file.
47836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47837         REPLACE_FCLOSE.
47838         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47839         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47840         REPLACE_FCLOSE.
47841         * modules/close (Depends-on): fclose.
47842         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47843
47844 2008-10-11  Bruno Haible  <bruno@clisp.org>
47845
47846         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47847         set errno and don't call _close.
47848
47849 2008-10-10  Bruno Haible  <bruno@clisp.org>
47850
47851         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47852         ACL, not afterwards. Fixes test failure on Cygwin.
47853
47854 2008-10-09  Ben Pfaff  <blp@gnu.org>
47855
47856         * build-aux/announce-gen: Fix gnulib version related part of usage
47857         message.  Die with a useful error message if no tarballs are
47858         found.
47859
47860 2008-10-10  Jim Meyering  <meyering@redhat.com>
47861
47862         bootstrap: use git's --depth=N option only if it's supported
47863         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47864         recognize the --depth option.  Reported by Pádraig Brady.
47865
47866 2008-10-09  Bruno Haible  <bruno@clisp.org>
47867
47868         New module 'ioctl'.
47869         * modules/ioctl: New file.
47870         * lib/sys_socket.in.h (ioctl): Remove declaration.
47871         * lib/winsock.c: Include <sys/ioctl.h>.
47872         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47873         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47874         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47875         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47876         * doc/posix-functions/ioctl.texi: Mention the new module.
47877
47878 2008-10-09  Bruno Haible  <bruno@clisp.org>
47879
47880         New module 'sys_ioctl'.
47881         * lib/sys_ioctl.in.h: New file.
47882         * m4/sys_ioctl_h.m4: New file.
47883         * modules/sys_ioctl: New file.
47884         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47885
47886 2008-10-09  Bruno Haible  <bruno@clisp.org>
47887
47888         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47889         * lib/winsock.c: Include <stdarg.h>.
47890         (rpl_ioctl): Change to second argument 'int' and then varargs.
47891
47892 2008-10-09  Bruno Haible  <bruno@clisp.org>
47893
47894         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47895         when the sys_socket module is present and the system has <winsock2.h>.
47896
47897 2008-10-09  Bruno Haible  <bruno@clisp.org>
47898
47899         * doc/posix-functions/close.texi: Mention module 'close' instead of
47900         module 'sys_socket'.
47901
47902 2008-10-09  Bruno Haible  <bruno@clisp.org>
47903
47904         * doc/glibc-headers/sys_ioctl.texi: New file.
47905         * doc/gnulib.texi: Include it.
47906
47907 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47908             Bruno Haible  <bruno@clisp.org>
47909
47910         Combine the two replacements of 'close'.
47911         * lib/sys_socket.in.h (close): Define to a reminder to include
47912         <unistd.h>.
47913         (_gl_close_fd_maybe_socket): New declaration.
47914         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47915         * lib/winsock.c (close): Remove undefinition.
47916         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47917         needed for the gnulib module 'close'.
47918         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47919         define to an error symbol or to a warning, if suitable.
47920         * lib/close.c: Include <sys/socket.h>.
47921         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47922         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47923         UNISTD_H_HAVE_WINSOCK2_H.
47924         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47926         UNISTD_H_HAVE_WINSOCK2_H.
47927         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47928         (configure.ac): Set a module indicator.
47929         (Makefile.am): Substitute GNULIB_CLOSE.
47930         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47931         * modules/poll-tests (Depends-on): Add close.
47932         * modules/select-tests (Depends-on): Likewise.
47933
47934 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47935             Bruno Haible  <bruno@clisp.org>
47936
47937         New module 'close'.
47938         * modules/close: New file.
47939         * lib/unistd.in.h (close): Move declaration out of the
47940         FCHDIR_REPLACEMENT scope.
47941         (_gl_unregister_fd): New declaration.
47942         * lib/close.c: New file.
47943         * lib/fchdir.c (rpl_close): Remove function.
47944         * m4/close.m4: New file.
47945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47946         close.
47947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47948         REPLACE_CLOSE.
47949         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47950         REPLACE_CLOSE.
47951         * modules/fchdir (Depends-on): Add close.
47952
47953 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47954             Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/fcntl.in.h (open): Simplify conditionals.
47957         (_gl_register_fd): New declaration.
47958         * lib/fchdir.c (rpl_open): Remove function.
47959         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47960         also.
47961         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47963         open.
47964
47965 2008-10-09  Jim Meyering  <meyering@redhat.com>
47966
47967         GNUmakefile: use the more name-space-friendly "_version"
47968         * top/GNUmakefile (_dummy): Update.
47969         (_version): Rename from "version".
47970
47971 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47972             Bruno Haible  <bruno@clisp.org>
47973
47974         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47975         rpl_close.
47976         (_gl_register_fd): New function, extracted from rpl_open.
47977         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47978         (rpl_open, rpl_opendir): Use _gl_register_fd.
47979
47980 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47981
47982         Fix organization of 'open' replacement.
47983         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47984         (gl_FUNC_OPEN): Use it.
47985         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47986
47987 2008-10-08  Bruno Haible  <bruno@clisp.org>
47988
47989         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47990
47991 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47992
47993         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47994         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47995         listen).
47996
47997 2008-10-08  Eric Blake  <ebb9@byu.net>
47998
47999         GNUmakefile: add 'make version' target
48000         * top/GNUmakefile (_curr-ver): Split version update rules...
48001         (version): ...into a target.
48002
48003 2008-10-07  Bruno Haible  <bruno@clisp.org>
48004
48005         Use a more portable replacement expression for -0.0L.
48006         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48007         instead of -0.0L. Fix m4 quotation.
48008
48009         * tests/test-signbit.c: Include <float.h>.
48010         (minus_zero): New variable.
48011         (test_signbitl): Use minus_zero instead of -zero.
48012         * modules/signbit-tests (Depends-on): Add float.
48013
48014         * tests/test-ceill.c: Include <float.h>.
48015         (zero): Remove variable.
48016         (minus_zero): New variable.
48017         (main): Use minus_zero instead of -zero.
48018         * modules/ceill-tests (Depends-on): Add float.
48019
48020         * tests/test-floorl.c: Include <float.h>.
48021         (zero): Remove variable.
48022         (minus_zero): New variable.
48023         (main): Use minus_zero instead of -zero.
48024         * modules/floorl-tests (Depends-on): Add float.
48025
48026         * tests/test-roundl.c: Include <float.h>.
48027         (zero): Remove variable.
48028         (minus_zero): New variable.
48029         (main): Use minus_zero instead of -zero.
48030         * modules/roundl-tests (Depends-on): Add float.
48031
48032         * tests/test-truncl.c: Include <float.h>.
48033         (zero): Remove variable.
48034         (minus_zero): New variable.
48035         (main): Use minus_zero instead of -zero.
48036         * modules/truncl-tests (Depends-on): Add float.
48037
48038         * tests/test-frexpl.c (zero): Remove variable.
48039         (minus_zero): New variable.
48040         (main): Use minus_zero instead of -zero.
48041         * modules/frexpl-tests (Depends-on): Add float.
48042
48043         * tests/test-isnan.c (zerol): Remove variable.
48044         (minus_zerol): New variable.
48045         (test_long_double): Use minus_zerol instead of -zerol.
48046         * modules/isnan-tests (Depends-on): Add float.
48047
48048         * tests/test-isnanl.h (zero): Remove variable.
48049         (minus_zero): New variable.
48050         (main): Use minus_zero instead of -zero.
48051         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48052         * modules/isnanl-tests (Depends-on): Add float.
48053
48054         * tests/test-ldexpl.c (zero): Remove variable.
48055         (minus_zero): New variable.
48056         (main): Use minus_zero instead of -zero.
48057         * modules/ldexpl-tests (Depends-on): Add float.
48058
48059         * tests/test-snprintf-posix.h (zerol): Remove variable.
48060         (minus_zerol): New variable.
48061         (test_function): Use minus_zerol instead of -zerol.
48062         * modules/snprintf-posix-tests (Depends-on): Add float.
48063         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48064
48065         * tests/test-sprintf-posix.h (zerol): Remove variable.
48066         (minus_zerol): New variable.
48067         (test_function): Use minus_zerol instead of -zerol.
48068         * modules/sprintf-posix-tests (Depends-on): Add float.
48069         * modules/vsprintf-posix-tests (Depends-on): Add float.
48070
48071         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48072         (minus_zerol): New variable.
48073         (test_function): Use minus_zerol instead of -zerol.
48074         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48075
48076         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48077         (minus_zerol): New variable.
48078         (test_function): Use minus_zerol instead of -zerol.
48079         * modules/vasprintf-posix-tests (Depends-on): Add float.
48080
48081 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48082
48083         * MODULES.html.sh (Support for building documentation): Mention
48084         pmccabe2html.  Sort entries.
48085
48086         Add pmccabe2html module, from gnupdf.
48087         * build-aux/pmccabe.css: New file.
48088         * build-aux/pmccabe2html: New file.
48089         * m4/pmccabe2html.m4: New file.
48090         * modules/pmccabe2html: New file.
48091
48092 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48093
48094         flock: new module
48095         * MODULES.html.sh: Add to list of modules.
48096         * lib/flock.c: flock implementation for Windows and Unix systems
48097         which have fcntl.
48098         * doc/glibc-functions/flock.texi: Update documentation.
48099         * lib/sys_file.in.h: <sys/file.h> header file.
48100         * m4/flock.m4: M4 macros.
48101         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48102         * modules/flock: flock module.
48103         * modules/flock-tests: flock tests module.
48104         * modules/sys_file: sys/file.h module.
48105         * tests/test-flock.c: test suite for flock.
48106
48107 2008-10-06  Jim Meyering  <meyering@redhat.com>
48108
48109         bootstrap: check for LT_INIT more portably still ;-)
48110         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48111         Spotted by Bruno Haible.
48112
48113 2008-10-06  Eric Blake  <ebb9@byu.net>
48114
48115         test-signbit: avoid tripping Irix cc bug on -0.0L
48116         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48117         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48118         entire testsuite consistent and avoids an Irix 6.2 bug.
48119
48120 2008-10-05  Bruno Haible  <bruno@clisp.org>
48121             Jim Meyering  <jim@meyering.net>
48122
48123         Add an option for ignoring EPIPE during close_stdout.
48124         * lib/closeout.h: Include <stdbool.h>.
48125         (close_stdout_set_ignore_EPIPE): New declaration.
48126         * lib/closeout.c: Include <stdbool.h>.
48127         (ignore_EPIPE): New variable.
48128         (close_stdout_set_ignore_EPIPE): New function.
48129         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48130         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48131         failure.
48132         * modules/closeout (Depends-on): Add stdbool.
48133
48134 2008-10-05  Bruno Haible  <bruno@clisp.org>
48135
48136         * modules/accept: New file.
48137         * modules/bind: New file.
48138         * modules/connect: New file.
48139         * modules/getpeername: New file.
48140         * modules/getsockname: New file.
48141         * modules/getsockopt: New file.
48142         * modules/listen: New file.
48143         * modules/recv: New file.
48144         * modules/recvfrom: New file.
48145         * modules/send: New file.
48146         * modules/sendto: New file.
48147         * modules/setsockopt: New file.
48148         * modules/socket: New file.
48149         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48150         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48151         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48152         the particular module is requested. Add a link warning when the
48153         particular module is not requested.
48154         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48155         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48156         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48157         the particular module is requested.
48158         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48159         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48160         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48161         * modules/sys_socket (Depends-on): Add link-warning.
48162         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48163         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48164         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48165         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48166         GL_LINK_WARNING.
48167         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48168         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48169         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48170         * doc/posix-functions/getpeername.texi: Mention the new module
48171         'getpeername'.
48172         * doc/posix-functions/getsockname.texi: Mention the new module
48173         'getsockname'.
48174         * doc/posix-functions/getsockopt.texi: Mention the new module
48175         'getsockopt'.
48176         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48177         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48178         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48179         * doc/posix-functions/send.texi: Mention the new module 'send'.
48180         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48181         * doc/posix-functions/setsockopt.texi: Mention the new module
48182         'setsockopt'.
48183         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48184         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48185         listen, connect, accept.
48186         * modules/select-tests (Depends-on): Likewise.
48187
48188 2008-10-05  Bruno Haible  <bruno@clisp.org>
48189
48190         * lib/winsock.c (strerror): Remove unused #undef.
48191         (rpl_close): Remove unused local variable.
48192
48193         * modules/sys_socket (Depends-on); Add errno.
48194
48195 2008-10-05  Bruno Haible  <bruno@clisp.org>
48196
48197         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48198         (select): Add a link warning when the 'select' module is not used.
48199         * modules/sys_select (Depends-on): Add link-warning.
48200         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48201         Suggested by Paolo Bonzini.
48202
48203 2008-10-05  Jim Meyering  <meyering@redhat.com>
48204
48205         bootstrap: check for LT_INIT more portably
48206         * build-aux/bootstrap: Avoid using grep -E, since it's not
48207         portable enough.  Suggestion from Bruno Haible.
48208
48209 2008-10-05  Bruno Haible  <bruno@clisp.org>
48210
48211         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48212         as being fixed by gnulib.
48213
48214 2008-10-05  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/select-tests: New file, mostly copied from
48217         modules/sys_select-tests.
48218         * tests/test-select.c: New file, mostly copied from
48219         tests/test-sys_select.c.
48220         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48221         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48222         (Makefile.am): Remove test_sys_select_LDADD.
48223
48224         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48225         to an undefined symbol, for an error message.
48226         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48227         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48228         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48229         winsock-select.c here.
48230         * modules/sys_select (Files): Remove lib/winsock-select.c.
48231         (Depends-on): Remove alloca.
48232         (Makefile.am): Substitute GNULIB_SELECT.
48233         * modules/select: New file.
48234         * doc/posix-functions/select.texi: Update.
48235
48236 2008-10-05  Bruno Haible  <bruno@clisp.org>
48237
48238         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48239         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48240         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48241         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48242         getdtablesize.
48243         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48244         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48245
48246 2008-10-05  Bruno Haible  <bruno@clisp.org>
48247
48248         * modules/getdtablesize-tests: New file.
48249         * tests/test-getdtablesize.c: New file.
48250
48251         New module 'getdtablesize'.
48252         * lib/unistd.in.h (getdtablesize): New declaration.
48253         * lib/getdtablesize.c: New file.
48254         * m4/getdtablesize.m4: New file.
48255         * modules/getdtablesize: New file.
48256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48257         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48258         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48259         HAVE_GETDTABLESIZE.
48260         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48261
48262 2008-10-05  Bruno Haible  <bruno@clisp.org>
48263
48264         * modules/sched (Makefile.am): Fix typo.
48265         Reported by Simon Josefsson.
48266
48267 2008-10-05  Jim Meyering  <meyering@redhat.com>
48268
48269         bootstrap: check for LT_INIT, too
48270         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48271         are deprecated.  Suggestion from Ralf Wildenhues.
48272
48273 2008-10-05  Bruno Haible  <bruno@clisp.org>
48274
48275         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48276         overriding them by ours.
48277         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48278
48279 2008-10-05  Jim Meyering  <meyering@redhat.com>
48280
48281         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48282         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48283         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48284
48285 2008-10-04  Bruno Haible  <bruno@clisp.org>
48286
48287         * modules/dup2 (License): Change to LGPLv2+.
48288         * modules/sleep (License): Likewise.
48289         * modules/perror (License): Likewise.
48290         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48291         Blake.
48292         * modules/signal (License): Likewise.
48293         * modules/sigprocmask (License): Likewise.
48294         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48295         Meyering.
48296
48297 2008-10-04  Bruno Haible  <bruno@clisp.org>
48298
48299         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48300         Reported by Rainer Tammer <tammer@tammer.net>.
48301
48302 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48303             Bruno Haible  <bruno@clisp.org>
48304
48305         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48306         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48307         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48308
48309 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48310
48311         filevercmp: new module
48312         * lib/filevercmp.h: New function filevercmp comparing version strings.
48313         * lib/filevercmp.c: Implementation of filevercmp function.
48314         * modules/filevercmp: Module metadata.
48315         * tests/test-filevercmp.c: Unit test for new module.
48316         * modules/filevercmp-tests: Unit test metadata.
48317         * MODULES.html.sh: Add filevercmp module.
48318
48319 2008-10-03  Bruno Haible  <bruno@clisp.org>
48320
48321         * lib/c-ctype.h: Add comment.
48322         Reported by Jim Meyering.
48323
48324 2008-10-02  Bruno Haible  <bruno@clisp.org>
48325
48326         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48327
48328 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48329
48330         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48331         name of bootstrap.conf accordingly.
48332
48333 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48334
48335         * build-aux/bootstrap: Install git-merge-changelog configuration
48336         items into .gitconfig if needed.
48337
48338 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48339
48340         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48341         git repository, and initialize/update it accordingly.
48342
48343 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48344
48345         * modules/fsync-tests: New file.
48346         * tests/test-fsync.c: New file.
48347
48348         New module 'fsync'.
48349         * lib/fsync.c: New file.
48350         * m4/fsync.m4: New file.
48351         * modules/fsync: New file.
48352         * lib/unistd.in.h (fsync): New declaration.
48353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48354         GNULIB_FSYNC and HAVE_FSYNC.
48355         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48356         * MODULES.html.sh (posix_functions): Add fsync.
48357         * doc/posix-functions/fsync.texi: Mention the new module.
48358
48359 2008-10-02  Jim Meyering  <meyering@redhat.com>
48360
48361         fts.c: sync with similar code from coreutils' remove.c
48362         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48363         Guard also with "#if defined __linux__", since for now at least,
48364         this code is Linux-kernel-specific.
48365
48366 2008-10-02  Jim Meyering  <meyering@redhat.com>
48367
48368         fts: bug fixes
48369         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48370         Include <sys/vfs.h>, not <sys/statfs.h>.
48371
48372         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48373         Include <sys/vfs.h>, not <sys/statfs.h>.
48374
48375 2008-10-01  Bruno Haible  <bruno@clisp.org>
48376
48377         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48378         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48379         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48380         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48381         * doc/posix-functions/posix_spawnp.texi: Likewise.
48382         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48383         whether posix_spawn actually works.
48384         * m4/pipe.m4 (gl_PIPE): Likewise.
48385         * modules/execute (Files): Add m4/posix_spawn.m4.
48386         * modules/pipe (Files): Add m4/posix_spawn.m4.
48387         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48388
48389 2008-10-01  Jim Meyering  <meyering@redhat.com>
48390
48391         remove trailing spaces
48392         * NEWS: Likewise.
48393         * lib/poll.c (poll): Likewise.
48394         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48395         * lib/winsock.c (rpl_close): Likewise.
48396         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48397         * modules/yield: Likewise.
48398         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48399         * tests/test-sys_select.c (connect_to_socket): Likewise.
48400
48401         fts.c: adjust a new interface to be more generally useful
48402         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48403         (fts_build): Adjust caller.
48404
48405 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48406
48407         * modules/cond-tests: New file.
48408         * tests/test-cond.c: New file.
48409
48410 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48411             Bruno Haible  <bruno@clisp.org>
48412
48413         * modules/cond (Dependencies): Add errno, time.
48414         * lib/glthread/cond.h: Include <time.h>.
48415         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48416         across platforms.
48417
48418 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48419             Bruno Haible  <bruno@clisp.org>
48420
48421         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48422
48423 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48424             Bruno Haible  <bruno@clisp.org>
48425
48426         * modules/tls-tests (Depends-on): Add thread, yield.
48427         (configure.ac): Remove all checks.
48428         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48429         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48430         gl_thread_self): Remove definitions. Include glthread/thread.h and
48431         glthread/yield.h instead.
48432         (test_tls): Pass an additional NULL argument to gl_thread_join.
48433
48434 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48435             Bruno Haible  <bruno@clisp.org>
48436
48437         * modules/lock-tests (Depends-on): Add thread, yield.
48438         (configure.ac): Remove all checks.
48439         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48440         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48441         gl_thread_self): Remove definitions. Include glthread/thread.h and
48442         glthread/yield.h instead.
48443         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48444         additional NULL argument to gl_thread_join.
48445
48446 2008-09-30  Bruno Haible  <bruno@clisp.org>
48447
48448         Fix the Win32 implementation of the 'thread' module.
48449         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48450         pointer type.
48451         (gl_thread_self): Invoke gl_thread_self_func.
48452         (gl_thread_self_func): New declaration.
48453         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48454         (do_init_self_key, init_self_key): New functions.
48455         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48456         Remove some fields.
48457         (running_threads, running_lock): Remove variables.
48458         (get_current_thread_handle): New function.
48459         (gl_thread_self_func, wrapper_func, glthread_create_func,
48460         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48461         simplified.
48462
48463 2008-09-30  Bruno Haible  <bruno@clisp.org>
48464
48465         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48466         files.
48467
48468 2008-09-30  Jim Meyering  <meyering@redhat.com>
48469
48470         fts.m4: correct the test for statfs.f_type
48471         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48472         when checking for statfs.f_type.
48473
48474 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48475
48476         tests: avoid some compiler warnings
48477         * tests/test-memchr.c (main): Pass NULL indirectly.
48478         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48479
48480 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48481
48482         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48483         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48484         exactly specified dayshifts.
48485         (dayshift): New rule.
48486         (rel): Add dayshift.
48487         (relative_time_table) [tomorrow, yesterday, today, now]:
48488         Use tDAY_SHIFT in place of tDAY_UNIT.
48489         * tests/test-getdate.c: Add tests for now-disallowed countable
48490         dayshifts, e.g., "4 yesterday ago".
48491
48492 2008-09-29  Bruno Haible  <bruno@clisp.org>
48493
48494         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48495         * tests/test-posix_spawn1.in.sh: Renamed from
48496         tests/test-posix_spawn.in.sh.
48497         * tests/test-posix_spawn2.c: New file.
48498         * tests/test-posix_spawn2.in.sh: New file.
48499         * modules/posix_spawnp-tests (Files): Update.
48500         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48501
48502 2008-09-29  Bruno Haible  <bruno@clisp.org>
48503
48504         Propagate effects of putenv/setenv/unsetenv to child processes.
48505         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48506         * lib/pipe.c (create_pipe): Likewise.
48507
48508 2008-09-29  Bruno Haible  <bruno@clisp.org>
48509
48510         Enable use of shell scripts as executables in mingw.
48511         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48512         run the program as a shell script.
48513         * lib/pipe.c (create_pipe): Likewise.
48514         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48515         resulting array.
48516
48517 2008-09-29  Eric Blake  <ebb9@byu.net>
48518
48519         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48520
48521 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48522
48523         * doc/posix-functions/accept.texi: Update mingw problems.
48524         * doc/posix-functions/bind.texi: Update mingw problems.
48525         * doc/posix-functions/close.texi: Update mingw problems.
48526         * doc/posix-functions/connect.texi: Update mingw problems.
48527         * doc/posix-functions/getpeername.texi: Update mingw problems.
48528         * doc/posix-functions/getsockname.texi: Update mingw problems.
48529         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48530         * doc/posix-functions/ioctl.texi: Update mingw problems.
48531         * doc/posix-functions/listen.texi: Update mingw problems.
48532         * doc/posix-functions/recv.texi: Update mingw problems.
48533         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48534         * doc/posix-functions/select.texi: Update mingw problems.
48535         * doc/posix-functions/send.texi: Update mingw problems.
48536         * doc/posix-functions/sendto.texi: Update mingw problems.
48537         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48538         * doc/posix-functions/socket.texi: Update mingw problems.
48539
48540 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48541             Bruno Haible  <bruno@clisp.org>
48542
48543         * lib/sys_select.in.h: Include sys/time.h.
48544         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48545         * modules/sys_select: Depend on sys_time.
48546         * tests/test-sys_select.c: Test that sys/select.h defines struct
48547         timeval fully.
48548
48549 2008-09-29  Bruno Haible  <bruno@clisp.org>
48550
48551         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48552         * lib/sys_select.in.h: Likewise.
48553
48554 2008-09-29  Bruno Haible  <bruno@clisp.org>
48555
48556         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48557
48558 2008-09-29  Bruno Haible  <bruno@clisp.org>
48559
48560         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48561         Set LIBSOCKET instead of augmenting LIBS.
48562         * modules/sockets (Link): New section.
48563         * modules/sockets-tests (test_sockets_LDADD): New variable.
48564         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48565         * modules/poll-tests (test_poll_LDADD): New variable.
48566         * NEWS: Document the change.
48567
48568 2008-09-29  Bruno Haible  <bruno@clisp.org>
48569
48570         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48571         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48572         ARPA_INET_H directly.
48573         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48574
48575 2008-09-28  Bruno Haible  <bruno@clisp.org>
48576
48577         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48578         from gl_HEADER_SYS_SOCKET.
48579         (gl_HEADER_SYS_SOCKET): Invoke it.
48580         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48581
48582 2008-09-28  Bruno Haible  <bruno@clisp.org>
48583
48584         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48585         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48586         Needed on OSF/1 4.0.
48587
48588 2008-09-28  Bruno Haible  <bruno@clisp.org>
48589
48590         Override open more carefully.
48591         * lib/open.c (orig_open): New function.
48592         (rpl_open): Use orig_open instead of open.
48593         * lib/fcntl.in.h: Add special invocation convention.
48594         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48595         (gl_FUNC_OPEN): Invoke it.
48596
48597         Override freopen more carefully.
48598         * lib/freopen.c (orig_freopen): New function.
48599         (rpl_freopen): Use orig_freopen instead of freopen.
48600         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48601         (gl_FUNC_FREOPEN): Invoke it.
48602
48603         Override fopen more carefully.
48604         * lib/fopen.c (orig_fopen): New function.
48605         (rpl_fopen): Use orig_fopen instead of fopen.
48606         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48607         (gl_FUNC_FOPEN): Invoke it.
48608         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48609
48610 2008-09-28  Bruno Haible  <bruno@clisp.org>
48611
48612         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48613         SIGPIPE.
48614
48615 2008-09-28  Bruno Haible  <bruno@clisp.org>
48616
48617         * tests/test-sigaction.c (handler, main): Disable the check whether
48618         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48619         glibc systems with LinuxThreads.
48620
48621 2008-09-28  Bruno Haible  <bruno@clisp.org>
48622
48623         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48624
48625         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48626         with AIX xlc.
48627         * lib/fcntl.in.h (open): Likewise.
48628         Reported by Rainer Tammer <tammer@tammer.net>.
48629
48630 2008-09-28  Bruno Haible  <bruno@clisp.org>
48631
48632         * modules/posix_spawnp-tests: New file.
48633         * tests/test-posix_spawn.c: New file.
48634         * tests/test-posix_spawn.in.sh: New file.
48635
48636         New module 'posix_spawnp'.
48637         * modules/posix_spawnp: New file.
48638         * lib/spawnp.c: New file, from GNU libc with modifications.
48639         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48640
48641         New module 'posix_spawn'.
48642         * modules/posix_spawn: New file.
48643         * lib/spawn.c: New file, from GNU libc with modifications.
48644         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48645
48646         New module 'posix_spawnattr_destroy'.
48647         * modules/posix_spawnattr_destroy: New file.
48648         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48649         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48650         module.
48651
48652         New module 'posix_spawnattr_setsigmask'.
48653         * modules/posix_spawnattr_setsigmask: New file.
48654         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48655         modifications.
48656         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48657         new module.
48658
48659         New module 'posix_spawnattr_getsigmask'.
48660         * modules/posix_spawnattr_getsigmask: New file.
48661         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48662         modifications.
48663         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48664         new module.
48665
48666         New module 'posix_spawnattr_setsigdefault'.
48667         * modules/posix_spawnattr_setsigdefault: New file.
48668         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48669         modifications.
48670         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48671         new module.
48672
48673         New module 'posix_spawnattr_getsigdefault'.
48674         * modules/posix_spawnattr_getsigdefault: New file.
48675         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48676         modifications.
48677         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48678         new module.
48679
48680         New module 'posix_spawnattr_setschedpolicy'.
48681         * modules/posix_spawnattr_setschedpolicy: New file.
48682         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48683         modifications.
48684         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48685         new module.
48686
48687         New module 'posix_spawnattr_getschedpolicy'.
48688         * modules/posix_spawnattr_getschedpolicy: New file.
48689         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48690         modifications.
48691         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48692         new module.
48693
48694         New module 'posix_spawnattr_setschedparam'.
48695         * modules/posix_spawnattr_setschedparam: New file.
48696         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48697         modifications.
48698         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
48699         new module.
48700
48701         New module 'posix_spawnattr_getschedparam'.
48702         * modules/posix_spawnattr_getschedparam: New file.
48703         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
48704         modifications.
48705         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
48706         new module.
48707
48708         New module 'posix_spawnattr_setpgroup'.
48709         * modules/posix_spawnattr_setpgroup: New file.
48710         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
48711         modifications.
48712         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
48713         module.
48714
48715         New module 'posix_spawnattr_getpgroup'.
48716         * modules/posix_spawnattr_getpgroup: New file.
48717         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
48718         modifications.
48719         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
48720         module.
48721
48722         New module 'posix_spawnattr_setflags'.
48723         * modules/posix_spawnattr_setflags: New file.
48724         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
48725         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
48726         module.
48727
48728         New module 'posix_spawnattr_getflags'.
48729         * modules/posix_spawnattr_getflags: New file.
48730         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
48731         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
48732         module.
48733
48734         New module 'posix_spawnattr_init'.
48735         * modules/posix_spawnattr_init: New file.
48736         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
48737         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
48738         module.
48739
48740         New module 'posix_spawn_file_actions_destroy'.
48741         * modules/posix_spawn_file_actions_destroy: New file.
48742         * lib/spawn_faction_destroy.c: New file, from GNU libc with
48743         modifications.
48744         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
48745         the new module.
48746
48747         New module 'posix_spawn_file_actions_addopen'.
48748         * modules/posix_spawn_file_actions_addopen: New file.
48749         * lib/spawn_faction_addopen.c: New file, from GNU libc with
48750         modifications.
48751         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
48752         the new module.
48753
48754         New module 'posix_spawn_file_actions_adddup2'.
48755         * modules/posix_spawn_file_actions_adddup2: New file.
48756         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48757         modifications.
48758         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48759         the new module.
48760
48761         New module 'posix_spawn_file_actions_addclose'.
48762         * modules/posix_spawn_file_actions_addclose: New file.
48763         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48764         modifications.
48765         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48766         the new module.
48767
48768         New module 'posix_spawn_file_actions_init'.
48769         * modules/posix_spawn_file_actions_init: New file.
48770         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
48771         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
48772         new module.
48773
48774         New module 'posix_spawn-internal'.
48775         * modules/posix_spawn-internal: New file.
48776         * lib/spawn_int.h: New file, from GNU libc with modifications.
48777         * lib/spawni.c: New file, from GNU libc with modifications.
48778         * m4/posix_spawn.m4: New file.
48779
48780         New module 'spawn'.
48781         * modules/spawn: New file.
48782         * lib/spawn.in.h: New file, from GNU libc with modifications.
48783         * m4/spawn_h.m4: New file.
48784         * doc/posix-headers/spawn.texi: Mention the new module.
48785
48786 2008-09-28  Bruno Haible  <bruno@clisp.org>
48787
48788         * modules/sched-tests: New file.
48789         * tests/test-sched.c: New file.
48790
48791         New module 'sched'.
48792         * modules/sched: New file.
48793         * lib/sched.in.h: New file.
48794         * m4/sched_h.m4: New file.
48795         * doc/posix-headers/sched.texi: Mention the new module.
48796
48797 2008-09-27  Eric Blake  <ebb9@byu.net>
48798
48799         Fix previous patch, and tweak references to $0.
48800         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48801         (func_version, func_gnulib_dir): Don't call this program
48802         gnulib-tool.
48803         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48804         with using $0 in function.
48805         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48806         (func_fatal_error): Reuse the name the user invoked us with.
48807
48808 2008-09-27  Bruno Haible  <bruno@clisp.org>
48809
48810         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48811         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48812         (gl_ICONV_H): Not here.
48813         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48814         instead of assigning ICONV_H directly.
48815
48816         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48818         WCHAR_H directly.
48819
48820 2008-09-27  Bruno Haible  <bruno@clisp.org>
48821
48822         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48823         * modules/arpa_inet (Depends-on): Add link-warning.
48824         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48825         * modules/unistd (Makefile.am): Likewise.
48826
48827 2008-09-26  Bruno Haible  <bruno@clisp.org>
48828
48829         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48830         variables.
48831         (func_version): Essentially copied from gnulib-tool.
48832         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48833         func_readlink): Copied from gnulib-tool.
48834
48835 2008-09-26  Bruno Haible  <bruno@clisp.org>
48836
48837         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48838         invoking git-version-gen.
48839
48840 2008-09-26  Bruno Haible  <bruno@clisp.org>
48841
48842         * posix-modules: Update to directory names changed on 2008-01-19.
48843         Remove commas in output before splitting into words. No more need to
48844         avoid 'ftruncate' since 2007-02-19.
48845
48846 2008-09-26  Bruno Haible  <bruno@clisp.org>
48847
48848         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48849
48850 2008-09-26  Bruno Haible  <bruno@clisp.org>
48851
48852         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48853         * modules/fwriteerror (Depends-on): Add errno.
48854
48855 2008-09-26  Bruno Haible  <bruno@clisp.org>
48856
48857         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48858         * tests/test-vc-list-files-cvs.sh: Likewise.
48859
48860 2008-09-26  Bruno Haible  <bruno@clisp.org>
48861
48862         * doc/posix-headers/sys_resource.texi: Reorder items.
48863
48864 2008-09-26  Jim Meyering  <meyering@redhat.com>
48865
48866         fts: tweak inode comparison function
48867         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48868         inode numbers, as documented.
48869
48870         fts: sort dirent entries on inode number before traversing
48871         This avoids a quadratic, seek-related performance penalty when
48872         operating on a directory containing many entries (measurable at 10k;
48873         3.5 hours at 2 million entries with a cold cache) on certain types
48874         of file systems, including ext3 and ext4, but not tmpfs.
48875         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48876         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48877         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48878         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48879         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48880         (fts_build): Set the stat.st_ino member from D_INO.
48881         If it is likely to be useful, sort dirent entries on inode number.
48882
48883         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48884         and the struct statfs.f_type member.
48885         * modules/fts (Depends-on): Add d-ino.
48886
48887 2008-09-26  Bruno Haible  <bruno@clisp.org>
48888
48889         * modules/sigpipe-die (Depends-on): Add sigpipe.
48890
48891         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48892         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48893         and GNULIB_STDIO_H_SIGPIPE are set.
48894         * lib/stdio-write.c: New file.
48895         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48896         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48897         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48898         REPLACE_STDIO_WRITE_FUNCS.
48899         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48900         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48901         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48902         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48903         * modules/stdio (Files): Add lib/stdio-write.c.
48904         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48905         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48906         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48907         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48908         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48909         REPLACE_FPRINTF_POSIX.
48910         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48911         REPLACE_PRINTF_POSIX.
48912         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48913         REPLACE_VFPRINTF_POSIX.
48914         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48915         REPLACE_VPRINTF_POSIX.
48916         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48917         SIGPIPE issue.
48918         * doc/posix-functions/fputc.texi: Likewise.
48919         * doc/posix-functions/fputs.texi: Likewise.
48920         * doc/posix-functions/fwrite.texi: Likewise.
48921         * doc/posix-functions/printf.texi: Likewise.
48922         * doc/posix-functions/putc.texi: Likewise.
48923         * doc/posix-functions/putchar.texi: Likewise.
48924         * doc/posix-functions/puts.texi: Likewise.
48925         * doc/posix-functions/vfprintf.texi: Likewise.
48926         * doc/posix-functions/vprintf.texi: Likewise.
48927
48928         * modules/safe-write (Depends-on): Add write.
48929
48930         * modules/sigpipe-tests: New file.
48931         * tests/test-sigpipe.c: New file.
48932         * tests/test-sigpipe.sh: New file.
48933
48934         * modules/write: New file.
48935         * lib/unistd.in.h: Include <sys/types.h>.
48936         (write): New declaration.
48937         * lib/write.c: New file.
48938         * m4/write.m4: New file.
48939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48940         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48941         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48942         GNULIB_WRITE, REPLACE_WRITE.
48943         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48944         and the SIGPIPE issue.
48945
48946         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48947         (raise): New declaration.
48948         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48949         (ext_signal): New function.
48950         (rpl_raise): New function.
48951         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48952         GNULIB_SIGNAL_H_SIGPIPE.
48953         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48954         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48955
48956         * modules/sigpipe: New file.
48957         * m4/sigpipe.m4: New file.
48958
48959 2008-09-25  Derek Price  <derek@ximbiot.com>
48960             Bruno Haible  <bruno@clisp.org>
48961
48962         * gnulib-tool (func_import): Report all license incompatibilities, not
48963         just the first one.
48964
48965 2008-09-25  Bruno Haible  <bruno@clisp.org>
48966
48967         * gnulib-tool (func_import): When computing the edits, consider not
48968         only the Makefile.ams that exist but also those that will be generated.
48969
48970 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48971
48972         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48973         fixes gnulib-tool --test warning about duplicate dependency.
48974
48975 2008-09-25  Bruno Haible  <bruno@clisp.org>
48976
48977         * gnulib-tool: Don't ask the user to perform edits in the generated
48978         Makefile.ams.
48979         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48980         apply to the Makefile.am being generated.
48981         (func_emit_tests_Makefile_am): Execute edits that apply to the
48982         Makefile.am being generated.
48983         (func_import): Setup list of Makefile.am edits before emitting the
48984         Makefile.ams, not at the end.
48985         (func_create_testdir): Update.
48986         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48987
48988 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48989
48990         * gnulib-tool (func_import): Store the --tests-base option in the
48991         comment in gnulib-cache.m4.
48992
48993 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48994
48995         * NEWS: Document increased portability that sys_select now provides.
48996
48997         * lib/sys_select.in.h: Install select wrapper.
48998         * lib/sys_socket.in.h: Use more descriptive name when there is no
48999         select wrapper.
49000         * lib/winsock-select.c: New.
49001         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49002         Require gl_HEADER_SYS_SOCKET.
49003         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49004         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49005         * tests/test-sys_select.c: Add functional tests.
49006
49007 2008-09-24  Eric Blake  <ebb9@byu.net>
49008
49009         open, fopen: close fd leak in last patch
49010         * lib/open.c (rpl_open): Close fd before returning error.
49011         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49012         * doc/posix-functions/open.texi (open): Document that Irix also
49013         has the bug.
49014         * doc/posix-functions/fopen.texi (fopen): Likewise.
49015         Reported by Paolo Bonzini.
49016
49017 2008-09-24  Bruno Haible  <bruno@clisp.org>
49018
49019         Ensure that a filename ending in a slash cannot be used to access a
49020         non-directory.
49021         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49022         to check whether it's really a directory.
49023         * lib/fopen.c: Include fcntl.h, unistd.h.
49024         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49025         and fdopen().
49026         * modules/fopen (Depends-on): Add unistd.
49027         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49028         * tests/test-fopen.c (main): Likewise.
49029         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49030         * doc/posix-functions/fopen.texi: Likewise.
49031         Reported by Eric Blake.
49032
49033 2008-09-23  Eric Blake  <ebb9@byu.net>
49034
49035         c-stack: avoid compiler optimizations when provoking overflow
49036         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49037         recursion harder to optimize, to ensure a stack overflow occurs.
49038         * tests/test-c-stack.c (recurse): Likewise.
49039         Borrowed from libsigsegv.
49040
49041         c-stack: work around Irix sigaltstack bug
49042         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49043         whether sigaltstack uses wrong end of stack_t (copied in part from
49044         libsigsegv).
49045         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49046         Irix bug, without requiring an over-allocation.
49047         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49048         bug.
49049
49050         fopen: document mingw bug on directories
49051         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49052         not allowing a stream visiting a directory, even though reading
49053         from such a stream is not portable.
49054
49055 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49056
49057         * lib/poll.c: Rewrite.
49058         * modules/poll: Depend on alloca.
49059
49060 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49061
49062         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49063         instead define prototypes for a full set of wrappers.  Ensure
49064         that Cygwin does not use the compatibility code, which is only
49065         for MinGW.
49066         * lib/winsock.c: New.
49067         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49068         * modules/sys_socket: Add lib/winsock.c.
49069
49070         * modules/poll-tests: Add errno and perror.
49071         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49072
49073 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49074
49075         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49076
49077 2008-09-23  Bruno Haible  <bruno@clisp.org>
49078
49079         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49080         * doc/glibc-functions/*: Likewise.
49081
49082 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49083
49084         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49085         success.
49086
49087 2008-09-22  Eric Blake  <ebb9@byu.net>
49088             Bruno Haible  <bruno@clisp.org>
49089
49090         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49091         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49092         supply %A but mishandle pseudo-NaN.
49093         Reported by Simon Josefsson.
49094
49095 2008-09-21  Bruno Haible  <bruno@clisp.org>
49096
49097         * tests/test-lock.c (main): Tweak skip message.
49098         * tests/test-tls.c (main): Likewise.
49099
49100 2008-09-21  Bruno Haible  <bruno@clisp.org>
49101
49102         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49103         whether 'struct sigaction' has sa_sigaction here...
49104         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49105         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49106
49107 2008-09-21  Bruno Haible  <bruno@clisp.org>
49108
49109         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49110         section.
49111         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49112         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49113         the new section.
49114         (Support for obsolete systems lacking POSIX:2001): New section.
49115         (String handling <string.h>): Move strdup to the new section.
49116         Suggested by Simon Josefsson and Paolo Bonzini.
49117
49118 2008-09-21  Bruno Haible  <bruno@clisp.org>
49119
49120         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49121         exponents in %e and %g results on 'long double'. Needed for mingw's
49122         improved *printf functions.
49123         * tests/test-vasprintf-posix.c (test_function): Likewise.
49124         * tests/test-snprintf-posix.h (test_function): Likewise.
49125         * tests/test-sprintf-posix.h (test_function): Likewise.
49126         Reported by Eric Blake.
49127
49128 2008-09-21  Bruno Haible  <bruno@clisp.org>
49129
49130         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49131         * tests/test-sprintf-posix.h (test_function): Likewise.
49132
49133 2008-09-21  Bruno Haible  <bruno@clisp.org>
49134
49135         * modules/getpass (Depends-on): Add strdup-posix.
49136
49137         New module 'strdup-posix'.
49138         * modules/strdup-posix: New file.
49139         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49140         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49142         REPLACE_STRDUP.
49143         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49144         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49145         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49146         strdup-posix.
49147
49148         * modules/strdup (Depends-on): Remove malloc-posix.
49149
49150 2008-09-20  Bruno Haible  <bruno@clisp.org>
49151
49152         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49153         Wildenhues.
49154
49155 2008-09-20  Bruno Haible  <bruno@clisp.org>
49156
49157         Ensure that wint_t gets defined on IRIX 5.3.
49158         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49159         * lib/wctype.in.h (wint_t): Likewise.
49160         (__wctype_wint_t): Remove type.
49161         (isw*): Use wint_t instead of __wctype_wint_t.
49162         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49163         * modules/wchar (Files): Add m4/wint_t.m4.
49164         (Makefile.am): Substitute HAVE_WINT_T.
49165         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49166         * tests/test-wctype.c: Check that wint_t is defined.
49167         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49168         * doc/posix-headers/wctype.texi: Likewise.
49169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49170
49171 2008-09-18  Bruno Haible  <bruno@clisp.org>
49172
49173         * gnulib-tool (func_exit): Update comment.
49174
49175 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49176
49177         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49178         assumes strdup exists and does not depend on strdup to return
49179         ENOMEM on out of memory conditions.
49180
49181 2008-09-18  Bruno Haible  <bruno@clisp.org>
49182
49183         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49184         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49185         digits for the exponent.
49186
49187 2008-09-18  Jim Meyering  <meyering@redhat.com>
49188             Bruno Haible  <bruno@clisp.org>
49189
49190         * lib/vasnprintf.c (decimal_point_char): Define also if
49191         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49192
49193 2008-09-16  Bruno Haible  <bruno@clisp.org>
49194         and Eric Blake  <ebb9@byu.net>
49195
49196         vasnprintf: support Irix 5.3
49197         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49198         that mishandle long double infinity.
49199         Reported by Tom G. Christensen.
49200
49201 2008-09-16  Bruno Haible  <bruno@clisp.org>
49202
49203         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49204         Solaris 9.
49205         * doc/glibc-functions/alphasort.texi: Likewise.
49206         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49207
49208 2008-09-16  Jim Meyering  <meyering@redhat.com>
49209
49210         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49211         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49212         a umask modification leak out of a subshell.  Otherwise, the
49213         opensolaris /bin/sh would be accepted and thus cause unwarranted
49214         failures in the coreutils test suite.
49215
49216 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49217
49218         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49219         to succeed.
49220
49221 2008-09-16  Jim Meyering  <meyering@redhat.com>
49222
49223         avoid spurious test failure when library is built without ACL support
49224         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49225         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49226         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49227         * tests/test-copy-acl.sh: Likewise.
49228
49229 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49230
49231         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49232         based on character occurrence counts.
49233
49234 2008-09-15  Eric Blake  <ebb9@byu.net>
49235
49236         tests: avoid some compiler warnings
49237         * tests/test-memchr.c (main): Pass NULL indirectly.
49238         * tests/test-closein.c (main): Avoid unused variable.
49239
49240 2008-09-15  Bruno Haible  <bruno@clisp.org>
49241
49242         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49243         are missing on OpenBSD 4.0 individually.
49244         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49245
49246 2008-09-15  Bruno Haible  <bruno@clisp.org>
49247
49248         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49249         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49250         * doc/posix-functions/perror.texi: Likewise.
49251         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49252         is missing.
49253         Reported by Eric Blake.
49254
49255         * lib/errno.in.h: Use replacement values >= 2000.
49256         Reported by Eric Blake.
49257
49258 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49259
49260         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49261         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49262         limit.
49263         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49264         compareseq was aborted.
49265
49266 2008-09-14  Bruno Haible  <bruno@clisp.org>
49267
49268         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49269         yvec_edit_count.
49270         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49271         (fstrcmp_bounded): Simplify result computation accordingly.
49272
49273 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49274
49275         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49276         (fstrcmp): Define in terms of fstrcmp_bounded.
49277         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49278         lower_bound argument.
49279         Return quickly if the result is certainly < lower_bound.
49280         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49281
49282 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49283
49284         * lib/diffseq.h (EARLY_ABORT): New macro.
49285         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49286         evaluates to true.
49287
49288 2008-09-14  Bruno Haible  <bruno@clisp.org>
49289
49290         * modules/perror-tests: New file.
49291         * tests/test-perror.sh: New file.
49292         * tests/test-perror.c: New file.
49293
49294         New module 'perror'.
49295         * lib/stdio.in.h (perror): New declaration.
49296         * lib/perror.c: New file.
49297         * m4/perror.m4: New file.
49298         * modules/perror: New file.
49299         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49300         * doc/posix-functions/perror.texi: Mention the perror module.
49301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49302         REPLACE_PERROR.
49303         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49304         REPLACE_PERROR.
49305
49306 2008-09-14  Bruno Haible  <bruno@clisp.org>
49307
49308         * modules/stdio (Makefile.am): Reorder to match the order in
49309         lib/stdio.in.h.
49310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49311
49312 2008-09-13  Bruno Haible  <bruno@clisp.org>
49313
49314         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49315
49316 2008-09-13  Bruno Haible  <bruno@clisp.org>
49317
49318         Extend strerror to cover the added errno values.
49319         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49320         (rpl_strerror): Provide error messages for the added errno values and
49321         for the WSA* values.
49322         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49323         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49324         strerror.
49325         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49326         * modules/strerror (Depends-on): Add errno.
49327         * doc/posix-functions/strerror.texi: Document the change.
49328         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49329         and EOVERFLOW.
49330
49331 2008-09-13  Bruno Haible  <bruno@clisp.org>
49332
49333         * modules/EOVERFLOW: Remove file.
49334         * m4/eoverflow.m4: Remove file.
49335         * modules/EOVERFLOW-tests: Remove file.
49336         * tests/test-EOVERFLOW.c: Remove file.
49337         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49338         * modules/ftell (Depends-on): Likewise.
49339         * modules/getdelim (Depends-on): Likewise.
49340         * modules/getugroups (Depends-on): Likewise.
49341         * modules/poll (Depends-on): Likewise.
49342         * modules/snprintf (Depends-on): Likewise.
49343         * modules/sprintf-posix (Depends-on): Likewise.
49344         * modules/vasnprintf (Depends-on): Likewise.
49345         * modules/vasprintf (Depends-on): Likewise.
49346         * modules/vfprintf-posix (Depends-on): Likewise.
49347         * modules/vsnprintf (Depends-on): Likewise.
49348         * modules/vsprintf-posix (Depends-on): Likewise.
49349         * modules/xvasprintf (Depends-on): Likewise.
49350         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49351         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49352         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49353         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49354         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49355         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49356         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49357         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49358         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49359         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49360         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49361         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49362         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49363         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49364         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49365         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49366         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49367         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49368         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49369         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49370         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49371         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49372         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49373         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49374         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49375         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49376         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49377         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49378         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49379         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49380         * MODULES.html.sh: Remove EOVERFLOW.
49381         * NEWS: Mention the change.
49382
49383 2008-09-13  Bruno Haible  <bruno@clisp.org>
49384
49385         * modules/errno-tests: New file.
49386         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49387
49388         * lib/errno.in.h: New file.
49389         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49390         * modules/errno: New file.
49391         * doc/posix-headers/errno.texi: Update documentation.
49392         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49393
49394 2008-09-13  Bruno Haible  <bruno@clisp.org>
49395
49396         * tests/test-poll.c: Use #if for native Windows, rather than testing
49397         __MSVCRT__.
49398
49399 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49400             Bruno Haible  <bruno@clisp.org>
49401
49402         * lib/glob.c: Don't include <pwd.h> on native Windows.
49403         (WINDOWS32): New macro.
49404         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49405
49406 2008-09-13  Bruno Haible  <bruno@clisp.org>
49407
49408         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49409         (ETIMEDOUT): Remove macro.
49410         (glthread_cond_timedwait_multithreaded): New declaration.
49411         (glthread_cond_timedwait): Use it.
49412         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49413         (glthread_cond_timedwait_multithreaded): New function.
49414
49415 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49416
49417         * modules/poll-tests: Do not check for io.h.
49418         * tests/test-poll.c: Check for __MSVCRT__ instead.
49419
49420 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49421
49422         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49423         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49424         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49425
49426 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49427
49428         * modules/poll-tests: New.
49429         * tests/test-poll.c: New.
49430
49431 2008-09-12  Eric Blake  <ebb9@byu.net>
49432
49433         frexp: test for NetBSD failure on -0.0
49434         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49435         not all, bugs from NetBSD 3.0 have been fixed.
49436         * doc/posix-functions/frexp.texi (frexp): Document bug.
49437         Reported by Thomas Klausner.
49438
49439         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49440         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49441         literal -0.0.
49442         Reported by Jonathan C. Patschke <jp@centtech.com>.
49443
49444 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49445
49446         * lib/glthread/cond.h: Use dummy implementation also if
49447         USE_WIN32_THREADS.
49448
49449 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49450
49451         * modules/fnmatch-posix (License): Change to LGPLv2+.
49452         * modules/fnmatch-gnu (License): Likewise.
49453
49454 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49455
49456         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49457
49458 2008-09-11  Jim Meyering  <meyering@redhat.com>
49459
49460         * users.txt: Add gtk-vnc.
49461
49462 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49463
49464         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49465         rotate amounts.
49466
49467         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49468         required for 16-bit and 8-bit rotates.
49469         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49470         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49471         UINT8_MAX instead of hard-coded constants.
49472         Suggested by Paul Eggert.
49473
49474 2008-09-07  Bruno Haible  <bruno@clisp.org>
49475
49476         * tests/test-striconveh.c (main): Check behaviour when converting from
49477         UTF-7.
49478
49479         Make striconveh work better with stateful encodings.
49480         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49481         that iconv does not increment the inptr when returning -1/EINVAL.
49482
49483 2008-09-07  Bruno Haible  <bruno@clisp.org>
49484
49485         * build-aux/config.rpath: Update according to libtool-2.2.6.
49486         * build-aux/config.libpath: Likewise.
49487
49488 2008-09-06  Bruno Haible  <bruno@clisp.org>
49489
49490         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49491         * lib/freadptr.c (freadptr): Likewise.
49492         * lib/freadseek.c (freadptrinc): Likewise.
49493         Reported by Simon Josefsson.
49494
49495 2008-09-06  Bruno Haible  <bruno@clisp.org>
49496
49497         * modules/freadptr (License): Change to LGPLv2+.
49498         * modules/freadseek (License): Likewise.
49499         Suggested by Eric Blake.
49500
49501         * modules/memchr2 (License): Change to LGPLv2+.
49502         Approved by Eric Blake.
49503
49504 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49505             Bruno Haible  <bruno@clisp.org>
49506
49507         Make gnulib-tool work with native 'sed' on AIX.
49508         * gnulib-tool (sed_noop): New variable.
49509         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49510         func_add_or_update, func_create_testdir): Use it to initialize sed
49511         script variables.
49512         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49513
49514 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49515             Bruno Haible  <bruno@clisp.org>
49516
49517         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49518         also works after #include directives.
49519
49520 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49521
49522         getdate.y: reject an out-of-range timezone value
49523         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49524         the range [-24...+24].  When specified with only one or two digits,
49525         * tests/test-getdate.c: Tests for the fix.
49526         * doc/getdate.texi: Document this change.
49527
49528 2008-09-03  Bruno Haible  <bruno@clisp.org>
49529
49530         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49531
49532 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49533
49534         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49535         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49536         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49537         Blake <ebb9@byu.net>.
49538
49539         * tests/test-bitrotate.c: Add more test vectors.
49540
49541 2008-09-02  Eric Blake  <ebb9@byu.net>
49542
49543         vasnprintf-posix: handle large precision via %.*d
49544         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49545         when handling it ourselves.
49546         * tests/test-vasnprintf-posix.c (test_function): Add test.
49547         * tests/test-snprintf-posix.h (test_function): Likewise.
49548         * tests/test-sprintf-posix.h (test_function): Likewise.
49549         * tests/test-vasprintf-posix.c (test_function): Likewise.
49550         Reported by Alain Guibert.
49551
49552 2008-09-01  Eric Blake  <ebb9@byu.net>
49553
49554         c-stack: make configure-time check more robust
49555         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49556         successful sigaction call.
49557         Reported by Tom G. Christensen.
49558
49559 2008-09-01  Bruno Haible  <bruno@clisp.org>
49560
49561         New module 'findprog-lgpl'.
49562         * modules/findprog-lgpl: New file.
49563         * lib/findprog-lgpl.c: New file.
49564         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49565         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49566         to decide whether to use strdup or xstrdup, concatenated_filename or
49567         xconcatenated_filename.
49568
49569 2008-09-01  Bruno Haible  <bruno@clisp.org>
49570
49571         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49572         'xconcat-filename' (GPL).
49573         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49574         (License): Change to LGPLv2+.
49575         * modules/xconcat-filename: New file.
49576         * lib/concat-filename.h (concatenated_filename): Change specification.
49577         (xconcatenated_filename): New declaration.
49578         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49579         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49580         memory situations.
49581         * lib/xconcat-filename.c: New file.
49582         * NEWS: Mention the change.
49583         * lib/findprog.c: Include concat-filename.h, not filename.h.
49584         (find_in_path): Use xconcatenated_filename instead of
49585         concatenated_filename.
49586         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49587         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49588         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49589         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49590         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49591         instead of concatenated_filename.
49592         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49593         (execute_java_class): Use xconcatenated_filename instead of
49594         concatenated_filename.
49595         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49596         * modules/javacomp (Depends-on): Likewise.
49597         * modules/javaexec (Depends-on): Likewise.
49598
49599 2008-09-01  Bruno Haible  <bruno@clisp.org>
49600
49601         Split module 'filename' into 'filename' and 'concat-filename'.
49602         * modules/filename: Keep only lib/filename.h.
49603         (License): Change to LGPLv2+.
49604         * modules/concat-filename: New file, extracted from modules/filename.
49605         * lib/filename.h (concatenated_filename): Remove declaration.
49606         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49607         * lib/concat-filename.c: Include concat-filename.h.
49608         * NEWS: Mention the change.
49609
49610 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49611
49612         * lib/bitrotate.h (rotl8, rotr8): Add.
49613
49614         * modules/bitrotate (configure.ac): Need
49615         AC_REQUIRE([AC_C_INLINE]).
49616         (Description): Mention stdint.h.  Reported by Bruno Haible
49617         <bruno@clisp.org>.
49618
49619         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49620         Paolo Bonzini <bonzini@gnu.org>.
49621
49622 2008-08-31  Bruno Haible  <bruno@clisp.org>
49623
49624         Assume Solaris specific bi-arch conventions on Solaris systems.
49625         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49626         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49627         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49628         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49629         like acl_libdirstem.
49630         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49631         acl_libdirstem.
49632         * NEWS: Mention the change.
49633         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49634
49635 2008-08-31  Jim Meyering  <meyering@redhat.com>
49636
49637         * lib/strftime.h: Add comments describing the two added arguments.
49638
49639         remove duplicate #include directives
49640         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49641         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49642
49643 2008-08-31  Bruno Haible  <bruno@clisp.org>
49644
49645         New module 'sigpipe-die'.
49646         * modules/sigpipe-die: New file.
49647         * lib/sigpipe-die.h: New file.
49648         * lib/sigpipe-die.c: New file.
49649         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49650
49651 2008-08-31  Bruno Haible  <bruno@clisp.org>
49652
49653         Don't override previously installed signal handlers.
49654         * lib/fatal-signal.c (saved_sigactions): New variable.
49655         (uninstall_handlers): Reset the signal to the saved handler, not
49656         to SIG_DFL (except when ignored).
49657         (install_handlers): Save the previous handlers.
49658
49659 2008-08-30  Bruno Haible  <bruno@clisp.org>
49660
49661         * gnulib-tool (func_reset_sigpipe): New function.
49662         (func_get_automake_snippet, func_modules_transitive_closure,
49663         func_import): Invoke it before a join command that reads from stdin,
49664         to avoid "echo: write error: Broken pipe" error messages on stderr.
49665         Reported by Sam Steingold <sds@gnu.org>.
49666
49667 2008-08-30  Bruno Haible  <bruno@clisp.org>
49668
49669         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49670         Code copied from m4/open.m4.
49671         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49672         access and the filename ends in a slash. Code copied from lib/open.c.
49673         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49674         * tests/test-fopen.c (main): Check against bug with trailing slash.
49675
49676 2008-08-29  Bruno Haible  <bruno@clisp.org>
49677
49678         Avoid some "gcc -pedantic" warnings.
49679         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49680         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49681         * lib/dirent.in.h: Likewise.
49682         * lib/fcntl.in.h: Likewise.
49683         * lib/float.in.h: Likewise.
49684         * lib/iconv.in.h: Likewise.
49685         * lib/inttypes.in.h: Likewise.
49686         * lib/locale.in.h: Likewise.
49687         * lib/math.in.h: Likewise.
49688         * lib/netinet_in.in.h: Likewise.
49689         * lib/search.in.h: Likewise.
49690         * lib/signal.in.h: Likewise.
49691         * lib/stdarg.in.h: Likewise.
49692         * lib/stdint.in.h: Likewise.
49693         * lib/stdio.in.h: Likewise.
49694         * lib/stdlib.in.h: Likewise.
49695         * lib/string.in.h: Likewise.
49696         * lib/strings.in.h: Likewise.
49697         * lib/sys_select.in.h: Likewise.
49698         * lib/sys_socket.in.h: Likewise.
49699         * lib/sys_stat.in.h: Likewise.
49700         * lib/sys_time.in.h: Likewise.
49701         * lib/sysexits.in.h: Likewise.
49702         * lib/time.in.h: Likewise.
49703         * lib/unistd.in.h: Likewise.
49704         * lib/wchar.in.h: Likewise.
49705         * lib/wctype.in.h: Likewise.
49706         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
49707         * modules/fchdir (Makefile.am): Likewise.
49708         * modules/fcntl (Makefile.am): Likewise.
49709         * modules/float (Makefile.am): Likewise.
49710         * modules/iconv_open (Makefile.am): Likewise.
49711         * modules/inttypes (Makefile.am): Likewise.
49712         * modules/locale (Makefile.am): Likewise.
49713         * modules/math (Makefile.am): Likewise.
49714         * modules/netinet_in (Makefile.am): Likewise.
49715         * modules/search (Makefile.am): Likewise.
49716         * modules/signal (Makefile.am): Likewise.
49717         * modules/stdarg (Makefile.am): Likewise.
49718         * modules/stdint (Makefile.am): Likewise.
49719         * modules/stdio (Makefile.am): Likewise.
49720         * modules/stdlib (Makefile.am): Likewise.
49721         * modules/string (Makefile.am): Likewise.
49722         * modules/strings (Makefile.am): Likewise.
49723         * modules/sys_select (Makefile.am): Likewise.
49724         * modules/sys_socket (Makefile.am): Likewise.
49725         * modules/sys_stat (Makefile.am): Likewise.
49726         * modules/sys_time (Makefile.am): Likewise.
49727         * modules/sysexits (Makefile.am): Likewise.
49728         * modules/time (Makefile.am): Likewise.
49729         * modules/unistd (Makefile.am): Likewise.
49730         * modules/wchar (Makefile.am): Likewise.
49731         * modules/wctype (Makefile.am): Likewise.
49732         Reported by Reuben Thomas <rrt@sc3d.org>.
49733
49734 2008-08-29  Bruno Haible  <bruno@clisp.org>
49735
49736         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
49737         any more.
49738
49739 2008-08-29  Simon Josefsson  <simon@josefsson.org>
49740
49741         * MODULES.html.sh (Misc): Add bitrotate.
49742
49743         * modules/bitrotate: New file.
49744
49745         * lib/bitrotate.h: New file.
49746
49747         * modules/bitrotate-tests: New file.
49748
49749         * tests/test-bitrotate.c: New file.
49750
49751         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
49752         on the bitrotate module.
49753
49754         * lib/arctwo.c: Use new bitrotate module.
49755
49756 2008-08-29  Jim Meyering  <meyering@redhat.com>
49757
49758         bootstrap: merge changes from coreutils
49759         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49760         of copied files.  Remove a kludge, now that this is fixed.
49761         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49762         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49763         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49764
49765 2008-08-29  Bruno Haible  <bruno@clisp.org>
49766
49767         * MODULES.html.sh: Remove --cvs-urls option.
49768
49769 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
49770
49771         maint.mk: adjust to file name change
49772         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
49773
49774 2008-08-28  Jim Meyering  <meyering@redhat.com>
49775
49776         * modules/getndelim2 (License): Relicense to LGPLv2+.
49777         Approved by Richard Stallman for the version of 1995, and by
49778         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49779
49780 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49781
49782         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49783         dummy if one is not available.  Do not touch them if
49784         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49785         (getc_maybe_unlocked): New.
49786         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49787
49788 2008-08-26  Eric Blake  <ebb9@byu.net>
49789
49790         doc/INSTALL: resync from autoconf
49791         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49792         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49793         moving...
49794         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49795         * INSTALL: Regenerate.
49796         * INSTALL.ISO: New file.
49797         * INSTALL.UTF-8: Likewise.
49798
49799 2008-08-26  Jim Meyering  <meyering@redhat.com>
49800
49801         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49802         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49803         these definitions conditional, so that they may be overridden, too.
49804
49805 2008-08-26  Bruno Haible  <bruno@clisp.org>
49806
49807         Generate INSTALL file variants with prettier quotes.
49808         * doc/Makefile (INSTALL_PRELUDE): New macro.
49809         (INSTALL): Use it.
49810         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49811
49812 2008-08-26  Bruno Haible  <bruno@clisp.org>
49813
49814         Run makeinfo in an English locale.
49815         * doc/Makefile (MAKEINFO): New variable.
49816
49817 2008-08-26  Bruno Haible  <bruno@clisp.org>
49818
49819         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49820         Suggested by Eric Blake.
49821
49822 2008-08-25  Bruno Haible  <bruno@clisp.org>
49823
49824         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49825
49826 2008-08-25  Eric Blake  <ebb9@byu.net>
49827
49828         c-stack: test that stack overflow can be caught
49829         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49830         that platform allows handling stack overflow; at least OS/2 EMX
49831         has sigaltstack, but crashes before transferring control to
49832         handler on stack overflow.
49833         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49834         check for HAVE_STACK_OVERFLOW_HANDLING.
49835         Reported by Elbert Pol.
49836
49837 2008-08-25  Bruno Haible  <bruno@clisp.org>
49838
49839         * doc/posix-functions/strftime.texi: Fix description of strftime
49840         module.
49841
49842 2008-08-24  Bruno Haible  <bruno@clisp.org>
49843
49844         * tests/uniwidth/test-uc_width2.c: New file.
49845         * tests/uniwidth/test-uc_width2.sh: New file.
49846         * modules/uniwidth/width-tests (Files): Add the new files.
49847         (TESTS): Add uniwidth/test-uc_width2.sh.
49848         (TESTS_ENVIRONMENT): New variable.
49849         (check_PROGRAMS): Add test-uc_width2.
49850         (test_uc_width2_SOURCES): New variable.
49851
49852         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49853         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49854         not 0x00AB.
49855         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49856
49857 2008-08-22  Eric Blake  <ebb9@byu.net>
49858
49859         test-lock, test-tls: mention why a test is skipped
49860         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49861         skipped.
49862         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49863
49864         count-one-bits: relax license
49865         * modules/count-one-bits (License): Relicense to LGPLv2+.
49866         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49867
49868 2008-08-22  Andreas Schwab  <schwab@suse.de>
49869
49870         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49871         Remove spurious space in assignment.
49872
49873 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49874
49875         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49876         Paul Eggert <eggert@CS.UCLA.EDU>.
49877
49878 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49879
49880         * modules/gettext: Add m4/threadlib.m4.
49881
49882 2008-08-19  Eric Blake  <ebb9@byu.net>
49883
49884         test-c-stack: fix compilation failure on FreeBSD 5.0
49885         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49886         headers before <sys/resource.h>.
49887         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49888         the bug.
49889         Reported by Nelson H. F. Beebe.
49890
49891         strverscmp: migrate from "strverscmp.h" to <string.h>
49892         * modules/string (Makefile.am): Add new hooks.
49893         * modules/strverscmp (Files): Remove strverscmp.h.
49894         (Depends-on): Add string.
49895         (configure.ac): Add indicator.
49896         (Include): Mention new header.
49897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49898         defaults.
49899         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49900         results.
49901         * lib/strverscmp.h: Delete.
49902         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49903         * tests/test-strverscmp.c (includes): Adjust client.
49904         * lib/check-version.c (includes): Likewise.
49905         * NEWS: Document the change.
49906
49907         strverscmp: add unit test
49908         * modules/strverscmp-tests: New file.
49909         * tests/test-strverscmp.c: Likewise.
49910
49911 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49912
49913         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49914         regarding Windows crypto stuff, from Mono.
49915
49916 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49917
49918         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49919         if present, for intel RND.  Return error on failures.
49920
49921 2008-08-18  Ben Pfaff  <blp@gnu.org>
49922
49923         gitlog-to-changelog: give better diagnostic for failed pipe-open
49924         * build-aux/gitlog-to-changelog: Improve error message: suggest
49925         that the version of Git may be too old.
49926
49927 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49928
49929         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49930         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49931
49932 2008-08-18  Bruno Haible  <bruno@clisp.org>
49933
49934         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49935         pthread_in_use().
49936
49937 2008-08-18  Bruno Haible  <bruno@clisp.org>
49938
49939         * lib/glthread/threadlib.c: Include <pthread.h>.
49940
49941 2008-08-18  Bruno Haible  <bruno@clisp.org>
49942
49943         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49944         glthread_recursive_lock_* macros.
49945         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49946         Fix syntax error.
49947
49948 2008-08-18  Bruno Haible  <bruno@clisp.org>
49949
49950         * lib/glthread/thread.c: Avoid forcing a context switch right after
49951         thread creation.
49952
49953 2008-08-17  Bruno Haible  <bruno@clisp.org>
49954
49955         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49956         * lib/glthread/thread.h: Provide Win32 specific implementation.
49957         * modules/thread (Files): Add lib/glthread/thread.c.
49958         (Depends-on): Add lock.
49959         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49960
49961 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49962
49963         New module 'yield'.
49964         * modules/yield: New file.
49965         * lib/glthread/yield.h: New file.
49966         * m4/yield.m4: New file.
49967         * MODULES.html.sh (Multithreading): Add yield.
49968
49969 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49970
49971         New module 'thread'.
49972         * modules/thread: New file.
49973         * lib/glthread/thread.h: New file.
49974         * m4/thread.m4: New file.
49975         * MODULES.html.sh (Multithreading): Add thread.
49976
49977 2008-08-17  Bruno Haible  <bruno@clisp.org>
49978
49979         * lib/glthread/lock.h: Include <stdlib.h> always.
49980         * lib/glthread/tls.h: Likewise.
49981         * lib/glthread/cond.h: Likewise.
49982
49983 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49984
49985         New module 'cond'.
49986         * modules/cond: New file.
49987         * lib/glthread/cond.h: New file.
49988         * lib/glthread/cond.c: New file.
49989         * m4/cond.m4: New file.
49990         * MODULES.html.sh (Multithreading): Add cond.
49991
49992 2008-08-16  Eric Blake  <ebb9@byu.net>
49993
49994         c-stack: fix regression on Irix 5.3 from 2008-06-21
49995         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49996         sa_sigaction...
49997         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49998         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49999         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50000         * modules/signal (Makefile.am): Use the value.
50001         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50002         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50003         * doc/posix-headers/signal.texi (signal.h): Document this
50004         portability issue.
50005         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50006         Reported by Tom G. Christensen.
50007
50008 2008-08-17  Bruno Haible  <bruno@clisp.org>
50009
50010         New module 'threadlib'.
50011         * modules/threadlib: New file.
50012         * lib/glthread/threadlib.c: New file, extracted from
50013         lib/glthread/lock.c.
50014         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50015         functions.
50016         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50017         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50018         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50019         macros.
50020         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50021         (gl_DISABLE_THREADS): Remove macro.
50022         * modules/lock (Files): Remove build-aux/config.rpath.
50023         (Depends-on): Remove havelib. Add threadlib.
50024         (configure.ac-early): Remove section.
50025         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50026         * modules/tls (Depends-on): Remove lock. Add threadlib.
50027         (Link): New section, copied from threadlib.
50028         * MODULES.html.sh (Multithreading): Add threadlib.
50029
50030 2008-08-14  Bruno Haible  <bruno@clisp.org>
50031
50032         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50033         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50034         glthread_rwlock_unlock, glthread_rwlock_destroy,
50035         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50036         glthread_recursive_lock_destroy): Define as macros always.
50037         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50038         glthread_lock_lock.
50039         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50040         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50041         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50042         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50043         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50044         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50045         (glthread_recursive_lock_lock_func): Renamed from
50046         glthread_recursive_lock_lock.
50047         (glthread_recursive_lock_unlock_func): Renamed from
50048         glthread_recursive_lock_unlock.
50049         (glthread_recursive_lock_destroy_func): Renamed from
50050         glthread_recursive_lock_destroy.
50051
50052 2008-08-14  Bruno Haible  <bruno@clisp.org>
50053
50054         * lib/glthread/lock.h: Renamed from lib/lock.h.
50055         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50056         * lib/glthread/tls.h: Renamed from lib/tls.h.
50057         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50058         * lib/fstrcmp.c: Update includes.
50059         * lib/strsignal.c: Update includes.
50060         * modules/lock (Files, Makefile.am): Update.
50061         (Include): Change to "glthread/lock.h".
50062         * modules/tls (Files, Makefile.am): Update.
50063         (Include): Change to "glthread/tls.h".
50064         * tests/test-lock.c: Update includes.
50065         * tests/test-tls.c: Update includes.
50066         * NEWS: Mention the renamed header files.
50067
50068 2008-08-11  Jim Meyering  <meyering@redhat.com>
50069
50070         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50071
50072 2008-08-11  Eric Blake  <ebb9@byu.net>
50073
50074         test-c-stack: avoid C99-ism
50075         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50076         before statement.
50077         Reported by Alain Guibert.
50078
50079 2008-08-10  Jim Meyering  <meyering@redhat.com>
50080
50081         ensure that return value of uinttostr et al are not ignored
50082         * lib/inttostr.h (__GNUC_PREREQ): Define.
50083         (__attribute_warn_unused_result__): Define.
50084         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50085
50086 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50087
50088         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50089         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50090
50091 2008-08-07  Jim Meyering  <meyering@redhat.com>
50092
50093         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50094
50095         * modules/mkstemp (License): Relicense under LGPLv2+.
50096         * modules/tempname (License): Likewise.
50097
50098 2008-08-06  Bruno Haible  <bruno@clisp.org>
50099
50100         * lib/poll.c (poll): Further micro-optimization.
50101
50102 2008-08-06  Jim Meyering  <meyering@redhat.com>
50103
50104         inet_pton.c: use locale-independent tolower
50105         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50106         (inet_pton6): Use c_tolower rather than tolower.
50107         * modules/inet_pton (Depends-on): Add c-ctype.
50108
50109 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50110
50111         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50112         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50113
50114 2008-08-06  Jim Meyering  <meyering@redhat.com>
50115
50116         * modules/inet_pton (License): Relicense under LGPLv2+.
50117
50118 2008-08-03  Bruno Haible  <bruno@clisp.org>
50119
50120         Additional non-aborting API for lock and tls.
50121         * lib/lock.h: Include <errno.h>.
50122         (glthread_lock_init): New macro/function.
50123         (gl_lock_init): Define as wrapper around glthread_lock_init.
50124         (glthread_lock_lock): New macro/function.
50125         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50126         (glthread_lock_unlock): New macro/function.
50127         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50128         (glthread_lock_destroy): New macro/function.
50129         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50130         (glthread_rwlock_init): New macro/function.
50131         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50132         (glthread_rwlock_rdlock): New macro/function.
50133         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50134         (glthread_rwlock_wrlock): New macro/function.
50135         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50136         (glthread_rwlock_unlock): New macro/function.
50137         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50138         (glthread_rwlock_destroy): New macro/function.
50139         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50140         (glthread_recursive_lock_init): New macro/function.
50141         (gl_recursive_lock_init): Define as wrapper around
50142         glthread_recursive_lock_init.
50143         (glthread_recursive_lock_lock): New macro/function.
50144         (gl_recursive_lock_lock): Define as wrapper around
50145         glthread_recursive_lock_lock.
50146         (glthread_recursive_lock_unlock): New macro/function.
50147         (gl_recursive_lock_unlock): Define as wrapper around
50148         glthread_recursive_lock_unlock.
50149         (glthread_recursive_lock_destroy): New macro/function.
50150         (gl_recursive_lock_destroy): Define as wrapper around
50151         glthread_recursive_lock_destroy.
50152         (glthread_once): New macro/function.
50153         (gl_once): Define as wrapper around glthread_once.
50154         Update function declarations.
50155         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50156         glthread_rwlock_init. Return error code.
50157         (glthread_rwlock_rdlock_multithreaded): Renamed from
50158         glthread_rwlock_rdlock. Return error code.
50159         (glthread_rwlock_wrlock_multithreaded): Renamed from
50160         glthread_rwlock_wrlock. Return error code.
50161         (glthread_rwlock_unlock_multithreaded): Renamed from
50162         glthread_rwlock_unlock. Return error code.
50163         (glthread_rwlock_destroy_multithreaded): Renamed from
50164         glthread_rwlock_destroy. Return error code.
50165         (glthread_recursive_lock_init_multithreaded): Renamed from
50166         glthread_recursive_lock_init. Return error code.
50167         (glthread_recursive_lock_lock_multithreaded): Renamed from
50168         glthread_recursive_lock_lock. Return error code.
50169         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50170         glthread_recursive_lock_unlock. Return error code.
50171         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50172         glthread_recursive_lock_destroy. Return error code.
50173         (glthread_once_call): Make static.
50174         (glthread_once_multithreaded): Renamed from glthread_once.
50175         * lib/tls.h: Include <errno.h>.
50176         (glthread_tls_key_init): New macro/function.
50177         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50178         (glthread_tls_set): New macro/function.
50179         (gl_tls_set): Define as wrapper around glthread_tls_set.
50180         (glthread_tls_key_destroy): New macro/function.
50181         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50182         Update function declarations.
50183         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50184         glthread_tls_get.
50185         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50186
50187 2008-08-04  Eric Blake  <ebb9@byu.net>
50188
50189         gnumakefile: use space, not TAB, outside of targets
50190         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50191
50192 2008-08-02  Jim Meyering  <meyering@redhat.com>
50193
50194         getdate.y: avoid locale-dependent date parsing failure
50195         In Turkish locales, getdate would fail to recognize keywords
50196         containing a lowercase "i".  The solution is not to rely on
50197         locale-sensitive case-conversion.
50198         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50199         (lookup_word): Use c_toupper in place of toupper.
50200         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50201         Reported by Vefa Bicakci <bicave@superonline.com> in
50202         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50203         * modules/getdate (Depends-on): Add c-ctype.
50204
50205 2008-08-02  Bruno Haible  <bruno@clisp.org>
50206
50207         * gnulib-tool (func_import): When updating or creating a .gitignore
50208         file, prepend each added line with a slash, and ignore leading slashes
50209         from the existing lines.
50210         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50211
50212 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50213
50214         Portability fix for GNU make 3.79.1.
50215         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50216         versions do not understand.
50217
50218 2008-08-01  Bruno Haible  <bruno@clisp.org>
50219
50220         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50221         * tests/test-isnanf.h (zero): New variable.
50222         (main): Avoid literal -0.0f.
50223         * tests/test-isnand.h (zero): New variable.
50224         (main): Avoid literal -0.0.
50225         * tests/test-isnanl.h (zero): New variable.
50226         (main): Avoid literal -0.0L.
50227         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50228         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50229         -0.0, -0.0L.
50230         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50231         (test_signbitd): Avoid literal -0.0.
50232         (test_signbitl): Avoid literal -0.0L.
50233         * tests/test-ceilf1.c (zero): New variable.
50234         (main): Avoid literal -0.0f.
50235         * tests/test-ceill.c (zero): New variable.
50236         (main): Avoid literal -0.0L.
50237         * tests/test-floorf1.c (zero): New variable.
50238         (main): Avoid literal -0.0f.
50239         * tests/test-floorl.c (zero): New variable.
50240         (main): Avoid literal -0.0L.
50241         * tests/test-roundf1.c (zero): New variable.
50242         (main): Avoid literal -0.0f.
50243         * tests/test-round1.c (zero): New variable.
50244         (main): Avoid literal -0.0.
50245         * tests/test-roundl.c (zero): New variable.
50246         (main): Avoid literal -0.0L.
50247         * tests/test-truncf1.c (zero): New variable.
50248         (main): Avoid literal -0.0f.
50249         * tests/test-trunc1.c (zero): New variable.
50250         (main): Avoid literal -0.0.
50251         * tests/test-truncl.c (zero): New variable.
50252         (main): Avoid literal -0.0L.
50253         * tests/test-frexp.c (zero): New variable.
50254         (main): Avoid literal -0.0.
50255         * tests/test-frexpl.c (zero): New variable.
50256         (main): Avoid literal -0.0L.
50257         * tests/test-ldexpl.c (zero): New variable.
50258         (main): Avoid literal -0.0L.
50259         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50260         (zerod, zerol): New variables.
50261         (test_function): Avoid literals -0.0, -0.0L.
50262         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50263         (zerod, zerol): New variables.
50264         (test_function): Avoid literals -0.0, -0.0L.
50265         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50266         (zerod, zerol): New variables.
50267         (test_function): Avoid literals -0.0, -0.0L.
50268         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50269         (zerod, zerol): New variables.
50270         (test_function): Avoid literals -0.0, -0.0L.
50271         * tests/test-strtod.c (zero): New variable.
50272         (main): Avoid literal -0.0.
50273         Reported by Jonathan C. Patschke <jp@centtech.com>.
50274
50275 2008-07-31  Jim Meyering  <meyering@redhat.com>
50276
50277         sha256.h: correct definition of SHA224_DIGEST_SIZE
50278         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50279         Reported by Paulie Pena IV <paulie4@gmail.com>.
50280         Define as 224 / 8, rather than as a literal.
50281         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50282         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50283         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50284
50285 2008-07-31  Bruno Haible  <bruno@clisp.org>
50286
50287         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50288         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50289         Reported by Jonathan Patschke <jp@centtech.com>.
50290
50291 2008-07-31  Bruno Haible  <bruno@clisp.org>
50292
50293         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50294         Reported by Paolo Bonzini <bonzini@gnu.org>.
50295
50296 2008-07-30  Eric Blake  <ebb9@byu.net>
50297
50298         test-strtod: allow compilation without -lm
50299         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50300         Reported by Dennis Clarke <blastwave@gmail.com>.
50301
50302 2008-07-28  Jim Meyering  <meyering@redhat.com>
50303
50304         bootstrap: work also when there are no .po files in po/
50305         * build-aux/bootstrap (update_po_files): Complete the change
50306         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50307
50308 2008-07-27  Jim Meyering  <meyering@redhat.com>
50309
50310         * users.txt: Add zile.
50311
50312 2008-07-26  Ben Pfaff  <blp@gnu.org>
50313
50314         Add missing dependencies on new m4/exponent[fdl].m4 files.
50315         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50316         * modules/isnand-nolibm: Add m4/exponentd.m4.
50317         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50318         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50319         m4/isnan[fdl].m4, because the macros actually used moved.
50320         Reported by Jim Meyering.
50321
50322 2008-07-14  Ben Pfaff  <blp@gnu.org>
50323
50324         Add isinf module.
50325         * lib/isinf.c: New file.
50326         * lib/math.in.h: Define isinf macro if we have decided to replace
50327         it.
50328         * m4/isinf.m4: New file.
50329         * m4/math_h.m4: Initialize and substitute variables for isinf
50330         module.
50331         * modules/isinf: New file.
50332         * modules/isinf-tests: New file.
50333         * modules/math: Add substitutions for new module.
50334         * tests/test-isinf.c: New file.
50335         * doc/posix-functions/isinf.texi: Mention new module.
50336         * MODULES.html.sh: Mention new module.
50337
50338 2008-07-14  Ben Pfaff  <blp@gnu.org>
50339
50340         Factor out some macros for use by additional modules.
50341         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50342         exponentf.m4.
50343         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50344         exponentd.m4.
50345         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50346         file exponentl.m4.
50347         * m4/exponentf.m4: New file.
50348         * m4/exponentd.m4: New file.
50349         * m4/exponentl.m4: New file.
50350         * modules/isnanf: Use new file m4/exponentf.m4.
50351         * modules/isnand: Use new file m4/exponentd.m4.
50352         * modules/isnanl: Use new file m4/exponentl.m4.
50353
50354 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50355
50356         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50357         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50358         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50359         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50360
50361         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50362         readlink on platforms without PATH_MAX.
50363
50364 2008-07-21  Eric Blake  <ebb9@byu.net>
50365
50366         Warn, not fail, on stale version.
50367         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50368
50369         Don't allow installation with stale devel version number.
50370         * top/GNUmakefile (_is-install-target): New macro.
50371         (_curr-ver): Forbid installation with stale version number.
50372
50373 2008-07-20  Bruno Haible  <bruno@clisp.org>
50374
50375         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50376         TESTS_ENVIRONMENT.
50377         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50378
50379 2008-07-20  Bruno Haible  <bruno@clisp.org>
50380
50381         * lib/c-stack.h (c_stack_action): Add documentation.
50382         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50383
50384 2008-07-20  Bruno Haible  <bruno@clisp.org>
50385
50386         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50387         * modules/readlink (License): Likewise.
50388
50389 2008-07-17  Eric Blake  <ebb9@byu.net>
50390
50391         * modules/c-stack (Link): Fix typo.
50392
50393         Make c-stack use libsigsegv, when available.
50394         * modules/c-stack (Depends-on): Add libsigsegv.
50395         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50396         needed.
50397         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50398         (segv_handler, overflow_handler, c_stack_action)
50399         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50400         implementation when libsigsegv is available, but only when using
50401         the library is necessary.
50402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50403         comment, explaining why XSI check fails on Linux.
50404         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50405         * tests/test-c-stack2.sh: Tweak skip message.
50406         * NEWS: Document new link-time requirements.
50407
50408 2008-07-16  Eric Blake  <ebb9@byu.net>
50409
50410         c-stack: Expose false positives when not using libsigsegv.
50411         * modules/c-stack-tests (Files): Expand test.
50412         * tests/test-c-stack.c (main): Add means to conditionally trigger
50413         non-overflow SIGSEGV.
50414         * tests/test-c-stack2.sh: New file.
50415
50416 2008-07-14  Bruno Haible  <bruno@clisp.org>
50417
50418         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50419         Reported by Eric Blake.
50420
50421 2008-07-14  Sam Steingold  <sds@gnu.org>
50422             Bruno Haible  <bruno@clisp.org>
50423
50424         New module libsigsegv.
50425         * modules/libsigsegv: New file.
50426         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50427         modifications.
50428         * MODULES.html.sh (Signal handling): New section.
50429
50430 2008-07-14  Bruno Haible  <bruno@clisp.org>
50431
50432         * modules/unictype/ctype-* (Description): Add the word "function".
50433         Improves the resulting doc in MODULES.html.
50434
50435 2008-07-12  Ben Pfaff  <blp@gnu.org>
50436
50437         Add longlong module.
50438         * modules/longlong: New file.
50439
50440 2008-07-12  Bruno Haible  <bruno@clisp.org>
50441
50442         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50443         to empty.
50444
50445 2008-07-10  Ben Pfaff  <blp@gnu.org>
50446
50447         Add isnan module.
50448         * doc/posix-functions/isnan.texi: Mention new module.
50449         * lib/math.in.h: Define isnan macro if we have decided to replace
50450         it.
50451         * m4/isnan.m4: New file.
50452         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50453         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50454         also.
50455         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50456         redundancy.
50457         * m4/math_h.m4: Initialize and substitute variables for isnan
50458         module.
50459         * modules/isnan: New file.
50460         * modules/isnan-tests: New file.
50461         * modules/math: Add substitutions for new module.
50462         * tests/test-isnan.c: New file.
50463         * MODULES.html.sh: Mention new module.
50464
50465 2008-07-10  Ben Pfaff  <blp@gnu.org>
50466
50467         Add isnanf module.
50468         * lib/isnanf.m4: New file.
50469         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50470         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50471         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50472         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50473         * modules/isnanf: New file.
50474         * modules/isnanf-tests: New file.
50475         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50476         files.
50477         * tests/test-isnanf-nolibm.c: factored most of its contents into
50478         new file tests/test-isnanf.h.
50479         * tests/test-isnanf.h: New file.
50480         * tests/test-isnanf.c: New file.
50481         * MODULES.html.sh: Mention new module.
50482         * doc/glibc-functions/isnanf.texi: Mention new module.
50483
50484 2008-07-10  Ben Pfaff  <blp@gnu.org>
50485
50486         Add isnand module.
50487         * lib/isnand.h: New file.
50488         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50489         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50490         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50491         functionality also.
50492         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50493         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50494         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50495         * modules/isnand: New file.
50496         * modules/isnand-tests: New file.
50497         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50498         files.
50499         * tests/test-isnand-nolibm.c: factored most of its contents into
50500         new file tests/test-isnand.h.
50501         * tests/test-isnand.h: New file.
50502         * tests/test-isnand.c: New file.
50503         * MODULES.html.sh: Mention new module.
50504
50505 2008-07-10  Ben Pfaff  <blp@gnu.org>
50506
50507         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50508         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50509         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50510         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50511         * modules/isnanf-nolibm: Update references to renamed files.
50512         * modules/isnand-nolibm: Likewise.
50513         * modules/isnanf-nolibm-tests: Likewise.
50514         * modules/isnand-nolibm-tests: Likewise.
50515         * lib/frexp.c: Likewise.
50516         * lib/isfinite.c: Likewise.
50517         * lib/signbitd.c: Likewise.
50518         * lib/signbitf.c: Likewise.
50519         * lib/vasnprintf.c: Likewise.
50520         * tests/test-ceilf1.c: Likewise.
50521         * tests/test-ceilf2.c: Likewise.
50522         * tests/test-floorf1.c: Likewise.
50523         * tests/test-floorf2.c: Likewise.
50524         * tests/test-frexp.c: Likewise.
50525         * tests/test-round1.c: Likewise.
50526         * tests/test-round2.c: Likewise.
50527         * tests/test-roundf1.c: Likewise.
50528         * tests/test-strtod.c: Likewise.
50529         * tests/test-trunc1.c: Likewise.
50530         * tests/test-trunc2.c: Likewise.
50531         * tests/test-truncf1.c: Likewise.
50532         * tests/test-truncf2.c: Likewise.
50533         * NEWS: Mention the renamed header files.
50534
50535 2008-07-11  Jim Meyering  <meyering@redhat.com>
50536
50537         vc-list-files: make the last-resort awk code more portable
50538         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50539         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50540         does not support it.
50541
50542 2008-07-10  Eric Blake  <ebb9@byu.net>
50543
50544         Work with tar's bootstrap.
50545         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50546         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50547         an m4 comment.
50548
50549 2008-07-09  Jim Meyering  <meyering@redhat.com>
50550
50551         posix-shell.m4: fix typo that made this test malfunction
50552         * m4/posix-shell.m4: Remove capitalization in variable name.
50553
50554 2008-07-08  Bruno Haible  <bruno@clisp.org>
50555
50556         * m4/onceonly.m4: Update comments.
50557         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50558
50559 2008-07-04  Jim Meyering  <meyering@redhat.com>
50560
50561         * users.txt: Add vc-dwim.
50562         (bison, coreutils): Use the gitweb URL.
50563
50564 2008-07-03  Jim Meyering  <meyering@redhat.com>
50565
50566         * users.txt: Add libffcall.  From Sam Steingold.
50567
50568 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50569
50570         getdate.y: do not ignore TZ with relative day, month or year offset
50571         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50572         relative-date-handling, since otherwise, the latter would clobber the
50573         sole output (an updated Start value) of the tz-handling block.
50574         * tests/test-getdate.c: Tests for the fix
50575
50576 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50577
50578         Recognize 'foo_LIBRARIES += libgnu.a'.
50579         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50580         makefile snippet has already specified an installation location,
50581         also using '+='.
50582
50583 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50584
50585         getdate.y: factor out common actions
50586         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50587         Use them in place of open-coded actions.
50588
50589 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50590
50591         Add self-test for getdate module.
50592         * modules/getdate-tests: New file.
50593         * tests/test-getdate.c: New file.
50594
50595 2008-06-29  Bruno Haible  <bruno@clisp.org>
50596
50597         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50598         .gitignore.
50599         Reported by Sylvain Beucler <beuc@beuc.net>.
50600
50601 2008-06-29  Bruno Haible  <bruno@clisp.org>
50602
50603         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50604         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50605
50606 2008-06-29  Bruno Haible  <bruno@clisp.org>
50607
50608         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50609         EXTRA_DIST.
50610         Reported by Sylvain Beucler <beuc@beuc.net>.
50611
50612 2008-06-26  Jim Meyering  <meyering@redhat.com>
50613
50614         make several modules depend on the "open" module
50615         This provides slightly increased consistency when opening-for-write
50616         the name of a non-directory spelled with a trailing slash.
50617         * modules/chdir-safer: Likewise.
50618         * modules/chown: Likewise.
50619         * modules/clean-temp: Likewise.
50620         * modules/copy-file: Likewise.
50621         * modules/fchdir: Likewise.
50622         * modules/fcntl-safer: Likewise.
50623         * modules/pipe: Likewise.
50624         * modules/utime: Likewise.
50625         Prompted by Eric Blake and Bruno Haible.
50626
50627 2008-06-24  Andreas Schwab  <schwab@suse.de>
50628
50629         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50630         literals can be used as initializers for global variables.
50631
50632 2008-06-23  Eric Blake  <ebb9@byu.net>
50633
50634         Make gnulib-cache.m4 easier to diff.
50635         * gnulib-tool (func_import): Allow newlines when reading cached
50636         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50637
50638 2008-06-23  Bruno Haible  <bruno@clisp.org>
50639
50640         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50641         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50642         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50643         m4/signalblocking.m4.
50644         (gl_PREREQ_SIGACTION): Don't invoke it.
50645         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50646         gl_PREREQ_SIG_HANDLER_H.
50647         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50648         Don't check for sigaction here.
50649
50650 2008-06-23  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50653         (install_handlers): Don't set the SA_RESETHAND flag.
50654
50655 2008-06-23  Bruno Haible  <bruno@clisp.org>
50656
50657         * m4/sigaction.m4: Comment fixes.
50658         * lib/signal.in.h: Likewise.
50659
50660 2008-06-23  Eric Blake  <ebb9@byu.net>
50661
50662         Fix typo.
50663         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50664
50665         Avoid SA_ namespace.
50666         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50667         Reported by Ralf Wildenhues.
50668
50669         Avoid test failure due to SA_RESTORER.
50670         * tests/test-sigaction.c (SA_MASK): New macro.
50671         (main): Avoid failing due to extension flags being set.
50672         Reported by Jim Meyering.
50673
50674         Revert use of sig-handler.h in sigprocmask.c.
50675         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50676         it requires the existence of struct sigaction.
50677         * lib/sigprocmask.c (handler_t): Restore typedef.
50678         (rpl_signal, old_handlers): Use local type.
50679
50680 2008-06-22  Bruno Haible  <bruno@clisp.org>
50681
50682         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50683         conditionally.
50684         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50685
50686 2008-06-22  Bruno Haible  <bruno@clisp.org>
50687
50688         * doc/posix-functions/siginterrupt.texi: Move note.
50689
50690         * lib/signal.in.h (SA_RESTART): New macro.
50691         * lib/sigaction.c: Update comment.
50692
50693         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50694
50695         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50696         (gl_PREREQ_SIGPROCMASK): Invoke it.
50697         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
50698
50699         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
50700
50701         * lib/sigprocmask.c: Update a comment.
50702
50703 2008-06-21  Eric Blake  <ebb9@byu.net>
50704
50705         Use sigaction module rather than signal().
50706         * modules/c-stack (Depends-on): Add sigaction.
50707         * modules/fatal-signal (Depends-on): Likewise.
50708         * modules/nanosleep (Depends-on): Likewise.
50709         * modules/sigprocmask (Files): Add sig-handler.h.
50710         * modules/sigaction (Files): Likewise.
50711         * lib/sig-handler.h (get_handler): New file, suggested by Paul
50712         Eggert.
50713         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
50714         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
50715         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
50716         (init_fatal_signals): Likewise.
50717         * lib/nanosleep.c (rpl_nanosleep): Likewise.
50718         (siginterrupt): Delete fallback.
50719         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
50720         instead.
50721         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
50722         siginterrupt.
50723
50724         New module sigaction, for mingw.
50725         * modules/sigaction: New module...
50726         * modules/sigaction-tests: ...and its test.
50727         * m4/sigaction.m4: New file.
50728         * lib/sigaction.c: Likewise.
50729         * tests/test-sigaction.c: Likewise.
50730         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
50731         * modules/signal (Makefile.am): Likewise.
50732         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
50733         needed.
50734         * doc/posix-headers/signal.texi (signal.h): Mention provided
50735         types.
50736         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
50737         that sigaction is preferable.
50738         * doc/posix-functions/sigaction.texi (sigaction): Mention new
50739         module.
50740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50741         sigaction.
50742
50743         Improve robustness of sigprocmask by overriding signal.
50744         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
50745         is in use.
50746         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
50747         (SIGKILL, SIGSTOP): Provide fallbacks.
50748         (rpl_signal): Implement.
50749         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
50750         signal can be called inside handlers.
50751
50752         Fix nanosleep module on mingw.
50753         * modules/nanosleep (Depends-on): Add sys_select.
50754         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50755
50756         Fix licensing of sigprocmask.
50757         * modules/raise (License): Relicense as LGPL.
50758
50759 2008-06-21  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50762         result if it contains question marks.
50763         Reported by Michael Geng <linux@michaelgeng.de>.
50764
50765 2008-06-19  Bruno Haible  <bruno@clisp.org>
50766
50767         Fix CVS-ism.
50768         * doc/gnulib.texi: Include updated-stamp.texi.
50769         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
50770         (updated-stamp.texi): New rule.
50771         (gnulib.info): Depend on it.
50772         * doc/.gitignore: Add updated-stamp.texi.
50773         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
50774
50775 2008-06-19  Bruno Haible  <bruno@clisp.org>
50776
50777         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50778         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50779
50780 2008-06-19  Eric Blake  <ebb9@byu.net>
50781
50782         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50783         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50784         Reported by Stepan Kasal.
50785
50786 2008-06-18  Bruno Haible  <bruno@clisp.org>
50787
50788         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50789         Reported by Eric Blake.
50790
50791 2008-06-18  Eric Blake  <ebb9@byu.net>
50792
50793         Work around cygwin 1.5.25 strsignal bug.
50794         * tests/test-strsignal.c: Allow for const char *.
50795         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50796
50797 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50798
50799         * users.txt: Update URL to article and add author/date
50800         information.
50801
50802 2008-06-17  Bruno Haible  <bruno@clisp.org>
50803
50804         New macro gl_DISABLE_THREADS.
50805         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50806         if the user did not pass --enable-threads or --disable-threads option.
50807         (gl_DISABLE_THREADS): New macro.
50808         Reported by Eric Blake <ebb9@byu.net>.
50809
50810 2008-06-17  Bruno Haible  <bruno@clisp.org>
50811
50812         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50813         when the macro ignores it.
50814         Based on a patch by Eric Blake <ebb9@byu.net>.
50815
50816 2008-06-17  Bruno Haible  <bruno@clisp.org>
50817
50818         * modules/tls (License): Change to LGPLv2+.
50819         Reported by Eric Blake.
50820
50821 2008-06-17  Eric Blake  <ebb9@byu.net>
50822
50823         Simplify c-stack prerequisites.
50824         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50825         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50826         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50827         check.
50828         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50829         <sys/resource.h>.
50830
50831         Move c-stack test into testsuite.
50832         * modules/c-stack-tests: New file.
50833         * lib/c-stack.c [DEBUG]: Move test program...
50834         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50835         fail test if sigaltstack is lacking.
50836         * tests/test-c-stack.sh: New driver file.
50837
50838 2008-06-16  Eric Blake  <ebb9@byu.net>
50839
50840         Use raise module consistently.
50841         * modules/fatal-signal (Depends-on): Add raise.
50842         * modules/sigprocmask (Depends-on): Likewise.
50843         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50844         * lib/sigprocmask.c (sigprocmask): Likewise.
50845         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50846         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50847
50848         Fix compliance bug in sigpending.
50849         * lib/sigprocmask.c (sigpending): Return pending array via
50850         parameter, not return value.
50851
50852 2008-06-14  Eric Blake  <ebb9@byu.net>
50853
50854         Improve obstack-printf test code.
50855         * tests/test-obstack-printf.c (test_function): Fix comment, and
50856         simplify usage of obstack_* in macros.  Add a test for coverage.
50857         Reported by Bruno Haible.
50858
50859 2008-06-14  Bruno Haible  <bruno@clisp.org>
50860
50861         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50862         array size as a constant, not as a const variable.
50863         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50864         AC_USE_SYSTEM_EXTENSIONS.
50865         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50866         Test whether the obstack_printf function actually exists.
50867         * modules/obstack-printf (Depends-on): Add extensions.
50868         (Include): Remove obstack.h.
50869         * modules/obstack-printf-posix (Depends-on): Add extensions.
50870         (Include): Remove obstack.h.
50871
50872 2008-06-13  Eric Blake  <ebb9@byu.net>
50873
50874         Add obstack-printf and obstack-printf-posix modules.
50875         * modules/obstack-printf: New file.
50876         * modules/obstack-printf-posix: Likewise.
50877         * MODULES.html.sh (Misc): Mention them.
50878         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50879         Likewise.
50880         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50881         Likewise.
50882         * modules/stdio (Makefile.am): Accomodate new modules.
50883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50884         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50885         Declare.
50886         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50887         functions.
50888         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50889         (gl_REPLACE_OBSTACK_PRINTF): New macros
50890         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50891         * tests/test-obstack-printf.c: New file.
50892         * modules/obstack-printf-tests: Likewise.
50893         * modules/obstack-printf-posix-tests: Likewise.
50894
50895 2008-06-11  Bruno Haible  <bruno@clisp.org>
50896
50897         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50898         * lib/open.c: Include errno.h.
50899         (open): Fail when attempting to write to a file that has a trailing
50900         slash.
50901         * tests/test-open.c (main): Test against trailing slash bug.
50902         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50903
50904 2008-06-10  Bruno Haible  <bruno@clisp.org>
50905
50906         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50907         for $? to work inside the trap command, with various /bin/sh-s.
50908         * tests/test-vc-list-files-cvs.sh: Likewise.
50909
50910 2008-06-10  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/acl-internal.h: Don't include gettext.h here.
50913         * lib/set-mode-acl.c: Include gettext.h here.
50914         * lib/copy-acl.c: Likewise.
50915
50916 2008-06-10  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50919         * lib/wait-process.c (wait_subprocess): Likewise.
50920         * lib/execute.h (execute): Add termsigp argument.
50921         * lib/execute.c (execute): Likewise.
50922         * lib/csharpcomp.c (compile_csharp_using_pnet,
50923         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50924         * lib/csharpexec.c (execute_csharp_using_pnet,
50925         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50926         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50927         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50928         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50929         is_jikes_present): Update.
50930         * lib/javaexec.c (execute_java_class): Update.
50931         * lib/javaversion.c (execute_and_read_line): Update.
50932         * NEWS: Document the changes.
50933         Reported by Eric Blake.
50934
50935 2008-06-10  Eric Blake  <ebb9@byu.net>
50936
50937         Add missing include.
50938         * tests/test-strstr.c (includes): Add <signal.h>.
50939         * tests/test-strcasestr.c (includes): Likewise.
50940         * tests/test-memmem.c (includes): Likewise.
50941
50942 2008-06-10  Bruno Haible  <bruno@clisp.org>
50943
50944         * lib/wait-process.c (wait_subprocess): Add an assertion.
50945
50946 2008-06-10  Bruno Haible  <bruno@clisp.org>
50947
50948         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50949
50950 2008-06-10  Bruno Haible  <bruno@clisp.org>
50951
50952         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50953         using alarm().
50954         * tests/test-strcasestr.c (main): Likewise.
50955         * tests/test-strstr.c (main): Likewise.
50956
50957 2008-06-09  Bruno Haible  <bruno@clisp.org>
50958
50959         Work around the Solaris 10 ACE ACLs ABI change.
50960         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50961         declare if ACL_NO_TRIVIAL is present.
50962         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50963         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50964         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50965         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50966         define if ACL_NO_TRIVIAL is present.
50967         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50968         and use the current ABI.
50969         (file_has_acl): Use same #if condition as elsewhere.
50970         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50971         in use, and use the current ABI.
50972         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50973         Reported by Jim Meyering.
50974
50975 2008-06-09  Eric Blake  <ebb9@byu.net>
50976
50977         Work around environments that (stupidly) ignore SIGALRM.
50978         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50979         before using alarm().
50980         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50981         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50982         Reported by Ian Beckwith <ianb@erislabs.net>.
50983
50984         Produce autobuild blurb earlier in log.
50985         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50986
50987 2008-06-09  Jim Meyering  <meyering@redhat.com>
50988         and OndÅ™ej Vašík  <ovasik@redhat.com>
50989
50990         utimens.c: correct kernel bug work-around
50991         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50992         failure, not success, and the kernel bug we're trying to work
50993         around affects not just the utimensat call, but also the fallback
50994         futimens call.
50995         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50996         not success.
50997         [HAVE_FUTIMENS]: Use the same work-around, here.
50998
50999 2008-06-09  Jim Meyering  <meyering@redhat.com>
51000
51001         add more guards around definition of ACE_-related code
51002         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51003         ALLOW and ACE_OWNER are also defined.
51004
51005 2008-06-08  Bruno Haible  <bruno@clisp.org>
51006
51007         * lib/acl-internal.h: Add me as co-author.
51008         * lib/file-has-acl.c: Likewise.
51009         * lib/set-mode-acl.c: Likewise.
51010         * lib/copy-acl.c: Likewise.
51011
51012 2008-06-08  Bruno Haible  <bruno@clisp.org>
51013
51014         Add support for AIX ACLs.
51015         * lib/acl-internal.h (acl_nontrivial): New declaration.
51016         * lib/file-has-acl.c (acl_nontrivial): New function.
51017         (file_has_acl): Add implementation using AIX 4 ACL API.
51018         * lib/set-mode-acl.c (qset_acl): Likewise.
51019         * lib/copy-acl.c (qcopy_acl): Likewise.
51020
51021 2008-06-08  Bruno Haible  <bruno@clisp.org>
51022
51023         Add support for HP-UX ACLs.
51024         * lib/acl-internal.h (acl_nontrivial): New declaration.
51025         * lib/file-has-acl.c (acl_nontrivial): New function.
51026         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51027         * lib/set-mode-acl.c (qset_acl): Likewise.
51028         * lib/copy-acl.c (qcopy_acl): Likewise.
51029
51030 2008-06-08  Bruno Haible  <bruno@clisp.org>
51031
51032         Add support for Cygwin ACLs.
51033         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51034         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51035         the chmod_or_fchmod call.
51036         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51037
51038 2008-06-08  Bruno Haible  <bruno@clisp.org>
51039
51040         Fix bug with setuid modes in Solaris 10+ code.
51041         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51042         succeeded, when the mode contains some special bits.
51043
51044 2008-06-08  Bruno Haible  <bruno@clisp.org>
51045
51046         Add support for Solaris 7..10 ACLs.
51047         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51048         declarations.
51049         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51050         functions.
51051         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51052         * lib/set-mode-acl.c (qset_acl): Likewise.
51053         * lib/copy-acl.c (qcopy_acl): Likewise.
51054
51055 2008-06-08  Bruno Haible  <bruno@clisp.org>
51056
51057         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51058         declaration.
51059         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51060         (acl_access_nontrivial): Remove MacOS X case.
51061         (file_has_acl): Use acl_extended_nontrivial.
51062         * lib/copy-acl.c (qcopy_acl): Likewise.
51063
51064 2008-06-08  Bruno Haible  <bruno@clisp.org>
51065
51066         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51067
51068 2008-06-08  Jim Meyering  <meyering@redhat.com>
51069
51070         * modules/acl (Maintainer): Add Bruno Haible.
51071
51072 2008-06-07  Bruno Haible  <bruno@clisp.org>
51073
51074         Improve support for Tru64 ACLs.
51075         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51076         ACL on OSF/1.
51077
51078 2008-06-07  Bruno Haible  <bruno@clisp.org>
51079
51080         Add support for MacOS X ACLs.
51081         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51082         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51083         * lib/set-mode-acl.c (qset_acl): Likewise.
51084         * lib/copy-acl.c (qcopy_acl): Likewise.
51085
51086 2008-06-07  Bruno Haible  <bruno@clisp.org>
51087
51088         Fix memory leak introduced on 2008-05-22.
51089         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51090         use.
51091
51092 2008-06-07  Bruno Haible  <bruno@clisp.org>
51093
51094         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51095         to construct an empty ACL.
51096
51097 2008-06-07  Bruno Haible  <bruno@clisp.org>
51098
51099         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51100         precisely.
51101         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51102
51103 2008-06-07  Bruno Haible  <bruno@clisp.org>
51104
51105         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51106         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51107
51108 2008-06-07  Bruno Haible  <bruno@clisp.org>
51109
51110         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51111         regardless of POSIX.
51112         * doc/posix-functions/_longjmp.texi: Likewise.
51113         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51114         SystemV platform in this case.
51115
51116 2008-06-06  Eric Blake  <ebb9@byu.net>
51117
51118         Document abort() bugs.
51119         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51120
51121         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51122         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51123         sigsetjmp.
51124         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51125         siglongjmp, but only as a macro.
51126         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51127         is obsolete.
51128         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51129
51130         Tweak documentation to cover cygwin argz bugs.
51131         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51132         argz bug fix; no code change needed since no cygwin releases
51133         occurred between the last fix and the bug being tested.
51134         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51135         module and recently fixed cygwin bugs.
51136         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51137         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51138         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51139         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51140         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51141         Likewise.
51142         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51143         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51144         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51145         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51146         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51147         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51148         Likewise.
51149
51150         Avoid gcc warning on cygwin.
51151         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51152         !ACL_NO_TRIVIAL]: Avoid unused variable.
51153
51154 2008-06-05  Eric Blake  <ebb9@byu.net>
51155
51156         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51157         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51158         git-version-gen fails to come up with a version.
51159         Reported by Simon Josefsson.
51160
51161 2008-06-05  Jim Meyering  <meyering@redhat.com>
51162             Paul Eggert  <eggert@cs.ucla.edu>
51163
51164         utimens.c: work around a probable Linux kernel bug
51165         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51166         appears to be a kernel bug that causes utimensat to return 280
51167         instead of 0, indicating success.
51168
51169 2008-06-04  Bruno Haible  <bruno@clisp.org>
51170
51171         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51172         2008-06-01 commit.
51173
51174 2008-06-04  Bruno Haible  <bruno@clisp.org>
51175
51176         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51177         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51178         (file_has_acl): Use it. Save errno afterwards.
51179         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51180
51181 2008-06-03  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51184         draft code. Simplify #ifs.
51185         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51186         Put Solaris code after POSIX-draft code. Fix comments regarding
51187         Solaris 10, HP-UX. Mention Cygwin.
51188         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51189
51190 2008-06-03  Eric Blake  <ebb9@byu.net>
51191
51192         Provide fallback for older kernels.
51193         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51194         Provide runtime fallback if kernel lacks support.
51195         Reported by Mike Frysinger.
51196
51197 2008-06-02  Bruno Haible  <bruno@clisp.org>
51198
51199         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51200         it exists.
51201
51202 2008-06-02  Bruno Haible  <bruno@clisp.org>
51203
51204         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51205         * lib/copy-acl.c (qcopy_acl): Update comment.
51206
51207 2008-06-02  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51210         like ACL APIs.
51211
51212 2008-06-02  Bruno Haible  <bruno@clisp.org>
51213
51214         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51215         * tests/test-set-mode-acl.sh: Likewise.
51216         * tests/test-copy-acl.sh: Likewise.
51217         * tests/test-copy-file.sh: Likewise.
51218
51219 2008-06-02  Bruno Haible  <bruno@clisp.org>
51220
51221         * tests/test-file-has-acl.sh: Remove unused code.
51222
51223 2008-06-01  Bruno Haible  <bruno@clisp.org>
51224
51225         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51226         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51227         messages.
51228         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51229
51230 2008-06-01  Bruno Haible  <bruno@clisp.org>
51231
51232         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51233         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51234         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51235         APIs.
51236         * modules/acl-tests (configure.ac): Remove tests now contained in
51237         m4/acl.m4.
51238
51239 2008-06-02  Jim Meyering  <meyering@redhat.com>
51240
51241         announce-gen: use a better key-server host name
51242         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51243         it may be more consistently reliable.  Suggested by Werner Koch
51244         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51245
51246 2008-06-01  Bruno Haible  <bruno@clisp.org>
51247
51248         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51249         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51250
51251 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51252
51253         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51254
51255 2008-06-01  Bruno Haible  <bruno@clisp.org>
51256
51257         New ACL tests.
51258         * tests/test-file-has-acl.sh: New file.
51259         * tests/test-file-has-acl.c: New file.
51260         * tests/test-set-mode-acl.sh: New file.
51261         * tests/test-set-mode-acl.c: New file.
51262         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51263         * tests/test-copy-acl.c: New file.
51264         * modules/acl-tests: New file, based on modules/copy-file-tests.
51265         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51266         (Depends-on): Add acl-tests.
51267         (configure.ac): Remove checks.
51268         (Makefile.am): Don't create test-sameacls program here any more.
51269
51270 2008-06-01  Bruno Haible  <bruno@clisp.org>
51271
51272         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51273         * tests/test-sameacls.c: Include progname.h.
51274         (main): Invoke set_program_name. Portability fixes for MacOS X,
51275         Solaris, HP-UX.
51276
51277 2008-06-01  Bruno Haible  <bruno@clisp.org>
51278
51279         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51280         function.
51281         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51282
51283 2008-06-01  Bruno Haible  <bruno@clisp.org>
51284
51285         * modules/rpmatch (Depends-on): Add strdup.
51286
51287 2008-06-01  Bruno Haible  <bruno@clisp.org>
51288
51289         * lib/pipe.c: Include unistd-safer.h.
51290         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51291         * modules/pipe (Depends-on): Add unistd-safer.
51292
51293 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51294
51295         * modules/autobuild (configure.ac): Call AB_INIT.
51296
51297 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51298
51299         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51300         Suggested by Bruno Haible <bruno@clisp.org>.
51301
51302 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51303
51304         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51305         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51306         <bruno@clisp.org>.
51307
51308 2008-05-29  Eric Blake  <ebb9@byu.net>
51309
51310         Prefer new POSIX 200x interfaces over futimesat.
51311         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51312         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51313         when available.
51314         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51315
51316 2008-05-28  Bruno Haible  <bruno@clisp.org>
51317
51318         * modules/stpcpy (License): Change to LGPLv2+.
51319         Requested by David Lutterkort <dlutter@redhat.com>.
51320
51321 2008-05-27  Bruno Haible  <bruno@clisp.org>
51322
51323         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51324         current mingw.
51325         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51326
51327 2008-05-27  Bruno Haible  <bruno@clisp.org>
51328
51329         * modules/iconv_open (Link): New section, from module 'iconv'.
51330         * modules/striconv (Link): Likewise.
51331         * modules/striconveh (Link): Likewise.
51332         * modules/xstriconv (Link): Likewise.
51333         * modules/unicodeio (Link): Likewise.
51334         * modules/propername (Link): Likewise.
51335         Reported by Jim Meyering.
51336
51337 2008-05-26  Jim Meyering  <meyering@redhat.com>
51338
51339         sha256: do not artificially restrict buffer length to be < 2^32
51340         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51341         uint32_t to size_t.
51342         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51343         to match.
51344
51345         avoid unaligned access errors, e.g., on sparc
51346         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51347         direct access through a possibly-unaligned uint64* pointer.
51348         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51349         direct access through a possibly-unaligned uint32* pointer.
51350         Prompted by this patch from Tom "spot" Callaway:
51351         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51352
51353         sha512.c: fix typo in comment
51354         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51355
51356 2008-05-25  Bruno Haible  <bruno@clisp.org>
51357
51358         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51359         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51360         (Makefile.am): Update lib_SOURCES.
51361
51362 2008-05-25  Bruno Haible  <bruno@clisp.org>
51363
51364         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51365
51366 2008-05-25  Jim Meyering  <meyering@redhat.com>
51367
51368         useless-if-before-free: freed expr may have white-space differences
51369         * build-aux/useless-if-before-free: Recognize cases in which the
51370         freed expression differs from the tested one in embedded white
51371         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51372         $1 was used, so we can't make any regexp shy.  Improved tests now
51373         detect this.
51374
51375         useless-if-before-free: accept white space in the expression.
51376         * build-aux/useless-if-before-free: For now, any white space
51377         in the expression must be identical in the free argument.
51378
51379         useless-if-before-free: efficiency tweak
51380         * build-aux/useless-if-before-free: Make the expression-matching
51381         regexp "shy".
51382         Make the *outer* regexp shy, not the expr-matching one.
51383
51384         update code-in-comment to accept cast of free arg
51385         * build-aux/useless-if-before-free: Update regexp.
51386
51387 2008-05-25  Bruno Haible  <bruno@clisp.org>
51388
51389         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51390         * modules/copy-file-tests (Files, Makefile.am): Update.
51391         * tests/test-copy-file.c (func_test_copy): Update.
51392
51393 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51394
51395         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51396
51397 2008-05-23  Bruno Haible  <bruno@clisp.org>
51398
51399         Improve support for ACLs on OSF/1.
51400         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51401         Remove fallback for unknown flavors of ACLs.
51402
51403 2008-05-22  Bruno Haible  <bruno@clisp.org>
51404
51405         Add support for ACLs on OSF/1.
51406         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51407         replacements.
51408         (acl_free_text): New macro fallback.
51409         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51410         acl_free.
51411         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51412         acl_free_text function. Require AC_C_INLINE.
51413
51414 2008-05-22  Bruno Haible  <bruno@clisp.org>
51415
51416         Make copy_acl work on MacOS X 10.5.
51417         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51418         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51419         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51420         If MODE_INSIDE_ACL, don't assume that every system has the same text
51421         representation for ACLs as FreeBSD.
51422         * lib/copy-acl.c (copy_acl): Add support for platforms with
51423         !MODE_INSIDE_ACL.
51424         * lib/file-has-acl.c (file_has_acl): Likewise.
51425         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51426         FreeBSD, MacOS X, or IRIX, respectively.
51427
51428 2008-05-22  Bruno Haible  <bruno@clisp.org>
51429
51430         * lib/acl.h: Don't include <sys/acl.h>.
51431         (GETACLCNT): Move fallback to lib/acl-internal.h.
51432         * lib/acl-internal.h: Include <sys/acl.h> here.
51433         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51434
51435 2008-05-22  Bruno Haible  <bruno@clisp.org>
51436
51437         Split off copy_acl function to separate file.
51438         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51439         * lib/acl.c (copy_acl): Moved function to separate file.
51440         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51441         * modules/acl (Files): Add lib/copy-acl.c.
51442         (Makefiles.am): Augment lib_SOURCES.
51443
51444 2008-05-22  Bruno Haible  <bruno@clisp.org>
51445
51446         * modules/copy-file-tests: New file.
51447         * tests/test-copy-file.sh: New file.
51448         * tests/test-copy-file.c: New file.
51449         * tests/test-copy-file-sameacls.c: New file.
51450
51451 2008-05-22  Eric Blake  <ebb9@byu.net>
51452
51453         Avoid gcc warning.
51454         * tests/test-memcmp.c (main): Pass NULL indirectly.
51455
51456 2008-05-21  Bruno Haible  <bruno@clisp.org>
51457
51458         Add reference doc about ACLs.
51459         * doc/acl-resources.txt: New file.
51460         * doc/acl-cygwin.txt: New file.
51461
51462 2008-05-21  Bruno Haible  <bruno@clisp.org>
51463
51464         Avoid one more warning from gcc.
51465         * lib/vasnprintf.c (IF_LINT): Update comments.
51466         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51467
51468 2008-05-21  Jim Meyering  <meyering@redhat.com>
51469
51470         avoid a warning from gcc
51471         * lib/vasnprintf.c (IF_LINT): Define.
51472         (scale10_round_decimal_long_double):
51473         Use it to avoid a "may be used uninitialized" warning.
51474         (scale10_round_decimal_double): Likewise.
51475
51476 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51477
51478         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51479         declared.
51480
51481 2008-05-20  Bruno Haible  <bruno@clisp.org>
51482
51483         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51484         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51485
51486 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51487
51488         * modules/memcmp-tests: New file.
51489         * tests/test-memcmp.c: New file.
51490
51491 2008-05-19  Bruno Haible  <bruno@clisp.org>
51492
51493         * modules/propername (Notice, configure.ac): Put quoted "..." into
51494         --keyword option.
51495         * lib/propername.h: Update comments accordingly.
51496         Reported by Eric Blake.
51497
51498 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51499
51500         * modules/getpass-gnu (Depends-on): Add fseeko.
51501
51502 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51503
51504         * modules/base64-tests: New file.
51505
51506 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51507
51508         * lib/base64.c (base64_decode_ctx): If a decode context structure
51509         was passed in use it to ignore newlines.  If a context structure
51510         was _not_ passed in, continue to treat newlines as garbage (this
51511         is the historical behavior).  Formerly base64_decode.
51512         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51513         takes a decode context structure.
51514         * lib/base64.h (base64_decode): Macro for four-argument calls.
51515         (base64_decode_alloc): Likewise.
51516         * lib/base64.c (base64_decode_ctx): If a decode context structure
51517         was passed in use it to ignore newlines.  If a context structure
51518         was _not_ passed in, continue to treat newlines as garbage (this
51519         is the historical behavior).  Formerly base64_decode.
51520         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51521         takes a decode context structure.
51522         * lib/base64.h (base64_decode): Macro for four-argument calls.
51523         (base64_decode_alloc): Likewise.
51524
51525 2008-05-19  Jim Meyering  <meyering@redhat.com>
51526
51527         avoid a warning from gcc
51528         * lib/trim.c (IF_LINT): Define.
51529         (trim2): Use it to avoid a "may be used uninitialized" warning.
51530
51531         Fix doc typo.
51532         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51533
51534 2008-05-19  Bruno Haible  <bruno@clisp.org>
51535
51536         * doc/glibc-functions/getpass.texi: Document limits of other
51537         implementations.
51538
51539 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51540             Bruno Haible <bruno@clisp.org>
51541
51542         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51543
51544 2008-05-18  Bruno Haible  <bruno@clisp.org>
51545
51546         * modules/propername: New file, from GNU gettext.
51547         * lib/propername.h: New file, from GNU gettext.
51548         * lib/propername.c: New file, from GNU gettext.
51549         * MODULES.html.sh (Internationalization functions): Add propername.
51550
51551 2008-05-16  Jim Meyering  <meyering@redhat.com>
51552             Bruno Haible  <bruno@clisp.org>
51553
51554         Avoid some warnings from "gcc -Wshadow".
51555         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51556
51557 2008-05-15  Eric Blake  <ebb9@byu.net>
51558
51559         Extend previous patch to cygwin 1.7.0.
51560         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51561         fast implementation in cygwin >= 1.7.0.
51562         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51564
51565 2008-05-15  Bruno Haible  <bruno@clisp.org>
51566
51567         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51568         implementation in glibc >= 2.9.
51569         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51571
51572 2008-05-15  Bruno Haible  <bruno@clisp.org>
51573
51574         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51575         (Unicode string functions): Add unilbrk/*.
51576         Reported by Karl Berry.
51577
51578 2008-05-15  Eric Blake  <ebb9@byu.net>
51579
51580         Fix violation of <stdbool.h> replacement in regex.
51581         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51582         * lib/regexec.c (re_search_internal): Likewise.
51583         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51584
51585 2008-05-15  Jim Meyering  <meyering@redhat.com>
51586
51587         avoid distracting test output when git or cvs is not found
51588         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51589         * tests/test-vc-list-files-git.sh: Likewise.
51590
51591 2008-05-15  Eric Blake  <ebb9@byu.net>
51592
51593         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51594         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51595         glibc version.
51596         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51597         * doc/posix-functions/strstr.texi (strstr): Likewise.
51598         * lib/str-two-way.h (MAX): Sychronize with glibc.
51599
51600 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51601
51602         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51603         opr.ctx_type.
51604         (calc_first): Initialize constraint field.
51605         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51606         Fix grammar.
51607         (duplicate_node): Merge constraint field for all node types.
51608         (calc_eclosure_iter): Look at constraint field for all node types.
51609         * lib/regex_internal.c (create_cd_newstate): Don't look at
51610         opr.ctx_type.
51611
51612 2008-05-14  Bruno Haible  <bruno@clisp.org>
51613
51614         Help GCC to do better code generation.
51615         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51616         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51617         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51618         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51619         Declare with attribute 'malloc' if supported.
51620
51621 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51622
51623         use "echo STR|wc -c" rather than unportable "expr length STR"
51624         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51625         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51626
51627 2008-05-14  Jim Meyering  <meyering@redhat.com>
51628
51629         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51630         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51631         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51632         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51633         via Collin Lasse.
51634
51635 2008-05-14  Eric Blake  <ebb9@byu.net>
51636
51637         Avoid quadratic growth in gl_LIBSOURCES.
51638         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51639         Suggested by Bruno Haible.
51640
51641         Test xmemdup0.
51642         * modules/xmemdup0-tests: New file.
51643         * tests/test-xmemdup0.c: Likewise.
51644
51645 2008-05-13  Eric Blake  <ebb9@byu.net>
51646
51647         Split xmemdup0 into its own module.
51648         * modules/xmemdup0: New file.
51649         * lib/xmemdup0.h: Likewise.
51650         * lib/xmemdup0.c: Likewise.
51651         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51652         * lib/xalloc.h (xmemdup0): Remove.
51653         * lib/xmalloc.c (xmemdup0): Likewise.
51654
51655 2008-05-13  Eric Blake  <ebb9@byu.net>
51656             Bruno Haible  <bruno@clisp.org>
51657
51658         Reduce number of forks required during autoconf.
51659         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51660         and gl_LIBSOURCES_DIR.
51661         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51662         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51663         m4_syscmd per file.
51664         <m4_foreach_w>: Move...
51665         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51666
51667 2008-05-13  Eric Blake  <ebb9@byu.net>
51668
51669         * gnulib-tool: Fix various comment typos.
51670
51671 2008-05-12  Bruno Haible  <bruno@clisp.org>
51672
51673         Tailor the linebreaking algorithm.
51674         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51675
51676 2008-05-12  Bruno Haible  <bruno@clisp.org>
51677
51678         Update to Unicode 5.0.0.
51679         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51680         LBP_JV, LBP_JT. Redistribute values.
51681         (unilbrk_table): Change size.
51682         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51683         Unicode TR#14 rev. 22.
51684         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51685         LBP_JV, LBP_JT. Redistribute values.
51686         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51687         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51688         Update.
51689         * lib/unilbrk/lbrkprop1.h: Regenerated.
51690         * lib/unilbrk/lbrkprop2.h: Regenerated.
51691         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51692         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51693         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51694         Likewise.
51695         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51696         Likewise.
51697         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
51698         result.
51699         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51700         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51701         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51702         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
51703         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
51704         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
51705
51706 2008-05-11  Bruno Haible  <bruno@clisp.org>
51707
51708         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
51709
51710 2008-05-11  Bruno Haible  <bruno@clisp.org>
51711
51712         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
51713         * modules/unilbrk/gen-lbrk: New file.
51714
51715 2008-05-11  Bruno Haible  <bruno@clisp.org>
51716
51717         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
51718         * m4/sha512.m4 (gl_SHA512): Likewise.
51719
51720 2008-05-11  Jim Meyering  <meyering@redhat.com>
51721
51722         New modules: crypto/sha256, crypto/sha512 (from coreutils)
51723         * modules/crypto/sha256: New file.
51724         * modules/crypto/sha512: Likewise.
51725         * lib/sha256.c: Likewise.
51726         * lib/sha256.h: Likewise.
51727         * lib/sha512.c: Likewise.
51728         * lib/sha512.h: Likewise.
51729         * lib/u64.h: Likewise.
51730         * m4/sha256.m4: Likewise.
51731         * m4/sha512.m4: Likewise.
51732         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
51733
51734 2008-05-10  Bruno Haible  <bruno@clisp.org>
51735
51736         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
51737         (Input/Output <stdio.h>): Add xprintf.
51738         (Signal handling <signal.h>): Add strsignal.
51739         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
51740         (Core language properties): Add func.
51741         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
51742         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
51743         strings.
51744         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
51745         (Input/output): New section.
51746         (File system functions): Add openat-die, stat-macros.
51747         (Networking functions): Add sockets.
51748         (Unicode string functions): Add unictype/*.
51749         (Support for building libraries and executables): Add gperf.
51750         (Support for building documentation): Add agpl-3.0.
51751         (Misc): Add nocrash.
51752
51753 2008-05-10  Bruno Haible  <bruno@clisp.org>
51754
51755         * modules/unictype/gen-ctype: New file.
51756
51757 2008-05-10  Jim Meyering  <meyering@redhat.com>
51758
51759         Make chdir-safer.c more efficient on a system with no symlinks.
51760         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51761         also if ELOOP is zero.  Suggested by Bruno Haible.
51762
51763         Make chdir-safer.c slightly safer.
51764         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51765         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51766
51767         Avoid compile failure on systems without ELOOP (like mingw).
51768         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51769         Reported by Bruno Haible.
51770
51771 2008-05-10  Bruno Haible  <bruno@clisp.org>
51772
51773         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
51774         (is_utf8_encoding): Use a case-insensitive comparison.
51775         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
51776         streq.
51777
51778 2008-05-10  Bruno Haible  <bruno@clisp.org>
51779
51780         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51781         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51782         * lib/unilbrk/ulc-common.h (iconv_string_length,
51783         iconv_string_keeping_offsets): Remove declarations.
51784         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51785         Don't include <iconv.h>, streq.h, xsize.h.
51786         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51787         conversion.
51788         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51789         <iconv.h>, streq.h, xsize.h.
51790         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51791         conversion.
51792         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51793         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51794         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51795         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51796
51797 2008-05-10  Bruno Haible  <bruno@clisp.org>
51798
51799         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51800         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51801
51802         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51803         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51804
51805         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51806         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51807
51808         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51809         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51810
51811         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51812         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51813
51814         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51815         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51816
51817         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51818         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51819
51820         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51821         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51822
51823 2008-05-10  Bruno Haible  <bruno@clisp.org>
51824
51825         Split up 'linebreak' module.
51826         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51827         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51828         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51829         modifications.
51830         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51831         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51832         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51833         lib/linebreak.c.
51834         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51835         lib/linebreak.c.
51836         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51837         lib/linebreak.c.
51838         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51839         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51840         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51841         lib/linebreak.c.
51842         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51843         lib/linebreak.c.
51844         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51845         lib/linebreak.c.
51846         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51847         lib/linebreak.c.
51848         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51849         lib/linebreak.c.
51850         * modules/unilbrk/base: New file.
51851         * modules/unilbrk/tables: New file.
51852         * modules/unilbrk/u8-possible-linebreaks: New file.
51853         * modules/unilbrk/u16-possible-linebreaks: New file.
51854         * modules/unilbrk/u32-possible-linebreaks: New file.
51855         * modules/unilbrk/ulc-common: New file.
51856         * modules/unilbrk/ulc-possible-linebreaks: New file.
51857         * modules/unilbrk/u8-width-linebreaks: New file.
51858         * modules/unilbrk/u16-width-linebreaks: New file.
51859         * modules/unilbrk/u32-width-linebreaks: New file.
51860         * modules/unilbrk/ulc-width-linebreaks: New file.
51861         * lib/linebreak.h: Remove file.
51862         * lib/linebreak.c: Remove file.
51863         * m4/linebreak.m4: Remove file.
51864         * modules/linebreak: Remove file.
51865         * NEWS: Mention the changes.
51866
51867 2008-05-09  Eric Blake  <ebb9@byu.net>
51868
51869         Add xmemdup0.
51870         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51871         implementation.
51872         * lib/xmalloc.c (xmemdup0): New C implementation.
51873
51874 2008-05-08  Bruno Haible  <bruno@clisp.org>
51875
51876         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51877
51878 2008-05-07  Eric Blake  <ebb9@byu.net>
51879
51880         Support cross-compilation of <wctype.h>.
51881         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51882         AC_CACHE_CHECK.
51883
51884 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51885
51886         * build-aux/vc-list-files: Add support for bzr.
51887
51888 2008-05-03  Jim Meyering  <meyering@redhat.com>
51889
51890         avoid failed assertion with tight malloc
51891         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51892
51893 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51894
51895         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51896         are needed from arpa/inet.h.
51897         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51898         Reported by Bruno Haible.
51899
51900 2008-05-02  Jim Meyering  <meyering@redhat.com>
51901
51902         avoid compilation error on FreeBSD 6
51903         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51904
51905 2008-05-01  Jim Meyering  <meyering@redhat.com>
51906
51907         useless-if-before-free: correct --help's exit status description
51908         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51909         for one or more matches, etc.  Reported by Bruno Haible.
51910
51911         vc-list-files: make the stand-alone gnulib test work
51912         * modules/vc-list-files-tests (configure.ac):
51913         Define and AC_SUBST abs_aux_dir.
51914         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51915         $(abs_top_srcdir) to each script and having each of them
51916         duplicate the work of setting PATH, set PATH here, using
51917         the new variable, abs_aux_dir instead.
51918         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51919         * tests/test-vc-list-files-git.sh: Likewise.
51920         Reported by Bruno Haible.
51921
51922 2008-05-01  Bruno Haible  <bruno@clisp.org>
51923
51924         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51925         reallocation. Rename 'done' to 'found_delimiter'.
51926
51927 2008-05-01  Jim Meyering  <meyering@redhat.com>
51928
51929         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51930         * build-aux/vc-list-files: Use `...`, not $(...).
51931
51932 2008-04-30  Jim Meyering  <meyering@redhat.com>
51933
51934         add tests for vc-list-files
51935         * modules/vc-list-files-tests: New module.
51936         * tests/test-vc-list-files-cvs.sh: New file.
51937         * tests/test-vc-list-files-git.sh: New file.
51938
51939         avoid a warning from gcc
51940         * lib/getndelim2.c (IF_LINT): Define.
51941         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51942
51943         vc-list-files: work properly with build-aux/cvsu, too
51944         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51945         to all cvs-based clauses.
51946
51947         vc-list-files: work properly in the CVS+awk case, too
51948         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51949
51950         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51951         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51952         take more than one file argument, so .  Add quotes, just in case $dir
51953         ever contains a shell meta-character.  Prompted by Soren Hansen in
51954         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51955
51956 2008-04-29  Eric Blake  <ebb9@byu.net>
51957
51958         Optimize getndelim2 to use block operations when possible.
51959         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51960         freadseek, and memchr2.
51961         * lib/getndelim2.c (getndelim2): Use them for block reads.
51962
51963 2008-04-29  Bruno Haible  <bruno@clisp.org>
51964
51965         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51966         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51967         * modules/inet_ntop (Depends-on): Add extensions.
51968         * modules/inet_pton (Depends-on): Likewise.
51969         Reported by Simon Josefsson.
51970
51971 2008-04-29  Jim Meyering  <meyering@redhat.com>
51972
51973         When the is more than one match in a block, match all of them.
51974         * build-aux/useless-if-before-free: Iterate through each block
51975         until there are no more matches.
51976
51977         Fix broken useless-if-before-free script.
51978         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51979         the expression to match cast of argument to free-like function.
51980
51981 2008-04-29  Eric Blake  <ebb9@byu.net>
51982
51983         Use new header.
51984         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51985
51986 2008-04-29  Jim Meyering  <meyering@redhat.com>
51987
51988         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51989         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51990         by gnulib to exist and to declare e.g., inet_ntop.
51991         Don't include "inet_ntop.h", now removed.
51992
51993         * m4/arpa_inet_h.m4: Remove trailing blanks.
51994
51995 2008-04-29  Eric Blake  <ebb9@byu.net>
51996
51997         Silence valgrind on safe reads beyond potential array bounds.
51998         * lib/rawmemchr.valgrind: New file.
51999         * lib/strchrnul.valgrind: Likewise.
52000         * modules/rawmemchr (Files): Distribute new file.
52001         * modules/strchrnul (Files): Likewise.
52002         Suggested by Bruno Haible.
52003
52004 2008-04-29  Bruno Haible  <bruno@clisp.org>
52005
52006         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52007         (inet_ntop, inet_pton): Change portability warning's wording.
52008         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52009         Invoke gl_CHECK_NEXT_HEADERS.
52010         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52011         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52012         set ARPA_INET_H.
52013         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52014         * modules/arpa_inet (Description): No longer only for systems that
52015         lack it.
52016         (Depends-on): Add include_next.
52017         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52018         HAVE_ARPA_INET_H.
52019
52020 2008-04-29  Jim Meyering  <meyering@redhat.com>
52021
52022         * modules/mkdir (License): Re-license as LGPLv2+.
52023
52024 2008-04-29  Bruno Haible  <bruno@clisp.org>
52025
52026         * modules/rawmemchr (Maintainer): Set to Eric.
52027         * modules/strchrnul (Maintainer): Likewise.
52028
52029 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52030
52031         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52032         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52033
52034         * modules/arpa_inet (arpa/inet.h): Use them.
52035
52036 2008-04-28  Eric Blake  <ebb9@byu.net>
52037
52038         Test getndelim2.
52039         * modules/getndelim2-tests: New file.
52040         * tests/test-getndelim2.c: Likewise.
52041         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52042         stream.
52043         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52044
52045         * MODULES.html.sh: Document new module.
52046
52047 2008-04-20  Bruno Haible  <bruno@clisp.org>
52048
52049         * lib/c-stack.c (die): Use raise.
52050         * modules/c-stack (Depends-on): Add raise.
52051
52052 2008-04-28  Bruno Haible  <bruno@clisp.org>
52053
52054         Expect rpmatch to be declared.
52055         * lib/yesno.c (rpmatch): Remove declaration.
52056
52057         Declare rpmatch.
52058         * lib/stdlib.in.h (rpmatch): New declaration.
52059         * lib/rpmatch.c: Include <stdlib.h> first.
52060         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52061         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52063         HAVE_RPMATCH.
52064         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52065         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52066         (Include): Set to <stdlib.h>.
52067         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52068         HAVE_RPMATCH.
52069         * NEWS: Document the change.
52070
52071 2008-04-28  Bruno Haible  <bruno@clisp.org>
52072
52073         Change rpmatch to use nl_langinfo when appropriate.
52074         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52075         (N_): New macro.
52076         (localized_pattern): New function/macro.
52077         (try): Remove match, nomatch arguments. Copy the pattern into safe
52078         memory before caching it.
52079         (rpmatch): Use localized_pattern. Add translator comments.
52080         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52081         Suggested by Eric Blake.
52082         * modules/rpmatch (Depends-on): Add stdbool.
52083
52084 2008-04-28  Eric Blake  <ebb9@byu.net>
52085
52086         Add rawmemchr module, matching glibc.
52087         * modules/string (Makefile.am): New indicator.
52088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52089         * lib/string.in.h (rawmemchr): Declare when appropriate.
52090         * modules/rawmemchr: New file.
52091         * m4/rawmemchr.m4: Likewise.
52092         * lib/rawmemchr.c: Likewise.
52093         * modules/rawmemchr-tests: Likewise.
52094         * tests/test-rawmemchr.c: Likewise.
52095         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52096         module.
52097         * modules/strchrnul (Depends-on): Add rawmemchr.
52098         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52099
52100         Whitespace cleanup.
52101         * tests/test-strchrnul.c: Reindent.
52102         * lib/strchrnul.c: Likewise.
52103
52104         Optimize and test strchrnul.
52105         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52106         * modules/strchrnul-tests: New file.
52107         * tests/test-strchrnul.c: Likewise.
52108
52109         Remove intprops dependency.
52110         * modules/memchr (Depends-on): Remove intprops.
52111         * modules/memrchr (Depends-on): Likewise.
52112         * modules/memchr2 (Depends-on): Likewise.
52113         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52114         * lib/memrchr.c (__memrchr): Likewise.
52115         * lib/memrchr2.c (memchr2): Likewise.
52116         Reported by Simon Josefsson.
52117
52118 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52119
52120         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52121         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52122
52123 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52124
52125         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52126
52127         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52128
52129         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52130
52131         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52132         declarations.
52133         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52134
52135         * m4/inet_pton.m4: Don't check for header files.
52136
52137         * m4/inet_ntop.m4: Don't check for header files.
52138
52139 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52140
52141         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52142         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52143         trigger for cygwin).
52144         Reported by Bruno Haible  <bruno@clisp.org>.
52145
52146 2008-04-28  Bruno Haible  <bruno@clisp.org>
52147
52148         * doc/posix-functions/strdup.texi: Mention mingw problem.
52149
52150 2008-04-27  Bruno Haible  <bruno@clisp.org>
52151
52152         * modules/stat-time-tests (Depends-on): Add sleep.
52153         * tests/test-stat-time.c (force_unlink): New function.
52154         (cleanup): Use it.
52155         (test_mtime): Remove the ctime related tests.
52156         (test_ctime): New function, containing the ctime related tests.
52157         (main): Call test_ctime, except on native Windows platforms.
52158
52159 2008-04-27  Bruno Haible  <bruno@clisp.org>
52160
52161         * lib/rpmatch.c (rpmatch): Add some comments.
52162         Reported by James Youngman <jay@gnu.org>.
52163
52164 2008-04-27  Bruno Haible  <bruno@clisp.org>
52165
52166         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52167         quiet NaNs.
52168
52169 2008-04-27  Bruno Haible  <bruno@clisp.org>
52170
52171         Make test-yesno.sh work on mingw.
52172         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52173         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52174         (main): Set stdin to binary mode.
52175         * modules/yesno-tests (Depends-on): Add binary-io.
52176
52177 2008-04-27  Bruno Haible  <bruno@clisp.org>
52178
52179         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52180         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52181         argument that lie outside the IEEE 854 domain.
52182         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52183         (gl_ISFINITE): Use it.
52184         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52185
52186 2008-04-27  Bruno Haible  <bruno@clisp.org>
52187
52188         Allow local renaming in config.h.
52189         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52190
52191 2008-04-27  Bruno Haible  <bruno@clisp.org>
52192
52193         * lib/memchr.c (__memchr): Change type of 'i'.
52194         * lib/memchr2.c (memchr2): Likewise.
52195
52196 2008-04-26  Eric Blake  <ebb9@byu.net>
52197         and Bruno Haible  <bruno@clisp.org>
52198
52199         Optimize and test memrchr.
52200         * modules/memrchr (Depends-on): Add intprops.
52201         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52202         * modules/memrchr-tests: New file.
52203         * tests/test-memrchr.c: New file.
52204
52205 2008-04-26  Bruno Haible  <bruno@clisp.org>
52206
52207         Add tentative support for DragonFly BSD.
52208         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52209         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52210         fp.
52211         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52212         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52213         * lib/fpurge.c (fpurge): Likewise.
52214         * lib/freadable.c (freaadable): Likewise.
52215         * lib/freadahead.c (freadahead): Likewise.
52216         * lib/freading.c (freading): Likewise.
52217         * lib/freadptr.c (freadptr): Likewise.
52218         * lib/freadseek.c (freadptrinc): Likewise.
52219         * lib/fseeko.c (fseeko): Likewise.
52220         * lib/fseterr.c (fseterr): Likewise.
52221         * lib/fwritable.c (fwritable): Likewise.
52222         * lib/fwriting.c (fwriting): Likewise.
52223
52224 2008-04-26  Bruno Haible  <bruno@clisp.org>
52225
52226         * lib/stdio-impl.h: New file.
52227         * lib/fbufmode.c: Include stdio-impl.h.
52228         (fbufmode): Use fp_, remove redundant #defines.
52229         * lib/fflush.c: Include stdio-impl.h.
52230         (clear_ungetc_buffer): Remove redundant #defines.
52231         * lib/fpurge.c: Include stdio-impl.h.
52232         (fpurge): Remove redundant #defines.
52233         * lib/freadable.c: Include stdio-impl.h.
52234         (freadable): Remove redundant #defines.
52235         * lib/freadahead.c: Include stdio-impl.h.
52236         (freadahead): Remove redundant #defines.
52237         * lib/freading.c: Include stdio-impl.h.
52238         (freading): Remove redundant #defines.
52239         * lib/freadptr.c: Include stdio-impl.h.
52240         (freadptr): Remove redundant #defines.
52241         * lib/freadseek.c: Include stdio-impl.h.
52242         (freadptrinc): Remove redundant #defines.
52243         * lib/fseeko.c: Include stdio-impl.h.
52244         (rpl_fseeko): Remove redundant #defines.
52245         * lib/fseterr.c: Include stdio-impl.h.
52246         (fseterr): Remove redundant #defines.
52247         * lib/fwritable.c: Include stdio-impl.h.
52248         (fwritable: Remove redundant #defines.
52249         * lib/fwriting.c: Include stdio-impl.h.
52250         (fwriting): Remove redundant #defines.
52251         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52252         * modules/fflush (Files): Likewise.
52253         * modules/fpurge (Files): Likewise.
52254         * modules/freadable (Files): Likewise.
52255         * modules/freadahead (Files): Likewise.
52256         * modules/freading (Files): Likewise.
52257         * modules/freadptr (Files): Likewise.
52258         * modules/freadseek (Files): Likewise.
52259         * modules/fseeko (Files): Likewise.
52260         * modules/fseterr (Files): Likewise.
52261         * modules/fwritable (Files): Likewise.
52262         * modules/fwriting (Files): Likewise.
52263
52264 2008-04-26  Bruno Haible  <bruno@clisp.org>
52265
52266         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52267         restore_seek_optimization, update_fpos_cache): New functions, extracted
52268         from rpl_fflush.
52269         (rpl_fflush): Use them.
52270         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52271         (gl_REPLACE_FFLUSH): Use it.
52272
52273 2008-04-26  Bruno Haible  <bruno@clisp.org>
52274
52275         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52276         on Solaris.
52277         * tests/test-xstrtoimax.sh: Likewise.
52278         * tests/test-xstrtoumax.sh: Likewise.
52279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52280
52281 2008-04-26  Bruno Haible  <bruno@clisp.org>
52282
52283         * modules/memchr-tests: New file.
52284         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52285
52286 2008-04-26  Eric Blake  <ebb9@byu.net>
52287             Bruno Haible  <bruno@clisp.org>
52288
52289         * lib/memchr.c: Include intprops.h.
52290         (__memchr): Optimize parallel detection of matching bytes. Rename local
52291         variables. Add explanatory comments.
52292
52293 2008-04-26  Bruno Haible  <bruno@clisp.org>
52294
52295         Fix module 'memchr', broken since 2000-10-28.
52296         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52297
52298 2008-04-26  Bruno Haible  <bruno@clisp.org>
52299
52300         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52301         comments.
52302
52303 2008-04-25  Eric Blake  <ebb9@byu.net>
52304
52305         Use native fstatat on cygwin 1.7.0.
52306         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52307         first.
52308
52309 2008-04-23  Eric Blake  <ebb9@byu.net>
52310
52311         Improve memchr2 performance.
52312         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52313         NUL bytes.
52314         * modules/memchr2 (Depends-on): Use intprops.h.
52315
52316 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52317
52318         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52319         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52320         <blp@cs.stanford.edu>.
52321
52322 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52323
52324         * lib/arpa_inet.in.h: New file.
52325
52326         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52327         (Makefile.am): Sed in substitute header file.
52328
52329         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52330         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52331
52332         * modules/inet_ntop (configure.ac): Use
52333         gl_ARPA_INET_MODULE_INDICATOR.
52334
52335         * modules/inet_pton (configure.ac): Use
52336         gl_ARPA_INET_MODULE_INDICATOR.
52337
52338 2008-04-22  Jim Meyering  <meyering@redhat.com>
52339
52340         * modules/verify (License): Re-license as LGPLv2+.
52341
52342 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52343
52344         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52345         parameter to void* as per POSIX standard (MinGW uses char*).
52346
52347 2008-04-21  Bruno Haible  <bruno@clisp.org>
52348
52349         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52350         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52351         Define to replacements if REPLACE_ISWCNTRL is 1.
52352         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52353         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52354         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52355         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52356         what it fixes.
52357         * doc/posix-functions/iswalpha.texi: Likewise.
52358         * doc/posix-functions/iswblank.texi: Likewise.
52359         * doc/posix-functions/iswcntrl.texi: Likewise.
52360         * doc/posix-functions/iswdigit.texi: Likewise.
52361         * doc/posix-functions/iswgraph.texi: Likewise.
52362         * doc/posix-functions/iswlower.texi: Likewise.
52363         * doc/posix-functions/iswprint.texi: Likewise.
52364         * doc/posix-functions/iswpunct.texi: Likewise.
52365         * doc/posix-functions/iswspace.texi: Likewise.
52366         * doc/posix-functions/iswupper.texi: Likewise.
52367         * doc/posix-functions/iswxdigit.texi: Likewise.
52368         Reported by Alain Guibert.
52369
52370 2008-04-21  Bruno Haible  <bruno@clisp.org>
52371
52372         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52373         Patch by Alain Guibert.
52374
52375 2008-04-21  Bruno Haible  <bruno@clisp.org>
52376
52377         Fix test failures on mingw.
52378         * tests/test-xstrtol.c (print_no_progname): New function.
52379         (main): Install it in error_print_progname hook.
52380         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52381         * tests/test-xstrtoimax.sh: Likewise.
52382         * tests/test-xstrtoumax.sh: Likewise.
52383
52384 2008-04-21  Bruno Haible  <bruno@clisp.org>
52385
52386         Fix test failure on mingw.
52387         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52388
52389 2008-04-21  Bruno Haible  <bruno@clisp.org>
52390
52391         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52392         Actually assign a value.
52393
52394 2008-04-20  Bruno Haible  <bruno@clisp.org>
52395
52396         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52397         take 2.
52398         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52399         'canonicalize-lgpl' module is also used.
52400         * lib/canonicalize-lgpl.c: Undo last change.
52401         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52402
52403 2008-04-20  Bruno Haible  <bruno@clisp.org>
52404
52405         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52406         config.h. Provide _mkdir based fallback for mingw.
52407         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52408         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52409         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52410         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52411         rather than defining mkdir in config.h.
52412         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52413         (gl_SYS_STAT_H_DEFAULTS): New macro.
52414         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52415         HAVE_IO_H any more.
52416         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52417         HAVE_DECL_MKDIR and HAVE_IO_H.
52418
52419 2008-04-20  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/isapipe.c: Port to native Windows platforms.
52422
52423 2008-04-20  Bruno Haible  <bruno@clisp.org>
52424
52425         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52426
52427 2008-04-21  Eric Blake  <ebb9@byu.net>
52428
52429         Work around preprocessors that don't handle UINTMAX_MAX.
52430         * lib/memchr2.c (memchr2): Avoid embedded #if.
52431         Reported by Alain Guibert, fix suggested by Bruno Haible.
52432
52433 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52434
52435         * doc/posix-functions/strftime.texi (strftime): Explain better
52436         Windows incompatibility.  Suggested by Micah Cowan
52437         <micah@cowan.name>.
52438
52439 2008-04-20  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52442         unistr/u8-mblen.
52443
52444 2008-04-20  Bruno Haible  <bruno@clisp.org>
52445
52446         Fix test failure on platforms with non-GNU iconv.
52447         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52448         (U_TO_U8): Use it, rather than u16_to_u8.
52449         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52450         units at the end of the input string.
52451         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52452
52453 2008-04-20  Bruno Haible  <bruno@clisp.org>
52454
52455         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52456         when the resulting length is 0.
52457         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52458
52459 2008-04-20  Bruno Haible  <bruno@clisp.org>
52460
52461         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52462         works.
52463         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52464
52465 2008-04-20  Bruno Haible  <bruno@clisp.org>
52466
52467         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52468         * modules/tsearch-tests (configure.ac): Test for initstate function.
52469
52470 2008-04-20  Bruno Haible  <bruno@clisp.org>
52471
52472         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52473         for nlink_t if missing.
52474         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52475
52476 2008-04-19  Bruno Haible  <bruno@clisp.org>
52477
52478         Work around snprintf bug on Linux libc5.
52479         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52480         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52481         gl_SNPRINTF_SIZE1.
52482         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52483         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52484         that test failed.
52485         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52486         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52487         * modules/snprintf (Files): Add m4/printf.m4.
52488         * modules/vsnprintf (Files): Likewise.
52489         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52490         * doc/posix-functions/vsnprintf.texi: Likewise.
52491
52492 2008-04-19  Bruno Haible  <bruno@clisp.org>
52493
52494         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52495         from 0.0058 to less than 10^-7.
52496
52497 2008-04-19  Bruno Haible  <bruno@clisp.org>
52498
52499         Fix rounding when a precision is given.
52500         * lib/vasnprintf.c (is_borderline): New function.
52501         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52502         9...9x.
52503         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52504         %e, %g.
52505         * tests/test-vasprintf-posix.c (test_function): Likewise.
52506         * tests/test-snprintf-posix.h (test_function): Likewise.
52507         * tests/test-sprintf-posix.h (test_function): Likewise.
52508         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52509         * tests/test-printf-posix.h (test_function): Likewise.
52510         * tests/test-printf-posix.output: Update.
52511         Reported by John Darrington <john@darrington.wattle.id.au> via
52512         Ben Pfaff <blp@cs.stanford.edu>.
52513
52514 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52515
52516         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52517         Suggested by Bruno Haible <bruno@clisp.org>.
52518
52519 2008-04-17  Bruno Haible  <bruno@clisp.org>
52520
52521         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52522         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52523         implementation.
52524         Patch by Bruce Merry <bmerry@gmail.com>.
52525
52526 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52527
52528         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52529         doesn't work under Windows.
52530
52531 2008-04-16  Bruno Haible  <bruno@clisp.org>
52532
52533         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52534         New macros.
52535         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52536         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52537         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52538         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52539         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52540         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52541         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52542         macros.
52543         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52544         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52545         Northern Sotho, Uighur.
52546
52547 2008-04-16  Bruno Haible  <bruno@clisp.org>
52548
52549         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52550         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52551         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52552         Reported by Daniel Bergström <daniel@octocode.com>.
52553
52554 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52555             Bruno Haible  <bruno@clisp.org>
52556
52557         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52558         function.
52559         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52560         New functions, mostly extracted from gl_locale_name_default.
52561         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52562
52563 2008-04-16  Eric Blake  <ebb9@byu.net>
52564
52565         Adjust strtod detection to catch glibc 2.7 bug.
52566         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52567         Reported by John Gatewood Ham.
52568
52569 2008-04-16  Bruno Haible  <bruno@clisp.org>
52570
52571         Add tentative support for Linux libc5.
52572         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52573         * lib/fpurge.c (fpurge): Likewise.
52574         * lib/freadable.c (freadable): Likewise.
52575         * lib/freadahead.c (freadahead): Likewise.
52576         * lib/freading.c (freading): Likewise.
52577         * lib/freadptr.c (freadptr): Likewise.
52578         * lib/freadseek.c (freadptrinc): Likewise.
52579         * lib/fseeko.c (rpl_fseeko): Likewise.
52580         * lib/fseterr.c (fseterr): Likewise.
52581         * lib/fwritable.c (fwritable): Likewise.
52582         * lib/fwriting.c (fwriting): Likewise.
52583         Reported by Alain Guibert <alguibert+bts@free.fr>.
52584
52585 2008-04-15  Bruno Haible  <bruno@clisp.org>
52586
52587         * modules/mathl (configure.ac): Define module indicator.
52588
52589 2008-04-15  Bruno Haible  <bruno@clisp.org>
52590
52591         * lib/logl.c (logl): Remove unused variables.
52592
52593 2008-04-15  Bruno Haible  <bruno@clisp.org>
52594
52595         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52596         fails.
52597
52598 2008-04-15  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/trim.c (trim2): Fix argument of isspace() macro.
52601
52602 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52603
52604         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52605         to 0.
52606         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52607
52608 2008-04-14  Bruno Haible  <bruno@clisp.org>
52609
52610         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52611         AC_LANG_PROGRAM argument.
52612         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52613         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52615         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52616         * m4/math_h.m4 (gl_MATH_H): Likewise.
52617         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52618         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52619         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52620         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52621         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52622         * m4/regex.m4 (gl_REGEX): Likewise.
52623         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52624         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52626         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52627         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52628         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52629         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52630         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52631
52632 2008-04-14  Jim Meyering  <meyering@redhat.com>
52633
52634         test-strtod: fix typos: s/abs/fabs/
52635         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52636
52637 2008-04-13  Bruno Haible  <bruno@clisp.org>
52638
52639         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52640         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52641         module is also used and while not building the reloc-wrapper.
52642
52643 2008-04-13  Bruno Haible  <bruno@clisp.org>
52644
52645         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52646
52647 2008-04-13  Bruno Haible  <bruno@clisp.org>
52648
52649         Fix AIX compilation failure introduced on 2008-04-02.
52650         * tests/test-frexp.c (exp): Undefine before redefining.
52651         * tests/test-frexpl.c (exp): Likewise.
52652
52653 2008-04-13  Bruno Haible  <bruno@clisp.org>
52654
52655         Work around a HP-UX stdio bug.
52656         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52657         * tests/test-ftello.c (main): Likewise.
52658         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52659         * doc/posix-functions/ftello.texi: Likewise.
52660
52661 2008-04-13  Bruno Haible  <bruno@clisp.org>
52662
52663         Make test-signbit pass on HP-UX/hppa.
52664         * tests/test-signbit.c (minus_zerol): New variable.
52665         (test_signbitl): Use it.
52666
52667 2008-04-13  Bruno Haible  <bruno@clisp.org>
52668
52669         Make truncl work on OSF/1 4.0.
52670         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52671         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52672         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52674         HAVE_DECL_TRUNCL.
52675         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52676         HAVE_DECL_TRUNCL.
52677         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52678
52679 2008-04-13  Bruno Haible  <bruno@clisp.org>
52680
52681         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52682
52683 2008-04-13  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52686         expression, so as to avoid HP-UX 11 cc compiler bug.
52687
52688 2008-04-13  Bruno Haible  <bruno@clisp.org>
52689
52690         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52691
52692 2008-04-13  Bruno Haible  <bruno@clisp.org>
52693
52694         * lib/git-merge-changelog.c: Remove empty declaration outside of
52695         functions.
52696
52697 2008-04-13  Bruno Haible  <bruno@clisp.org>
52698
52699         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
52700
52701 2008-04-13  Bruno Haible  <bruno@clisp.org>
52702
52703         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
52704         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
52705         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
52706         also if it exists but lacks definitions of the SHUT_* macros.
52707         * modules/sys_socket (Description): Update.
52708         Reported by Elbert Pol <e.pol@chello.nl>.
52709
52710 2008-04-13  Bruno Haible  <bruno@clisp.org>
52711
52712         * lib/localcharset.c (OS2): Don't redefine if already defined.
52713         Reported by Elbert Pol <e.pol@chello.nl>.
52714
52715 2008-04-13  Bruno Haible  <bruno@clisp.org>
52716
52717         * lib/binary-io.h [__EMX__]: Include <io.h>.
52718         Reported by Elbert Pol <e.pol@chello.nl>.
52719
52720 2008-04-12  Bruno Haible  <bruno@clisp.org>
52721
52722         * lib/fpucw.h: Enable the definitions also for x86_64.
52723         Needed for NetBSD/x86_64.
52724         Reported by Thomas Klausner <tk@giga.or.at>.
52725
52726 2008-04-12  Bruno Haible  <bruno@clisp.org>
52727
52728         * tests/test-strtod.c: Include isnand.h.
52729         (main): Use isnand instead of isnan.
52730         Reported by Jim Meyering.
52731
52732 2008-04-12  Bruno Haible  <bruno@clisp.org>
52733
52734         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
52735         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52736
52737 2008-04-12  Jim Meyering  <meyering@redhat.com>
52738
52739         * m4/math_h.m4 (gl_MATH_H): Fix typos.
52740
52741 2008-04-12  Bruno Haible  <bruno@clisp.org>
52742
52743         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
52744         Reported by Elbert Pol <e.pol@chello.nl>.
52745
52746 2008-04-12  Eric Blake  <ebb9@byu.net>
52747
52748         Work around Solaris 10 math.h bug.
52749         * m4/math_h.m4 (gl_MATH_H): Check for bug.
52750         (gl_MATH_H_DEFAULTS): Set up default.
52751         * modules/math (Makefile.am): Replace new indicators.
52752         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
52753         * tests/test-math.c (main): Test this.
52754         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52755         * doc/posix-headers/math.texi (math.h): Mention bug.
52756         Reported by Nelson H. F. Beebe and Jim Meyering.
52757
52758 2008-04-11  Bruno Haible  <bruno@clisp.org>
52759
52760         Adapt to future versions of Apple GCC.
52761         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52762         Reported by Peter O'Gorman <peter@pogma.com>.
52763
52764 2008-04-11  Bruno Haible  <bruno@clisp.org>
52765
52766         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52767
52768 2008-04-11  Bruno Haible  <bruno@clisp.org>
52769
52770         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
52771
52772         * modules/getaddrinfo-tests (Makefile.am): Define
52773         test_getaddrinfo_LDADD.
52774
52775 2008-04-11  Bruno Haible  <bruno@clisp.org>
52776
52777         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52778         (init): Fix syntax error.
52779         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52780         is declared.
52781
52782 2008-04-11  Bruno Haible  <bruno@clisp.org>
52783
52784         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52785         * modules/glob (Depends-on): Add stdbool.
52786
52787 2008-04-11  Bruno Haible  <bruno@clisp.org>
52788
52789         * lib/trim.c: Include <string.h>.
52790
52791 2008-04-11  Eric Blake  <ebb9@byu.net>
52792
52793         Avoid compile failure on OS/2.
52794         * lib/regex_internal.h (internal_function): Disable optimization
52795         on OS/2 (__EMX__), where it caused compiler error.
52796         Reported by Elbert Pol.
52797
52798 2008-04-11  Bruno Haible  <bruno@clisp.org>
52799
52800         Flush the standard error stream before aborting. Needed on mingw.
52801         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52802         * tests/test-array_list.c (ASSERT): Likewise.
52803         * tests/test-array_oset.c (ASSERT): Likewise.
52804         * tests/test-avltree_list.c (ASSERT): Likewise.
52805         * tests/test-avltree_oset.c (ASSERT): Likewise.
52806         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52807         * tests/test-binary-io.c (ASSERT): Likewise.
52808         * tests/test-byteswap.c (ASSERT): Likewise.
52809         * tests/test-c-ctype.c (ASSERT): Likewise.
52810         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52811         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52812         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52813         * tests/test-c-strstr.c (ASSERT): Likewise.
52814         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52815         * tests/test-canonicalize.c (ASSERT): Likewise.
52816         * tests/test-carray_list.c (ASSERT): Likewise.
52817         * tests/test-ceilf1.c (ASSERT): Likewise.
52818         * tests/test-ceilf2.c (ASSERT): Likewise.
52819         * tests/test-ceill.c (ASSERT): Likewise.
52820         * tests/test-count-one-bits.c (ASSERT): Likewise.
52821         * tests/test-fbufmode.c (ASSERT): Likewise.
52822         * tests/test-fflush2.c (ASSERT): Likewise.
52823         * tests/test-floorf1.c (ASSERT): Likewise.
52824         * tests/test-floorf2.c (ASSERT): Likewise.
52825         * tests/test-floorl.c (ASSERT): Likewise.
52826         * tests/test-fopen.c (ASSERT): Likewise.
52827         * tests/test-fpending.c (ASSERT): Likewise.
52828         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52829         * tests/test-fpurge.c (ASSERT): Likewise.
52830         * tests/test-freadable.c (ASSERT): Likewise.
52831         * tests/test-freadahead.c (ASSERT): Likewise.
52832         * tests/test-freading.c (ASSERT): Likewise.
52833         * tests/test-freadptr.c (ASSERT): Likewise.
52834         * tests/test-freadptr2.c (ASSERT): Likewise.
52835         * tests/test-freadseek.c (ASSERT): Likewise.
52836         * tests/test-freopen.c (ASSERT): Likewise.
52837         * tests/test-frexp.c (ASSERT): Likewise.
52838         * tests/test-frexpl.c (ASSERT): Likewise.
52839         * tests/test-fseek.c (ASSERT): Likewise.
52840         * tests/test-fseeko.c (ASSERT): Likewise.
52841         * tests/test-fstrcmp.c (ASSERT): Likewise.
52842         * tests/test-ftell.c (ASSERT): Likewise.
52843         * tests/test-ftello.c (ASSERT): Likewise.
52844         * tests/test-func.c (ASSERT): Likewise.
52845         * tests/test-fwritable.c (ASSERT): Likewise.
52846         * tests/test-fwriting.c (ASSERT): Likewise.
52847         * tests/test-getdelim.c (ASSERT): Likewise.
52848         * tests/test-getline.c (ASSERT): Likewise.
52849         * tests/test-i-ring.c (ASSERT): Likewise.
52850         * tests/test-iconv-utf.c (ASSERT): Likewise.
52851         * tests/test-iconv.c (ASSERT): Likewise.
52852         * tests/test-isfinite.c (ASSERT): Likewise.
52853         * tests/test-isnand.c (ASSERT): Likewise.
52854         * tests/test-isnanf.c (ASSERT): Likewise.
52855         * tests/test-isnanl.h (ASSERT): Likewise.
52856         * tests/test-ldexpl.c (ASSERT): Likewise.
52857         * tests/test-linked_list.c (ASSERT): Likewise.
52858         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52859         * tests/test-localename.c (ASSERT): Likewise.
52860         * tests/test-lseek.c (ASSERT): Likewise.
52861         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52862         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52863         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52864         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52865         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52866         * tests/test-mbschr.c (ASSERT): Likewise.
52867         * tests/test-mbscspn.c (ASSERT): Likewise.
52868         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52869         * tests/test-mbspbrk.c (ASSERT): Likewise.
52870         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52871         * tests/test-mbsrchr.c (ASSERT): Likewise.
52872         * tests/test-mbsspn.c (ASSERT): Likewise.
52873         * tests/test-mbsstr1.c (ASSERT): Likewise.
52874         * tests/test-mbsstr2.c (ASSERT): Likewise.
52875         * tests/test-mbsstr3.c (ASSERT): Likewise.
52876         * tests/test-memchr2.c (ASSERT): Likewise.
52877         * tests/test-memmem.c (ASSERT): Likewise.
52878         * tests/test-open.c (ASSERT): Likewise.
52879         * tests/test-printf-frexp.c (ASSERT): Likewise.
52880         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52881         * tests/test-printf-posix.c (ASSERT): Likewise.
52882         * tests/test-quotearg.c (ASSERT): Likewise.
52883         * tests/test-rbtree_list.c (ASSERT): Likewise.
52884         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52885         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52886         * tests/test-round1.c (ASSERT): Likewise.
52887         * tests/test-roundf1.c (ASSERT): Likewise.
52888         * tests/test-roundl.c (ASSERT): Likewise.
52889         * tests/test-signbit.c (ASSERT): Likewise.
52890         * tests/test-sleep.c (ASSERT): Likewise.
52891         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52892         * tests/test-snprintf.c (ASSERT): Likewise.
52893         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52894         * tests/test-stat-time.c (ASSERT): Likewise.
52895         * tests/test-strcasestr.c (ASSERT): Likewise.
52896         * tests/test-strerror.c (ASSERT): Likewise.
52897         * tests/test-striconv.c (ASSERT): Likewise.
52898         * tests/test-striconveh.c (ASSERT): Likewise.
52899         * tests/test-striconveha.c (ASSERT): Likewise.
52900         * tests/test-strsignal.c (ASSERT): Likewise.
52901         * tests/test-strstr.c (ASSERT): Likewise.
52902         * tests/test-strtod.c (ASSERT): Likewise.
52903         * tests/test-trunc1.c (ASSERT): Likewise.
52904         * tests/test-trunc2.c (ASSERT): Likewise.
52905         * tests/test-truncf1.c (ASSERT): Likewise.
52906         * tests/test-truncf2.c (ASSERT): Likewise.
52907         * tests/test-truncl.c (ASSERT): Likewise.
52908         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52909         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52910         * tests/test-vasnprintf.c (ASSERT): Likewise.
52911         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52912         * tests/test-vasprintf.c (ASSERT): Likewise.
52913         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52914         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52915         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52916         * tests/test-vsnprintf.c (ASSERT): Likewise.
52917         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52918         * tests/test-wcwidth.c (ASSERT): Likewise.
52919         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52920         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52921         * tests/test-xvasprintf.c (ASSERT): Likewise.
52922         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52923         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52924         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52925         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52926         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52927         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52928         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52929         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52930         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52931         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52932         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52933         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52934         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52935         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52936         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52937         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52938         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52939         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52940         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52941         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52942         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52943         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52944         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52945         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52946         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52947         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52948         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52949         * tests/unictype/test-combining.c (ASSERT): Likewise.
52950         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52951         * tests/unictype/test-digit.c (ASSERT): Likewise.
52952         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52953         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52954         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52955         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52956         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52957         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52958         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52959         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52960         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52961         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52962         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52963         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52964         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52965         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52966         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52967         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52968         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52969         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52970         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52971         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52972         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52973         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52974         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52975         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52976         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52977         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52978         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52979         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52980         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52981         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52982         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52983         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52984         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52985         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52986         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52987         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52988         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52989         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52990         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52991         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52992         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52993         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52994         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52995         Reported by Eric Blake.
52996
52997 2008-04-11  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/wchar.in.h: Tweak comment.
53000
53001 2008-04-11  Bruno Haible  <bruno@clisp.org>
53002
53003         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53004         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53005         gl_COMMON.
53006         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53007
53008 2008-04-11  Bruno Haible  <bruno@clisp.org>
53009
53010         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53011
53012 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53013
53014         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53015         of attempting to use non-existing /dev/*random.  Based on patch
53016         from Adam Strzelecki <ono@java.pl> in
53017         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53018
53019 2008-04-08  Bruno Haible  <bruno@clisp.org>
53020
53021         Add tentative support for emx+gcc.
53022         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53023         * lib/fpurge.c (fpurge): Likewise.
53024         * lib/freadable.c (freadable): Likewise.
53025         * lib/freadahead.c (freadahead): Likewise.
53026         * lib/freading.c (freading): Likewise.
53027         * lib/freadptr.c (freadptr): Likewise.
53028         * lib/freadseek.c (freadptrinc): Likewise.
53029         * lib/fseeko.c (rpl_fseeko): Likewise.
53030         * lib/fseterr.c (fseterr): Likewise.
53031         * lib/fwritable.c (fwritable): Likewise.
53032         * lib/fwriting.c (fwriting): Likewise.
53033         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53034
53035 2008-04-09  Eric Blake  <ebb9@byu.net>
53036
53037         Avoid some autoconf warnings.
53038         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53039         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53040         * m4/afs.m4 (gl_AFS): Likewise.
53041         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53042         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53043         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53044         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53045         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53046         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53047         (AC_CHECK_DECLS_ONCE): Likewise.
53048         Rename file...
53049         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53050         gnulib-tool requires autoconf 2.59 or better.
53051         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53052
53053 2008-04-08  Eric Blake  <ebb9@byu.net>
53054
53055         Use 'git describe --match' if present (added in git 1.5.5).
53056         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53057         if possible.
53058
53059 2008-04-08  Bruno Haible  <bruno@clisp.org>
53060
53061         Add tentative support for OpenServer.
53062         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53063         _ptr, _cnt.
53064         * lib/fpurge.c (fpurge): Likewise.
53065         * lib/freadable.c (freadable): Likewise.
53066         * lib/freadahead.c (freadahead): Likewise.
53067         * lib/freading.c (freading): Likewise.
53068         * lib/freadptr.c (freadptr): Likewise.
53069         * lib/freadseek.c (freadptrinc): Likewise.
53070         * lib/fseeko.c (rpl_fseeko): Likewise.
53071         * lib/fseterr.c (fseterr): Likewise.
53072         * lib/fwritable.c (fwritable): Likewise.
53073         * lib/fwriting.c (fwriting): Likewise.
53074         Reported by Roger Cornelius <rac@tenzing.org> and
53075         Brian K. White <brian@aljex.com>.
53076
53077 2008-04-06  Jim Meyering  <meyering@redhat.com>
53078
53079         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53080
53081 2008-04-06  Bruno Haible  <bruno@clisp.org>
53082
53083         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53084         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53085         * tests/test-printf-posix.sh: Likewise.
53086         * tests/test-vfprintf-posix.sh: Likewise.
53087         * tests/test-vprintf-posix.sh: Likewise.
53088         * tests/test-xprintf-posix.sh: Likewise.
53089
53090 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53091
53092         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53093         hide error from 'ls', needed on OS/2.
53094         Report by Elbert Pol <elbert.pol@gmail.com>.
53095
53096 2008-04-04  Eric Blake  <ebb9@byu.net>
53097
53098         Make test-fseeko.c failures meaningful.
53099         * tests/test-fseeko.c: Print line number on failure.
53100         * tests/test-fseek.c: Likewise.
53101         Reported by Nelson H. F. Beebe.
53102
53103         Improve strtod bug detection check.
53104         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53105         required for Solaris 10.
53106         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53107
53108 2008-04-04  Bruno Haible  <bruno@clisp.org>
53109
53110         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53111         by m4/setenv.m4.
53112
53113 2008-04-03  Eric Blake  <ebb9@byu.net>
53114
53115         Ensure sane .version contents.
53116         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53117         version string.
53118         * build-aux/git-version-gen: Improve documentation.
53119
53120         Make GNU make output nicer.
53121         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53122         MAKECMDGOALS to enforce message for all command line targets.  Set
53123         srcdir for use in maint.mk.
53124
53125         Another maintainer tweak.
53126         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53127         a target that regenerates version.
53128
53129 2008-04-03  Jim Meyering  <meyering@redhat.com>
53130
53131         vc-list-files: don't cause coreutils "make po-check" failure
53132         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53133
53134 2008-04-03  Eric Blake  <ebb9@byu.net>
53135
53136         Allow VPATH usage of vc-list-files.
53137         * build-aux/vc-list-files (scriptversion): Add timestamp.
53138         (options): Add --help, --version, -C.
53139         (CVS): Support installed cvsu.
53140
53141 2008-04-02  Bruno Haible  <bruno@clisp.org>
53142
53143         Avoid some "statement with no effect" warnings from gcc.
53144         * tests/test-wctype.c (main): Explicitly ignore unused values.
53145         Reported by Jim Meyering.
53146
53147 2008-04-02  Jim Meyering  <meyering@redhat.com>
53148
53149         Avoid some warnings from "gcc -Wshadow".
53150         * tests/test-frexp.c (exp): Define to a different identifier.
53151         * tests/test-frexpl.c (exp): Likewise.
53152
53153 2008-04-03  Jim Meyering  <meyering@redhat.com>
53154
53155         bootstrap: remove dangling *.[ch] symlinks from lib
53156         * build-aux/bootstrap [dangling symlink removal]: Move find's
53157         -depth option to precede all others, to avoid a warning.
53158         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53159
53160 2008-04-02  Bruno Haible  <bruno@clisp.org>
53161
53162         Avoid some warnings from "gcc -Wshadow".
53163         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53164         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53165         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53166         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53167         Reported by Jim Meyering.
53168
53169 2008-04-01  Bruno Haible  <bruno@clisp.org>
53170
53171         Fix test to work on IRIX 6.5 with cc.
53172         * tests/test-math.c (numeric_equal): New function.
53173         (main): Use it.
53174
53175 2008-04-01  Bruno Haible  <bruno@clisp.org>
53176
53177         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53178
53179 2008-04-01  Bruno Haible  <bruno@clisp.org>
53180
53181         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53182         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53183         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53184         (Depends-on): Remove math.
53185
53186         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53187         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53188         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53189         (Depends-on): Remove math.
53190
53191         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53192         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53193         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53194         (Depends-on): Remove math.
53195         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53196         (Depends-on): Remove math.
53197
53198         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53199         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53200         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53201         (Depends-on): Remove math.
53202         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53203         (Depends-on): Remove math.
53204
53205         * tests/test-round1.c: Include nan.h.
53206         (main): Use NaNd instead of NAN.
53207         * modules/round-tests (Files): Add tests/nan.h.
53208
53209         * tests/test-trunc1.c: Include nan.h.
53210         (main): Use NaNd instead of NAN.
53211         * modules/trunc-tests (Files): Add tests/nan.h.
53212
53213         * tests/test-roundf1.c: Include nan.h.
53214         (main): Use NaNf instead of NAN.
53215         * modules/roundf-tests (Files): Add tests/nan.h.
53216
53217         * tests/test-truncf1.c: Include nan.h.
53218         (main): Use NaNf instead of NAN.
53219         * modules/truncf-tests (Files): Add tests/nan.h.
53220
53221         * tests/test-ceilf1.c: Include nan.h.
53222         (main): Use NaNf instead of NAN.
53223         * modules/ceilf-tests (Files): Add tests/nan.h.
53224
53225         * tests/test-floorf1.c: Include nan.h.
53226         (main): Use NaNf instead of NAN.
53227         * modules/floorf-tests (Files): Add tests/nan.h.
53228
53229         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53230         (main): Use NaNf instead of NAN.
53231         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53232
53233         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53234         (main): Use NaNd instead of NAN.
53235         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53236
53237         * tests/test-frexp.c: Include nan.h.
53238         (main): Use NaNd instead of NAN.
53239         * modules/frexp-tests (Files): Add tests/nan.h.
53240
53241         * lib/isnan.c: Don't include <math.h>.
53242         (FUNC): Don't use NAN macro.
53243         * modules/isnand-nolibm (Depends-on): Remove math.
53244         * modules/isnanf-nolibm (Depends-on): Remove math.
53245         * modules/isnanl (Depends-on): Remove math.
53246         * modules/isnanl-nolibm (Depends-on): Remove math.
53247
53248         * tests/nan.h: New file.
53249
53250 2008-04-01  Eric Blake  <ebb9@byu.net>
53251
53252         Fix typos.
53253         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53254         values to be the right type.
53255
53256         For now, cater to gnulib strtod inaccuracies.
53257         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53258         fractional results.  While not as nice from a QoI perspective, it
53259         is a quicker patch than correctly implementing decimal to binary
53260         rounding.
53261
53262 2008-03-31  Eric Blake  <ebb9@byu.net>
53263
53264         Guarantee a definition of NAN.
53265         * lib/math.in.h (NAN): Define if missing.
53266         * tests/test-math.c (main): Test it.
53267         * doc/posix-headers/math.texi (math.h): Document this.
53268         * lib/isnan.c (rpl_isnand): Use it.
53269         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53270         * tests/test-floorf1.c (NaN): Likewise.
53271         * tests/test-frexp.c (NaN): Likewise.
53272         * tests/test-isnand.c (NaN): Likewise.
53273         * tests/test-isnanf.c (NaN): Likewise.
53274         * tests/test-round1.c (NaN): Likewise.
53275         * tests/test-roundf1.c (NaN): Likewise.
53276         * tests/test-snprintf-posix.h (NaN): Likewise.
53277         * tests/test-sprintf-posix.h (NaN): Likewise.
53278         * tests/test-trunc1.c (NaN): Likewise.
53279         * tests/test-truncf1.c (NaN): Likewise.
53280         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53281         * tests/test-vasprintf-posix.c (NaN): Likewise.
53282         * modules/isnand-nolibm (Depends-on): Add math.
53283         * modules/isnanf-nolibm (Depends-on): Likewise.
53284         * modules/isnanl (Depends-on): Likewise.
53285         * modules/isnanl-nolibm (Depends-on): Likewise.
53286         * modules/snprintf-posix-tests (Depends-on): Likewise.
53287         * modules/sprintf-posix-tests (Depends-on): Likewise.
53288         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53289         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53290         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53291         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53292
53293 2008-03-31  Bruno Haible  <bruno@clisp.org>
53294
53295         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53296         * doc/posix-functions/strtod.texi: Likewise.
53297
53298 2008-03-31  Bruno Haible  <bruno@clisp.org>
53299
53300         * tests/test-strtod.c (main): Don't use C99 syntax.
53301
53302 2008-03-31  Bruno Haible  <bruno@clisp.org>
53303
53304         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53305         Reported by Eric Blake.
53306
53307 2008-03-31  Jim Meyering  <meyering@redhat.com>
53308
53309         Don't compare actual signbit return values.
53310         * tests/test-strtod.c (main): Rather, compare only their
53311         zero/non-zero nature.
53312
53313 2008-03-31  Eric Blake  <ebb9@byu.net>
53314
53315         More strtod documentation.
53316         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53317         failures as distinct bugs.
53318
53319 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53320
53321         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53322         Problem reported by Erik Benada in
53323         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53324
53325 2008-03-30  Bruno Haible  <bruno@clisp.org>
53326
53327         * tests/test-strtod.c: Add comments about which assertion fails on which
53328         platform.
53329         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53330
53331 2008-03-30  Eric Blake  <ebb9@byu.net>
53332
53333         Test signbit behavior on zeros.
53334         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53335         (test_signbitd, test_signbitl): Likewise.
53336
53337         More strtod touchups.
53338         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53339         sign of negative underflow, for now.  Use .5, not .1.
53340         * doc/posix-functions/strtod.texi (strtod): Mention these
53341         limitations.
53342         Reported by Jim Meyering.
53343
53344 2008-03-30  Bruno Haible  <bruno@clisp.org>
53345
53346         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53347         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53348
53349 2008-03-30  Bruno Haible  <bruno@clisp.org>
53350
53351         Avoid failure when attempting to return empty iconv results on some
53352         platforms.
53353         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53354         allocation, don't report ENOMEM when the resulting string is empty.
53355
53356 2008-03-30  Bruno Haible  <bruno@clisp.org>
53357
53358         Fix buffer overrun.
53359         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53360         Don't consider the width for tmp_length. Check count against tmp_length
53361         before doing the padding. Ensure enough allocation during padding.
53362
53363 2008-03-30  Eric Blake  <ebb9@byu.net>
53364
53365         strtod touchups.
53366         * lib/strtod.c (strtod): Avoid compiler warnings.
53367         Reported by Jim Meyering.
53368
53369 2008-03-30  Bruno Haible  <bruno@clisp.org>
53370
53371         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53372         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53373         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53374         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53375         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53376         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53377         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53378         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53379
53380         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53381         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53382         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53383         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53384         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53385         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53386         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53387         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53388
53389         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53390         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53391         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53392         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53393         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53394         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53395         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53396         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53397
53398         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53399         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53400
53401         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53402         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53403
53404         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53405         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53406
53407         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53409         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53410
53411         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53412         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53413         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53414
53415         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53417         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53418
53419         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53420         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53421         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53422
53423         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53424         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53425         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53426         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53427         (Depends-on): Add EOVERFLOW.
53428         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53429         (Depends-on): Add EOVERFLOW.
53430         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53431         (Depends-on): Add EOVERFLOW.
53432         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53433         (Depends-on): Add EOVERFLOW.
53434         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53435         (Depends-on): Add EOVERFLOW.
53436         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53437         (Depends-on): Add EOVERFLOW.
53438         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53439         (Depends-on): Add EOVERFLOW.
53440         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53441         (Depends-on): Add EOVERFLOW.
53442
53443         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53444         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53445         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53446
53447         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53449         * modules/snprintf (Depends-on): Add EOVERFLOW.
53450
53451         * lib/poll.c (EOVERFLOW): Remove fallback.
53452         * modules/poll (Depends-on): Add EOVERFLOW.
53453
53454         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53455         * modules/getugroups (Depends-on): Add EOVERFLOW.
53456
53457         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53458         * modules/getdelim (Depends-on): Add EOVERFLOW.
53459
53460         * lib/ftell.c (EOVERFLOW): Remove fallback.
53461         * modules/ftell (Depends-on): Add EOVERFLOW.
53462
53463         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53464         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53465         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53466
53467         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53468
53469         * modules/EOVERFLOW-tests: New file.
53470         * tests/test-EOVERFLOW.c: New file.
53471
53472         * modules/EOVERFLOW: New file.
53473         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53474
53475 2008-03-30  Bruno Haible  <bruno@clisp.org>
53476
53477         Fix bug introduced on 2007-06-10.
53478         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53479         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53480
53481 2008-03-30  Bruno Haible  <bruno@clisp.org>
53482
53483         Improve freadseek's efficiency after ungetc.
53484         * lib/freadseek.c: Include freadahead.h.
53485         (freadptrinc): New function, extracted from freadseek.
53486         (freadseek): Use it in a loop. Use freadahead to determine the number
53487         of loop iterations.
53488         * modules/freadseek (Depends-on): Add freadahead.
53489         (configure.ac): Require AC_C_INLINE.
53490
53491 2008-03-30  Bruno Haible  <bruno@clisp.org>
53492
53493         * lib/freadseek.c (freadseek): Don't ignore the return value of
53494         freadptr.
53495
53496 2008-03-29  Eric Blake  <ebb9@byu.net>
53497
53498         Add hex float support.
53499         * modules/strtod (Depends-on): Add c-ctype.
53500         (Link): Mention POW_LIB.
53501         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53502         whitespace between 'e' and exponent.
53503         * tests/test-strtod.c (main): Enable hex float tests.
53504         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53505         now provides.
53506
53507         Document various strtod bugs, with some fixes.
53508         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53509         "-0x", "inf", "nan", and hex constants.
53510         * doc/posix-functions/atof.texi (atof): Likewise.
53511         * modules/stdlib (Makefile.am): Support strtod.
53512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53513         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53514         detect additional strtod bugs.
53515         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53516         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53517         bool where appropriate.  Parse 'inf' and 'nan'.
53518         * tests/test-strtod.c: New file.
53519         * modules/strtod (Depends-on): Add stdbool, stdlib.
53520         (configure.ac): Turn on module indicator.
53521         * modules/strtod-tests: New module.
53522
53523 2008-03-29  Eric Blake  <ebb9@byu.net>
53524
53525         Fix ftell on mingw.
53526         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53527         * modules/ftell-tests (Depends-on): Add binary-io.
53528         * modules/ftello-tests (Depends-on): Likewise.
53529         * tests/test-ftell.c (main): Enhance test to cover behavior after
53530         ungetc.  Enforce binary mode.
53531         * tests/test-ftello.c (main): Likewise.
53532
53533         Pass test-freadseek on cygwin.
53534         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53535         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53536         ungetc buffer.
53537
53538         * tests/test-fflush2.c (main): Fix typo.
53539
53540 2008-03-29  Bruno Haible  <bruno@clisp.org>
53541
53542         * tests/test-fflush2.c (main): Temporarily disable the contents of
53543         this test.
53544         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53545         Reported by Eric Blake.
53546
53547 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53548
53549         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53550         (GC_SHA224_DIGEST_SIZE): Add.
53551
53552         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53553         (gc_hash_digest_length): Likewise.
53554         (gc_hash_buffer): Likewise.
53555
53556 2008-03-25  Bruno Haible  <bruno@clisp.org>
53557
53558         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53559         detail which gettext release to use.
53560         Reported by Simon Josefsson.
53561
53562 2008-03-26  Jim Meyering  <meyering@redhat.com>
53563
53564         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53565         * modules/gnumakefile (clean-GNUmakefile): Also, use
53566         test ... && ... || : syntax rather than if-then ... fi.
53567
53568         gnumakefile: Don't double-quote-expand $(VPATH) value.
53569         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53570
53571 2008-03-24  Eric Blake  <ebb9@byu.net>
53572
53573         Alter GNUmakefile to install into top directory.
53574         * modules/maintainer-makefile: Split, and add dependency...
53575         * modules/gnumakefile: to this new module.
53576         * build-aux/GNUmakefile: Move...
53577         * top/GNUmakefile: ...here.
53578         * build-aux/maint.mk: Move...
53579         * top/maint.mk: ...here.
53580         * MODULES.html.sh (Support for maintaining...): Document new
53581         module.
53582
53583 2008-03-23  Bruno Haible  <bruno@clisp.org>
53584
53585         * gnulib-tool: New options --vc-files, --no-vc-files.
53586         (func_usage): Document them.
53587         (vc_files): New variable.
53588         (func_import): Consider vc_files.
53589         (func_create_testdir): Set vc_files to empty.
53590         Suggested by Jim Meyering and Karl Berry.
53591
53592 2008-03-23  Bruno Haible  <bruno@clisp.org>
53593
53594         Fix regex compilation error on HP-UX 11.
53595         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53596         * modules/regex (Files): Add m4/mbstate_t.m4.
53597         Reported by Ton Voon <ton.voon@altinity.com>.
53598
53599 2008-03-23  Bruno Haible  <bruno@clisp.org>
53600
53601         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53602
53603 2008-03-23  Eric Blake  <ebb9@byu.net>
53604             Bruno Haible  <bruno@clisp.org>
53605
53606         Install files from top/ in the destination directory.
53607         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53608         augmentation also for the files from top/.
53609         (func_import, func_create_testdir): Rewrite file names:
53610         top/filename -> filename.
53611
53612 2008-03-23  Bruno Haible  <bruno@clisp.org>
53613
53614         Tweak "gnulib --version" output.
53615         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53616
53617 2008-03-23  Bruno Haible  <bruno@clisp.org>
53618
53619         Tweak "gnulib --version" output.
53620         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53621         rather than contents of ChangeLog, when possible.
53622
53623 2008-03-21  Eric Blake  <ebb9@byu.net>
53624
53625         More --version tweaks.
53626         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53627         date of last ChangeLog entry.
53628
53629 2008-03-21  Jim Meyering  <meyering@redhat.com>
53630
53631         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53632
53633 2008-03-20  Eric Blake  <ebb9@byu.net>
53634
53635         VPATH fix.
53636         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53637
53638 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53639
53640         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53641         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53642
53643 2008-03-20  Eric Blake  <ebb9@byu.net>
53644
53645         Sync GNUmakefile with coreutils.
53646         * build-aux/GNUmakefile (have-Makefile): Rename...
53647         (_have-Makefile): ...to this, for namespace consideration.
53648         (GNUmakefile.cfg): Include, if present.
53649         (_autoreconf): Define a default.
53650         (_is-dist-target): New rule for rebuilds to pick up intra-release
53651         version.
53652         (maint-cfg.mk): Rename...
53653         (cfg.mk): ...to this.
53654
53655 2008-03-18  Jim Meyering  <meyering@redhat.com>
53656
53657         New script and module: mktempd
53658         * MODULES.html.sh (maint+release support): Add mktempd.
53659         * build-aux/mktempd: New file.
53660         * modules/mktempd: New file.
53661
53662 2008-03-15  Jim Meyering  <meyering@redhat.com>
53663
53664         Undo last change.
53665         * lib/sha1.c, lib/md5.c: 63 != ~63.
53666         Reported by Andreas Schwab.
53667
53668         sha1.c, md5.c: Hoist a redundant expression.
53669         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53670         "ctx->buflen" only once, before calling *_process_block.
53671         * lib/md5.c (md5_process_bytes): Likewise.
53672
53673 2008-03-14  Eric Blake  <ebb9@byu.net>
53674
53675         Bump copyright year in files generated by gnulib-tool.
53676         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53677         gnulib-tool, rather than hard-coding it.
53678
53679         Fix 'gnulib-tool --version' output to work with git.
53680         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53681         (startup): ...here.
53682         (func_version): Use it to invoke git-version-gen, rather than
53683         relying on CVS keyword expansion.  Modernize wording.
53684         (cvsdatestamp, last_checkin_date, version): Kill unused
53685         variables.
53686
53687 2008-03-12  Jim Meyering  <meyering@redhat.com>
53688
53689         Recognize optional cast of the argument to free.
53690         * build-aux/useless-if-before-free: Update regexps.
53691
53692         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53693
53694 2008-03-11  Bruno Haible  <bruno@clisp.org>
53695
53696         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53697         by a single package.
53698         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
53699         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
53700         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
53701         Reported by Sam Steingold <sds@gnu.org>.
53702
53703 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53704
53705         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
53706         repositories.
53707
53708 2008-03-11  Bruno Haible  <bruno@clisp.org>
53709
53710         Avoid conflicts between local macro definitions.
53711         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53712         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
53713
53714 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
53715             Bruno Haible  <bruno@clisp.org>
53716
53717         Make va_copy work with some version of xlc on AIX 5.1.
53718         * lib/stdarg.in.h: New file.
53719         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
53720         On AIX, use a <stdarg.h> file substitute.
53721         * modules/stdarg (Files): Add lib/stdarg.in.h.
53722         (Depends-on): Add include_next.
53723         (Makefile.am): Build a stdarg.h substitute if requested.
53724         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
53725
53726 2008-03-10  Bruno Haible  <bruno@clisp.org>
53727
53728         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
53729         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53730         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53731
53732 2008-03-10  Bruno Haible  <bruno@clisp.org>
53733
53734         * modules/stdlib (Depends-on): Add include_next, remove
53735         absolute-header.
53736
53737 2008-03-09  Bruno Haible  <bruno@clisp.org>
53738
53739         * lib/freadahead.h (freadahead): Document more precisely.
53740         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
53741         the sum of both buffer sizes.
53742         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
53743         * NEWS: Document the change.
53744
53745 2008-03-09  Bruno Haible  <bruno@clisp.org>
53746
53747         Extend freadptr to return also the buffer size.
53748         * lib/freadptr.h (freadptr): Add sizep argument.
53749         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
53750         (freadptr): Add sizep argument. Determine buffer size like freadahead
53751         does.
53752         * tests/test-freadptr.c: Don't include freadahead.h.
53753         (main): Adapt for new calling convention of freadptr.
53754         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53755         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53756         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53757         tests/test-freadptr2.sh.
53758         (Depends): Remove freadahead.
53759         (TESTS): Add test-freadptr2.sh.
53760         (check_PROGRAMS): Add test-freadptr2.
53761
53762 2008-03-09  Bruno Haible  <bruno@clisp.org>
53763
53764         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53765         Report and solution by Simon Josefsson.
53766
53767 2008-03-06  Bruno Haible  <bruno@clisp.org>
53768
53769         Make fflush after ungetc work on BSD platforms.
53770         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
53771         * tests/test-fflush2.c: New file.
53772         * tests/test-fflush2.sh: New file.
53773         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
53774         tests/test-fflush2.c.
53775         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
53776         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
53777
53778 2008-03-06  Eric Blake  <ebb9@byu.net>
53779
53780         Likewise for ftello.
53781         * modules/ftello (Dependencies): Add extensions.
53782         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53783
53784 2008-03-06  Bruno Haible  <bruno@clisp.org>
53785
53786         * modules/fseeko (Dependencies): Add extensions.
53787         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53788         Needed on glibc systems.
53789
53790 2008-03-06  Bruno Haible  <bruno@clisp.org>
53791
53792         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53793         email address.
53794         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53795
53796 2008-03-06  Bruno Haible  <bruno@clisp.org>
53797
53798         * users.txt: Add libgnupdf.
53799
53800 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53801
53802         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53803         (Header File Substitutes, Function Substitutes,
53804         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53805         (Build robot for gnulib): Fix typo.
53806
53807 2008-03-06  Bruno Haible  <bruno@clisp.org>
53808
53809         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53810         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53811
53812 2008-03-06  Bruno Haible  <bruno@clisp.org>
53813
53814         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53815         * doc/gnulib.texi: Include it.
53816
53817 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53818
53819         * modules/func (License): Change license to unlimited; there was
53820         no LGPL parts in the module anyway.
53821
53822 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53823
53824         * modules/__func__: Renamed to modules/func.
53825         * modules/__func__-tests: Renamed to modules/func-tests.
53826         * tests/test-__func__.c: Renamed to tests/test-func.c.
53827         * m4/__func__.m4: Renamed to m4/func.m4.
53828         * doc/gnulib.texi (__func__): Section renamed to func.
53829         Suggested by Eric Blake <ebb9@byu.net>.
53830
53831 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53832
53833         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53834         about __func__.  Make example self-contained.  Suggested by Eric
53835         Blake <ebb9@byu.net>.
53836
53837         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53838         Suggested by Eric Blake <ebb9@byu.net>.
53839
53840 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53841
53842         * modules/__func__: New file.
53843         * modules/__func__-tests: New file.
53844         * tests/test-__func__.c: New file.
53845         * m4/__func__.m4: New file.
53846         * doc/gnulib.texi (__func__): Document __func__ module.
53847
53848 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53849
53850         * modules/byteswap (License): Re-license as LGPLv2+.
53851
53852 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53853
53854         * doc/Makefile: Add pdf target.
53855
53856 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53857
53858         * modules/inline (License): Use 'unlimited', since there are only
53859         *.m4 files in this module.
53860
53861 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53862             Bruno Haible  <bruno@clisp.org>
53863
53864         Add support for HP C 7.1 on OpenVMS 8.3.
53865         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53866
53867 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53868
53869         Update VMS specifics.
53870         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53871
53872 2008-03-02  Jim Meyering  <meyering@redhat.com>
53873
53874         Remove the last dependency on the "free" module.
53875         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53876         Reported by Bob Proulx.
53877
53878         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53879
53880         Remove useless "if" tests before free.  Deprecate "free" module.
53881         * doc/posix-functions/free.texi: Mention that this
53882         module is no longer useful.
53883         * modules/free (Notice): Say this module is obsolete.
53884         * modules/readutmp (Depends-on): Remove free.
53885         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53886         * lib/putenv.c (putenv): Likewise.
53887         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53888         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53889         * tests/test-c-strcasestr.c (main): Likewise.
53890         * tests/test-c-strstr.c (main): Likewise.
53891         * tests/test-mbscasestr1.c (main): Likewise.
53892         * tests/test-mbscasestr2.c (main): Likewise.
53893         * tests/test-mbsstr1.c (main): Likewise.
53894         * tests/test-mbsstr2.c (main): Likewise.
53895         * tests/test-memmem.c (main): Likewise.
53896         * tests/test-strcasestr.c (main): Likewise.
53897         * tests/test-striconv.c (main): Likewise.
53898         * tests/test-striconveh.c (main): Likewise.
53899         * tests/test-striconveha.c (main): Likewise.
53900         * tests/test-strstr.c (main): Likewise.
53901
53902         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53903
53904         bootstrap: sync from coreutils again
53905         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53906
53907 2008-03-01  Jim Meyering  <meyering@redhat.com>
53908
53909         bootstrap: sync from coreutils
53910         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53911         also when the target doesn't exist.
53912
53913 2008-03-01  Eric Blake  <ebb9@byu.net>
53914
53915         Fix bugs in last patch.
53916         * lib/memchr2.c (memchr2): Fix typo.
53917         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53918         extension.
53919         Reported by Bruce Korb.
53920
53921         New module 'memchr2'.
53922         * modules/memchr2: New file.
53923         * modules/memchr2-tests: Likewise.
53924         * lib/memchr2.h: Likewise.
53925         * lib/memchr2.c: Likewise, based on memchr.c.
53926         * tests/test-memchr2.c: New test.
53927         * MODULES.html.sh (String handling): Add memchr2.
53928
53929 2008-02-29  Bruno Haible  <bruno@clisp.org>
53930
53931         * modules/freadseek-tests: New file.
53932         * tests/test-freadseek.sh: New file.
53933         * tests/test-freadseek.c: New file.
53934
53935         New module 'freadseek'.
53936         * modules/freadseek: New file.
53937         * lib/freadseek.h: New file.
53938         * lib/freadseek.c: New file.
53939         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53940
53941 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53942
53943         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53944         wydawca.
53945
53946         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53947         program_invocation_name and program_invocation_short_name are
53948         present.
53949
53950 2008-02-28  Bruno Haible  <bruno@clisp.org>
53951
53952         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53953         * tests/test-freadptr.sh: Also test non-seekable stdin.
53954
53955 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53956
53957         * build-aux/bootstrap (source_base, m4_base)
53958         (doc_base, tests_base): New variables.
53959         (gnulib_tool_options): Do not hardcode base directories, use
53960         the above variables instead.
53961
53962 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53963
53964         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53965
53966 2008-02-28  Bruno Haible  <bruno@clisp.org>
53967
53968         * modules/freadptr-tests: New file.
53969         * tests/test-freadptr.sh: New file.
53970         * tests/test-freadptr.c: New file.
53971
53972         New module 'freadptr'.
53973         * modules/freadptr: New file.
53974         * lib/freadptr.h: New file.
53975         * lib/freadptr.c: New file.
53976         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53977
53978 2008-02-26  Karl Berry  <karl@freefriends.org>
53979
53980         Sync from Libtool:
53981         * libltdl/argz.c (argz_add, argz_count): New functions.
53982         * libltdl/argz.in.h: Declare them.
53983         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53984
53985 2008-02-22  Bruno Haible  <bruno@clisp.org>
53986
53987         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53988         is a pointer type.  Needed for HP-UX 10.
53989         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53990         * doc/posix-functions/gmtime_r.texi: Likewise.
53991         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53992
53993 2008-02-24  Bruno Haible  <bruno@clisp.org>
53994
53995         * modules/environ-tests: New file.
53996         * tests/test-environ.c: New file.
53997
53998         New module 'environ'.
53999         * modules/environ: New file.
54000         * lib/unistd.in.h (environ): New declaration.
54001         * m4/environ.m4: New file.
54002         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54003         after use.
54004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54005         HAVE_DECL_ENVIRON.
54006         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54007         HAVE_DECL_ENVIRON.
54008         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54009         wrong claim that 'environ' is missing on some systems.
54010         * modules/execute (Depends-on): Add environ.
54011         * lib/execute.c (environ): Remove fallback declaration.
54012         * modules/pipe (Depends-on): Add environ.
54013         * lib/pipe.c (environ): Remove fallback declaration.
54014         * modules/setenv (Depends-on): Add environ.
54015         * lib/setenv.c (environ): Remove fallback declaration.
54016         * modules/unsetenv (Depends-on): Add environ.
54017         * lib/unsetenv.c (environ): Remove fallback declaration.
54018         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54019         m4/environ.m4.
54020         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54021         (gl_PREREQ_UNSETENV): Likewise.
54022
54023 2008-02-24  Bruno Haible  <bruno@clisp.org>
54024
54025         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54026
54027 2008-02-20  Bob Proulx  <bob@proulx.com>
54028
54029         Enable use of older two part flavor 'git describe'.
54030         * build-aux/git-version-gen: If using the older two part flavor of
54031         git version then recreate the third part now present in the
54032         newer three part flavor of git describe.
54033
54034 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54035
54036         * lib/fts.c (fts_build): Typo correction to comment.
54037
54038 2008-02-17  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54041         generating no-op conflicts.
54042
54043 2008-02-17  Bruno Haible  <bruno@clisp.org>
54044
54045         Speed up by 10%.
54046         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54047         result_entries, rather than an index-based loop.
54048
54049 2008-02-17  Bruno Haible  <bruno@clisp.org>
54050
54051         Speed up by 25%.
54052         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54053         'hashcode_cached'.
54054         (entry_create): New function.
54055         (entry_hashcode): Use the cached hashcode if possible.
54056         (read_changelog_file, try_split_merged_entry): Use entry_create.
54057
54058 2008-02-17  Bruno Haible  <bruno@clisp.org>
54059
54060         Speed up from O(n^2) to O(n) for long ChangeLog files.
54061         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54062         (read_changelog_file): Change implementation of entries_reversed list
54063         to rbtreehash.
54064         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54065
54066 2008-02-17  Bruno Haible  <bruno@clisp.org>
54067
54068         New option --split-merged-entry.
54069         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54070         (find_paragraph_end, try_split_merged_entry): New functions.
54071         (long_options): Add option --split-merged-entry.
54072         (usage): Document option --split-merged-entry.
54073         (main): Implement option --split-merged-entry.
54074         Reported by Eric Blake.
54075
54076 2008-02-17  Bruno Haible  <bruno@clisp.org>
54077
54078         * lib/git-merge-changelog.c: Include c-strstr.h.
54079         (main): Support the "git pull --rebase" situation.
54080         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54081         Reported by Eric Blake.
54082
54083 2008-02-16  Eric Blake  <ebb9@byu.net>
54084
54085         Avoid doubling \ in common case of "c-maybe" quoting style.
54086         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54087         eliding outer quotes.
54088         * lib/quotearg.h: Document this.
54089         * tests/test-quotearg.c (result_strings, inputs, results_g)
54090         (flag_results, locale_results): Test it by adding a new string to
54091         each test group.
54092         (compare_strings): Test new string.
54093
54094 2008-02-13  Eric Blake  <ebb9@byu.net>
54095
54096         Avoid trigraph quoting in default output.
54097         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54098         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54099         unless explicitly requested.
54100         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54101
54102 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54103
54104         Don't rely on signed integer overflowing to negative value.
54105         * lib/getugroups.c (getugroups): Include <limits.h>.
54106         Instead, compare against INT_MAX, and increment only if the test passes.
54107
54108 2008-02-13  Jim Meyering  <meyering@redhat.com>
54109         and Eric Blake  <ebb9@byu.net>
54110
54111         Avoid shadowing warning and compile errors on Linux.
54112         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54113         forwarding macros on Linux.
54114         (dcgettext): Define a stub, for Linux.
54115         (results_g, main): Avoid warnings.
54116
54117 2008-02-12  Eric Blake  <ebb9@byu.net>
54118
54119         Silence warning in last patch.
54120         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54121
54122         Quotearg part 4: add tests, fix c-maybe colon quoting.
54123         * lib/quotearg.h: Improve documentation.
54124         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54125         escapes when adding outer quotes.  When quoting trigraphs, use
54126         valid C notation.  When quoting NUL, omit extra characters if next
54127         character is not digit.  Alter prototype.
54128         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54129         callers.
54130         * modules/quotearg-tests: New module.
54131         * tests/test-quotearg.c: New test.
54132
54133 2008-02-07  Eric Blake  <ebb9@byu.net>
54134
54135         Quotearg part 3: add flag to control outer quote elision.
54136         * lib/quotearg.h (c_maybe_quoting_style): New style.
54137         (enum quoting_flags): Better documentation of flags.
54138         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54139         c-maybe style.
54140         (quotearg_buffer_restyled): Handle new flag to elide outer
54141         quotes.
54142
54143         Quotearg part 2: add flag that can control NUL elision.
54144         * lib/quotearg.h (set_quoting_flags): New prototype.
54145         * lib/quotearg.c (struct quoting_options): Add flag field.
54146         (set_quoting_flags): New function.
54147         (quotearg_buffer_restyled): Add flags parameter.
54148         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54149         (quotearg_n_options): Set the flag, since length cannot be
54150         returned.
54151         (quoting_options_from_style): Default flags correctly.
54152
54153         Quotearg part 1: more wrappers, restore quotearg_char state.
54154         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54155         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54156         (quotearg_colon_mem): New wrappers.
54157         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54158         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54159         functions.
54160         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54161         (quotearg_colon_mem): New functions.
54162
54163 2008-02-11  Bruno Haible  <bruno@clisp.org>
54164
54165         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54166         library in the current directory: it does not work with parallel make.
54167         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54168
54169 2008-02-11  Bruno Haible  <bruno@clisp.org>
54170
54171         * .gitattributes: New file.
54172
54173 2008-02-11  Jim Meyering  <meyering@redhat.com>
54174
54175         useless-if-before-free: Fix reversed exit values.
54176         * build-aux/useless-if-before-free: Use correct values
54177         for EXIT_MATCH and EXIT_NO_MATCH.
54178
54179         * build-aux/useless-if-before-free: Close stdout carefully.
54180
54181 2008-02-10  Bruno Haible  <bruno@clisp.org>
54182
54183         New module 'git-merge-changelog'.
54184         * modules/git-merge-changelog: New file.
54185         * lib/git-merge-changelog.c: New file.
54186
54187 2008-02-10  Jim Meyering  <meyering@redhat.com>
54188
54189         useless-if-before-free: New option: --list (-l).
54190
54191         useless-if-before-free: Don't exit immediately upon open failure.
54192         * build-aux/useless-if-before-free: Exit 2 for errors.
54193         Upon failure to open a file, don't exit immediately.
54194         Rather, just warn and continue with any remaining files.
54195
54196 2008-02-10  Bruno Haible  <bruno@clisp.org>
54197
54198         New abstract list operation 'node_set_value'.
54199         * lib/gl_list.h (gl_list_node_set_value): New function.
54200         (struct gl_list_implementation): New field node_set_value.
54201         * lib/gl_list.c (gl_list_node_set_value): New function.
54202         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54203         (gl_array_list_implementation): Update.
54204         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54205         (gl_carray_list_implementation): Update.
54206         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54207         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54208         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54209         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54210         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54211         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54212         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54213         Update.
54214         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54215         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54216         (gl_sublist_list_implementation): Update.
54217
54218 2008-02-10  Bruno Haible  <bruno@clisp.org>
54219
54220         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54221         Needed when ELEMENT is #defined to 'some_type *'.
54222
54223 2008-02-10  Jim Meyering  <meyering@redhat.com>
54224
54225         New script and module: useless-if-before-free
54226         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54227         * build-aux/useless-if-before-free: New file.
54228         * modules/useless-if-before-free: New file.
54229
54230         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54231
54232         xstrtol_error: Fix typo.
54233         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54234         s/exit_failure/exit_status/.
54235
54236 2008-02-09  Jim Meyering  <meyering@redhat.com>
54237
54238         New script and module: gitlog-to-changelog
54239         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54240         * modules/gitlog-to-changelog: New file.
54241         * build-aux/gitlog-to-changelog: New file.
54242
54243 2008-02-08  Jim Meyering  <meyering@redhat.com>
54244
54245         Avoid two "parameter unused" warnings.
54246         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54247         Mark "st" as used.
54248
54249         Use "git COMMAND", not "git-COMMAND".
54250         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54251         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54252         * build-aux/git-version-gen: Use "git status", not "git-status".
54253
54254 2008-02-07  Bruno Haible  <bruno@clisp.org>
54255
54256         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54257         Avoids a crash on Windows Vista.
54258         Reported by Adam Strzelecki <ono@java.pl> via
54259         Simon Josefsson <simon@josefsson.org>.
54260
54261 2008-02-06  Bruno Haible  <bruno@clisp.org>
54262
54263         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54264         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54265         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54267         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54268         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54269         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54270         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54271         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54272         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54273         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54274         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54275         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54276         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54277         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54278         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54279         left-adjust flag.
54280         * tests/test-snprintf-posix.h (test_function): Likewise.
54281         * tests/test-sprintf-posix.h (test_function): Likewise.
54282         * tests/test-vasprintf-posix.c (test_function): Likewise.
54283         * doc/posix-functions/fprintf.texi: Update.
54284         * doc/posix-functions/printf.texi: Update.
54285         * doc/posix-functions/snprintf.texi: Update.
54286         * doc/posix-functions/sprintf.texi: Update.
54287         * doc/posix-functions/vfprintf.texi: Update.
54288         * doc/posix-functions/vprintf.texi: Update.
54289         * doc/posix-functions/vsnprintf.texi: Update.
54290         * doc/posix-functions/vsprintf.texi: Update.
54291         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54292
54293 2008-02-06  Bruno Haible  <bruno@clisp.org>
54294
54295         Fix bug introduced on 2008-01-26.
54296         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54297
54298 2008-02-06  Bruno Haible  <bruno@clisp.org>
54299
54300         Fix bug introduced on 2007-06-10.
54301         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54302         !NEED_PRINTF_FLAG_ZERO.
54303
54304 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54305
54306         getloadavg: use libperfstat on AIX5
54307         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54308
54309 2008-02-03  Bruno Haible  <bruno@clisp.org>
54310
54311         * lib/diffseq.h: Add comments about required #includes.
54312         Reported by Michael Biggs <gnulib@doubleplum.net>.
54313
54314 2008-02-01  Bruno Haible  <bruno@clisp.org>
54315
54316         * users.txt: Add gnuit.
54317
54318 2008-01-31  Bruno Haible  <bruno@clisp.org>
54319
54320         * lib/md4.c (set_uint32): Mark as inline.
54321         * lib/md5.c (set_uint32): Likewise.
54322         * lib/sha1.c (set_uint32): Likewise.
54323         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54324         * m4/md5.m4 (gl_MD5): Likewise.
54325         * m4/sha1.m4 (gl_SHA1): Likewise.
54326
54327 2008-01-31  Jim Meyering  <meyering@redhat.com>
54328
54329         Use "sizeof VAR", rather than a literal "4".
54330         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54331         * lib/md4.c (md4_read_ctx): Likewise.
54332         * lib/sha1.c (sha1_read_ctx): Likewise.
54333
54334 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54335
54336         * tests/test-sha1.c: New file, based on test-md5.c.
54337
54338         * modules/crypto/sha1-tests: New file.
54339
54340 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54341
54342         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54343
54344 2008-01-31  Jim Meyering  <meyering@redhat.com>
54345
54346         Prefer "sizeof v" over the equivalent "4".
54347         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54348         * lib/md5.c (set_uint32): Likewise.
54349         * lib/sha1.c (set_uint32): Likewise.
54350
54351 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54352
54353         * lib/sha1.c (set_uint32): Mark function as static.
54354
54355 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54356
54357         md2: clarify comments to say that alignment is not required.
54358         * lib/md2.h: Remove warning about alignment in comment.
54359         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54360         never been required.
54361
54362 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54363
54364         md4: adapt alignment constraint fix from sha1.
54365         * lib/md4.c (set_uint32): New function, from sha1.c
54366         (md4_read_ctx): Use it.
54367         (md4_finish_ctx): Doc fix.
54368         * lib/md4.h: Doc fix.
54369
54370 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54371
54372         md5: adapt alignment constraint fix from sha1.
54373         * lib/md5.c (set_uint32): New function, from sha1.c
54374         (md5_read_ctx): Use it.
54375         (md5_finish_ctx): Doc fix.
54376         * lib/md5.h: Doc fix.
54377
54378 2008-01-30  Peter Palfrader  <weasel@debian.org>
54379
54380         sha1: remove the result buffer alignment constraint
54381         * lib/sha1.c (set_uint32): New function.
54382         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54383         constraint.
54384         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54385         * lib/sha1.h: Likewise.
54386
54387 2008-01-30  Andreas Schwab  <schwab@suse.de>
54388             Bruno Haible  <bruno@clisp.org>
54389
54390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54391         correct definition of LDBL_MIN_EXP.
54392
54393 2008-01-30  Karl Berry  <karl@gnu.org>
54394
54395         * config/srclist-update: try to preserve x bit on updates.
54396         * config/srclistvars.sh: update for karl.
54397
54398 2008-01-29  Jim Meyering  <meyering@redhat.com>
54399
54400         vasnprintf.c: Avoid warning about unused label
54401         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54402         "overflow" label definition and associated code with the
54403         same cpp condition that guards the sole use of that label.
54404
54405 2008-01-26  Bruno Haible  <bruno@clisp.org>
54406
54407         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54408         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54409         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54410         * lib/isnanl-nolibm.h (isnanl): Likewise.
54411         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54412
54413 2008-01-26  Bruno Haible  <bruno@clisp.org>
54414
54415         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54416         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54417
54418 2008-01-26  Bruno Haible  <bruno@clisp.org>
54419
54420         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54421         GCC >= 4.0 built-in.
54422         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54423
54424 2008-01-26  Bruno Haible  <bruno@clisp.org>
54425
54426         Rename isnan, applicable to 'double' only, to isnand.
54427         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54428         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54429         (configure.ac): Update.
54430         (Include): Replace "isnan.h" with "isnand.h".
54431         * m4/isnand.m4: Renamed from m4/isnan.m4.
54432         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54433         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54434         instead of isnan.c.
54435         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54436         instead of HAVE_ISNAN_IN_LIBC.
54437         (isnand): Renamed from isnan.
54438         * lib/isnand.c: New file.
54439         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54440         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54441         (Makefile.am): Update.
54442         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54443         Include isnand.h instead of isnan.h.
54444         (main): Test isnand instead of isnan.
54445         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54446         isnan-nolibm.
54447         * modules/frexp (Depends-on): Likewise.
54448         * modules/frexp-tests (Depends-on): Likewise.
54449         * modules/frexp-nolibm (Depends-on): Likewise.
54450         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54451         * modules/isfinite (Depends-on): Likewise.
54452         * modules/round-tests (Depends-on): Likewise.
54453         * modules/signbit (Depends-on): Likewise.
54454         * modules/signbit-tests (Depends-on): Likewise.
54455         * modules/snprintf-posix (Depends-on): Likewise.
54456         * modules/sprintf-posix (Depends-on): Likewise.
54457         * modules/trunc-tests (Depends-on): Likewise.
54458         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54459         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54460         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54461         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54462         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54463         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54464         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54465         * modules/vasnprintf-posix (Depends-on): Likewise.
54466         * modules/vasprintf-posix (Depends-on): Likewise.
54467         * modules/vfprintf-posix (Depends-on): Likewise.
54468         * modules/vsnprintf-posix (Depends-on): Likewise.
54469         * modules/vsprintf-posix (Depends-on): Likewise.
54470         * lib/frexp.c: Include isnand.h instead of isnan.h.
54471         (ISNAN): Set to isnand instead of isnan.
54472         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54473         (gl_isfinited): Use isnand instead of isnan.
54474         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54475         (gl_signbitd): Use isnand instead of isnan.
54476         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54477         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54478         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54479         (main): Use isnand instead of isnan.
54480         * tests/test-round1.c: Include isnand.h.
54481         (main): Use isnand instead of isnan.
54482         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54483         (ISNAN): Set to isnand instead of isnan.
54484         * tests/test-trunc1.c: Include isnand.h.
54485         (main): Use isnand instead of isnan.
54486         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54487         (equal): Use isnand instead of isnan.
54488         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54489         isnand-nolibm.
54490         * NEWS: Mention the change.
54491
54492 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54493             Bruno Haible  <bruno@clisp.org>
54494
54495         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54496         the GCC builtins for signbits are present and set
54497         REPLACE_SIGNBIT_USING_GCC if so.
54498         * lib/math.in.h (signbit): Define using GCC builtins if
54499         REPLACE_SIGNBIT_USING_GCC is set.
54500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54501         REPLACE_SIGNBIT_USING_GCC.
54502         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54503
54504 2008-01-25  Jim Meyering  <meyering@redhat.com>
54505
54506         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54507         * lib/poll.c: Include <config.h>, not "config.h".
54508         * tests/test-getaddrinfo.c: Likewise.
54509
54510 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54511
54512         * modules/sockets-tests: New file.
54513
54514 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54515
54516         * modules/sockets: New module, can be used to call WSA_Startup and
54517         WSA_Cleanup when needed.
54518
54519         * lib/sockets.h, lib/sockets.c: New files.
54520
54521         * m4/sockets.m4: New file.
54522
54523         * tests/test-sockets.c: New file.
54524
54525 2008-01-19  Bruno Haible  <bruno@clisp.org>
54526
54527         * doc/posix-headers: Renamed from doc/headers.
54528         * doc/posix-functions: Renamed from doc/functions.
54529         * doc/gnulib.texi: Update.
54530
54531 2008-01-19  Bruno Haible  <bruno@clisp.org>
54532
54533         * doc/glibc-functions/strcasestr.texi: Include contents of
54534         doc/functions/strcasestr.texi, fixing the list of platforms.
54535         * doc/functions/strcasestr.texi: Remove file.
54536
54537 2008-01-19  Bruno Haible  <bruno@clisp.org>
54538
54539         * doc/glibc-functions/memmem.texi: Include contents of
54540         doc/functions/memmem.texi.
54541         * doc/functions/memmem.texi: Remove file.
54542
54543 2008-01-18  Bruno Haible  <bruno@clisp.org>
54544
54545         * doc/glibc-functions/*.texi: New files.
54546         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54547         to use the new files.
54548
54549 2008-01-17  Bruno Haible  <bruno@clisp.org>
54550
54551         * tests/test-gethostname.c (main): Fix printf statement.
54552
54553 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54554
54555         * modules/gethostname-tests: New file.
54556
54557         * tests/test-gethostname.c: New file.
54558
54559 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54560
54561         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54562         used by the UNAME case.  Reported by Bruno Haible
54563         <bruno@clisp.org>.
54564
54565 2008-01-17  Eric Blake  <ebb9@byu.net>
54566
54567         Convert c-strcasestr to be more efficient.
54568         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54569         (Depends-on): Add c-strcase, remove malloca, strnlen.
54570         * tests/test-c-strcasestr.c (main): Enhance test.
54571         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54572
54573 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54574
54575         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54576         Use it in creating po/Makevars.
54577
54578 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54579
54580         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54581         Applications that requires it should initialize libgcrypt
54582         manually.
54583
54584 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54585
54586         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54587
54588 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54589
54590         Fix problem with getdate on mingw32 reported by Simon Josefsson
54591         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54592         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54593         tzname", when deciding whether to declare tzname.
54594         * lib/strftime.c (tzname): Likewise.
54595
54596 2008-01-15  Bruno Haible  <bruno@clisp.org>
54597
54598         Work around a MacOS X 10.5 bug in frexpl().
54599         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54600         * doc/functions/frexpl.texi: Document the bug.
54601         Reported by Elias Pipping <pipping@gentoo.org>.
54602
54603 2008-01-14  Eric Blake  <ebb9@byu.net>
54604
54605         Touch up previous patch.
54606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54607         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54608
54609         Convert strcasestr module to use Two-Way algorithm.
54610         * modules/strcasestr-simple: New module, based on the old
54611         strcasestr, but with Two-Way rather than KMP.
54612         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54613         * lib/string.in.h (rpl_strcasestr): Declare.
54614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54615         performance.
54616         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54617         * modules/string (Makefile.am): Support strcasestr.
54618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54619         * modules/strcasestr-tests (Depends-on): Check for alarm.
54620         * tests/test-strcasestr.c: Augment test.
54621         * lib/str-two-way.h: Clean up stray macro.
54622         * NEWS: Document new module.
54623         * MODULES.html.sh (string handling): Likewise.
54624         * doc/functions/strcasestr.texi: New file.
54625         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54626         here, since it is not a POSIX function.
54627
54628 2008-01-14  Colin Watson  <cjwatson@debian.org>
54629             Bruno Haible  <bruno@clisp.org>
54630
54631         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54632         works fine; if not, set REPLACE_STRSIGNAL.
54633         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54635         REPLACE_STRSIGNAL.
54636         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54637         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54638         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54639
54640 2008-01-14  Bruno Haible  <bruno@clisp.org>
54641
54642         * modules/strsignal (Include): Change to <string.h>.
54643
54644 2008-01-14  Colin Watson  <cjwatson@debian.org>
54645
54646         * modules/argp (Notice): Add a notice recommending to change
54647         XGETTEXT_OPTIONS.
54648         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54649
54650 2008-01-13  Colin Watson  <cjwatson@debian.org>
54651
54652         * modules/strsignal-tests: New file.
54653         * tests/test-strsignal.c: New file.
54654
54655         * lib/strsignal.c: New file, from glibc with modifications.
54656         * lib/siglist.h: New file, from glibc with modifications.
54657         * lib/string.in.h (strsignal): New declaration.
54658         * m4/strsignal.m4: New file.
54659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54660         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54661         * modules/strsignal: New file.
54662         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54663         HAVE_DECL_STRSIGNAL.
54664
54665 2008-01-13  Bruno Haible  <bruno@clisp.org>
54666
54667         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54668         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54669         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54670         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54671
54672 2008-01-13  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54675         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54676         * lib/argp.h (__attribute__): Likewise.
54677         * lib/c-stack.c (__attribute__): Likewise.
54678         * lib/error.h (__attribute__): Likewise.
54679         * lib/fts.c (__attribute__): Likewise.
54680         * lib/openat.h (__attribute__): Likewise.
54681         * lib/stdio.in.h (__attribute__): Likewise.
54682         * lib/string.in.h (__attribute__): Likewise.
54683         * lib/utimens.c (__attribute__): Likewise.
54684         * lib/vasnprintf.h (__attribute__): Likewise.
54685         * lib/xalloc.h (__attribute__): Likewise.
54686         * lib/xprintf.h (__attribute__): Likewise.
54687         * lib/xstrtol.h (__attribute__): Likewise.
54688         * lib/xvasprintf.h (__attribute__): Likewise.
54689
54690 2008-01-12  Bruno Haible  <bruno@clisp.org>
54691
54692         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54693         * doc/glibc-headers/a.out.texi: New file.
54694         * doc/glibc-headers/aliases.texi: New file.
54695         * doc/glibc-headers/alloca.texi: New file.
54696         * doc/glibc-headers/ar.texi: New file.
54697         * doc/glibc-headers/argp.texi: New file.
54698         * doc/glibc-headers/argz.texi: New file.
54699         * doc/glibc-headers/byteswap.texi: New file.
54700         * doc/glibc-headers/crypt.texi: New file.
54701         * doc/glibc-headers/endian.texi: New file.
54702         * doc/glibc-headers/envz.texi: New file.
54703         * doc/glibc-headers/err.texi: New file.
54704         * doc/glibc-headers/error.texi: New file.
54705         * doc/glibc-headers/execinfo.texi: New file.
54706         * doc/glibc-headers/fpu_control.texi: New file.
54707         * doc/glibc-headers/fstab.texi: New file.
54708         * doc/glibc-headers/fts.texi: New file.
54709         * doc/glibc-headers/getopt.texi: New file.
54710         * doc/glibc-headers/ieee754.texi: New file.
54711         * doc/glibc-headers/ifaddrs.texi: New file.
54712         * doc/glibc-headers/libintl.texi: New file.
54713         * doc/glibc-headers/mcheck.texi: New file.
54714         * doc/glibc-headers/mntent.texi: New file.
54715         * doc/glibc-headers/obstack.texi: New file.
54716         * doc/glibc-headers/paths.texi: New file.
54717         * doc/glibc-headers/printf.texi: New file.
54718         * doc/glibc-headers/pty.texi: New file.
54719         * doc/glibc-headers/resolv.texi: New file.
54720         * doc/glibc-headers/shadow.texi: New file.
54721         * doc/glibc-headers/sysexits.texi: New file.
54722         * doc/glibc-headers/ttyent.texi: New file.
54723
54724 2008-01-12  Jim Meyering  <meyering@redhat.com>
54725
54726         announce-gen: emit Gnulib's git-based version string.
54727         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
54728         New option --gnulib-version=V, where V is expected to be
54729         the output of running git describe in the gnulib directory.
54730         (get_tool_versions): Request feedback on xdelta.  I suspect it's
54731         not useful, and plan to stop publishing an xdelta file with each
54732         coreutils release.
54733
54734         * build-aux/announce-gen: Also check for lzma-compressed files.
54735
54736 2008-01-11  Bruno Haible  <bruno@clisp.org>
54737
54738         * tests/test-memmem.c (main): Increase maximum allowed time.
54739         * tests/test-strstr.c (main): Likewise.
54740
54741 2008-01-11  Bruno Haible  <bruno@clisp.org>
54742
54743         * doc/functions/memmem.texi: Add more precisions about platforms.
54744         * doc/functions/strstr.texi: Likewise.
54745
54746 2008-01-10  Eric Blake  <ebb9@byu.net>
54747
54748         * m4/strstr.m4: Delete cruft from copy-n-paste.
54749         Reported by Bruno Haible.
54750
54751 2008-01-10  Bruno Haible  <bruno@clisp.org>
54752
54753         Make c-strstr rely on strstr.
54754         * lib/c-strstr.c: Don't include str-kmp.h.
54755         (c_strstr): Define in terms of strstr.
54756         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54757         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54758
54759 2008-01-10  Bruno Haible  <bruno@clisp.org>
54760
54761         * doc/gnulib.texi (String Functions in C Locale): New section.
54762         * doc/c-ctype.texi: New file.
54763         * doc/c-strcase.texi: New file.
54764         * doc/c-strcaseeq.texi: New file.
54765         * doc/c-strcasestr.texi: New file.
54766         * doc/c-strstr.texi: New file.
54767         * doc/c-strtod.texi: New file.
54768         * doc/c-strtold.texi: New file.
54769
54770 2008-01-10  Eric Blake  <ebb9@byu.net>
54771
54772         * lib/relocatable.h: Fix a comment.
54773
54774 2008-01-10  Eric Blake  <ebb9@byu.net>
54775
54776         Share two-way algorithm.
54777         * lib/str-two-way.h: New file, merged from...
54778         * lib/memmem.c: ...here...
54779         * lib/strstr.c: ...and here.
54780         * modules/memmem (Files): Use it.
54781         * modules/strstr (Files): Likewise.
54782
54783         Avoid quadratic strstr implementations.
54784         * lib/strstr.c: New file.
54785         * m4/strstr.m4: Likewise.
54786         * modules/strstr: Likewise.
54787         * modules/strstr-tests: Likewise.
54788         * tests/test-strstr.c: Likewise.
54789         * lib/string.in.h (rpl_strstr): Declare.
54790         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54792         * modules/string (Makefile.am): Likewise.
54793         * MODULES.html.sh (string handling): Mention new module.
54794         * doc/functions/strstr.texi (strstr): Document the bug.
54795
54796 2008-01-10  Bruno Haible  <bruno@clisp.org>
54797
54798         * lib/relocatable.h (relocate): State whether result is freshly
54799         allocated or not.
54800         * lib/relocatable.c (relocate): Return a freshly allocated string
54801         instead of a pointer to a privately held string.
54802         Reported by Sylvain Beucler <beuc@gnu.org>.
54803
54804 2008-01-10  Colin Watson  <cjwatson@debian.org>
54805
54806         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54807         s/S_ISNLK/S_ISLNK/.
54808
54809 2008-01-09  Bruno Haible  <bruno@clisp.org>
54810
54811         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54812         and other files.
54813         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54814         if it's only a guess.
54815         * modules/memmem: Simplify by depending on memmem-simple.
54816
54817 2008-01-09  Bruno Haible  <bruno@clisp.org>
54818
54819         Work around OpenBSD 4.0 tdelete() bug.
54820         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54821         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54822         macros and don't redefine the enum values.
54823         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54824         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54825         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54826
54827 2008-01-09  Bruno Haible  <bruno@clisp.org>
54828
54829         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54830         (main): Don't perform the tests if setlocale did not install a UTF-8
54831         locale. Needed on OpenBSD 4.0.
54832         * modules/wcwidth-tests (Depends-on): Add localcharset.
54833
54834 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54835
54836         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54837         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54838         * NEWS: announce this.
54839         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54840
54841 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54842         and Eric Blake  <ebb9@byu.net>
54843
54844         Add memmem-simple module.
54845         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54846         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54847         * modules/memmem-simple: New file.
54848         * modules/memmem (Description): Tweak.
54849         * MODULES.html.sh (string handling): Mention new module.
54850         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54851         addressed by memmem-simple.
54852         * NEWS: Document the difference.
54853
54854 2008-01-09  Eric Blake  <ebb9@byu.net>
54855
54856         Give gcc some memmem optimization hints.
54857         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54858         (strcasestr): Declare as pure.
54859         * modules/memmem (Maintainer): Claim my implementation.
54860
54861 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54862
54863         Support AIX 6.1 and higher.
54864         * build-aux/config.libpath: Likewise.
54865         * build-aux/config.rpath: Likewise.
54866
54867 2008-01-08  Jim Meyering  <meyering@redhat.com>
54868             Bruno Haible  <bruno@clisp.org>
54869
54870         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54871         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54872         Reported by Peter Fales in
54873         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54874
54875 2008-01-08  Bruno Haible  <bruno@clisp.org>
54876
54877         * modules/unictype/category-of (Depends-on): Add
54878         unictype/category-none.
54879         * modules/unictype/category-and-tests (Depends-on): Add
54880         unictype/category-{L,N,Lu,Nd}.
54881         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54882         * modules/unictype/category-or-tests (Depends-on): Add
54883         unictype/category-{L,N}.
54884         * modules/unictype/category-name-tests (Depends-on): Add
54885         unictype/category-{Z,Nl}.
54886         Reported by Simon Josefsson.
54887
54888 2008-01-08  Bruno Haible  <bruno@clisp.org>
54889
54890         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54891         convention better.
54892         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54893         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54894         Reported by Peter Miller <millerp@canb.auug.org.au>.
54895
54896 2008-01-08  Eric Blake  <ebb9@byu.net>
54897
54898         Rewrite memmem to guarantee linear complexity without malloc.
54899         * lib/memmem.c (memmem): Use Two-Way rather than
54900         Knuth-Morris-Pratt, to allow O(1) space usage.
54901         (critical_factorization, two_way_short_needle)
54902         (two_way_long_needle): New functions.
54903         (knuth_morris_pratt): Delete.
54904         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54905         Add stdint.
54906         * tests/test-memmem.c (main): Add tests for periodic needle and
54907         sublinear performance.
54908         * doc/functions/memmem.texi (memmem): Document other deficiencies
54909         in cygwin and older glibc.
54910
54911 2008-01-08  Bruno Haible  <bruno@clisp.org>
54912
54913         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54914         augmentation.
54915
54916 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54917
54918         Add a configure time option: --disable-acl.
54919         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54920         AC_ARG_ENABLE(acl).
54921
54922 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54923
54924         * tests/test-localename.c: Don't include obsolete "setenv.h".
54925
54926         * modules/localename-tests (Depends-on): Need unsetenv.
54927
54928 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54929
54930         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54931
54932 2008-01-06  Colin Watson  <cjwatson@debian.org>
54933
54934         * users.txt: Add man-db.
54935
54936 2008-01-07  Bruno Haible  <bruno@clisp.org>
54937
54938         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54939         previous section name.
54940
54941 2008-01-07  Bruno Haible  <bruno@clisp.org>
54942
54943         * lib/progname.c (set_program_name): Don't strip off a leading
54944         "lt-" prefix outside a .libs directory.
54945         Suggested by Paul Eggert.
54946
54947 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54948             Bruno Haible  <bruno@clisp.org>
54949
54950         Improve memory cleanup in 'relocatable' module.
54951         * lib/relocatable.h (compute_curr_prefix): Change return type to
54952         'char *'.
54953         * lib/relocatable.c (compute_curr_prefix): Change return type to
54954         'char *'. Free curr_installdir after use.
54955         (relocate): Free curr_prefix_better after use.
54956         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54957
54958 2008-01-01  Bruno Haible  <bruno@clisp.org>
54959
54960         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54961         failure on older glibc systems.
54962         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54963
54964 2008-01-05  Eric Blake  <ebb9@byu.net>
54965
54966         Avoid quadratic system memmem.
54967         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54968         Reported by Ralf Wildenhues.
54969
54970         Fix memmem test for mingw.
54971         * modules/memmem-tests (configure.ac): Check for alarm.
54972         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54973         it.
54974         * doc/functions/memmem.texi: New file.
54975         * doc/gnulib.texi (Function Substitutes): Add memmem.
54976         Reported by Bruno Haible.
54977
54978 2008-01-04  Bruno Haible  <bruno@clisp.org>
54979
54980         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54981         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54982         gl_HEADER_STRING_H_DEFAULTS.
54983
54984 2008-01-04  Eric Blake  <ebb9@byu.net>
54985
54986         Shorten duration of memmem test.
54987         * tests/test-memmem.c (main): Use alarm to declare failure if test
54988         is taking too long.
54989         Reported by Ralf Wildenhues.
54990
54991 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54992
54993         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54994         string, needed by strerror.
54995
54996 2008-01-03  Colin Watson  <cjwatson@debian.org>
54997             Bruno Haible  <bruno@clisp.org>
54998
54999         * doc/gnulib-tool.texi (Localization): New section.
55000
55001 2008-01-02  Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55004         variables to 'unsigned char *' type.
55005         Reported by Paul Eggert.
55006
55007 2008-01-02  Jim Meyering  <jim@meyering.net>
55008
55009         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55010
55011 2007-12-31  Jim Meyering  <jim@meyering.net>
55012
55013         Avoid use of private FTS type name.
55014         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55015
55016 2007-12-30  Karl Berry  <karl@gnu.org>
55017
55018         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55019         work around defect in Texinfo and/or the standalone Info browser.
55020
55021 2007-12-30  Bruno Haible  <bruno@clisp.org>
55022
55023         Unify 5 copies of the KMP code.
55024         * lib/str-kmp.h: New file.
55025         * lib/c-strcasestr.c: Include str-kmp.h.
55026         (knuth_morris_pratt): Remove function.
55027         (c_strcasestr): Update.
55028         * lib/c-strstr.c: Include str-kmp.h.
55029         (knuth_morris_pratt): Remove function.
55030         (c_strcasestr): Update.
55031         * lib/mbscasestr.c: Include str-kmp.h.
55032         (knuth_morris_pratt_unibyte): Remove function.
55033         * lib/mbsstr.c: Include str-kmp.h.
55034         (knuth_morris_pratt_unibyte): Remove function.
55035         * lib/strcasestr.c: Include str-kmp.h.
55036         (knuth_morris_pratt): Remove function.
55037         (strcasestr): Update.
55038         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55039         * modules/c-strstr (Files): Likewise.
55040         * modules/mbscasestr (Files): Likewise.
55041         * modules/mbsstr (Files): Likewise.
55042         * modules/strcasestr (Files): Likewise.
55043         Suggested by Paul Eggert.
55044
55045 2007-12-30  Bruno Haible  <bruno@clisp.org>
55046
55047         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55048         defined.
55049
55050 2007-12-30  Bruno Haible  <bruno@clisp.org>
55051
55052         * lib/xmalloca.h: Include xalloc.h.
55053         (xnmalloca): New macro.
55054
55055 2007-12-30  Bruno Haible  <bruno@clisp.org>
55056
55057         * lib/malloca.h (nmalloca): New macro.
55058         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55059         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55060         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55061         knuth_morris_pratt_multibyte): Likewise.
55062         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55063         knuth_morris_pratt_multibyte): Likewise.
55064         * lib/memmem.c (knuth_morris_pratt): Likewise.
55065         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55066
55067 2007-12-25  Bruno Haible  <bruno@clisp.org>
55068
55069         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55070         * lib/glob.c: Don't include openat.h.
55071         (link_exists2_p): Add back the code that deals with the
55072         !GLOB_ALTDIRFUNC case.
55073         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55074         let it do the filename concatenation.
55075         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55076         * modules/glob (Depends-on): Remove openat.
55077
55078 2007-12-31  Bruno Haible  <bruno@clisp.org>
55079
55080         * modules/dirfd (License): Change to LGPLv2+.
55081         Approved by Jim Meyering.
55082
55083 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55084
55085         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55086         when multiplying M by sizeof (size_t).
55087
55088 2007-12-10  Martin Lambers  <marlam@marlam.de>
55089
55090         Override getpagesize on mingw.
55091         * lib/getpagesize.c: New file.
55092         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55093         * modules/getpagesize (Files): Add lib/getpagesize.c.
55094         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55096         REPLACE_GETPAGESIZE.
55097         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55098
55099 2007-12-25  Bruno Haible  <bruno@clisp.org>
55100
55101         * modules/localcharset (Notice): New field.
55102         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55103         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55104
55105 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55106             Bruno Haible  <bruno@clisp.org>
55107
55108         Avoid using the syntax symbol() in formatted documentation.
55109         * MODULES.html.sh (func_module): When replacing symbol() with a
55110         hyperlink, remove the parentheses. Show an error if some remain.
55111         Recognize and render the '...' syntax.
55112         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55113         Rework. Add paragraph about GCC's inlining.
55114         * doc/alloca.texi: Likewise.
55115         * doc/error.texi: Remove parentheses from symbol reference.
55116         * doc/gnulib-intro.texi: Likewise.
55117         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55118         * modules/fnmatch (Description): Reword to say "the ... function".
55119         * modules/full-read (Description): Likewise.
55120         * modules/full-write (Description): Likewise.
55121         * modules/safe-read (Description): Likewise.
55122         * modules/safe-write (Description): Likewise.
55123         * modules/strchrnul (Description): Likewise.
55124         * modules/trim (Description): Likewise.
55125         * modules/error (Description): Remove parentheses from symbol
55126         references.
55127         * modules/verror (Description): Likewise.
55128         Reported by Karl Berry.
55129
55130 2007-12-25  Bruno Haible  <bruno@clisp.org>
55131
55132         Fixup after 2007-10-16 commit.
55133         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55134
55135 2007-12-24  Bruno Haible  <bruno@clisp.org>
55136
55137         Make --enable-relocatable work with DESTDIR.
55138         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55139         to compute installdir from destprog.
55140         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55141         also set the RELOC_DESTDIR variable.
55142         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55143
55144 2007-12-24  Bruno Haible  <bruno@clisp.org>
55145
55146         Fix link error due to xalloc_die().
55147         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55148         of xreadlink.
55149         * lib/relocwrapper.c: Update comments.
55150         * build-aux/install-reloc: Remove xreadlink.c from file list.
55151         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55152         xreadlink.c.
55153         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55154
55155 2007-12-24  Bruno Haible  <bruno@clisp.org>
55156
55157         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55158         * lib/setenv.h: Remove file.
55159         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55160         lib/setenv.h.
55161         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55162         (Depends-on): Add stdlib.
55163         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55164         gl_FUNC_UNSETENV.
55165         (Include): Replace setenv.h with <stdlib.h>.
55166         * modules/unsetenv: New file.
55167         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55168         * lib/unsetenv.c: Include <stdlib.h> first.
55169         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55170         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55171         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55172         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55173         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55174         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55176         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55177         * doc/functions/unsetenv.texi: Update.
55178         * modules/xsetenv (Depends-on): Add unsetenv.
55179         * modules/getdate (Depends-on): Likewise.
55180         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55181         * lib/xsetenv.c: Don't include setenv.h.
55182         * lib/getdate.y: Likewise.
55183         * lib/relocwrapper.c: Likewise.
55184         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55185         (Depends-on): Add stdlib.
55186         * NEWS: Mention the changes.
55187         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55188
55189 2007-12-23  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55192         indentation.
55193
55194 2007-12-23  Bruno Haible  <bruno@clisp.org>
55195
55196         * lib/c-strcasestr.c: Add more comments.
55197         * lib/c-strstr.c: Likewise.
55198         * lib/mbscasestr.c: Likewise.
55199         * lib/mbsstr.c: Likewise.
55200         * lib/strcasestr.c: Likewise.
55201         * lib/memmem.c: Likewise.
55202
55203 2007-12-23  Bruno Haible  <bruno@clisp.org>
55204
55205         * tests/test-memmem.c: Include <string.h> first.
55206
55207 2007-12-22  Bruno Haible  <bruno@clisp.org>
55208
55209         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55210         the contents of $testsbase.
55211         Reported by Ralf Wildenhues.
55212
55213 2007-12-22  Bruno Haible  <bruno@clisp.org>
55214
55215         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55216         two variables local_ldadd_before, local_ldadd_last.
55217
55218 2007-12-20  Eric Blake  <ebb9@byu.net>
55219
55220         Work around circular library issue when cross-compiling.
55221         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55222         that progname.o does not need to pull in rpl_memcmp.
55223
55224 2007-12-19  Eric Blake  <ebb9@byu.net>
55225
55226         Fix memmem to avoid O(n^2) worst-case complexity.
55227         * lib/memmem.c (knuth_morris_pratt): New function.
55228         (memmem): Use it if first few naive iterations fail.
55229         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55230         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55231         * modules/memchr (License): Likewise.
55232         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55233         malloca.
55234         * tests/test-memmem.c: Rewrite, borrowing ideas from
55235         test-mbsstr1.c; the old version wouldn't even compile!
55236         * modules/memmem-tests: New file.
55237         * lib/string.in.h (rpl_memmem): Add declaration.
55238         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55240         REPLACE_MEMMEM.
55241
55242 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55243
55244         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55245         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55246         before any system include files, and undef after them all.  This
55247         should fix a problem on VMS reported by John E. Malmberg in
55248         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55249
55250 2007-12-17  Eric Blake  <ebb9@byu.net>
55251
55252         Revert addition of verify, for BSD/OS.
55253         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55254         can't handle large files, for the sake of obsolete platforms.
55255         * modules/fseeko (Depends-on): Remove verify.
55256         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55257         * doc/functions/ftello.texi (ftello): Likewise.
55258         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55259         Reported by Larry Jones.
55260
55261 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55262
55263         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55264         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55265
55266 2007-12-17  Jim Meyering  <meyering@redhat.com>
55267
55268         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55269         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55270         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55271         * modules/getcwd (Depends-on): Add openat.
55272         Reported by Petr Salinger.
55273
55274 2007-12-17  Bruno Haible  <bruno@clisp.org>
55275
55276         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55277         avoid a segmentation fault of the configure test on x86_64 systems.
55278
55279 2007-12-15  Jim Meyering  <meyering@redhat.com>
55280
55281         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55282
55283 2007-12-13  Eric Blake  <ebb9@byu.net>
55284
55285         Another fseek test.
55286         * tests/test-fseek.c (main): Also test ungetc handling.
55287         * tests/test-fseeko.c (main): Likewise.
55288         * modules/fseeko (Depends-on): Add verify.
55289         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55290         large.
55291         Reported by Larry Jones.
55292
55293         Fix fseeko on mingw.
55294         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55295         seek.
55296
55297         Beef up fseek tests.
55298         * tests/test-fseek.c (main): Also test eof handling.
55299         * tests/test-fseeko.c (main): Likewise.
55300         Reported by Larry Jones.
55301
55302 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55303
55304         Fix fseeko on BSD-based platforms.
55305         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55306         successful seek.
55307
55308 2007-12-12  Eric Blake  <ebb9@byu.net>
55309
55310         Allow circular dependency of separate libtests.a
55311         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55312         when use_libtests.
55313
55314 2007-12-11  Eric Blake  <ebb9@byu.net>
55315
55316         Fix bug with -0.0L in previous patch.
55317         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55318         * tests/test-isnan.c (main): Also test on zeroes.
55319         * tests/test-isnanf.c (main): Likewise.
55320         * tests/test-isnanl.h (main): Likewise.
55321
55322         Detect pseudo-denormals on x86 even when cross-compiling.
55323         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55324         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55325         invalid bit patterns that happen to satisfy ==.
55326
55327         Avoid link failures with separate libtests.a.
55328         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55329         last, to satisfy circular dependencies.
55330
55331 2007-12-11  Eric Blake  <ebb9@byu.net>
55332         and Bruno Haible  <bruno@clisp.org>
55333
55334         Fix OpenBSD 4.0 <float.h> handling of long double.
55335         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55336         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55337         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55338
55339 2007-12-11  Jim Meyering  <meyering@redhat.com>
55340
55341         * users.txt: Add libvirt.
55342
55343         Support versions of autoconf prior to 2.59c.
55344         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55345         if it is not already defined.
55346
55347 2007-12-09  Bruno Haible  <bruno@clisp.org>
55348
55349         Let 'gnulib-tool --import' collect sources needed for the tests in
55350         tests/ rather than in lib/.
55351         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55352         argument. If true, add rules to generate libtests.a, and put libtests.a
55353         into $(LDADD). Consider source files in subdirectories and set
55354         uses_subdirs.
55355         (func_emit_initmacro_start, func_emit_initmacro_end,
55356         func_emit_initmacro_done): Pass all arguments explicitly.
55357         (func_import): Determine two module lists main_modules,
55358         testsrelated_modules. Determine use_libtests. Determine two variables
55359         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55360         instead of just sed_transform_lib_file. Determine two variables
55361         main_files and testsrelated_files. Compute 'files' as the union of
55362         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55363         func_add_or_update. In the generated gnulib-comp.m4, collect the
55364         object files for tests/ in different variables than those for lib/.
55365         Substitute LIBTESTS_LIBDEPS.
55366         (func_create_testdir): Combine the uses_subdirs results from
55367         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55368
55369 2007-12-09  Bruno Haible  <bruno@clisp.org>
55370
55371         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55372         the build-aux directory.
55373
55374 2007-12-09  Bruno Haible  <bruno@clisp.org>
55375
55376         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55377         introduced on 2006-09-09.
55378
55379 2007-12-07  Jim Meyering  <meyering@redhat.com>
55380
55381         Let these macros work also with autoconf-2.59.
55382         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55383         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55384         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55385
55386 2007-12-06  Jim Meyering  <meyering@redhat.com>
55387
55388         Avoid a configure-time syntax error in gl_FUNC_ACL.
55389         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55390         function in each branch, before testing the cache variable.
55391
55392 2007-12-04  Eric Blake  <ebb9@byu.net>
55393
55394         Make scripts executable.
55395         * build-aux/config.guess: Add execute permissions.
55396         * build-aux/config.sub: Likewise.
55397         * build-aux/gendocs.sh: Likewise.
55398
55399         Fix frexp on mingw.
55400         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55401         cross-compiling.
55402         * doc/functions/frexp.texi (frexp): Document the bug.
55403
55404         Make cygwin fseeko check more reliable.
55405         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55406         version numbers, rather than unrelated feature check.
55407         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55408         * doc/functions/ftello.texi (ftello): Likewise.
55409         Reported by Bruno Haible.
55410
55411         * m4/strerror.m4: Bump version number.
55412
55413 2007-12-03  Bruno Haible  <bruno@clisp.org>
55414
55415         * doc/functions/mprotect.texi: Mention the mingw problem.
55416
55417 2007-12-03  Eric Blake  <ebb9@byu.net>
55418
55419         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55420         REPLACE_STRERROR is initialized before this macro.
55421
55422 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55423
55424         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55425         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55426         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55427         put -lsec in even for programs other than 'ls'.  This fixes a problem
55428         for gettext reported by Bruno Haible in
55429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55430         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55431         Add support for Solaris 10.  This isn't efficient, but should get the
55432         job done for now.
55433
55434 2007-12-03  James Youngman  <jay@gnu.org>
55435
55436         * doc/regexprops-generic.texi: change "an close-group" to "a
55437         close-group" and "illegal" to "not allowed".
55438
55439 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55440
55441         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55442         pr_byname.h. Needed for the rare case when the maintainer has done
55443         "make maintainer-clean" in the source directory and then attempts a
55444         build outside the source directory.
55445         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55446         scripts_byname.h.
55447
55448 2007-12-02  Martin Lambers <marlam@marlam.de>
55449             Bruno Haible  <bruno@clisp.org>
55450
55451         * lib/getpagesize.h: Remove file.
55452         * lib/unistd.in.h: Include declaration of getpagesize here.
55453         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55454         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55455         HAVE_SYS_PARAM_H.
55456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55457         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55458         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55459         (Depends-on): Add unistd.
55460         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55461         (Include): Use <unistd.h> instead of getpagesize.h.
55462         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55463         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55464         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55465         gl_GETPAGESIZE invocation, already handled by module dependency.
55466         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55467
55468 2007-12-02  Bruno Haible  <bruno@clisp.org>
55469
55470         * modules/strings-tests: New file.
55471         * tests/test-strings.c: New file.
55472
55473         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55474         * lib/strings.in.h: New file.
55475         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55476         * m4/strings_h.m4: New file.
55477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55478         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55479         * modules/strings: New file.
55480         * modules/string (Makefile.am): Update.
55481         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55482         Reported by Karl Berry.
55483
55484 2007-12-01  Eric Blake  <ebb9@byu.net>
55485
55486         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55487         accomodate fix in cygwin 1.5.25.
55488
55489 2007-12-01  Jim Meyering  <meyering@redhat.com>
55490
55491         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55492         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55493         that would inhibit utf8-optimization of a regexp containing line-
55494         or buffer-anchors, e.g., `^', `$'.
55495
55496 2007-11-30  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55499         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55500         glthread_recursive_lock_init.
55501         * lib/lock.c (glthread_recursive_lock_init)
55502         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55503         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55504
55505 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55506
55507         New function qset_acl, like set_acl but with syscall semantics.
55508         * lib/acl.h (qset_acl): New decl.
55509         * lib/acl.c (qset_acl): New function.
55510         (set_acl): Use new function.  Use more-consistent diagnostics.
55511
55512 2007-11-28  Jim Meyering  <meyering@redhat.com>
55513
55514         * modules/physmem (License): Change from GPL to LGPLv2+.
55515
55516 2007-11-26  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55519         'long double' type has excess precision.
55520         Reported by Jim Meyering in
55521         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55522
55523 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55524
55525         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55526         Sync from <http://gnu.org/licenses>.
55527         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55528         with license text from same location.
55529         * doc/maintain.texi, doc/standards.texi:  Sync from
55530         <http://savannah.gnu.org/projects/gnustandards>.
55531
55532 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55533         and Jim Meyering  <meyering@redhat.com>
55534
55535         Adjust getdate' grammar to accept a slightly more regular language.
55536         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55537         Before, the former was rejected.
55538         * lib/getdate.y (digits_to_date_time): New function, factored
55539         out of ...
55540         (number): ...here.  Just call digits_to_date_time.
55541         (hybrid): New non-terminal to handle an <unsigned number,
55542         signed relative offset> sequence consistently.
55543
55544 2007-11-18  Jim Meyering  <meyering@redhat.com>
55545
55546         Pull my changes from coreutils:
55547         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55548         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55549         use of $gnulib_tool_option_extras, so that it's separated from the
55550         preceding argument.
55551
55552         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55553         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55554         parent destination directories before copying a file into place.
55555
55556 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55557
55558         bootstrap: work also with 4-argument variant of AC_INIT
55559         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55560
55561 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55562
55563         Port test-getaddrinfo to Solaris.
55564         Problem reported by Bruno Haible in
55565         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55566         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55567         explanation of setting 'hints'.
55568         Don't reject an implementation merely because it returns EAI_SERVICE.
55569         (EAI_SERVICE): Define to 0 if not defined.
55570
55571 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55572
55573         The license of gnu-make and posix-shell is now "GPLed build tool".
55574         * modules/gnu-make (License): Likewise.
55575         * modules/posix-shell (License): Likewise.
55576
55577         New module posix-shell, for determining a POSIX shell
55578         or perhaps something that is close enough to a POSIX shell.
55579         * m4/posix-shell.m4: New file.
55580         * modules/posix-shell: New file.
55581
55582         * MODULES.html.sh: Mention new module.
55583
55584         New module gnu-make, for determining whether we're using GNU Make.
55585         * m4/gnu-make.m4: New file.
55586         * modules/gnu-make: New file.
55587         * MODULES.html.sh: Mention new module.
55588
55589 2007-11-14  Jim Meyering  <meyering@redhat.com>
55590
55591         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55592         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55593         use this macro to create a function _definition_.
55594         Remove useless "#undef ARGMATCH_DIE".
55595
55596 2007-11-14  Bruno Haible  <bruno@clisp.org>
55597
55598         * lib/config.charset: Update for OpenBSD 4.1.
55599         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55600
55601 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55602
55603         Document 64-bit #if problems in stdint.texi.
55604         * doc/headers/stdint.texi (stdint.h): Mention problems with
55605         64-bit-#if, and how to work around them.
55606
55607         Don't insist on 'long long int' support in the preprocessor.  It
55608         breaks too many things.  For example, PRIdMAX still uses a 'long
55609         long int' format with the latest Sun compiler, even though
55610         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55611         preprocessor problem.  This causes the latest coreutils to dump
55612         core on Solaris 10 sparc with the Sun C compiler.
55613         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55614         the troublesome expressions at configure-time, not at #if-time.
55615         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55616         preprocessor.
55617         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55618         compile-time C checks, done at 'configure'-time.
55619         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55620         * modules/inttypes (Makefile): Substitute the new symbols that
55621         gl_INTTYPES_H now generates.
55622         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55623
55624 2007-11-12  Bruno Haible  <bruno@clisp.org>
55625
55626         Tests for Unicode character classification functions.
55627
55628         * modules/unictype/bidicategory-byname-tests: New file.
55629         * modules/unictype/bidicategory-name-tests: New file.
55630         * modules/unictype/bidicategory-of-tests: New file.
55631         * modules/unictype/bidicategory-test-tests: New file.
55632         * modules/unictype/block-list-tests: New file.
55633         * modules/unictype/block-of-tests: New file.
55634         * modules/unictype/block-test-tests: New file.
55635         * modules/unictype/category-C-tests: New file.
55636         * modules/unictype/category-Cc-tests: New file.
55637         * modules/unictype/category-Cf-tests: New file.
55638         * modules/unictype/category-Cn-tests: New file.
55639         * modules/unictype/category-Co-tests: New file.
55640         * modules/unictype/category-Cs-tests: New file.
55641         * modules/unictype/category-L-tests: New file.
55642         * modules/unictype/category-Ll-tests: New file.
55643         * modules/unictype/category-Lm-tests: New file.
55644         * modules/unictype/category-Lo-tests: New file.
55645         * modules/unictype/category-Lt-tests: New file.
55646         * modules/unictype/category-Lu-tests: New file.
55647         * modules/unictype/category-M-tests: New file.
55648         * modules/unictype/category-Mc-tests: New file.
55649         * modules/unictype/category-Me-tests: New file.
55650         * modules/unictype/category-Mn-tests: New file.
55651         * modules/unictype/category-N-tests: New file.
55652         * modules/unictype/category-Nd-tests: New file.
55653         * modules/unictype/category-Nl-tests: New file.
55654         * modules/unictype/category-No-tests: New file.
55655         * modules/unictype/category-P-tests: New file.
55656         * modules/unictype/category-Pc-tests: New file.
55657         * modules/unictype/category-Pd-tests: New file.
55658         * modules/unictype/category-Pe-tests: New file.
55659         * modules/unictype/category-Pf-tests: New file.
55660         * modules/unictype/category-Pi-tests: New file.
55661         * modules/unictype/category-Po-tests: New file.
55662         * modules/unictype/category-Ps-tests: New file.
55663         * modules/unictype/category-S-tests: New file.
55664         * modules/unictype/category-Sc-tests: New file.
55665         * modules/unictype/category-Sk-tests: New file.
55666         * modules/unictype/category-Sm-tests: New file.
55667         * modules/unictype/category-So-tests: New file.
55668         * modules/unictype/category-Z-tests: New file.
55669         * modules/unictype/category-Zl-tests: New file.
55670         * modules/unictype/category-Zp-tests: New file.
55671         * modules/unictype/category-Zs-tests: New file.
55672         * modules/unictype/category-and-not-tests: New file.
55673         * modules/unictype/category-and-tests: New file.
55674         * modules/unictype/category-byname-tests: New file.
55675         * modules/unictype/category-name-tests: New file.
55676         * modules/unictype/category-none-tests: New file.
55677         * modules/unictype/category-of-tests: New file.
55678         * modules/unictype/category-or-tests: New file.
55679         * modules/unictype/category-test-withtable-tests: New file.
55680         * modules/unictype/combining-class-tests: New file.
55681         * modules/unictype/ctype-alnum-tests: New file.
55682         * modules/unictype/ctype-alpha-tests: New file.
55683         * modules/unictype/ctype-blank-tests: New file.
55684         * modules/unictype/ctype-cntrl-tests: New file.
55685         * modules/unictype/ctype-digit-tests: New file.
55686         * modules/unictype/ctype-graph-tests: New file.
55687         * modules/unictype/ctype-lower-tests: New file.
55688         * modules/unictype/ctype-print-tests: New file.
55689         * modules/unictype/ctype-punct-tests: New file.
55690         * modules/unictype/ctype-space-tests: New file.
55691         * modules/unictype/ctype-upper-tests: New file.
55692         * modules/unictype/ctype-xdigit-tests: New file.
55693         * modules/unictype/decimal-digit-tests: New file.
55694         * modules/unictype/digit-tests: New file.
55695         * modules/unictype/mirror-tests: New file.
55696         * modules/unictype/numeric-tests: New file.
55697         * modules/unictype/property-alphabetic-tests: New file.
55698         * modules/unictype/property-ascii-hex-digit-tests: New file.
55699         * modules/unictype/property-bidi-arabic-digit-tests: New file.
55700         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
55701         * modules/unictype/property-bidi-block-separator-tests: New file.
55702         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
55703         * modules/unictype/property-bidi-common-separator-tests: New file.
55704         * modules/unictype/property-bidi-control-tests: New file.
55705         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
55706         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
55707         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
55708         * modules/unictype/property-bidi-european-digit-tests: New file.
55709         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
55710         * modules/unictype/property-bidi-left-to-right-tests: New file.
55711         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
55712         * modules/unictype/property-bidi-other-neutral-tests: New file.
55713         * modules/unictype/property-bidi-pdf-tests: New file.
55714         * modules/unictype/property-bidi-segment-separator-tests: New file.
55715         * modules/unictype/property-bidi-whitespace-tests: New file.
55716         * modules/unictype/property-byname-tests: New file.
55717         * modules/unictype/property-combining-tests: New file.
55718         * modules/unictype/property-composite-tests: New file.
55719         * modules/unictype/property-currency-symbol-tests: New file.
55720         * modules/unictype/property-dash-tests: New file.
55721         * modules/unictype/property-decimal-digit-tests: New file.
55722         * modules/unictype/property-default-ignorable-code-point-tests: New file.
55723         * modules/unictype/property-deprecated-tests: New file.
55724         * modules/unictype/property-diacritic-tests: New file.
55725         * modules/unictype/property-extender-tests: New file.
55726         * modules/unictype/property-format-control-tests: New file.
55727         * modules/unictype/property-grapheme-base-tests: New file.
55728         * modules/unictype/property-grapheme-extend-tests: New file.
55729         * modules/unictype/property-grapheme-link-tests: New file.
55730         * modules/unictype/property-hex-digit-tests: New file.
55731         * modules/unictype/property-hyphen-tests: New file.
55732         * modules/unictype/property-id-continue-tests: New file.
55733         * modules/unictype/property-id-start-tests: New file.
55734         * modules/unictype/property-ideographic-tests: New file.
55735         * modules/unictype/property-ids-binary-operator-tests: New file.
55736         * modules/unictype/property-ids-trinary-operator-tests: New file.
55737         * modules/unictype/property-ignorable-control-tests: New file.
55738         * modules/unictype/property-iso-control-tests: New file.
55739         * modules/unictype/property-join-control-tests: New file.
55740         * modules/unictype/property-left-of-pair-tests: New file.
55741         * modules/unictype/property-line-separator-tests: New file.
55742         * modules/unictype/property-logical-order-exception-tests: New file.
55743         * modules/unictype/property-lowercase-tests: New file.
55744         * modules/unictype/property-math-tests: New file.
55745         * modules/unictype/property-non-break-tests: New file.
55746         * modules/unictype/property-not-a-character-tests: New file.
55747         * modules/unictype/property-numeric-tests: New file.
55748         * modules/unictype/property-other-alphabetic-tests: New file.
55749         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
55750         * modules/unictype/property-other-grapheme-extend-tests: New file.
55751         * modules/unictype/property-other-id-continue-tests: New file.
55752         * modules/unictype/property-other-id-start-tests: New file.
55753         * modules/unictype/property-other-lowercase-tests: New file.
55754         * modules/unictype/property-other-math-tests: New file.
55755         * modules/unictype/property-other-uppercase-tests: New file.
55756         * modules/unictype/property-paired-punctuation-tests: New file.
55757         * modules/unictype/property-paragraph-separator-tests: New file.
55758         * modules/unictype/property-pattern-syntax-tests: New file.
55759         * modules/unictype/property-pattern-white-space-tests: New file.
55760         * modules/unictype/property-private-use-tests: New file.
55761         * modules/unictype/property-punctuation-tests: New file.
55762         * modules/unictype/property-quotation-mark-tests: New file.
55763         * modules/unictype/property-radical-tests: New file.
55764         * modules/unictype/property-sentence-terminal-tests: New file.
55765         * modules/unictype/property-soft-dotted-tests: New file.
55766         * modules/unictype/property-space-tests: New file.
55767         * modules/unictype/property-terminal-punctuation-tests: New file.
55768         * modules/unictype/property-test-tests: New file.
55769         * modules/unictype/property-titlecase-tests: New file.
55770         * modules/unictype/property-unassigned-code-value-tests: New file.
55771         * modules/unictype/property-unified-ideograph-tests: New file.
55772         * modules/unictype/property-uppercase-tests: New file.
55773         * modules/unictype/property-variation-selector-tests: New file.
55774         * modules/unictype/property-white-space-tests: New file.
55775         * modules/unictype/property-xid-continue-tests: New file.
55776         * modules/unictype/property-xid-start-tests: New file.
55777         * modules/unictype/property-zero-width-tests: New file.
55778         * modules/unictype/scripts-tests: New file.
55779         * modules/unictype/syntax-c-ident-tests: New file.
55780         * modules/unictype/syntax-c-whitespace-tests: New file.
55781         * modules/unictype/syntax-java-ident-tests: New file.
55782         * modules/unictype/syntax-java-whitespace-tests: New file.
55783         * tests/unictype/test-bidi_byname.c: New file.
55784         * tests/unictype/test-bidi_name.c: New file.
55785         * tests/unictype/test-bidi_of.c: New file.
55786         * tests/unictype/test-bidi_test.c: New file.
55787         * tests/unictype/test-block_list.c: New file.
55788         * tests/unictype/test-block_of.c: New file.
55789         * tests/unictype/test-block_test.c: New file.
55790         * tests/unictype/test-categ_and.c: New file.
55791         * tests/unictype/test-categ_and_not.c: New file.
55792         * tests/unictype/test-categ_byname.c: New file.
55793         * tests/unictype/test-categ_name.c: New file.
55794         * tests/unictype/test-categ_none.c: New file.
55795         * tests/unictype/test-categ_of.c: New file.
55796         * tests/unictype/test-categ_or.c: New file.
55797         * tests/unictype/test-categ_test_withtable.c: New file.
55798         * tests/unictype/test-combining.c: New file.
55799         * tests/unictype/test-decdigit.c: New file.
55800         * tests/unictype/test-digit.c: New file.
55801         * tests/unictype/test-mirror.c: New file.
55802         * tests/unictype/test-numeric.c: New file.
55803         * tests/unictype/test-pr_byname.c: New file.
55804         * tests/unictype/test-pr_test.c: New file.
55805         * tests/unictype/test-predicate-part1.h: New file.
55806         * tests/unictype/test-predicate-part2.h: New file.
55807         * tests/unictype/test-scripts.c: New file.
55808         * tests/unictype/test-sy_c_ident.c: New file.
55809         * tests/unictype/test-sy_java_ident.c: New file.
55810
55811         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55812         for Unicode 5.0.0.
55813         * tests/unictype/test-categ_Cc.c: Likewise.
55814         * tests/unictype/test-categ_Cf.c: Likewise.
55815         * tests/unictype/test-categ_Cn.c: Likewise.
55816         * tests/unictype/test-categ_Co.c: Likewise.
55817         * tests/unictype/test-categ_Cs.c: Likewise.
55818         * tests/unictype/test-categ_L.c: Likewise.
55819         * tests/unictype/test-categ_Ll.c: Likewise.
55820         * tests/unictype/test-categ_Lm.c: Likewise.
55821         * tests/unictype/test-categ_Lo.c: Likewise.
55822         * tests/unictype/test-categ_Lt.c: Likewise.
55823         * tests/unictype/test-categ_Lu.c: Likewise.
55824         * tests/unictype/test-categ_M.c: Likewise.
55825         * tests/unictype/test-categ_Mc.c: Likewise.
55826         * tests/unictype/test-categ_Me.c: Likewise.
55827         * tests/unictype/test-categ_Mn.c: Likewise.
55828         * tests/unictype/test-categ_N.c: Likewise.
55829         * tests/unictype/test-categ_Nd.c: Likewise.
55830         * tests/unictype/test-categ_Nl.c: Likewise.
55831         * tests/unictype/test-categ_No.c: Likewise.
55832         * tests/unictype/test-categ_P.c: Likewise.
55833         * tests/unictype/test-categ_Pc.c: Likewise.
55834         * tests/unictype/test-categ_Pd.c: Likewise.
55835         * tests/unictype/test-categ_Pe.c: Likewise.
55836         * tests/unictype/test-categ_Pf.c: Likewise.
55837         * tests/unictype/test-categ_Pi.c: Likewise.
55838         * tests/unictype/test-categ_Po.c: Likewise.
55839         * tests/unictype/test-categ_Ps.c: Likewise.
55840         * tests/unictype/test-categ_S.c: Likewise.
55841         * tests/unictype/test-categ_Sc.c: Likewise.
55842         * tests/unictype/test-categ_Sk.c: Likewise.
55843         * tests/unictype/test-categ_Sm.c: Likewise.
55844         * tests/unictype/test-categ_So.c: Likewise.
55845         * tests/unictype/test-categ_Z.c: Likewise.
55846         * tests/unictype/test-categ_Zl.c: Likewise.
55847         * tests/unictype/test-categ_Zp.c: Likewise.
55848         * tests/unictype/test-categ_Zs.c: Likewise.
55849         * tests/unictype/test-ctype_alnum.c: Likewise.
55850         * tests/unictype/test-ctype_alpha.c: Likewise.
55851         * tests/unictype/test-ctype_blank.c: Likewise.
55852         * tests/unictype/test-ctype_cntrl.c: Likewise.
55853         * tests/unictype/test-ctype_digit.c: Likewise.
55854         * tests/unictype/test-ctype_graph.c: Likewise.
55855         * tests/unictype/test-ctype_lower.c: Likewise.
55856         * tests/unictype/test-ctype_print.c: Likewise.
55857         * tests/unictype/test-ctype_punct.c: Likewise.
55858         * tests/unictype/test-ctype_space.c: Likewise.
55859         * tests/unictype/test-ctype_upper.c: Likewise.
55860         * tests/unictype/test-ctype_xdigit.c: Likewise.
55861         * tests/unictype/test-decdigit.h: Likewise.
55862         * tests/unictype/test-digit.h: Likewise.
55863         * tests/unictype/test-numeric.h: Likewise.
55864         * tests/unictype/test-pr_alphabetic.c: Likewise.
55865         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55866         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55867         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55868         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55869         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55870         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55871         * tests/unictype/test-pr_bidi_control.c: Likewise.
55872         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55873         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55874         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55875         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55876         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55877         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55878         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55879         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55880         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55881         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55882         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55883         * tests/unictype/test-pr_combining.c: Likewise.
55884         * tests/unictype/test-pr_composite.c: Likewise.
55885         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55886         * tests/unictype/test-pr_dash.c: Likewise.
55887         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55888         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55889         * tests/unictype/test-pr_deprecated.c: Likewise.
55890         * tests/unictype/test-pr_diacritic.c: Likewise.
55891         * tests/unictype/test-pr_extender.c: Likewise.
55892         * tests/unictype/test-pr_format_control.c: Likewise.
55893         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55894         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55895         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55896         * tests/unictype/test-pr_hex_digit.c: Likewise.
55897         * tests/unictype/test-pr_hyphen.c: Likewise.
55898         * tests/unictype/test-pr_id_continue.c: Likewise.
55899         * tests/unictype/test-pr_id_start.c: Likewise.
55900         * tests/unictype/test-pr_ideographic.c: Likewise.
55901         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55902         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55903         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55904         * tests/unictype/test-pr_iso_control.c: Likewise.
55905         * tests/unictype/test-pr_join_control.c: Likewise.
55906         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55907         * tests/unictype/test-pr_line_separator.c: Likewise.
55908         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55909         * tests/unictype/test-pr_lowercase.c: Likewise.
55910         * tests/unictype/test-pr_math.c: Likewise.
55911         * tests/unictype/test-pr_non_break.c: Likewise.
55912         * tests/unictype/test-pr_not_a_character.c: Likewise.
55913         * tests/unictype/test-pr_numeric.c: Likewise.
55914         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55915         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55916         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55917         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55918         * tests/unictype/test-pr_other_id_start.c: Likewise.
55919         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55920         * tests/unictype/test-pr_other_math.c: Likewise.
55921         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55922         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55923         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55924         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55925         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55926         * tests/unictype/test-pr_private_use.c: Likewise.
55927         * tests/unictype/test-pr_punctuation.c: Likewise.
55928         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55929         * tests/unictype/test-pr_radical.c: Likewise.
55930         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55931         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55932         * tests/unictype/test-pr_space.c: Likewise.
55933         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55934         * tests/unictype/test-pr_titlecase.c: Likewise.
55935         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55936         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55937         * tests/unictype/test-pr_uppercase.c: Likewise.
55938         * tests/unictype/test-pr_variation_selector.c: Likewise.
55939         * tests/unictype/test-pr_white_space.c: Likewise.
55940         * tests/unictype/test-pr_xid_continue.c: Likewise.
55941         * tests/unictype/test-pr_xid_start.c: Likewise.
55942         * tests/unictype/test-pr_zero_width.c: Likewise.
55943         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55944         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55945
55946 2007-11-12  Bruno Haible  <bruno@clisp.org>
55947
55948         Unicode character classification functions.
55949         * lib/unictype.h: New file.
55950         * modules/unictype/base: New file.
55951         * modules/unictype/category-L: New file.
55952         * modules/unictype/category-Lu: New file.
55953         * modules/unictype/category-Ll: New file.
55954         * modules/unictype/category-Lt: New file.
55955         * modules/unictype/category-Lm: New file.
55956         * modules/unictype/category-Lo: New file.
55957         * modules/unictype/category-M: New file.
55958         * modules/unictype/category-Mn: New file.
55959         * modules/unictype/category-Mc: New file.
55960         * modules/unictype/category-Me: New file.
55961         * modules/unictype/category-N: New file.
55962         * modules/unictype/category-Nd: New file.
55963         * modules/unictype/category-Nl: New file.
55964         * modules/unictype/category-No: New file.
55965         * modules/unictype/category-P: New file.
55966         * modules/unictype/category-Pc: New file.
55967         * modules/unictype/category-Pd: New file.
55968         * modules/unictype/category-Ps: New file.
55969         * modules/unictype/category-Pe: New file.
55970         * modules/unictype/category-Pi: New file.
55971         * modules/unictype/category-Pf: New file.
55972         * modules/unictype/category-Po: New file.
55973         * modules/unictype/category-S: New file.
55974         * modules/unictype/category-Sm: New file.
55975         * modules/unictype/category-Sc: New file.
55976         * modules/unictype/category-Sk: New file.
55977         * modules/unictype/category-So: New file.
55978         * modules/unictype/category-Z: New file.
55979         * modules/unictype/category-Zs: New file.
55980         * modules/unictype/category-Zl: New file.
55981         * modules/unictype/category-Zp: New file.
55982         * modules/unictype/category-C: New file.
55983         * modules/unictype/category-Cc: New file.
55984         * modules/unictype/category-Cf: New file.
55985         * modules/unictype/category-Cs: New file.
55986         * modules/unictype/category-Co: New file.
55987         * modules/unictype/category-Cn: New file.
55988         * modules/unictype/category-or: New file.
55989         * modules/unictype/category-of: New file.
55990         * modules/unictype/category-test: New file.
55991         * modules/unictype/category-test-withtable: New file.
55992         * modules/unictype/category-byname: New file.
55993         * modules/unictype/category-none: New file.
55994         * modules/unictype/category-and: New file.
55995         * modules/unictype/category-and-not: New file.
55996         * modules/unictype/category-name: New file.
55997         * modules/unictype/combining-class: New file.
55998         * modules/unictype/category-all: New file.
55999         * modules/unictype/bidicategory-all: New file.
56000         * modules/unictype/bidicategory-byname: New file.
56001         * modules/unictype/bidicategory-name: New file.
56002         * modules/unictype/bidicategory-of: New file.
56003         * modules/unictype/bidicategory-test: New file.
56004         * modules/unictype/decimal-digit: New file.
56005         * modules/unictype/digit: New file.
56006         * modules/unictype/numeric: New file.
56007         * modules/unictype/mirror: New file.
56008         * modules/unictype/property-white-space: New file.
56009         * modules/unictype/property-alphabetic: New file.
56010         * modules/unictype/property-other-alphabetic: New file.
56011         * modules/unictype/property-not-a-character: New file.
56012         * modules/unictype/property-default-ignorable-code-point: New file.
56013         * modules/unictype/property-other-default-ignorable-code-point: New
56014         file.
56015         * modules/unictype/property-deprecated: New file.
56016         * modules/unictype/property-logical-order-exception: New file.
56017         * modules/unictype/property-variation-selector: New file.
56018         * modules/unictype/property-private-use: New file.
56019         * modules/unictype/property-unassigned-code-value: New file.
56020         * modules/unictype/property-uppercase: New file.
56021         * modules/unictype/property-other-uppercase: New file.
56022         * modules/unictype/property-lowercase: New file.
56023         * modules/unictype/property-other-lowercase: New file.
56024         * modules/unictype/property-titlecase: New file.
56025         * modules/unictype/property-soft-dotted: New file.
56026         * modules/unictype/property-id-start: New file.
56027         * modules/unictype/property-other-id-start: New file.
56028         * modules/unictype/property-id-continue: New file.
56029         * modules/unictype/property-other-id-continue: New file.
56030         * modules/unictype/property-xid-start: New file.
56031         * modules/unictype/property-xid-continue: New file.
56032         * modules/unictype/property-pattern-white-space: New file.
56033         * modules/unictype/property-pattern-syntax: New file.
56034         * modules/unictype/property-join-control: New file.
56035         * modules/unictype/property-grapheme-base: New file.
56036         * modules/unictype/property-grapheme-extend: New file.
56037         * modules/unictype/property-other-grapheme-extend: New file.
56038         * modules/unictype/property-grapheme-link: New file.
56039         * modules/unictype/property-bidi-control: New file.
56040         * modules/unictype/property-bidi-left-to-right: New file.
56041         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56042         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56043         * modules/unictype/property-bidi-european-digit: New file.
56044         * modules/unictype/property-bidi-eur-num-separator: New file.
56045         * modules/unictype/property-bidi-eur-num-terminator: New file.
56046         * modules/unictype/property-bidi-arabic-digit: New file.
56047         * modules/unictype/property-bidi-common-separator: New file.
56048         * modules/unictype/property-bidi-block-separator: New file.
56049         * modules/unictype/property-bidi-segment-separator: New file.
56050         * modules/unictype/property-bidi-whitespace: New file.
56051         * modules/unictype/property-bidi-non-spacing-mark: New file.
56052         * modules/unictype/property-bidi-boundary-neutral: New file.
56053         * modules/unictype/property-bidi-pdf: New file.
56054         * modules/unictype/property-bidi-embedding-or-override: New file.
56055         * modules/unictype/property-bidi-other-neutral: New file.
56056         * modules/unictype/property-hex-digit: New file.
56057         * modules/unictype/property-ascii-hex-digit: New file.
56058         * modules/unictype/property-ideographic: New file.
56059         * modules/unictype/property-unified-ideograph: New file.
56060         * modules/unictype/property-radical: New file.
56061         * modules/unictype/property-ids-binary-operator: New file.
56062         * modules/unictype/property-ids-trinary-operator: New file.
56063         * modules/unictype/property-zero-width: New file.
56064         * modules/unictype/property-space: New file.
56065         * modules/unictype/property-non-break: New file.
56066         * modules/unictype/property-iso-control: New file.
56067         * modules/unictype/property-format-control: New file.
56068         * modules/unictype/property-dash: New file.
56069         * modules/unictype/property-hyphen: New file.
56070         * modules/unictype/property-punctuation: New file.
56071         * modules/unictype/property-line-separator: New file.
56072         * modules/unictype/property-paragraph-separator: New file.
56073         * modules/unictype/property-quotation-mark: New file.
56074         * modules/unictype/property-sentence-terminal: New file.
56075         * modules/unictype/property-terminal-punctuation: New file.
56076         * modules/unictype/property-currency-symbol: New file.
56077         * modules/unictype/property-math: New file.
56078         * modules/unictype/property-other-math: New file.
56079         * modules/unictype/property-paired-punctuation: New file.
56080         * modules/unictype/property-left-of-pair: New file.
56081         * modules/unictype/property-combining: New file.
56082         * modules/unictype/property-composite: New file.
56083         * modules/unictype/property-decimal-digit: New file.
56084         * modules/unictype/property-numeric: New file.
56085         * modules/unictype/property-diacritic: New file.
56086         * modules/unictype/property-extender: New file.
56087         * modules/unictype/property-ignorable-control: New file.
56088         * modules/unictype/property-test: New file.
56089         * modules/unictype/property-byname: New file.
56090         * modules/unictype/property-all: New file.
56091         * modules/unictype/scripts: New file.
56092         * modules/unictype/scripts-all: New file.
56093         * modules/unictype/block-of: New file.
56094         * modules/unictype/block-test: New file.
56095         * modules/unictype/block-list: New file.
56096         * modules/unictype/block-all: New file.
56097         * modules/unictype/syntax-c-whitespace: New file.
56098         * modules/unictype/syntax-java-whitespace: New file.
56099         * modules/unictype/syntax-c-ident: New file.
56100         * modules/unictype/syntax-java-ident: New file.
56101         * modules/unictype/ctype-alnum: New file.
56102         * modules/unictype/ctype-alpha: New file.
56103         * modules/unictype/ctype-cntrl: New file.
56104         * modules/unictype/ctype-digit: New file.
56105         * modules/unictype/ctype-graph: New file.
56106         * modules/unictype/ctype-lower: New file.
56107         * modules/unictype/ctype-print: New file.
56108         * modules/unictype/ctype-punct: New file.
56109         * modules/unictype/ctype-space: New file.
56110         * modules/unictype/ctype-upper: New file.
56111         * modules/unictype/ctype-xdigit: New file.
56112         * modules/unictype/ctype-blank: New file.
56113         * lib/unictype/bidi_byname.c: New file.
56114         * lib/unictype/bidi_name.c: New file.
56115         * lib/unictype/bidi_of.c: New file.
56116         * lib/unictype/bidi_test.c: New file.
56117         * lib/unictype/bitmap.h: New file.
56118         * lib/unictype/block_test.c: New file.
56119         * lib/unictype/blocks.c: New file.
56120         * lib/unictype/categ_C.c: New file.
56121         * lib/unictype/categ_Cc.c: New file.
56122         * lib/unictype/categ_Cf.c: New file.
56123         * lib/unictype/categ_Cn.c: New file.
56124         * lib/unictype/categ_Co.c: New file.
56125         * lib/unictype/categ_Cs.c: New file.
56126         * lib/unictype/categ_L.c: New file.
56127         * lib/unictype/categ_Ll.c: New file.
56128         * lib/unictype/categ_Lm.c: New file.
56129         * lib/unictype/categ_Lo.c: New file.
56130         * lib/unictype/categ_Lt.c: New file.
56131         * lib/unictype/categ_Lu.c: New file.
56132         * lib/unictype/categ_M.c: New file.
56133         * lib/unictype/categ_Mc.c: New file.
56134         * lib/unictype/categ_Me.c: New file.
56135         * lib/unictype/categ_Mn.c: New file.
56136         * lib/unictype/categ_N.c: New file.
56137         * lib/unictype/categ_Nd.c: New file.
56138         * lib/unictype/categ_Nl.c: New file.
56139         * lib/unictype/categ_No.c: New file.
56140         * lib/unictype/categ_P.c: New file.
56141         * lib/unictype/categ_Pc.c: New file.
56142         * lib/unictype/categ_Pd.c: New file.
56143         * lib/unictype/categ_Pe.c: New file.
56144         * lib/unictype/categ_Pf.c: New file.
56145         * lib/unictype/categ_Pi.c: New file.
56146         * lib/unictype/categ_Po.c: New file.
56147         * lib/unictype/categ_Ps.c: New file.
56148         * lib/unictype/categ_S.c: New file.
56149         * lib/unictype/categ_Sc.c: New file.
56150         * lib/unictype/categ_Sk.c: New file.
56151         * lib/unictype/categ_Sm.c: New file.
56152         * lib/unictype/categ_So.c: New file.
56153         * lib/unictype/categ_Z.c: New file.
56154         * lib/unictype/categ_Zl.c: New file.
56155         * lib/unictype/categ_Zp.c: New file.
56156         * lib/unictype/categ_Zs.c: New file.
56157         * lib/unictype/categ_and.c: New file.
56158         * lib/unictype/categ_and_not.c: New file.
56159         * lib/unictype/categ_byname.c: New file.
56160         * lib/unictype/categ_name.c: New file.
56161         * lib/unictype/categ_none.c: New file.
56162         * lib/unictype/categ_of.c: New file.
56163         * lib/unictype/categ_or.c: New file.
56164         * lib/unictype/categ_test.c: New file.
56165         * lib/unictype/combining.c: New file.
56166         * lib/unictype/ctype_alnum.c: New file.
56167         * lib/unictype/ctype_alpha.c: New file.
56168         * lib/unictype/ctype_blank.c: New file.
56169         * lib/unictype/ctype_cntrl.c: New file.
56170         * lib/unictype/ctype_digit.c: New file.
56171         * lib/unictype/ctype_graph.c: New file.
56172         * lib/unictype/ctype_lower.c: New file.
56173         * lib/unictype/ctype_print.c: New file.
56174         * lib/unictype/ctype_punct.c: New file.
56175         * lib/unictype/ctype_space.c: New file.
56176         * lib/unictype/ctype_upper.c: New file.
56177         * lib/unictype/ctype_xdigit.c: New file.
56178         * lib/unictype/decdigit.c: New file.
56179         * lib/unictype/digit.c: New file.
56180         * lib/unictype/identsyntaxmap.h: New file.
56181         * lib/unictype/mirror.c: New file.
56182         * lib/unictype/numeric.c: New file.
56183         * lib/unictype/pr_alphabetic.c: New file.
56184         * lib/unictype/pr_ascii_hex_digit.c: New file.
56185         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56186         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56187         * lib/unictype/pr_bidi_block_separator.c: New file.
56188         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56189         * lib/unictype/pr_bidi_common_separator.c: New file.
56190         * lib/unictype/pr_bidi_control.c: New file.
56191         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56192         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56193         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56194         * lib/unictype/pr_bidi_european_digit.c: New file.
56195         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56196         * lib/unictype/pr_bidi_left_to_right.c: New file.
56197         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56198         * lib/unictype/pr_bidi_other_neutral.c: New file.
56199         * lib/unictype/pr_bidi_pdf.c: New file.
56200         * lib/unictype/pr_bidi_segment_separator.c: New file.
56201         * lib/unictype/pr_bidi_whitespace.c: New file.
56202         * lib/unictype/pr_byname.c: New file.
56203         * lib/unictype/pr_byname.gperf: New file.
56204         * lib/unictype/pr_combining.c: New file.
56205         * lib/unictype/pr_composite.c: New file.
56206         * lib/unictype/pr_currency_symbol.c: New file.
56207         * lib/unictype/pr_dash.c: New file.
56208         * lib/unictype/pr_decimal_digit.c: New file.
56209         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56210         * lib/unictype/pr_deprecated.c: New file.
56211         * lib/unictype/pr_diacritic.c: New file.
56212         * lib/unictype/pr_extender.c: New file.
56213         * lib/unictype/pr_format_control.c: New file.
56214         * lib/unictype/pr_grapheme_base.c: New file.
56215         * lib/unictype/pr_grapheme_extend.c: New file.
56216         * lib/unictype/pr_grapheme_link.c: New file.
56217         * lib/unictype/pr_hex_digit.c: New file.
56218         * lib/unictype/pr_hyphen.c: New file.
56219         * lib/unictype/pr_id_continue.c: New file.
56220         * lib/unictype/pr_id_start.c: New file.
56221         * lib/unictype/pr_ideographic.c: New file.
56222         * lib/unictype/pr_ids_binary_operator.c: New file.
56223         * lib/unictype/pr_ids_trinary_operator.c: New file.
56224         * lib/unictype/pr_ignorable_control.c: New file.
56225         * lib/unictype/pr_iso_control.c: New file.
56226         * lib/unictype/pr_join_control.c: New file.
56227         * lib/unictype/pr_left_of_pair.c: New file.
56228         * lib/unictype/pr_line_separator.c: New file.
56229         * lib/unictype/pr_logical_order_exception.c: New file.
56230         * lib/unictype/pr_lowercase.c: New file.
56231         * lib/unictype/pr_math.c: New file.
56232         * lib/unictype/pr_non_break.c: New file.
56233         * lib/unictype/pr_not_a_character.c: New file.
56234         * lib/unictype/pr_numeric.c: New file.
56235         * lib/unictype/pr_other_alphabetic.c: New file.
56236         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56237         * lib/unictype/pr_other_grapheme_extend.c: New file.
56238         * lib/unictype/pr_other_id_continue.c: New file.
56239         * lib/unictype/pr_other_id_start.c: New file.
56240         * lib/unictype/pr_other_lowercase.c: New file.
56241         * lib/unictype/pr_other_math.c: New file.
56242         * lib/unictype/pr_other_uppercase.c: New file.
56243         * lib/unictype/pr_paired_punctuation.c: New file.
56244         * lib/unictype/pr_paragraph_separator.c: New file.
56245         * lib/unictype/pr_pattern_syntax.c: New file.
56246         * lib/unictype/pr_pattern_white_space.c: New file.
56247         * lib/unictype/pr_private_use.c: New file.
56248         * lib/unictype/pr_punctuation.c: New file.
56249         * lib/unictype/pr_quotation_mark.c: New file.
56250         * lib/unictype/pr_radical.c: New file.
56251         * lib/unictype/pr_sentence_terminal.c: New file.
56252         * lib/unictype/pr_soft_dotted.c: New file.
56253         * lib/unictype/pr_space.c: New file.
56254         * lib/unictype/pr_terminal_punctuation.c: New file.
56255         * lib/unictype/pr_test.c: New file.
56256         * lib/unictype/pr_titlecase.c: New file.
56257         * lib/unictype/pr_unassigned_code_value.c: New file.
56258         * lib/unictype/pr_unified_ideograph.c: New file.
56259         * lib/unictype/pr_uppercase.c: New file.
56260         * lib/unictype/pr_variation_selector.c: New file.
56261         * lib/unictype/pr_white_space.c: New file.
56262         * lib/unictype/pr_xid_continue.c: New file.
56263         * lib/unictype/pr_xid_start.c: New file.
56264         * lib/unictype/pr_zero_width.c: New file.
56265         * lib/unictype/scripts.c: New file.
56266         * lib/unictype/sy_c_ident.c: New file.
56267         * lib/unictype/sy_c_whitespace.c: New file.
56268         * lib/unictype/sy_java_ident.c: New file.
56269         * lib/unictype/sy_java_whitespace.c: New file.
56270
56271         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56272         Unicode 5.0.0.
56273         * lib/unictype/blocks.h: Likewise.
56274         * lib/unictype/categ_C.h: Likewise.
56275         * lib/unictype/categ_Cc.h: Likewise.
56276         * lib/unictype/categ_Cf.h: Likewise.
56277         * lib/unictype/categ_Cn.h: Likewise.
56278         * lib/unictype/categ_Co.h: Likewise.
56279         * lib/unictype/categ_Cs.h: Likewise.
56280         * lib/unictype/categ_L.h: Likewise.
56281         * lib/unictype/categ_Ll.h: Likewise.
56282         * lib/unictype/categ_Lm.h: Likewise.
56283         * lib/unictype/categ_Lo.h: Likewise.
56284         * lib/unictype/categ_Lt.h: Likewise.
56285         * lib/unictype/categ_Lu.h: Likewise.
56286         * lib/unictype/categ_M.h: Likewise.
56287         * lib/unictype/categ_Mc.h: Likewise.
56288         * lib/unictype/categ_Me.h: Likewise.
56289         * lib/unictype/categ_Mn.h: Likewise.
56290         * lib/unictype/categ_N.h: Likewise.
56291         * lib/unictype/categ_Nd.h: Likewise.
56292         * lib/unictype/categ_Nl.h: Likewise.
56293         * lib/unictype/categ_No.h: Likewise.
56294         * lib/unictype/categ_P.h: Likewise.
56295         * lib/unictype/categ_Pc.h: Likewise.
56296         * lib/unictype/categ_Pd.h: Likewise.
56297         * lib/unictype/categ_Pe.h: Likewise.
56298         * lib/unictype/categ_Pf.h: Likewise.
56299         * lib/unictype/categ_Pi.h: Likewise.
56300         * lib/unictype/categ_Po.h: Likewise.
56301         * lib/unictype/categ_Ps.h: Likewise.
56302         * lib/unictype/categ_S.h: Likewise.
56303         * lib/unictype/categ_Sc.h: Likewise.
56304         * lib/unictype/categ_Sk.h: Likewise.
56305         * lib/unictype/categ_Sm.h: Likewise.
56306         * lib/unictype/categ_So.h: Likewise.
56307         * lib/unictype/categ_Z.h: Likewise.
56308         * lib/unictype/categ_Zl.h: Likewise.
56309         * lib/unictype/categ_Zp.h: Likewise.
56310         * lib/unictype/categ_Zs.h: Likewise.
56311         * lib/unictype/categ_of.h: Likewise.
56312         * lib/unictype/combining.h: Likewise.
56313         * lib/unictype/ctype_alnum.h: Likewise.
56314         * lib/unictype/ctype_alpha.h: Likewise.
56315         * lib/unictype/ctype_blank.h: Likewise.
56316         * lib/unictype/ctype_cntrl.h: Likewise.
56317         * lib/unictype/ctype_digit.h: Likewise.
56318         * lib/unictype/ctype_graph.h: Likewise.
56319         * lib/unictype/ctype_lower.h: Likewise.
56320         * lib/unictype/ctype_print.h: Likewise.
56321         * lib/unictype/ctype_punct.h: Likewise.
56322         * lib/unictype/ctype_space.h: Likewise.
56323         * lib/unictype/ctype_upper.h: Likewise.
56324         * lib/unictype/ctype_xdigit.h: Likewise.
56325         * lib/unictype/decdigit.h: Likewise.
56326         * lib/unictype/digit.h: Likewise.
56327         * lib/unictype/mirror.h: Likewise.
56328         * lib/unictype/numeric.h: Likewise.
56329         * lib/unictype/pr_alphabetic.h: Likewise.
56330         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56331         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56332         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56333         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56334         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56335         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56336         * lib/unictype/pr_bidi_control.h: Likewise.
56337         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56338         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56339         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56340         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56341         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56342         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56343         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56344         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56345         * lib/unictype/pr_bidi_pdf.h: Likewise.
56346         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56347         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56348         * lib/unictype/pr_combining.h: Likewise.
56349         * lib/unictype/pr_composite.h: Likewise.
56350         * lib/unictype/pr_currency_symbol.h: Likewise.
56351         * lib/unictype/pr_dash.h: Likewise.
56352         * lib/unictype/pr_decimal_digit.h: Likewise.
56353         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56354         * lib/unictype/pr_deprecated.h: Likewise.
56355         * lib/unictype/pr_diacritic.h: Likewise.
56356         * lib/unictype/pr_extender.h: Likewise.
56357         * lib/unictype/pr_format_control.h: Likewise.
56358         * lib/unictype/pr_grapheme_base.h: Likewise.
56359         * lib/unictype/pr_grapheme_extend.h: Likewise.
56360         * lib/unictype/pr_grapheme_link.h: Likewise.
56361         * lib/unictype/pr_hex_digit.h: Likewise.
56362         * lib/unictype/pr_hyphen.h: Likewise.
56363         * lib/unictype/pr_id_continue.h: Likewise.
56364         * lib/unictype/pr_id_start.h: Likewise.
56365         * lib/unictype/pr_ideographic.h: Likewise.
56366         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56367         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56368         * lib/unictype/pr_ignorable_control.h: Likewise.
56369         * lib/unictype/pr_iso_control.h: Likewise.
56370         * lib/unictype/pr_join_control.h: Likewise.
56371         * lib/unictype/pr_left_of_pair.h: Likewise.
56372         * lib/unictype/pr_line_separator.h: Likewise.
56373         * lib/unictype/pr_logical_order_exception.h: Likewise.
56374         * lib/unictype/pr_lowercase.h: Likewise.
56375         * lib/unictype/pr_math.h: Likewise.
56376         * lib/unictype/pr_non_break.h: Likewise.
56377         * lib/unictype/pr_not_a_character.h: Likewise.
56378         * lib/unictype/pr_numeric.h: Likewise.
56379         * lib/unictype/pr_other_alphabetic.h: Likewise.
56380         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56381         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56382         * lib/unictype/pr_other_id_continue.h: Likewise.
56383         * lib/unictype/pr_other_id_start.h: Likewise.
56384         * lib/unictype/pr_other_lowercase.h: Likewise.
56385         * lib/unictype/pr_other_math.h: Likewise.
56386         * lib/unictype/pr_other_uppercase.h: Likewise.
56387         * lib/unictype/pr_paired_punctuation.h: Likewise.
56388         * lib/unictype/pr_paragraph_separator.h: Likewise.
56389         * lib/unictype/pr_pattern_syntax.h: Likewise.
56390         * lib/unictype/pr_pattern_white_space.h: Likewise.
56391         * lib/unictype/pr_private_use.h: Likewise.
56392         * lib/unictype/pr_punctuation.h: Likewise.
56393         * lib/unictype/pr_quotation_mark.h: Likewise.
56394         * lib/unictype/pr_radical.h: Likewise.
56395         * lib/unictype/pr_sentence_terminal.h: Likewise.
56396         * lib/unictype/pr_soft_dotted.h: Likewise.
56397         * lib/unictype/pr_space.h: Likewise.
56398         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56399         * lib/unictype/pr_titlecase.h: Likewise.
56400         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56401         * lib/unictype/pr_unified_ideograph.h: Likewise.
56402         * lib/unictype/pr_uppercase.h: Likewise.
56403         * lib/unictype/pr_variation_selector.h: Likewise.
56404         * lib/unictype/pr_white_space.h: Likewise.
56405         * lib/unictype/pr_xid_continue.h: Likewise.
56406         * lib/unictype/pr_xid_start.h: Likewise.
56407         * lib/unictype/pr_zero_width.h: Likewise.
56408         * lib/unictype/scripts.h: Likewise.
56409         * lib/unictype/scripts_byname.gperf: Likewise.
56410         * lib/unictype/sy_c_ident.h: Likewise.
56411         * lib/unictype/sy_c_whitespace.h: Likewise.
56412         * lib/unictype/sy_java_ident.h: Likewise.
56413         * lib/unictype/sy_java_whitespace.h: Likewise.
56414
56415         * lib/unictype/Makefile: New file.
56416         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56417         glibc.
56418         * lib/unictype/3level.h: New file, copied from glibc.
56419         * lib/unictype/3levelbit.h: New file.
56420
56421 2007-11-11  Bruno Haible  <bruno@clisp.org>
56422
56423         * modules/gperf: New file.
56424         * modules/iconv_open (Depends-on): Add it.
56425         (Makefile.am): Remove the GPERF definition.
56426
56427 2007-11-11  Bruno Haible  <bruno@clisp.org>
56428
56429         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56430         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56431
56432 2007-11-11  Bruno Haible  <bruno@clisp.org>
56433
56434         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56435         (usage): Remove function.
56436
56437 2007-11-11  Bruno Haible  <bruno@clisp.org>
56438
56439         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56440         gl_FUNC_CEILF_LIBS.
56441         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56442         gl_FUNC_CEIL_LIBS.
56443         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56444         gl_FUNC_CEILL_LIBS.
56445         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56446         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56447         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56448
56449 2007-11-11  Bruno Haible  <bruno@clisp.org>
56450
56451         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56452         roundf were declared but do not exist on functions.
56453         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56454         roundl were declared but do not exist on functions.
56455         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56456         HAVE_FLOORL_AND_CEILL, respectively.
56457         Needed for Sun C on Solaris 10.
56458
56459 2007-11-11  Bruno Haible  <bruno@clisp.org>
56460
56461         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56462         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56463         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56464         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56465         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56466         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56467         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56468         HAVE_DECL_ROUNDF.
56469         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56470         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56472         of HAVE_DECL_ROUND*.
56473         * modules/math (Makefile.am): Update.
56474
56475 2007-11-10  Bruno Haible  <bruno@clisp.org>
56476
56477         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56478         ptrdiff_t as m4/intl.m4.
56479
56480 2007-11-10  Jim Meyering  <meyering@redhat.com>
56481
56482         Avoid link failure for the argmatch test.
56483         * tests/test-argmatch.c (usage): Define function to avoid a link
56484         failure: argmatch_die requires a usage function.
56485
56486 2007-11-09  Bruno Haible  <bruno@clisp.org>
56487
56488         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56489         * doc/functions/vsnprintf.texi: Likewise.
56490         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56491         with a size argument < 2.
56492
56493 2007-11-09  Bruno Haible  <bruno@clisp.org>
56494
56495         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56496         buffer. Fixes an inefficiency introduced on 2007-11-03.
56497
56498 2007-11-09  Bruno Haible  <bruno@clisp.org>
56499
56500         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56501         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56502
56503 2007-11-08  Jim Meyering  <meyering@redhat.com>
56504
56505         Change cache variable name prefix "jm_" to "gl_" everywhere.
56506         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56507         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56508         * m4/uptime.m4: s/gl_/jm_/
56509
56510 2007-11-07  Bruno Haible  <bruno@clisp.org>
56511
56512         Update to GNU gettext 0.17.
56513         * m4/intl.m4: Update to GNU gettext 0.17.
56514         * m4/po.m4: Likewise.
56515         * modules/gettext (Files): Remove m4/ulonglong.m4.
56516         (configure.ac): Require gettext infrastructure from version 0.17.
56517
56518 2007-11-06  Bruno Haible  <bruno@clisp.org>
56519
56520         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56521         symbolic values are not defined in a public header.
56522         * lib/freadable.c (freadable) [QNX]: Likewise.
56523         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56524         * lib/freading.c (freading) [QNX]: Likewise.
56525         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56526         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56527         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56528         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56529         Reported by Alain Magloire.
56530
56531         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56532
56533 2007-11-05  Bruno Haible  <bruno@clisp.org>
56534
56535         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56536         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56537         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56538         Reported by Eric Blake.
56539
56540 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56541             Bruno Haible  <bruno@clisp.org>
56542
56543         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56544         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56545         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56546         (malloc): Undefine also before including <stdlib.h>.
56547         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56548         Needed on OSF/1 4.0.
56549
56550 2007-11-05  Jim Meyering  <meyering@redhat.com>
56551
56552         git-version-gen: sync from coreutils.
56553         * build-aux/git-version-gen: Add comments.
56554         Change the first '-' to '.' in the snapshot version string,
56555         e.g., 6.9-377-08144 -> 6.9.377-08144
56556         Remove first parameter.
56557         Don't declare a version "-dirty" merely because a time
56558         stamp has changed.
56559
56560 2007-11-04  Bruno Haible  <bruno@clisp.org>
56561
56562         * lib/lock.h: Protect all macro definitions containing an 'if'
56563         statement through a "do { ... } while (0)".
56564         * lib/tls.h: Likewise.
56565
56566 2007-11-04  Bruno Haible  <bruno@clisp.org>
56567
56568         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56569
56570 2007-11-04  Bruno Haible  <bruno@clisp.org>
56571
56572         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56573         * modules/fprintf-posix (Depends-on): Add nocrash.
56574         * modules/snprintf-posix (Depends-on): Likewise.
56575         * modules/sprintf-posix (Depends-on): Likewise.
56576         * modules/vasnprintf-posix (Depends-on): Likewise.
56577         * modules/vasprintf-posix (Depends-on): Likewise.
56578         * modules/vfprintf-posix (Depends-on): Likewise.
56579         * modules/vsnprintf-posix (Depends-on): Likewise.
56580         * modules/vsprintf-posix (Depends-on): Likewise.
56581         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56582         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56583         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56584         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56585         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56586         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56587         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56588
56589 2007-11-04  Bruno Haible  <bruno@clisp.org>
56590
56591         * modules/nocrash: New file.
56592         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56593         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56594
56595 2007-11-04  Bruno Haible  <bruno@clisp.org>
56596
56597         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56598         precision handling.
56599         * tests/test-vasprintf-posix.c (test_function): Likewise.
56600         * tests/test-snprintf-posix.h (test_function): Likewise.
56601         * tests/test-sprintf-posix.h (test_function): Likewise.
56602
56603         Fix *printf behaviour for large precisions on mingw and BeOS.
56604         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56605         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56607         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56608         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56609         gl_PRINTF_PRECISION and test its result. Invoke
56610         gl_PREREQ_VASNPRINTF_PRECISION.
56611         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56612         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56613         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56614         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56615         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56616         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56617         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56618         * doc/functions/fprintf.texi: Update.
56619         * doc/functions/printf.texi: Update.
56620         * doc/functions/snprintf.texi: Update.
56621         * doc/functions/sprintf.texi: Update.
56622         * doc/functions/vfprintf.texi: Update.
56623         * doc/functions/vprintf.texi: Update.
56624         * doc/functions/vsnprintf.texi: Update.
56625         * doc/functions/vsprintf.texi: Update.
56626
56627 2007-11-04  Bruno Haible  <bruno@clisp.org>
56628
56629         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56630
56631 2007-11-04  Bruno Haible  <bruno@clisp.org>
56632
56633         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56634         Reported by Sylvain Beucler <beuc@gnu.org>.
56635
56636 2007-11-03  Bruno Haible  <bruno@clisp.org>
56637
56638         * tests/test-fprintf-posix2.sh: New file.
56639         * tests/test-fprintf-posix2.c: New file.
56640         * modules/fprintf-posix-tests (Files): Add them.
56641         (TESTS): Add test-fprintf-posix2.sh.
56642         (configure.ac): Check for getrlimit and setrlimit.
56643         (check_PROGRAMS): Add test-fprintf-posix2.
56644
56645         * tests/test-printf-posix2.sh: New file.
56646         * tests/test-printf-posix2.c: New file.
56647         * modules/printf-posix-tests (Files): Add them.
56648         (TESTS): Add test-printf-posix2.sh.
56649         (configure.ac): Check for getrlimit and setrlimit.
56650         (check_PROGRAMS): Add test-printf-posix2.
56651
56652         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56653         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56654         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56655         (decode_double): New function, copied from decode_long_double.
56656         (scale10_round_decimal_decoded): New function, extracted from
56657         scale10_round_decimal_long_double.
56658         (scale10_round_decimal_long_double): Use it.
56659         (scale10_round_decimal_double): New function.
56660         (floorlog10): New function.
56661         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56663         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56664         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56665         gl_PRINTF_ENOMEM and test its result. Invoke
56666         gl_PREREQ_VASNPRINTF_ENOMEM.
56667         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56668         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56671         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56672         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56673         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56674         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56675         * modules/snprintf-posix (Depends-on): Likewise.
56676         * modules/sprintf-posix (Depends-on): Likewise.
56677         * modules/vasnprintf-posix (Depends-on): Likewise.
56678         * modules/vasprintf-posix (Depends-on): Likewise.
56679         * modules/vfprintf-posix (Depends-on): Likewise.
56680         * modules/vsnprintf-posix (Depends-on): Likewise.
56681         * modules/vsprintf-posix (Depends-on): Likewise.
56682         * doc/functions/fprintf.texi: Update.
56683         * doc/functions/printf.texi: Update.
56684         * doc/functions/snprintf.texi: Update.
56685         * doc/functions/sprintf.texi: Update.
56686         * doc/functions/vfprintf.texi: Update.
56687         * doc/functions/vprintf.texi: Update.
56688         * doc/functions/vsnprintf.texi: Update.
56689         * doc/functions/vsprintf.texi: Update.
56690
56691 2007-11-03  Bruno Haible  <bruno@clisp.org>
56692
56693         * modules/frexp-nolibm-tests: New file.
56694
56695         * modules/frexp-nolibm: New file.
56696         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56697
56698 2007-11-03  Bruno Haible  <bruno@clisp.org>
56699
56700         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
56701         value is C99 compliant.
56702         Needed for OSF/1 5.1.
56703
56704 2007-11-03  Bruno Haible  <bruno@clisp.org>
56705
56706         Fix out-of-memory handling of vasnprintf.
56707         * lib/printf-parse.c: Include <errno.h>.
56708         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
56709         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
56710         is already set.
56711
56712 2007-11-02  Eric Blake  <ebb9@byu.net>
56713
56714         Fix tests on cygwin.
56715         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
56716
56717 2007-11-01  Bruno Haible  <bruno@clisp.org>
56718
56719         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
56720         warning.
56721         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
56722         needed for POSIX compatibility.
56723
56724 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56725
56726         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
56727         for compatibility with GNU.
56728
56729 2007-11-01  Bruno Haible  <bruno@clisp.org>
56730
56731         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
56732         (putenv): Renamed from rpl_putenv. Change argument type from
56733         'const char *' to 'char *'.
56734         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
56735         of defining putenv in config.h, just set REPLACE_PUTENV.
56736         * modules/putenv (Depends-on): Add stdlib.
56737         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56738         (Include): Use <stdlib.h>.
56739         * lib/stdlib.in.h (putenv): New declaration.
56740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
56741         REPLACE_PUTENV.
56742         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
56743         REPLACE_PUTENV.
56744         Needed for MacOS X 10.5.0.
56745         Reported by Peter O'Gorman <peter@pogma.com>.
56746
56747 2007-11-01  Jim Meyering  <meyering@redhat.com>
56748
56749         Treat an empty date string exactly like "0".
56750         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
56751         if the remaining date string (to be parsed) is empty, use "0".
56752         Reported by Mischa Molhoek and discussed in this thread:
56753         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56754
56755 2007-10-31  Bruno Haible  <bruno@clisp.org>
56756
56757         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56758         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56759         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56760         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56761         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56762         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56763
56764 2007-10-31  Bruno Haible  <bruno@clisp.org>
56765
56766         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56767         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56768         (AC_TYPE_LONG_LONG_INT): Use it.
56769         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
56770         it as well.
56771         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
56772         to m4/longlong.m4.
56773         * modules/stdint (Files): Remove m4/ulonglong.m4.
56774         * modules/strtoull (Files): Use m4/longlong.m4 instead of
56775         m4/ulonglong.m4.
56776         * modules/strtoumax (Files): Likewise.
56777
56778 2007-10-30  Bruno Haible  <bruno@clisp.org>
56779
56780         * modules/xvasprintf-posix: New file.
56781         Suggested by Eric Blake.
56782
56783 2007-10-30  Bruno Haible  <bruno@clisp.org>
56784
56785         * modules/xprintf-posix-tests: New file.
56786         * tests/test-xprintf-posix.sh: New file.
56787         * tests/test-xprintf-posix.c: New file.
56788         * tests/test-xfprintf-posix.c: New file.
56789
56790         * modules/xprintf-posix: New file.
56791
56792 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56793
56794         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56795         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56796         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56797
56798 2007-10-29  Bruno Haible  <bruno@clisp.org>
56799
56800         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56801         contain the special marker '_cv_'.
56802         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56803         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56804         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56805         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56806         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56807         Reported by Ralf Wildenhues.
56808
56809 2007-10-29  Bruno Haible  <bruno@clisp.org>
56810
56811         * gnulib-tool (func_import): When --lgpl is not specified, set
56812         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56813         GPLv3.
56814         Reported by Simon Josefsson.
56815
56816 2007-10-28  Bruno Haible  <bruno@clisp.org>
56817
56818         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56819         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56820         HAVE_DECL_ISFINITE.
56821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56822         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56823         HAVE_DECL_ISFINITE.
56824
56825 2007-10-28  Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56828         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56829
56830 2007-10-28  Bruno Haible  <bruno@clisp.org>
56831
56832         Fix link errors with Sun C 5.0 on Solaris 10.
56833         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56834         function is declared but not present in the compiler's libm.
56835         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56836         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56837         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56838         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56839         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56840         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56841         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56843         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56844         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56845         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56846         HAVE_DECL_FLOORL.
56847
56848 2007-10-28  Bruno Haible  <bruno@clisp.org>
56849
56850         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56851         gl_FUNC_FLOORL. Cache the result.
56852         (gl_FUNC_FLOORL): Use it.
56853         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56854         gl_FUNC_CEILL. Cache the result.
56855         (gl_FUNC_CEILL): Use it.
56856
56857         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56858         gl_FUNC_FLOOR. Cache the result.
56859         (gl_FUNC_FLOOR): Use it.
56860         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56861         gl_FUNC_CEIL. Cache the result.
56862         (gl_FUNC_CEIL): Use it.
56863
56864         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56865         gl_FUNC_FLOORF. Cache the result.
56866         (gl_FUNC_FLOORF): Use it.
56867         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56868         gl_FUNC_CEILF. Cache the result.
56869         (gl_FUNC_CEILF): Use it.
56870
56871 2007-10-28  Bruno Haible  <bruno@clisp.org>
56872
56873         * gnulib-tool: Allow specifying the LGPL version number through
56874         --lgpl=2 or --lgpl=3.
56875         (func_usage): Document --lgpl with argument.
56876         Handle --lgpl=... arguments.
56877         (func_import): Recognize also gl_LGPL calls with an argument. When
56878         --lgpl=2 is used and the module's license is just LGPL, report an
56879         error. Set sed_transform_lib_file according to the lgpl variable. In
56880         the generated files, use --lgpl or gl_LGPL invocations with argument,
56881         if necessary.
56882         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56883         an LGPv2+ license.
56884         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56885         gl_LGPL macro.
56886
56887 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56888             Bruno Haible  <bruno@clisp.org>
56889
56890         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56891         (u16_uctomb_aux): Likewise.
56892         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56893         !HAVE_INLINE.
56894         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56895
56896 2007-10-28  Bruno Haible  <bruno@clisp.org>
56897
56898         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56899         Invoke AM_GETTEXT_OPTION if it exists.
56900         * modules/vasprintf: Likewise.
56901         * modules/verror: Likewise.
56902         * modules/xprintf: Likewise.
56903         * modules/xvasprintf: Likewise.
56904
56905 2007-10-27  Ben Pfaff  <blp@gnu.org>
56906
56907         * lib/math.in.h: Define isfinite macro and prototypes for
56908         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56909         implementations.
56910         * m4/math_h.m4: New substitutions for isfinite module.
56911         * lib/isfinite.c: New file.
56912         * m4/isfinite.m4: New file.
56913         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56914         * modules/isfinite: New file.
56915         * modules/isfinite-tests: New file.
56916         * tests/tests-isfinite.c: New file.
56917         * doc/functions/isfinite.texi: Mention isfinite module.
56918         * MODULES.html.sh: Mention new module.
56919
56920 2007-10-27  Ben Pfaff  <blp@gnu.org>
56921
56922         Ralf Wildenhues reported that Tru64 4.0D declares the round
56923         functions but does not have definitions.
56924         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56925         cannot be found in any library, set the output variable to
56926         "missing" instead of "".
56927         * m4/round.m4: Also use our substitute if we cannot find round in
56928         any library, even if it is declared.
56929         * m4/roundf.m4: Likewise for roundf.
56930         * m4/roundl.m4: Likewise for roundl.
56931         * lib/math.in.h: Undefine roundf, round, roundl before defining
56932         their replacements, to allow for hypothetical systems where these
56933         may be defined as macros but not available in libraries.
56934
56935 2007-10-27  Bruno Haible  <bruno@clisp.org>
56936
56937         * doc/gnulib.texi: Invoke @firstparagraphindent.
56938         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56939         changes in gnulib.
56940         (Source changes): New section.
56941
56942 2007-10-26  Bruno Haible  <bruno@clisp.org>
56943
56944         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56945         borrowed from autoconf.
56946
56947 2007-10-26  Bruno Haible  <bruno@clisp.org>
56948
56949         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56950         strerror returned the empty string. Needed on HP-UX 11.00.
56951
56952 2007-10-24  Micah Cowan  <micah@cowan.name>
56953
56954         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56955         * build-aux/bootstrap: Remove support for now-unnecessary option,
56956         --cvs-user, and envvars CVS_USER, CVS_RSH.
56957
56958 2007-10-24  Jim Meyering  <meyering@redhat.com>
56959
56960         Avoid diagnostics from sha1sum when there is no cached checksum.
56961         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56962         if the po.s1 file hasn't been created yet.
56963
56964         * build-aux/bootstrap: Sync from coreutils:
56965         2007-10-24  Jim Meyering  <meyering@redhat.com>
56966         Get gnulib from the git repository, not from an obsolete cvs one.
56967         * build-aux/bootstrap: Suggestion from Micah Cowan.
56968         2007-10-04  Jim Meyering  <jim@meyering.net>
56969         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56970         (update_po_files): Work also when there are no .po files in po/.
56971
56972 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56973
56974         * README: Append ".git" to git and cg examples.
56975         Problem reported by Benoit Sigoure.
56976
56977 2007-10-23  Micah Cowan  <micah@cowan.name>
56978
56979         * users.txt: Add wget.
56980
56981 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56982
56983         Fix linking of some unistdio tests on FreeBSD.
56984         * modules/unistdio/u16-vsnprintf-tests
56985         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56986         * modules/unistdio/u16-vsprintf-tests
56987         (test_u16_vsnprintf1_LDADD): Likewise.
56988         * modules/unistdio/u32-vsnprintf-tests
56989         (test_u32_vsnprintf1_LDADD): Likewise.
56990         * modules/unistdio/u32-vsprintf-tests
56991         (test_u32_vsprintf1_LDADD): Likewise.
56992         * modules/unistdio/u8-vsnprintf-tests
56993         (test_u8_vsnprintf1_LDADD): Likewise.
56994         * modules/unistdio/u8-vsprintf-tests
56995         (test_u8_vsprintf1_LDADD): Likewise.
56996         * modules/unistdio/ulc-vsnprintf-tests
56997         (test_ulc_vsnprintf1_LDADD): Likewise.
56998         * modules/unistdio/ulc-vsprintf-tests
56999         (test_ulc_vsprintf1_LDADD): Likewise.
57000
57001         Fix linking of some uniconv tests on FreeBSD.
57002         * modules/uniconv/u16-conv-from-enc-tests
57003         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57004         * modules/uniconv/u16-conv-to-enc-tests
57005         (test_u16_conv_to_enc_LDADD): Likewise.
57006         * modules/uniconv/u16-strconv-from-enc-tests
57007         (test_u16_strconv_from_enc_LDADD): Likewise.
57008         * modules/uniconv/u16-strconv-to-enc-tests
57009         (test_u16_strconv_to_enc_LDADD): Likewise.
57010         * modules/uniconv/u32-conv-from-enc-tests
57011         (test_u32_conv_from_enc_LDADD): Likewise.
57012         * modules/uniconv/u32-conv-to-enc-tests
57013         (test_u32_conv_to_enc_LDADD): Likewise.
57014         * modules/uniconv/u32-strconv-from-enc-tests
57015         (test_u32_strconv_from_enc_LDADD): Likewise.
57016         * modules/uniconv/u32-strconv-to-enc-tests
57017         (test_u32_strconv_to_enc_LDADD): Likewise.
57018         * modules/uniconv/u8-conv-from-enc-tests
57019         (test_u8_conv_from_enc_LDADD): Likewise.
57020         * modules/uniconv/u8-conv-to-enc-tests
57021         (test_u8_conv_to_enc_LDADD): Likewise.
57022         * modules/uniconv/u8-strconv-from-enc-tests
57023         (test_u8_strconv_from_enc_LDADD): Likewise.
57024         * modules/uniconv/u8-strconv-to-enc-tests
57025         (test_u8_strconv_to_enc_LDADD): Likewise.
57026
57027 2007-10-22  Bruno Haible  <bruno@clisp.org>
57028
57029         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57030         size.
57031
57032 2007-10-22  Eric Blake  <ebb9@byu.net>
57033
57034         Tweak x*printf documentation.
57035         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57036         variable name and comments.
57037         Suggested by Bruno Haible.
57038
57039 2007-10-22  Bruno Haible  <bruno@clisp.org>
57040
57041         * lib/acl.c (copy_acl): Fix file name in comment.
57042
57043 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57044
57045         Fix Tru64 problem with stdbool.h.
57046         * lib/stdbool.in.h (false, true):
57047         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57048         Don't declare as an enum in this situation; it runs afoul of Tru64.
57049         Problem reported by Steven M. Schweda in
57050         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57051
57052 2007-10-22  Eric Blake  <ebb9@byu.net>
57053
57054         Also wrap vf?printf.
57055         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57056         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57057         (xvprintf, xvfprintf): New functions.
57058
57059 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57060
57061         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57062         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57063
57064         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57065         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57066
57067 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57068
57069         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57070         by Bruno Haible.
57071
57072 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57073
57074         * lib/getloadavg.c
57075         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57076         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57077
57078         * tests/test-i-ring.c: Work for C89.
57079
57080 2007-10-22  Bruno Haible  <bruno@clisp.org>
57081
57082         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57083         -1u, in preprocessor expression, so that we don't test for the bug
57084         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57085         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57086
57087 2007-10-22  Eric Blake  <ebb9@byu.net>
57088
57089         * tests/test-yesno.sh: Silence stderr during test.
57090
57091 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57092
57093         * modules/crypto/gc-camellia: New file.
57094
57095         * m4/gc-camellia.m4: New file.
57096
57097         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57098
57099         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57100
57101 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57102
57103         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57104         --help to stdout.  Reported by sms@antinode.org (Steven
57105         M. Schweda).
57106
57107 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57108
57109         * users.txt: Fix link to libksba.
57110
57111 2007-10-21  Ben Pfaff  <blp@gnu.org>
57112
57113         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57114         round.c roundf implementation that depends on floorf and ceilf to
57115         be tested unconditionally.
57116
57117 2007-10-21  Ben Pfaff  <blp@gnu.org>
57118
57119         * m4/check-libm-func.m4: Removed.
57120         * m4/check-math-lib.m4: New file.
57121         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57122         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57123         definition and lack of AC_LIBOBJ([roundf]).
57124         * m4/roundl.m4: Ditto, and similarly for roundl.
57125         * modules/round: Reference new m4 file.
57126         * modules/roundf: Ditto.
57127         * modules/roundl: Ditto.
57128         * tests/test-round2.c (main): Use ROUND instead of round.
57129         Bug report from Bruno Haible.
57130
57131 2007-10-21  Bruno Haible  <bruno@clisp.org>
57132
57133         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57134         context.
57135
57136 2007-10-21  Bruno Haible  <bruno@clisp.org>
57137
57138         * tests/test-wcwidth.c (main): Allow negative result for some control
57139         characters.
57140
57141         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57142         Needed on OSF/1 5.1.
57143
57144 2007-10-21  Bruno Haible  <bruno@clisp.org>
57145
57146         * tests/test-floorf1.c: Include isnanf.h.
57147         (main): Use isnanf() instead of isnan().
57148         * tests/test-ceilf1.c: Include isnanf.h.
57149         (main): Use isnanf() instead of isnan().
57150         * tests/test-truncf1.c: Include isnanf.h.
57151         (main): Use isnanf() instead of isnan().
57152         * tests/test-roundf1.c: Include isnanf.h.
57153         (main): Use isnanf() instead of isnan().
57154
57155 2007-10-21  Eric Blake  <ebb9@byu.net>
57156
57157         * users.txt: Update URL for m4.
57158
57159 2007-10-21  Bruno Haible  <bruno@clisp.org>
57160
57161         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57162
57163 2007-10-21  Bruno Haible  <bruno@clisp.org>
57164
57165         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57166         Git's management files if the CVS files are not present.
57167
57168 2007-10-20  Bruno Haible  <bruno@clisp.org>
57169
57170         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57171         gcc-3.4.x.
57172
57173 2007-10-20  Ben Pfaff  <blp@gnu.org>
57174
57175         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57176         implementations.
57177         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57178         * lib/round.c: New file.
57179         * lib/roundf.c: New file.
57180         * lib/roundl.c: New file.
57181         * m4/round.m4: New file.
57182         * m4/roundf.m4: New file.
57183         * m4/roundl.m4: New file.
57184         * m4/check-libm-func-m4: New file.
57185         * modules/math: Replace round, roundf, roundl related @VARS@ in
57186         math.in.h.
57187         * modules/round: New file.
57188         * modules/round-tests: New file.
57189         * modules/roundf: New file.
57190         * modules/roundf-tests: New file.
57191         * modules/roundl: New file.
57192         * modules/roundl-tests: New file.
57193         * tests/test-round1.c: New file.
57194         * tests/test-round2.c: New file.
57195         * tests/test-roundf1.c: New file.
57196         * tests/test-roundf2.c: New file.
57197         * tests/test-roundl.c: New file.
57198         * doc/functions/round.texi: Mention round module.
57199         * doc/functions/roundf.texi: Mention roundf module.
57200         * doc/functions/roundl.texi: Mention roundl module.
57201         * MODULES.html.sh: Mention new modules.
57202         Thanks to Bruno Haible for suggestions.
57203
57204 2007-10-20  Jim Meyering  <meyering@redhat.com>
57205
57206         * lib/xprintf.c: Include <config.h> unconditionally.
57207
57208         Change xprintf's license to GPL.
57209         * modules/xprintf (License): s/LGPL/GPL/, since this module
57210         depends on modules (exit and exitfail) which are GPL.
57211         Suggestion from Bruno Haible.
57212
57213         xprintf fixes.
57214         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57215         Use a clearer diagnostic.
57216         Patch from Bruno Haible.
57217
57218 2007-10-20  Bruno Haible  <bruno@clisp.org>
57219
57220         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57221         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57222         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57223
57224 2007-10-20  Bruno Haible  <bruno@clisp.org>
57225
57226         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57227         precision in the comparison result > x - 1 or similar.
57228         * tests/test-ceilf2.c (correct_result_p): Likewise.
57229         * tests/test-truncf2.c (correct_result_p): Likewise.
57230         * tests/test-trunc2.c (correct_result_p): Likewise.
57231         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57232
57233 2007-10-20  Bruno Haible  <bruno@clisp.org>
57234
57235         * modules/ceil: New file.
57236         * m4/ceil.m4: New file.
57237         * doc/functions/ceil.texi: Mention the 'ceil' module.
57238
57239 2007-10-20  Bruno Haible  <bruno@clisp.org>
57240
57241         * modules/floor: New file.
57242         * m4/floor.m4: New file.
57243         * doc/functions/floor.texi: Mention the 'floor' module.
57244
57245 2007-10-20  Bruno Haible  <bruno@clisp.org>
57246
57247         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57248         of %a.
57249         * modules/floorf-tests (Depends-on): Likewise.
57250         * modules/truncf-tests (Depends-on): Likewise.
57251         * modules/trunc-tests (Depends-on): Likewise.
57252         Reported by Ben Pfaff.
57253
57254 2007-10-19  Jim Meyering  <meyering@redhat.com>
57255
57256         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57257         Don't bother testing specific errno values.  Just test ferror.
57258
57259         New module: xprintf
57260         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57261
57262 2007-10-19  Bruno Haible  <bruno@clisp.org>
57263
57264         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57265         syntax.
57266         * modules/javaexec (Makefile.am): Likewise.
57267         * modules/relocatable-prog (Makefile.am): Likewise.
57268         Suggested by Jim Meyering.
57269
57270 2007-10-18  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57273         Reported by Jim Meyering.
57274
57275 2007-10-18  Eric Blake  <ebb9@byu.net>
57276
57277         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57278
57279 2007-10-18  Bruno Haible  <bruno@clisp.org>
57280
57281         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57282         the format string into writable memory. Needed in Fortify conditions.
57283
57284 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57285             Bruno Haible  <bruno@clisp.org>
57286
57287         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57288         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57289         * modules/trim (Depends-on): Add mbchar.
57290         (configure.ac): Add gl_FUNC_MBRTOWC.
57291         (Makefile.am): Augment lib_SOURCES.
57292
57293 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57294
57295         Modify glob.c to use fstatat and dirfd, to simplify it.
57296         Suggested by Eric Blake.
57297         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57298         Don't include <stdbool.h>; not used.
57299         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57300         (link_exists_p): Simplify implementation, since we can now assume
57301         dirfd and fstatat.
57302         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57303
57304 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57305
57306         * gnulib-tool (func_get_dependencies): Fix sed script to
57307         match only tests.
57308
57309 2007-10-17  Bruno Haible  <bruno@clisp.org>
57310
57311         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57312         allow locale names without encoding suffix.
57313         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57314         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57315
57316 2007-10-16  Bruno Haible  <bruno@clisp.org>
57317
57318         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57319         * lib/getgroups.c (getgroups): Likewise.
57320         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57321
57322 2007-10-16  Bruno Haible  <bruno@clisp.org>
57323
57324         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57325         * modules/malloc-posix (License): Likewise.
57326         * modules/realloc-posix (License): Likewise.
57327         * modules/calloc-posix (License): Likewise.
57328         * modules/intprops (License): Change from GPL to LGPL, with
57329         Paul Eggert's approval.
57330
57331 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57332
57333         Merge glibc changes into lib/glob.c.
57334
57335         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57336         2007-10-15 04:59:03 UTC.  Here are the changes:
57337
57338         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57339
57340         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57341
57342         * lib/glob.c: Add some branch prediction throughout.
57343
57344         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57345
57346         [BZ #5103]
57347         * lib/glob.c (glob): Recognize patterns starting \/.
57348
57349         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57350
57351         [BZ #3996]
57352         * lib/glob.c (attribute_hidden): Define if not defined.
57353         (glob): Unescape dirname, filename or username when needed and not
57354         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57355         is NULL.  Handle unescaped [ in pattern without closing ].
57356         Don't pass GLOB_CHECK down to recursive glob for directories.
57357         (__glob_pattern_type): New function.
57358         (__glob_pattern_p): Implement using __glob_pattern_type.
57359         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57360         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57361         Remove unreachable code.
57362
57363         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57364
57365         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57366         explain why there are no leaks.
57367
57368         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57369
57370         [BZ #3253]
57371         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57372         time, rather allocate increasingly bigger arrays of pointers, if
57373         possible with alloca, if too large with malloc.
57374
57375 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57376
57377         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57378         Problem reported by H.Merijn Brand in
57379         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57380         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57381         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57382
57383 2007-10-15  Bruno Haible  <bruno@clisp.org>
57384
57385         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57386         with explicit rpl_ prefix.
57387         * lib/fopen.c (fopen): Likewise.
57388         * lib/freopen.c (freopen): Likewise.
57389         * lib/iconv.c (iconv): Likewise.
57390         * lib/iconv_close.c (iconv_close): Likewise.
57391
57392 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57393
57394         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57395
57396 2007-10-15  Bruno Haible  <bruno@clisp.org>
57397
57398         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57399         <stddef.h> instead of <stdlib.h> since we only need NULL.
57400         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57401
57402 2007-10-15  Bruno Haible  <bruno@clisp.org>
57403
57404         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57405         Replace paragraph talking about LIBOBJS.
57406         Reported by Colin Watson <cjwatson@debian.org>.
57407
57408 2007-10-15  Bruno Haible  <bruno@clisp.org>
57409
57410         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57411         <stdlib.h> before using NULL.
57412
57413 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57414
57415         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57416         Reported by Albert Chin <china@thewrittenword.com>.
57417
57418 2007-10-14  Bruno Haible  <bruno@clisp.org>
57419
57420         * modules/iconv_open-utf-tests: New file.
57421         * tests/test-iconv-utf.c: New file.
57422
57423         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57424         * modules/iconv_open-utf: New file.
57425         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57426         (iconv, iconv_close): New declarations.
57427         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57428         be defined.
57429         (iconv_open): Add special handling of conversion between UTF-8 and
57430         UTF-{16,32}{BE,LE}.
57431         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57432         * lib/iconv_close.c: New file.
57433         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57434         gl_FUNC_ICONV_OPEN.
57435         (gl_FUNC_ICONV_OPEN): Use it.
57436         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57437         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57438         and REPLACE_ICONV_UTF.
57439         * modules/iconv_open (Depends-on): Add c-strcase.
57440         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57441         ICONV_CONST.
57442         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57443
57444 2007-10-13  Albert Chin  <china@thewrittenword.com>
57445             Bruno Haible  <bruno@clisp.org>
57446
57447         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57448         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57449
57450 2007-10-13  Bruno Haible  <bruno@clisp.org>
57451
57452         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57453         defined, use the ISO C99 inline semantics.
57454         * lib/argp.h (ARGP_EI): Likewise.
57455
57456 2007-10-13  Bruno Haible  <bruno@clisp.org>
57457
57458         Handle 'inline' change in gcc 4.3.0.
57459         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57460         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57461         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57462         argp_fmtstream_point): Disable 'extern' declaration if the function
57463         definition is going to be provided inline.
57464         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57465         semantics, not the ISO C99 inline semantics.
57466         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57467         'extern' declaration if the function definition is going to be provided
57468         inline.
57469         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57470         the GNU C inline semantics, not the ISO C99 inline semantics. With
57471         GCC 4.2, avoid a warning.
57472
57473 2007-10-13  Bruno Haible  <bruno@clisp.org>
57474
57475         * lib/freading.h (freading): Enable the use of __freading for
57476         glibc >= 2.7.
57477         * lib/freading.c (freading): Likewise.
57478
57479 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57480
57481         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57482         "warning: C99 inline functions are not supported; using GNU89".
57483
57484 2007-10-12  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57487         of 2.
57488         * tests/test-ceilf2.c: New file.
57489         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57490
57491         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57492         * modules/ceilf-tests: Update.
57493
57494 2007-10-12  Bruno Haible  <bruno@clisp.org>
57495
57496         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57497         of 2.
57498         * tests/test-floorf2.c: New file.
57499         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57500
57501         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57502         * modules/floorf-tests: Update.
57503
57504 2007-10-12  Bruno Haible  <bruno@clisp.org>
57505
57506         * tests/test-trunc2.c: New file.
57507         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57508
57509         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57510         * modules/trunc-tests: Update.
57511
57512 2007-10-12  Bruno Haible  <bruno@clisp.org>
57513
57514         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57515         of 2.
57516         * tests/test-truncf2.c: New file.
57517         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57518
57519         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57520         * modules/truncf-tests: Update.
57521
57522 2007-10-11  Eric Blake  <ebb9@byu.net>
57523
57524         Don't claim strerror is broken on Interix.
57525         * doc/functions/strerror.texi (strerror): Known broken systems are
57526         now Solaris 8, and not Interix.
57527         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57528         Interix on cross-compile.
57529         Reported by Martin Koeppe in
57530         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57531
57532 2007-10-11  Bruno Haible  <bruno@clisp.org>
57533
57534         * modules/i-ring-tests: New file.
57535         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57536         instead of assert.
57537
57538 2007-10-11  Bruno Haible  <bruno@clisp.org>
57539
57540         * modules/filenamecat-tests: New file.
57541         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57542         * lib/filenamecat.c: Remove test code.
57543
57544 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57545
57546         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57547
57548         * lib/strerror.c: Include <string.h> always, to test interface,
57549         and to remove the need for the dummy.
57550         Include intprops.h to compute width instead of doing it ourselves
57551         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57552         (strerror): Define it to return NULL if there's no system strerror.
57553         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57554         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57555         ancient pre-strerror Unix systems well any more.  Saying "unknown
57556         system error" is enough.
57557         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57558         simpler strerror.c implementation.
57559         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57560         Simplify the tests to reflect the simpler strerror implementation.
57561         * modules/strerror (Depends-on): Add intprops.
57562
57563 2007-10-09  Eric Blake  <ebb9@byu.net>
57564
57565         Silence test-fpending.
57566         * modules/fpending-tests (Files): Add wrapper script.
57567         * tests/test-fpending.sh: New file.
57568
57569 2007-10-09  Bruno Haible  <bruno@clisp.org>
57570
57571         * MODULES.html.sh (func_module): Don't create a hyperlink for
57572         function names like 'printf_frexp'.
57573         (Misc): Add crc, memxor.
57574         (Characteristics of floating types): New section.
57575         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57576         isnanf-nolibm, signbit, trunc, truncf, truncl.
57577         (Enhancements for ISO C 99 functions): New subsection Input/output.
57578         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57579         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57580         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57581         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57582         (Enhancements for POSIX:2001 functions): Add chdir-long.
57583         (File system functions): Add areadlink, chdir-safer, read-file.
57584         Remove cycle-check.
57585         (File system as inode set): New section.
57586         (Date and time): Add gethrxtime.
57587         (Multithreading): Add openmp.
57588         (Internationalization functions): Add localename.
57589         (Unicode string functions): Add unistr/u*-mbsnlen.
57590         (Support for maintaining and releasing projects): Add git-version-gen.
57591         (Lone files): Remove directories.
57592
57593 2007-10-08  Ben Pfaff  <blp@gnu.org>
57594
57595         * lib/xmalloca.h: Fix typo in comment.
57596
57597 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57598
57599         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57600         when avoiding problems with integer overflow.  Use a portable test
57601         instead.
57602
57603 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57604
57605         * modules/dummy (License): Change to LGPLv2+.
57606         * modules/float (License): Likewise
57607         * modules/realloc (License): Likewise
57608         * modules/stdlib (License): Likewise
57609
57610 2007-10-07  Bruno Haible  <bruno@clisp.org>
57611
57612         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57613         * floor.c (TWO_MANT_DIG): Likewise.
57614         * ceil.c (TWO_MANT_DIG): Likewise.
57615         Reported by Ben Pfaff.
57616
57617 2007-10-07  Bruno Haible  <bruno@clisp.org>
57618
57619         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57620         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57621         * lib/frexp.c (FUNC): Likewise.
57622         * lib/printf-frexp.h (printf_frexp): Likewise.
57623         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57624         * lib/printf-frexp.c (FUNC): Likewise.
57625         Suggested by Jim Meyering.
57626
57627 2007-10-07  Jim Meyering  <meyering@redhat.com>
57628
57629         Make xnanosleep's integer overflow test more robust.
57630         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57631         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57632
57633 2007-10-07  Bruno Haible  <bruno@clisp.org>
57634
57635         * NEWS: Mention the license change.
57636
57637         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57638         abbreviations in the modules files.
57639
57640         Change copyright notice from GPLv2+ to GPLv3+.
57641         * README: Change copyright notice.
57642         * MODULES.html.sh: Likewise.
57643         * build-aux/bootstrap.conf: Likewise.
57644         * build-aux/config.libpath: Likewise.
57645         * build-aux/csharpcomp.sh.in: Likewise.
57646         * build-aux/csharpexec.sh.in: Likewise.
57647         * build-aux/install-reloc: Likewise.
57648         * build-aux/javacomp.sh.in: Likewise.
57649         * build-aux/javaexec.sh.in: Likewise.
57650         * build-aux/ldd.sh.in: Likewise.
57651         * build-aux/reloc-ldflags: Likewise.
57652         * build-aux/relocatable.sh.in: Likewise.
57653         * build-aux/x-to-1.in: Likewise.
57654         * check-module: Likewise.
57655         * config/srclistvars.sh: Likewise.
57656         * gnulib-tool: Likewise.
57657         * lib/acl-internal.h: Likewise.
57658         * lib/acl.c: Likewise.
57659         * lib/acl.h: Likewise.
57660         * lib/acl_entries.c: Likewise.
57661         * lib/areadlink-with-size.c: Likewise.
57662         * lib/areadlink.c: Likewise.
57663         * lib/areadlink.h: Likewise.
57664         * lib/argmatch.c: Likewise.
57665         * lib/argmatch.h: Likewise.
57666         * lib/argp-ba.c: Likewise.
57667         * lib/argp-eexst.c: Likewise.
57668         * lib/argp-fmtstream.c: Likewise.
57669         * lib/argp-fmtstream.h: Likewise.
57670         * lib/argp-fs-xinl.c: Likewise.
57671         * lib/argp-help.c: Likewise.
57672         * lib/argp-namefrob.h: Likewise.
57673         * lib/argp-parse.c: Likewise.
57674         * lib/argp-pin.c: Likewise.
57675         * lib/argp-pv.c: Likewise.
57676         * lib/argp-pvh.c: Likewise.
57677         * lib/argp-xinl.c: Likewise.
57678         * lib/argp.h: Likewise.
57679         * lib/at-func.c: Likewise.
57680         * lib/atanl.c: Likewise.
57681         * lib/backupfile.c: Likewise.
57682         * lib/backupfile.h: Likewise.
57683         * lib/basename.c: Likewise.
57684         * lib/binary-io.h: Likewise.
57685         * lib/byteswap.in.h: Likewise.
57686         * lib/c-stack.c: Likewise.
57687         * lib/c-stack.h: Likewise.
57688         * lib/c-strcasestr.c: Likewise.
57689         * lib/c-strcasestr.h: Likewise.
57690         * lib/c-strstr.c: Likewise.
57691         * lib/c-strstr.h: Likewise.
57692         * lib/c-strtod.c: Likewise.
57693         * lib/calloc.c: Likewise.
57694         * lib/canon-host.c: Likewise.
57695         * lib/canon-host.h: Likewise.
57696         * lib/canonicalize-lgpl.c: Likewise.
57697         * lib/canonicalize.c: Likewise.
57698         * lib/canonicalize.h: Likewise.
57699         * lib/ceil.c: Likewise.
57700         * lib/ceilf.c: Likewise.
57701         * lib/ceill.c: Likewise.
57702         * lib/chdir-long.c: Likewise.
57703         * lib/chdir-long.h: Likewise.
57704         * lib/chdir-safer.c: Likewise.
57705         * lib/chdir-safer.h: Likewise.
57706         * lib/chown.c: Likewise.
57707         * lib/classpath.c: Likewise.
57708         * lib/classpath.h: Likewise.
57709         * lib/clean-temp.c: Likewise.
57710         * lib/clean-temp.h: Likewise.
57711         * lib/cloexec.c: Likewise.
57712         * lib/close-stream.c: Likewise.
57713         * lib/closein.c: Likewise.
57714         * lib/closein.h: Likewise.
57715         * lib/closeout.c: Likewise.
57716         * lib/closeout.h: Likewise.
57717         * lib/concat-filename.c: Likewise.
57718         * lib/copy-file.c: Likewise.
57719         * lib/copy-file.h: Likewise.
57720         * lib/count-one-bits.h: Likewise.
57721         * lib/crc.c: Likewise.
57722         * lib/crc.h: Likewise.
57723         * lib/creat-safer.c: Likewise.
57724         * lib/csharpcomp.c: Likewise.
57725         * lib/csharpcomp.h: Likewise.
57726         * lib/csharpexec.c: Likewise.
57727         * lib/csharpexec.h: Likewise.
57728         * lib/cycle-check.c: Likewise.
57729         * lib/cycle-check.h: Likewise.
57730         * lib/diacrit.c: Likewise.
57731         * lib/diacrit.h: Likewise.
57732         * lib/diffseq.h: Likewise.
57733         * lib/dirchownmod.c: Likewise.
57734         * lib/dirent.in.h: Likewise.
57735         * lib/dirfd.c: Likewise.
57736         * lib/dirfd.h: Likewise.
57737         * lib/dirname.c: Likewise.
57738         * lib/dirname.h: Likewise.
57739         * lib/dummy.c: Likewise.
57740         * lib/dup-safer.c: Likewise.
57741         * lib/dup2.c: Likewise.
57742         * lib/eealloc.h: Likewise.
57743         * lib/error.c: Likewise.
57744         * lib/error.h: Likewise.
57745         * lib/euidaccess.c: Likewise.
57746         * lib/exclude.c: Likewise.
57747         * lib/exclude.h: Likewise.
57748         * lib/execute.c: Likewise.
57749         * lib/execute.h: Likewise.
57750         * lib/exitfail.c: Likewise.
57751         * lib/exitfail.h: Likewise.
57752         * lib/expl.c: Likewise.
57753         * lib/fatal-signal.c: Likewise.
57754         * lib/fatal-signal.h: Likewise.
57755         * lib/fbufmode.c: Likewise.
57756         * lib/fbufmode.h: Likewise.
57757         * lib/fchdir.c: Likewise.
57758         * lib/fchmodat.c: Likewise.
57759         * lib/fchownat.c: Likewise.
57760         * lib/fcntl--.h: Likewise.
57761         * lib/fcntl-safer.h: Likewise.
57762         * lib/fcntl.in.h: Likewise.
57763         * lib/fd-safer.c: Likewise.
57764         * lib/fflush.c: Likewise.
57765         * lib/file-has-acl.c: Likewise.
57766         * lib/file-set.c: Likewise.
57767         * lib/file-type.c: Likewise.
57768         * lib/file-type.h: Likewise.
57769         * lib/fileblocks.c: Likewise.
57770         * lib/filemode.c: Likewise.
57771         * lib/filemode.h: Likewise.
57772         * lib/filename.h: Likewise.
57773         * lib/filenamecat.c: Likewise.
57774         * lib/filenamecat.h: Likewise.
57775         * lib/findprog.c: Likewise.
57776         * lib/findprog.h: Likewise.
57777         * lib/float.in.h: Likewise.
57778         * lib/floor.c: Likewise.
57779         * lib/floorf.c: Likewise.
57780         * lib/floorl.c: Likewise.
57781         * lib/fopen-safer.c: Likewise.
57782         * lib/fopen.c: Likewise.
57783         * lib/fpending.c: Likewise.
57784         * lib/fpending.h: Likewise.
57785         * lib/fprintf.c: Likewise.
57786         * lib/fprintftime.h: Likewise.
57787         * lib/fpucw.h: Likewise.
57788         * lib/fpurge.c: Likewise.
57789         * lib/fpurge.h: Likewise.
57790         * lib/freadable.c: Likewise.
57791         * lib/freadable.h: Likewise.
57792         * lib/freadahead.c: Likewise.
57793         * lib/freadahead.h: Likewise.
57794         * lib/freading.c: Likewise.
57795         * lib/freading.h: Likewise.
57796         * lib/free.c: Likewise.
57797         * lib/freopen.c: Likewise.
57798         * lib/frexp.c: Likewise.
57799         * lib/frexpl.c: Likewise.
57800         * lib/fseek.c: Likewise.
57801         * lib/fseterr.c: Likewise.
57802         * lib/fseterr.h: Likewise.
57803         * lib/fstatat.c: Likewise.
57804         * lib/fstrcmp.c: Likewise.
57805         * lib/fstrcmp.h: Likewise.
57806         * lib/fsusage.c: Likewise.
57807         * lib/fsusage.h: Likewise.
57808         * lib/ftell.c: Likewise.
57809         * lib/ftello.c: Likewise.
57810         * lib/fts-cycle.c: Likewise.
57811         * lib/fts.c: Likewise.
57812         * lib/fts_.h: Likewise.
57813         * lib/full-read.c: Likewise.
57814         * lib/full-read.h: Likewise.
57815         * lib/full-write.c: Likewise.
57816         * lib/full-write.h: Likewise.
57817         * lib/fwritable.c: Likewise.
57818         * lib/fwritable.h: Likewise.
57819         * lib/fwriteerror.c: Likewise.
57820         * lib/fwriteerror.h: Likewise.
57821         * lib/fwriting.c: Likewise.
57822         * lib/fwriting.h: Likewise.
57823         * lib/gcd.c: Likewise.
57824         * lib/gcd.h: Likewise.
57825         * lib/getcwd.c: Likewise.
57826         * lib/getdate.h: Likewise.
57827         * lib/getdate.y: Likewise.
57828         * lib/getdomainname.c: Likewise.
57829         * lib/getdomainname.h: Likewise.
57830         * lib/getgroups.c: Likewise.
57831         * lib/gethostname.c: Likewise.
57832         * lib/gethrxtime.c: Likewise.
57833         * lib/gethrxtime.h: Likewise.
57834         * lib/getloadavg.c: Likewise.
57835         * lib/getndelim2.c: Likewise.
57836         * lib/getndelim2.h: Likewise.
57837         * lib/getnline.c: Likewise.
57838         * lib/getnline.h: Likewise.
57839         * lib/getopt.c: Likewise.
57840         * lib/getopt.in.h: Likewise.
57841         * lib/getopt1.c: Likewise.
57842         * lib/getopt_int.h: Likewise.
57843         * lib/getpagesize.h: Likewise.
57844         * lib/getsubopt.c: Likewise.
57845         * lib/gettime.c: Likewise.
57846         * lib/getugroups.c: Likewise.
57847         * lib/getugroups.h: Likewise.
57848         * lib/getusershell.c: Likewise.
57849         * lib/gl_anyavltree_list1.h: Likewise.
57850         * lib/gl_anyavltree_list2.h: Likewise.
57851         * lib/gl_anyhash_list1.h: Likewise.
57852         * lib/gl_anyhash_list2.h: Likewise.
57853         * lib/gl_anylinked_list1.h: Likewise.
57854         * lib/gl_anylinked_list2.h: Likewise.
57855         * lib/gl_anyrbtree_list1.h: Likewise.
57856         * lib/gl_anyrbtree_list2.h: Likewise.
57857         * lib/gl_anytree_list1.h: Likewise.
57858         * lib/gl_anytree_list2.h: Likewise.
57859         * lib/gl_anytree_oset.h: Likewise.
57860         * lib/gl_anytreehash_list1.h: Likewise.
57861         * lib/gl_anytreehash_list2.h: Likewise.
57862         * lib/gl_array_list.c: Likewise.
57863         * lib/gl_array_list.h: Likewise.
57864         * lib/gl_array_oset.c: Likewise.
57865         * lib/gl_array_oset.h: Likewise.
57866         * lib/gl_avltree_list.c: Likewise.
57867         * lib/gl_avltree_list.h: Likewise.
57868         * lib/gl_avltree_oset.c: Likewise.
57869         * lib/gl_avltree_oset.h: Likewise.
57870         * lib/gl_avltreehash_list.c: Likewise.
57871         * lib/gl_avltreehash_list.h: Likewise.
57872         * lib/gl_carray_list.c: Likewise.
57873         * lib/gl_carray_list.h: Likewise.
57874         * lib/gl_linked_list.c: Likewise.
57875         * lib/gl_linked_list.h: Likewise.
57876         * lib/gl_linkedhash_list.c: Likewise.
57877         * lib/gl_linkedhash_list.h: Likewise.
57878         * lib/gl_list.c: Likewise.
57879         * lib/gl_list.h: Likewise.
57880         * lib/gl_oset.c: Likewise.
57881         * lib/gl_oset.h: Likewise.
57882         * lib/gl_rbtree_list.c: Likewise.
57883         * lib/gl_rbtree_list.h: Likewise.
57884         * lib/gl_rbtree_oset.c: Likewise.
57885         * lib/gl_rbtree_oset.h: Likewise.
57886         * lib/gl_rbtreehash_list.c: Likewise.
57887         * lib/gl_rbtreehash_list.h: Likewise.
57888         * lib/gl_sublist.c: Likewise.
57889         * lib/gl_sublist.h: Likewise.
57890         * lib/group-member.c: Likewise.
57891         * lib/group-member.h: Likewise.
57892         * lib/hard-locale.c: Likewise.
57893         * lib/hard-locale.h: Likewise.
57894         * lib/hash-pjw.c: Likewise.
57895         * lib/hash-pjw.h: Likewise.
57896         * lib/hash-triple.c: Likewise.
57897         * lib/hash.c: Likewise.
57898         * lib/hash.h: Likewise.
57899         * lib/human.c: Likewise.
57900         * lib/human.h: Likewise.
57901         * lib/i-ring.c: Likewise.
57902         * lib/i-ring.h: Likewise.
57903         * lib/idcache.c: Likewise.
57904         * lib/imaxabs.c: Likewise.
57905         * lib/imaxdiv.c: Likewise.
57906         * lib/inet_pton.c: Likewise.
57907         * lib/inet_pton.h: Likewise.
57908         * lib/intprops.h: Likewise.
57909         * lib/inttostr.c: Likewise.
57910         * lib/inttostr.h: Likewise.
57911         * lib/inttypes.in.h: Likewise.
57912         * lib/isapipe.c: Likewise.
57913         * lib/isdir.c: Likewise.
57914         * lib/isnan.c: Likewise.
57915         * lib/isnan.h: Likewise.
57916         * lib/isnanf.c: Likewise.
57917         * lib/isnanf.h: Likewise.
57918         * lib/isnanl-nolibm.h: Likewise.
57919         * lib/isnanl.c: Likewise.
57920         * lib/isnanl.h: Likewise.
57921         * lib/javacomp.c: Likewise.
57922         * lib/javacomp.h: Likewise.
57923         * lib/javaexec.c: Likewise.
57924         * lib/javaexec.h: Likewise.
57925         * lib/javaversion.c: Likewise.
57926         * lib/javaversion.h: Likewise.
57927         * lib/javaversion.java: Likewise.
57928         * lib/lbrkprop.h: Likewise.
57929         * lib/lchmod.h: Likewise.
57930         * lib/lchown.c: Likewise.
57931         * lib/ldexpl.c: Likewise.
57932         * lib/linebreak.c: Likewise.
57933         * lib/linebreak.h: Likewise.
57934         * lib/linebuffer.c: Likewise.
57935         * lib/linebuffer.h: Likewise.
57936         * lib/locale.in.h: Likewise.
57937         * lib/logl.c: Likewise.
57938         * lib/long-options.c: Likewise.
57939         * lib/long-options.h: Likewise.
57940         * lib/lstat.c: Likewise.
57941         * lib/lstat.h: Likewise.
57942         * lib/math.in.h: Likewise.
57943         * lib/mbchar.c: Likewise.
57944         * lib/mbchar.h: Likewise.
57945         * lib/mbfile.h: Likewise.
57946         * lib/mbiter.h: Likewise.
57947         * lib/mbscasecmp.c: Likewise.
57948         * lib/mbscasestr.c: Likewise.
57949         * lib/mbschr.c: Likewise.
57950         * lib/mbscspn.c: Likewise.
57951         * lib/mbslen.c: Likewise.
57952         * lib/mbsncasecmp.c: Likewise.
57953         * lib/mbsnlen.c: Likewise.
57954         * lib/mbspbrk.c: Likewise.
57955         * lib/mbspcasecmp.c: Likewise.
57956         * lib/mbsrchr.c: Likewise.
57957         * lib/mbssep.c: Likewise.
57958         * lib/mbsspn.c: Likewise.
57959         * lib/mbsstr.c: Likewise.
57960         * lib/mbstok_r.c: Likewise.
57961         * lib/mbswidth.c: Likewise.
57962         * lib/mbswidth.h: Likewise.
57963         * lib/mbuiter.h: Likewise.
57964         * lib/memcasecmp.c: Likewise.
57965         * lib/memcasecmp.h: Likewise.
57966         * lib/memchr.c: Likewise.
57967         * lib/memcmp.c: Likewise.
57968         * lib/memcoll.c: Likewise.
57969         * lib/memcoll.h: Likewise.
57970         * lib/memcpy.c: Likewise.
57971         * lib/memrchr.c: Likewise.
57972         * lib/mkancesdirs.c: Likewise.
57973         * lib/mkdir-p.c: Likewise.
57974         * lib/mkdir-p.h: Likewise.
57975         * lib/mkdir.c: Likewise.
57976         * lib/mkdirat.c: Likewise.
57977         * lib/mkdtemp.c: Likewise.
57978         * lib/mkstemp-safer.c: Likewise.
57979         * lib/mkstemp.c: Likewise.
57980         * lib/modechange.c: Likewise.
57981         * lib/modechange.h: Likewise.
57982         * lib/mountlist.c: Likewise.
57983         * lib/mountlist.h: Likewise.
57984         * lib/mpsort.c: Likewise.
57985         * lib/nanosleep.c: Likewise.
57986         * lib/obstack.c: Likewise.
57987         * lib/obstack.h: Likewise.
57988         * lib/open-safer.c: Likewise.
57989         * lib/open.c: Likewise.
57990         * lib/openat-die.c: Likewise.
57991         * lib/openat-priv.h: Likewise.
57992         * lib/openat-proc.c: Likewise.
57993         * lib/openat.c: Likewise.
57994         * lib/openat.h: Likewise.
57995         * lib/pagealign_alloc.c: Likewise.
57996         * lib/pagealign_alloc.h: Likewise.
57997         * lib/physmem.c: Likewise.
57998         * lib/physmem.h: Likewise.
57999         * lib/pipe-safer.c: Likewise.
58000         * lib/pipe.c: Likewise.
58001         * lib/pipe.h: Likewise.
58002         * lib/posixtm.c: Likewise.
58003         * lib/posixtm.h: Likewise.
58004         * lib/posixver.c: Likewise.
58005         * lib/printf-frexp.c: Likewise.
58006         * lib/printf-frexp.h: Likewise.
58007         * lib/printf-frexpl.c: Likewise.
58008         * lib/printf-frexpl.h: Likewise.
58009         * lib/printf.c: Likewise.
58010         * lib/progname.c: Likewise.
58011         * lib/progname.h: Likewise.
58012         * lib/progreloc.c: Likewise.
58013         * lib/putenv.c: Likewise.
58014         * lib/quote.c: Likewise.
58015         * lib/quote.h: Likewise.
58016         * lib/quotearg.c: Likewise.
58017         * lib/quotearg.h: Likewise.
58018         * lib/raise.c: Likewise.
58019         * lib/readline.c: Likewise.
58020         * lib/readline.h: Likewise.
58021         * lib/readlink.c: Likewise.
58022         * lib/readtokens.c: Likewise.
58023         * lib/readtokens.h: Likewise.
58024         * lib/readtokens0.c: Likewise.
58025         * lib/readtokens0.h: Likewise.
58026         * lib/readutmp.c: Likewise.
58027         * lib/readutmp.h: Likewise.
58028         * lib/realloc.c: Likewise.
58029         * lib/relocwrapper.c: Likewise.
58030         * lib/rename-dest-slash.c: Likewise.
58031         * lib/rename.c: Likewise.
58032         * lib/rmdir.c: Likewise.
58033         * lib/rpmatch.c: Likewise.
58034         * lib/safe-read.c: Likewise.
58035         * lib/safe-read.h: Likewise.
58036         * lib/safe-write.c: Likewise.
58037         * lib/safe-write.h: Likewise.
58038         * lib/same-inode.h: Likewise.
58039         * lib/same.c: Likewise.
58040         * lib/same.h: Likewise.
58041         * lib/save-cwd.c: Likewise.
58042         * lib/save-cwd.h: Likewise.
58043         * lib/savedir.c: Likewise.
58044         * lib/savedir.h: Likewise.
58045         * lib/savewd.c: Likewise.
58046         * lib/savewd.h: Likewise.
58047         * lib/search.in.h: Likewise.
58048         * lib/setenv.c: Likewise.
58049         * lib/setenv.h: Likewise.
58050         * lib/settime.c: Likewise.
58051         * lib/sh-quote.c: Likewise.
58052         * lib/sh-quote.h: Likewise.
58053         * lib/sig2str.c: Likewise.
58054         * lib/sig2str.h: Likewise.
58055         * lib/signal.in.h: Likewise.
58056         * lib/signbitd.c: Likewise.
58057         * lib/signbitf.c: Likewise.
58058         * lib/signbitl.c: Likewise.
58059         * lib/sigprocmask.c: Likewise.
58060         * lib/sincosl.c: Likewise.
58061         * lib/sleep.c: Likewise.
58062         * lib/sprintf.c: Likewise.
58063         * lib/sqrtl.c: Likewise.
58064         * lib/stat-time.h: Likewise.
58065         * lib/stdio--.h: Likewise.
58066         * lib/stdio-safer.h: Likewise.
58067         * lib/stdlib--.h: Likewise.
58068         * lib/stdlib-safer.h: Likewise.
58069         * lib/stdlib.in.h: Likewise.
58070         * lib/stpcpy.c: Likewise.
58071         * lib/stpncpy.c: Likewise.
58072         * lib/strchrnul.c: Likewise.
58073         * lib/strcspn.c: Likewise.
58074         * lib/strerror.c: Likewise.
58075         * lib/strftime.c: Likewise.
58076         * lib/strftime.h: Likewise.
58077         * lib/striconveh.c: Likewise.
58078         * lib/striconveh.h: Likewise.
58079         * lib/striconveha.c: Likewise.
58080         * lib/striconveha.h: Likewise.
58081         * lib/stripslash.c: Likewise.
58082         * lib/strnlen1.c: Likewise.
58083         * lib/strnlen1.h: Likewise.
58084         * lib/strtod.c: Likewise.
58085         * lib/strtoimax.c: Likewise.
58086         * lib/strtok_r.c: Likewise.
58087         * lib/strtol.c: Likewise.
58088         * lib/strtoll.c: Likewise.
58089         * lib/strtoul.c: Likewise.
58090         * lib/strtoull.c: Likewise.
58091         * lib/sysexits.in.h: Likewise.
58092         * lib/tempname.c: Likewise.
58093         * lib/tempname.h: Likewise.
58094         * lib/timespec.h: Likewise.
58095         * lib/tls.c: Likewise.
58096         * lib/tls.h: Likewise.
58097         * lib/tmpdir.c: Likewise.
58098         * lib/tmpdir.h: Likewise.
58099         * lib/tmpfile-safer.c: Likewise.
58100         * lib/tmpfile.c: Likewise.
58101         * lib/trigl.c: Likewise.
58102         * lib/trigl.h: Likewise.
58103         * lib/trim.c: Likewise.
58104         * lib/trim.h: Likewise.
58105         * lib/trunc.c: Likewise.
58106         * lib/truncf.c: Likewise.
58107         * lib/truncl.c: Likewise.
58108         * lib/tsearch.c: Likewise.
58109         * lib/unicodeio.c: Likewise.
58110         * lib/unicodeio.h: Likewise.
58111         * lib/unistd--.h: Likewise.
58112         * lib/unistd-safer.h: Likewise.
58113         * lib/unistdio/ulc-fprintf.c: Likewise.
58114         * lib/unistdio/ulc-vfprintf.c: Likewise.
58115         * lib/unlinkdir.c: Likewise.
58116         * lib/unlinkdir.h: Likewise.
58117         * lib/unlocked-io.h: Likewise.
58118         * lib/unsetenv.c: Likewise.
58119         * lib/userspec.c: Likewise.
58120         * lib/utime.c: Likewise.
58121         * lib/utimecmp.c: Likewise.
58122         * lib/utimecmp.h: Likewise.
58123         * lib/utimens.c: Likewise.
58124         * lib/verify.h: Likewise.
58125         * lib/verror.c: Likewise.
58126         * lib/verror.h: Likewise.
58127         * lib/version-etc-fsf.c: Likewise.
58128         * lib/version-etc.c: Likewise.
58129         * lib/version-etc.h: Likewise.
58130         * lib/vfprintf.c: Likewise.
58131         * lib/vprintf.c: Likewise.
58132         * lib/vsprintf.c: Likewise.
58133         * lib/w32spawn.h: Likewise.
58134         * lib/wait-process.c: Likewise.
58135         * lib/wait-process.h: Likewise.
58136         * lib/wcwidth.c: Likewise.
58137         * lib/write-any-file.c: Likewise.
58138         * lib/xalloc-die.c: Likewise.
58139         * lib/xalloc.h: Likewise.
58140         * lib/xasprintf.c: Likewise.
58141         * lib/xgetcwd.c: Likewise.
58142         * lib/xgetcwd.h: Likewise.
58143         * lib/xgetdomainname.c: Likewise.
58144         * lib/xgetdomainname.h: Likewise.
58145         * lib/xgethostname.c: Likewise.
58146         * lib/xmalloc.c: Likewise.
58147         * lib/xmalloca.c: Likewise.
58148         * lib/xmalloca.h: Likewise.
58149         * lib/xmemcoll.c: Likewise.
58150         * lib/xnanosleep.c: Likewise.
58151         * lib/xreadlink.c: Likewise.
58152         * lib/xreadlink.h: Likewise.
58153         * lib/xsetenv.c: Likewise.
58154         * lib/xsetenv.h: Likewise.
58155         * lib/xstriconv.c: Likewise.
58156         * lib/xstriconv.h: Likewise.
58157         * lib/xstrndup.c: Likewise.
58158         * lib/xstrndup.h: Likewise.
58159         * lib/xstrtod.c: Likewise.
58160         * lib/xstrtod.h: Likewise.
58161         * lib/xstrtol-error.c: Likewise.
58162         * lib/xstrtol.c: Likewise.
58163         * lib/xstrtol.h: Likewise.
58164         * lib/xtime.h: Likewise.
58165         * lib/xvasprintf.c: Likewise.
58166         * lib/xvasprintf.h: Likewise.
58167         * lib/yesno.c: Likewise.
58168         * lib/yesno.h: Likewise.
58169         * posix-modules: Likewise.
58170         * tests/test-alloca-opt.c: Likewise.
58171         * tests/test-arcfour.c: Likewise.
58172         * tests/test-arctwo.c: Likewise.
58173         * tests/test-argmatch.c: Likewise.
58174         * tests/test-argp-2.sh: Likewise.
58175         * tests/test-argp.c: Likewise.
58176         * tests/test-arpa_inet.c: Likewise.
58177         * tests/test-array_list.c: Likewise.
58178         * tests/test-array_oset.c: Likewise.
58179         * tests/test-atexit.c: Likewise.
58180         * tests/test-avltree_list.c: Likewise.
58181         * tests/test-avltree_oset.c: Likewise.
58182         * tests/test-avltreehash_list.c: Likewise.
58183         * tests/test-base64.c: Likewise.
58184         * tests/test-binary-io.c: Likewise.
58185         * tests/test-byteswap.c: Likewise.
58186         * tests/test-c-ctype.c: Likewise.
58187         * tests/test-c-strcasecmp.c: Likewise.
58188         * tests/test-c-strcasestr.c: Likewise.
58189         * tests/test-c-strncasecmp.c: Likewise.
58190         * tests/test-c-strstr.c: Likewise.
58191         * tests/test-canonicalize-lgpl.c: Likewise.
58192         * tests/test-canonicalize.c: Likewise.
58193         * tests/test-carray_list.c: Likewise.
58194         * tests/test-ceilf.c: Likewise.
58195         * tests/test-ceill.c: Likewise.
58196         * tests/test-count-one-bits.c: Likewise.
58197         * tests/test-crc.c: Likewise.
58198         * tests/test-dirname.c: Likewise.
58199         * tests/test-fbufmode.c: Likewise.
58200         * tests/test-fcntl.c: Likewise.
58201         * tests/test-fflush.c: Likewise.
58202         * tests/test-floorf.c: Likewise.
58203         * tests/test-floorl.c: Likewise.
58204         * tests/test-fopen.c: Likewise.
58205         * tests/test-fprintf-posix.c: Likewise.
58206         * tests/test-fprintf-posix.h: Likewise.
58207         * tests/test-fpurge.c: Likewise.
58208         * tests/test-freadable.c: Likewise.
58209         * tests/test-freadahead.c: Likewise.
58210         * tests/test-freading.c: Likewise.
58211         * tests/test-freopen.c: Likewise.
58212         * tests/test-frexp.c: Likewise.
58213         * tests/test-frexpl.c: Likewise.
58214         * tests/test-fseek.c: Likewise.
58215         * tests/test-fseeko.c: Likewise.
58216         * tests/test-fseterr.c: Likewise.
58217         * tests/test-fstrcmp.c: Likewise.
58218         * tests/test-ftell.c: Likewise.
58219         * tests/test-ftello.c: Likewise.
58220         * tests/test-fwritable.c: Likewise.
58221         * tests/test-fwriting.c: Likewise.
58222         * tests/test-getaddrinfo.c: Likewise.
58223         * tests/test-getpass.c: Likewise.
58224         * tests/test-gettimeofday.c: Likewise.
58225         * tests/test-hmac-md5.c: Likewise.
58226         * tests/test-hmac-sha1.c: Likewise.
58227         * tests/test-iconv.c: Likewise.
58228         * tests/test-iconvme.c: Likewise.
58229         * tests/test-inttypes.c: Likewise.
58230         * tests/test-isnan.c: Likewise.
58231         * tests/test-isnanf.c: Likewise.
58232         * tests/test-isnanl-nolibm.c: Likewise.
58233         * tests/test-isnanl.c: Likewise.
58234         * tests/test-isnanl.h: Likewise.
58235         * tests/test-ldexpl.c: Likewise.
58236         * tests/test-linked_list.c: Likewise.
58237         * tests/test-linkedhash_list.c: Likewise.
58238         * tests/test-locale.c: Likewise.
58239         * tests/test-localename.c: Likewise.
58240         * tests/test-lock.c: Likewise.
58241         * tests/test-lseek.c: Likewise.
58242         * tests/test-malloca.c: Likewise.
58243         * tests/test-math.c: Likewise.
58244         * tests/test-mbscasecmp.c: Likewise.
58245         * tests/test-mbscasestr1.c: Likewise.
58246         * tests/test-mbscasestr2.c: Likewise.
58247         * tests/test-mbscasestr3.c: Likewise.
58248         * tests/test-mbscasestr4.c: Likewise.
58249         * tests/test-mbschr.c: Likewise.
58250         * tests/test-mbscspn.c: Likewise.
58251         * tests/test-mbsncasecmp.c: Likewise.
58252         * tests/test-mbspbrk.c: Likewise.
58253         * tests/test-mbspcasecmp.c: Likewise.
58254         * tests/test-mbsrchr.c: Likewise.
58255         * tests/test-mbsspn.c: Likewise.
58256         * tests/test-mbsstr1.c: Likewise.
58257         * tests/test-mbsstr2.c: Likewise.
58258         * tests/test-mbsstr3.c: Likewise.
58259         * tests/test-md5.c: Likewise.
58260         * tests/test-memmem.c: Likewise.
58261         * tests/test-netinet_in.c: Likewise.
58262         * tests/test-open.c: Likewise.
58263         * tests/test-printf-frexp.c: Likewise.
58264         * tests/test-printf-frexpl.c: Likewise.
58265         * tests/test-printf-posix.c: Likewise.
58266         * tests/test-printf-posix.h: Likewise.
58267         * tests/test-rbtree_list.c: Likewise.
58268         * tests/test-rbtree_oset.c: Likewise.
58269         * tests/test-rbtreehash_list.c: Likewise.
58270         * tests/test-read-file.c: Likewise.
58271         * tests/test-rijndael.c: Likewise.
58272         * tests/test-search.c: Likewise.
58273         * tests/test-signbit.c: Likewise.
58274         * tests/test-sleep.c: Likewise.
58275         * tests/test-snprintf-posix.c: Likewise.
58276         * tests/test-snprintf-posix.h: Likewise.
58277         * tests/test-snprintf.c: Likewise.
58278         * tests/test-sprintf-posix.c: Likewise.
58279         * tests/test-sprintf-posix.h: Likewise.
58280         * tests/test-stat-time.c: Likewise.
58281         * tests/test-stdbool.c: Likewise.
58282         * tests/test-stdint.c: Likewise.
58283         * tests/test-stdio.c: Likewise.
58284         * tests/test-stdlib.c: Likewise.
58285         * tests/test-stpncpy.c: Likewise.
58286         * tests/test-strcasestr.c: Likewise.
58287         * tests/test-striconv.c: Likewise.
58288         * tests/test-striconveh.c: Likewise.
58289         * tests/test-striconveha.c: Likewise.
58290         * tests/test-string.c: Likewise.
58291         * tests/test-sys_select.c: Likewise.
58292         * tests/test-sys_socket.c: Likewise.
58293         * tests/test-sys_stat.c: Likewise.
58294         * tests/test-sys_time.c: Likewise.
58295         * tests/test-sysexits.c: Likewise.
58296         * tests/test-time.c: Likewise.
58297         * tests/test-tls.c: Likewise.
58298         * tests/test-trunc.c: Likewise.
58299         * tests/test-truncf.c: Likewise.
58300         * tests/test-truncl.c: Likewise.
58301         * tests/test-unistd.c: Likewise.
58302         * tests/test-vasnprintf-posix.c: Likewise.
58303         * tests/test-vasnprintf-posix2.c: Likewise.
58304         * tests/test-vasnprintf.c: Likewise.
58305         * tests/test-vasprintf-posix.c: Likewise.
58306         * tests/test-vasprintf.c: Likewise.
58307         * tests/test-verify.c: Likewise.
58308         * tests/test-vfprintf-posix.c: Likewise.
58309         * tests/test-vprintf-posix.c: Likewise.
58310         * tests/test-vsnprintf-posix.c: Likewise.
58311         * tests/test-vsnprintf.c: Likewise.
58312         * tests/test-vsprintf-posix.c: Likewise.
58313         * tests/test-wchar.c: Likewise.
58314         * tests/test-wctype.c: Likewise.
58315         * tests/test-wcwidth.c: Likewise.
58316         * tests/test-xstrtol.c: Likewise.
58317         * tests/test-xvasprintf.c: Likewise.
58318         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58319         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58320         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58321         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58322         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58323         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58324         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58325         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58326         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58327         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58328         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58329         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58330         * tests/uniname/test-uninames.c: Likewise.
58331         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58332         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58333         * tests/unistdio/test-u16-printf1.h: Likewise.
58334         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58335         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58336         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58337         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58338         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58339         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58340         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58341         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58342         * tests/unistdio/test-u32-printf1.h: Likewise.
58343         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58344         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58345         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58346         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58347         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58348         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58349         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58350         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58351         * tests/unistdio/test-u8-printf1.h: Likewise.
58352         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58353         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58354         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58355         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58356         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58357         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58358         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58359         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58360         * tests/unistdio/test-ulc-printf1.h: Likewise.
58361         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58362         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58363         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58364         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58365         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58366         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58367         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58368         * tests/uniwidth/test-u16-width.c: Likewise.
58369         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58370         * tests/uniwidth/test-u32-width.c: Likewise.
58371         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58372         * tests/uniwidth/test-u8-width.c: Likewise.
58373         * tests/uniwidth/test-uc_width.c: Likewise.
58374         * config/srclist-update: Likewise.
58375         (fixlicense): Update to GPLv3+.
58376
58377         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58378         * tests/test-tsearch.c: Change copyright notice.
58379
58380         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58381         * lib/c-strcaseeq.h: Change copyright notice.
58382         * lib/streq.h: Likewise.
58383         * lib/uniconv.h: Likewise.
58384         * lib/uniconv/u-conv-from-enc.h: Likewise.
58385         * lib/uniconv/u-conv-to-enc.h: Likewise.
58386         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58387         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58388         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58389         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58390         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58391         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58392         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58393         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58394         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58395         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58396         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58397         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58398         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58399         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58400         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58401         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58402         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58403         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58404         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58405         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58406         * lib/uniname.h: Likewise.
58407         * lib/uniname/uniname.c: Likewise.
58408         * lib/unistdio.h: Likewise.
58409         * lib/unistdio/u-asnprintf.h: Likewise.
58410         * lib/unistdio/u-asprintf.h: Likewise.
58411         * lib/unistdio/u-printf-args.c: Likewise.
58412         * lib/unistdio/u-printf-args.h: Likewise.
58413         * lib/unistdio/u-printf-parse.h: Likewise.
58414         * lib/unistdio/u-snprintf.h: Likewise.
58415         * lib/unistdio/u-sprintf.h: Likewise.
58416         * lib/unistdio/u-vasprintf.h: Likewise.
58417         * lib/unistdio/u-vsnprintf.h: Likewise.
58418         * lib/unistdio/u-vsprintf.h: Likewise.
58419         * lib/unistdio/u16-asnprintf.c: Likewise.
58420         * lib/unistdio/u16-asprintf.c: Likewise.
58421         * lib/unistdio/u16-printf-parse.c: Likewise.
58422         * lib/unistdio/u16-snprintf.c: Likewise.
58423         * lib/unistdio/u16-sprintf.c: Likewise.
58424         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58425         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58426         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58427         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58428         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58429         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58430         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58431         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58432         * lib/unistdio/u16-vasnprintf.c: Likewise.
58433         * lib/unistdio/u16-vasprintf.c: Likewise.
58434         * lib/unistdio/u16-vsnprintf.c: Likewise.
58435         * lib/unistdio/u16-vsprintf.c: Likewise.
58436         * lib/unistdio/u32-asnprintf.c: Likewise.
58437         * lib/unistdio/u32-asprintf.c: Likewise.
58438         * lib/unistdio/u32-printf-parse.c: Likewise.
58439         * lib/unistdio/u32-snprintf.c: Likewise.
58440         * lib/unistdio/u32-sprintf.c: Likewise.
58441         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58442         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58443         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58444         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58445         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58446         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58447         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58448         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58449         * lib/unistdio/u32-vasnprintf.c: Likewise.
58450         * lib/unistdio/u32-vasprintf.c: Likewise.
58451         * lib/unistdio/u32-vsnprintf.c: Likewise.
58452         * lib/unistdio/u32-vsprintf.c: Likewise.
58453         * lib/unistdio/u8-asnprintf.c: Likewise.
58454         * lib/unistdio/u8-asprintf.c: Likewise.
58455         * lib/unistdio/u8-printf-parse.c: Likewise.
58456         * lib/unistdio/u8-snprintf.c: Likewise.
58457         * lib/unistdio/u8-sprintf.c: Likewise.
58458         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58459         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58460         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58461         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58462         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58463         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58464         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58465         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58466         * lib/unistdio/u8-vasnprintf.c: Likewise.
58467         * lib/unistdio/u8-vasprintf.c: Likewise.
58468         * lib/unistdio/u8-vsnprintf.c: Likewise.
58469         * lib/unistdio/u8-vsprintf.c: Likewise.
58470         * lib/unistdio/ulc-asnprintf.c: Likewise.
58471         * lib/unistdio/ulc-asprintf.c: Likewise.
58472         * lib/unistdio/ulc-printf-parse.c: Likewise.
58473         * lib/unistdio/ulc-snprintf.c: Likewise.
58474         * lib/unistdio/ulc-sprintf.c: Likewise.
58475         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58476         * lib/unistdio/ulc-vasprintf.c: Likewise.
58477         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58478         * lib/unistdio/ulc-vsprintf.c: Likewise.
58479         * lib/unistr.h: Likewise.
58480         * lib/unistr/u-cpy-alloc.h: Likewise.
58481         * lib/unistr/u-cpy.h: Likewise.
58482         * lib/unistr/u-endswith.h: Likewise.
58483         * lib/unistr/u-move.h: Likewise.
58484         * lib/unistr/u-set.h: Likewise.
58485         * lib/unistr/u-startswith.h: Likewise.
58486         * lib/unistr/u-stpcpy.h: Likewise.
58487         * lib/unistr/u-stpncpy.h: Likewise.
58488         * lib/unistr/u-strcat.h: Likewise.
58489         * lib/unistr/u-strcpy.h: Likewise.
58490         * lib/unistr/u-strcspn.h: Likewise.
58491         * lib/unistr/u-strdup.h: Likewise.
58492         * lib/unistr/u-strlen.h: Likewise.
58493         * lib/unistr/u-strncat.h: Likewise.
58494         * lib/unistr/u-strncpy.h: Likewise.
58495         * lib/unistr/u-strnlen.h: Likewise.
58496         * lib/unistr/u-strpbrk.h: Likewise.
58497         * lib/unistr/u-strspn.h: Likewise.
58498         * lib/unistr/u-strstr.h: Likewise.
58499         * lib/unistr/u-strtok.h: Likewise.
58500         * lib/unistr/u16-check.c: Likewise.
58501         * lib/unistr/u16-chr.c: Likewise.
58502         * lib/unistr/u16-cmp.c: Likewise.
58503         * lib/unistr/u16-cpy-alloc.c: Likewise.
58504         * lib/unistr/u16-cpy.c: Likewise.
58505         * lib/unistr/u16-endswith.c: Likewise.
58506         * lib/unistr/u16-mblen.c: Likewise.
58507         * lib/unistr/u16-mbsnlen.c: Likewise.
58508         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58509         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58510         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58511         * lib/unistr/u16-mbtouc.c: Likewise.
58512         * lib/unistr/u16-mbtoucr.c: Likewise.
58513         * lib/unistr/u16-move.c: Likewise.
58514         * lib/unistr/u16-next.c: Likewise.
58515         * lib/unistr/u16-prev.c: Likewise.
58516         * lib/unistr/u16-set.c: Likewise.
58517         * lib/unistr/u16-startswith.c: Likewise.
58518         * lib/unistr/u16-stpcpy.c: Likewise.
58519         * lib/unistr/u16-stpncpy.c: Likewise.
58520         * lib/unistr/u16-strcat.c: Likewise.
58521         * lib/unistr/u16-strchr.c: Likewise.
58522         * lib/unistr/u16-strcmp.c: Likewise.
58523         * lib/unistr/u16-strcpy.c: Likewise.
58524         * lib/unistr/u16-strcspn.c: Likewise.
58525         * lib/unistr/u16-strdup.c: Likewise.
58526         * lib/unistr/u16-strlen.c: Likewise.
58527         * lib/unistr/u16-strmblen.c: Likewise.
58528         * lib/unistr/u16-strmbtouc.c: Likewise.
58529         * lib/unistr/u16-strncat.c: Likewise.
58530         * lib/unistr/u16-strncmp.c: Likewise.
58531         * lib/unistr/u16-strncpy.c: Likewise.
58532         * lib/unistr/u16-strnlen.c: Likewise.
58533         * lib/unistr/u16-strpbrk.c: Likewise.
58534         * lib/unistr/u16-strrchr.c: Likewise.
58535         * lib/unistr/u16-strspn.c: Likewise.
58536         * lib/unistr/u16-strstr.c: Likewise.
58537         * lib/unistr/u16-strtok.c: Likewise.
58538         * lib/unistr/u16-to-u32.c: Likewise.
58539         * lib/unistr/u16-to-u8.c: Likewise.
58540         * lib/unistr/u16-uctomb-aux.c: Likewise.
58541         * lib/unistr/u16-uctomb.c: Likewise.
58542         * lib/unistr/u32-check.c: Likewise.
58543         * lib/unistr/u32-chr.c: Likewise.
58544         * lib/unistr/u32-cmp.c: Likewise.
58545         * lib/unistr/u32-cpy-alloc.c: Likewise.
58546         * lib/unistr/u32-cpy.c: Likewise.
58547         * lib/unistr/u32-endswith.c: Likewise.
58548         * lib/unistr/u32-mblen.c: Likewise.
58549         * lib/unistr/u32-mbsnlen.c: Likewise.
58550         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58551         * lib/unistr/u32-mbtouc.c: Likewise.
58552         * lib/unistr/u32-mbtoucr.c: Likewise.
58553         * lib/unistr/u32-move.c: Likewise.
58554         * lib/unistr/u32-next.c: Likewise.
58555         * lib/unistr/u32-prev.c: Likewise.
58556         * lib/unistr/u32-set.c: Likewise.
58557         * lib/unistr/u32-startswith.c: Likewise.
58558         * lib/unistr/u32-stpcpy.c: Likewise.
58559         * lib/unistr/u32-stpncpy.c: Likewise.
58560         * lib/unistr/u32-strcat.c: Likewise.
58561         * lib/unistr/u32-strchr.c: Likewise.
58562         * lib/unistr/u32-strcmp.c: Likewise.
58563         * lib/unistr/u32-strcpy.c: Likewise.
58564         * lib/unistr/u32-strcspn.c: Likewise.
58565         * lib/unistr/u32-strdup.c: Likewise.
58566         * lib/unistr/u32-strlen.c: Likewise.
58567         * lib/unistr/u32-strmblen.c: Likewise.
58568         * lib/unistr/u32-strmbtouc.c: Likewise.
58569         * lib/unistr/u32-strncat.c: Likewise.
58570         * lib/unistr/u32-strncmp.c: Likewise.
58571         * lib/unistr/u32-strncpy.c: Likewise.
58572         * lib/unistr/u32-strnlen.c: Likewise.
58573         * lib/unistr/u32-strpbrk.c: Likewise.
58574         * lib/unistr/u32-strrchr.c: Likewise.
58575         * lib/unistr/u32-strspn.c: Likewise.
58576         * lib/unistr/u32-strstr.c: Likewise.
58577         * lib/unistr/u32-strtok.c: Likewise.
58578         * lib/unistr/u32-to-u16.c: Likewise.
58579         * lib/unistr/u32-to-u8.c: Likewise.
58580         * lib/unistr/u32-uctomb.c: Likewise.
58581         * lib/unistr/u8-check.c: Likewise.
58582         * lib/unistr/u8-chr.c: Likewise.
58583         * lib/unistr/u8-cmp.c: Likewise.
58584         * lib/unistr/u8-cpy-alloc.c: Likewise.
58585         * lib/unistr/u8-cpy.c: Likewise.
58586         * lib/unistr/u8-endswith.c: Likewise.
58587         * lib/unistr/u8-mblen.c: Likewise.
58588         * lib/unistr/u8-mbsnlen.c: Likewise.
58589         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58590         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58591         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58592         * lib/unistr/u8-mbtouc.c: Likewise.
58593         * lib/unistr/u8-mbtoucr.c: Likewise.
58594         * lib/unistr/u8-move.c: Likewise.
58595         * lib/unistr/u8-next.c: Likewise.
58596         * lib/unistr/u8-prev.c: Likewise.
58597         * lib/unistr/u8-set.c: Likewise.
58598         * lib/unistr/u8-startswith.c: Likewise.
58599         * lib/unistr/u8-stpcpy.c: Likewise.
58600         * lib/unistr/u8-stpncpy.c: Likewise.
58601         * lib/unistr/u8-strcat.c: Likewise.
58602         * lib/unistr/u8-strchr.c: Likewise.
58603         * lib/unistr/u8-strcmp.c: Likewise.
58604         * lib/unistr/u8-strcpy.c: Likewise.
58605         * lib/unistr/u8-strcspn.c: Likewise.
58606         * lib/unistr/u8-strdup.c: Likewise.
58607         * lib/unistr/u8-strlen.c: Likewise.
58608         * lib/unistr/u8-strmblen.c: Likewise.
58609         * lib/unistr/u8-strmbtouc.c: Likewise.
58610         * lib/unistr/u8-strncat.c: Likewise.
58611         * lib/unistr/u8-strncmp.c: Likewise.
58612         * lib/unistr/u8-strncpy.c: Likewise.
58613         * lib/unistr/u8-strnlen.c: Likewise.
58614         * lib/unistr/u8-strpbrk.c: Likewise.
58615         * lib/unistr/u8-strrchr.c: Likewise.
58616         * lib/unistr/u8-strspn.c: Likewise.
58617         * lib/unistr/u8-strstr.c: Likewise.
58618         * lib/unistr/u8-strtok.c: Likewise.
58619         * lib/unistr/u8-to-u16.c: Likewise.
58620         * lib/unistr/u8-to-u32.c: Likewise.
58621         * lib/unistr/u8-uctomb-aux.c: Likewise.
58622         * lib/unistr/u8-uctomb.c: Likewise.
58623         * lib/unitypes.h: Likewise.
58624         * lib/uniwidth.h: Likewise.
58625         * lib/uniwidth/cjk.h: Likewise.
58626         * lib/uniwidth/u16-strwidth.c: Likewise.
58627         * lib/uniwidth/u16-width.c: Likewise.
58628         * lib/uniwidth/u32-strwidth.c: Likewise.
58629         * lib/uniwidth/u32-width.c: Likewise.
58630         * lib/uniwidth/u8-strwidth.c: Likewise.
58631         * lib/uniwidth/u8-width.c: Likewise.
58632         * lib/uniwidth/width.c: Likewise.
58633
58634 2007-10-07  Bruno Haible  <bruno@clisp.org>
58635
58636         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58637         The file is still under LGPL (see modules/inttypes).
58638
58639 2007-10-06  Bruno Haible  <bruno@clisp.org>
58640
58641         * modules/trunc (Dependencies): Add 'extensions'.
58642         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58643         Reported by Ben Pfaff <blp@gnu.org>.
58644
58645 2007-10-06  Bruno Haible  <bruno@clisp.org>
58646
58647         * modules/freopen-tests: New file.
58648         * tests/test-freopen.c: New file.
58649
58650         * modules/fopen-tests: New file.
58651         * tests/test-fopen.c: New file.
58652
58653         * modules/fopen: New file.
58654         * lib/fopen.c: New file.
58655         * m4/fopen.m4: New file.
58656         * modules/freopen: New file.
58657         * lib/freopen.c: New file.
58658         * m4/freopen.m4: New file.
58659         * lib/stdio.in.h (fopen, freopen): New declarations.
58660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58661         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58662         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58663         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58664         * doc/functions/fopen.texi: Mention the 'fopen' module.
58665         * doc/functions/freopen.texi: Mention the 'freopen' module.
58666
58667 2007-10-06  Bruno Haible  <bruno@clisp.org>
58668
58669         * modules/open-tests: New file.
58670         * tests/test-open.c: New file.
58671
58672         * modules/open: New file.
58673         * lib/open.c: New file.
58674         * m4/open.m4: New file.
58675         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58676         lib/open.c does.
58677         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58678         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58679         macros.
58680         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58681         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58682         REPLACE_OPEN.
58683         * doc/functions/open.texi: Mention the 'open' module.
58684
58685 2007-10-04  Bruno Haible  <bruno@clisp.org>
58686
58687         * modules/ceill-tests: New file.
58688         * tests/test-ceill.c: New file.
58689
58690         * modules/ceill: New file.
58691         * lib/ceill.c: Replace entire file.
58692         * m4/ceill.m4: New file.
58693         * lib/math.in.h (ceill): Replace declaration.
58694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58695         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58696         * doc/functions/ceill.texi: Mention the 'ceill' module.
58697         * modules/mathl (Files): Remove lib/ceill.c.
58698         (Depends-on): Add ceill.
58699
58700 2007-10-04  Bruno Haible  <bruno@clisp.org>
58701
58702         * modules/ceilf-tests: New file.
58703         * tests/test-ceilf.c: New file.
58704
58705         * modules/ceilf: New file.
58706         * lib/ceil.c: New file.
58707         * lib/ceilf.c: New file.
58708         * m4/ceilf.m4: New file.
58709         * lib/math.in.h (ceilf): New declaration.
58710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
58711         HAVE_DECL_CEILF.
58712         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
58713         HAVE_DECL_CEILF.
58714         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
58715
58716 2007-10-04  Bruno Haible  <bruno@clisp.org>
58717
58718         * modules/floorl-tests: New file.
58719         * tests/test-floorl.c: New file.
58720
58721         * modules/floorl: New file.
58722         * lib/floorl.c: Replace entire file.
58723         * m4/floorl.m4: New file.
58724         * lib/math.in.h (floorl): Replace declaration.
58725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
58726         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
58727         * doc/functions/floorl.texi: Mention the 'floorl' module.
58728         * modules/mathl (Files): Remove lib/floorl.c.
58729         (Depends-on): Add floorl.
58730
58731 2007-10-04  Bruno Haible  <bruno@clisp.org>
58732
58733         * modules/floorf-tests: New file.
58734         * tests/test-floorf.c: New file.
58735
58736         * modules/floorf: New file.
58737         * lib/floor.c: New file.
58738         * lib/floorf.c: New file.
58739         * m4/floorf.m4: New file.
58740         * lib/math.in.h (floorf): New declaration.
58741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
58742         HAVE_DECL_FLOORF.
58743         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
58744         HAVE_DECL_FLOORF.
58745         * doc/functions/floorf.texi: Mention the 'floorf' module.
58746
58747 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
58748             Bruno Haible  <bruno@clisp.org>
58749
58750         Advertise for the Git server instead of the CVS server.
58751         * doc/gnulib-intro.texi (Steady Development): Mention the Git
58752         repository instead of the CVS one.
58753         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58754         about all VCS systems generically.
58755         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58756
58757 2007-10-04  Bruno Haible  <bruno@clisp.org>
58758
58759         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58760         means.
58761         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
58762
58763 2007-10-04  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/truncl-tests: New file.
58766         * tests/test-truncl.c: New file.
58767
58768         * modules/truncl: New file.
58769         * lib/truncl.c: New file.
58770         * m4/truncl.m4: New file.
58771         * lib/math.in.h (truncl): New declaration.
58772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
58773         HAVE_DECL_TRUNCL.
58774         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
58775         HAVE_DECL_TRUNCL.
58776         * doc/functions/truncl.texi: Mention the 'truncl' module.
58777
58778 2007-10-04  Bruno Haible  <bruno@clisp.org>
58779
58780         * modules/truncf-tests: New file.
58781         * tests/test-truncf.c: New file.
58782
58783         * modules/truncf: New file.
58784         * lib/trunc.c: Make paramerizable through USE_* macros.
58785         * lib/truncf.c: New file.
58786         * m4/truncf.m4: New file.
58787         * lib/math.in.h (truncf): New declaration.
58788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58789         HAVE_DECL_TRUNCF.
58790         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58791         HAVE_DECL_TRUNCF.
58792         * doc/functions/truncf.texi: Mention the 'truncf' module.
58793
58794 2007-10-03  Bruno Haible  <bruno@clisp.org>
58795
58796         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58797         augmentation also for tests modules.
58798         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58799         * modules/atexit-tests (Makefile.am): Likewise.
58800         * modules/binary-io-tests (Makefile.am): Likewise.
58801         * modules/c-strcase-tests (Makefile.am): Likewise.
58802         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58803         * modules/canonicalize-tests (Makefile.am): Likewise.
58804         * modules/closein-tests (Makefile.am): Likewise.
58805         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58806         * modules/freadahead-tests (Makefile.am): Likewise.
58807         * modules/fseek-tests (Makefile.am): Likewise.
58808         * modules/fseeko-tests (Makefile.am): Likewise.
58809         * modules/ftell-tests (Makefile.am): Likewise.
58810         * modules/ftello-tests (Makefile.am): Likewise.
58811         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58812         * modules/isnanl-tests (Makefile.am): Likewise.
58813         * modules/lseek-tests (Makefile.am): Likewise.
58814         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58815         * modules/mbscasestr-tests (Makefile.am): Likewise.
58816         * modules/mbschr-tests (Makefile.am): Likewise.
58817         * modules/mbscspn-tests (Makefile.am): Likewise.
58818         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58819         * modules/mbspbrk-tests (Makefile.am): Likewise.
58820         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58821         * modules/mbsrchr-tests (Makefile.am): Likewise.
58822         * modules/mbsspn-tests (Makefile.am): Likewise.
58823         * modules/mbsstr-tests (Makefile.am): Likewise.
58824         * modules/printf-posix-tests (Makefile.am): Likewise.
58825         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58826         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58827         * modules/tsearch-tests (Makefile.am): Likewise.
58828         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58829         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58830         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58831         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58832         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58833         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58834         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58835         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58836         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58837         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58838         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58839         * modules/xstrtol-tests (Makefile.am): Likewise.
58840         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58841         * modules/yesno-tests (Makefile.am): Likewise.
58842
58843 2007-10-03  Bruno Haible  <bruno@clisp.org>
58844
58845         * modules/trunc-tests: New file.
58846         * tests/test-trunc.c: New file.
58847
58848         * modules/trunc: New file.
58849         * lib/trunc.c: New file.
58850         * m4/trunc.m4: New file.
58851         * lib/math.in.h (trunc): New declaration.
58852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58853         HAVE_DECL_TRUNC.
58854         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58855         HAVE_DECL_TRUNC.
58856         * doc/functions/trunc.texi: Mention the 'trunc' module.
58857
58858 2007-10-03  Bruno Haible  <bruno@clisp.org>
58859
58860         * tests/test-fpending.c: New file, mostly copied
58861         from coreutils/lib/t-fpending.c.
58862         * modules/fpending-tests: New file.
58863
58864 2007-10-03  Bruno Haible  <bruno@clisp.org>
58865
58866         Port the stdio extensions to QNX (untested).
58867         * lib/fseterr.c (fseterr): Add support for QNX.
58868         * lib/fbufmode.c (fbufmode): Likewise.
58869         * lib/freadable.c (freadable): Likewise.
58870         * lib/fwritable.c (fwritable): Likewise.
58871         * lib/freading.c (freading): Likewise.
58872         * lib/fwriting.c (fwriting): Likewise.
58873         * lib/freadahead.c (freadahed): Likewise.
58874         * lib/fpurge.c (fpurge): Likewise.
58875         * lib/fseeko.c (rpl_fseeko): Likewise.
58876
58877 2007-10-03  Bruno Haible  <bruno@clisp.org>
58878             Jim Meyering  <jim@meyering.net>
58879             Eric Blake  <ebb9@byu.net>
58880
58881         * doc/relocatable.texi: Use @command instead of @program.
58882
58883 2007-10-02  Jim Meyering  <jim@meyering.net>
58884
58885         Perform one more "_.h" -> ".in.h" substitution.
58886         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58887         instead of unistd_.h here, too.
58888
58889 2007-10-01  Bruno Haible  <bruno@clisp.org>
58890
58891         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58892         Needed for the alloca-opt module.
58893
58894 2007-09-30  Bruno Haible  <bruno@clisp.org>
58895
58896         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58897         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58898         alloca_.h.
58899         * lib/argz.in.h: Renamed from lib/argz_.h.
58900         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58901         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58902         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58903         byteswap_.h.
58904         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58905         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58906         dirent_.h.
58907         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58908         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58909         fcntl_.h.
58910         * lib/float.in.h: Renamed from lib/float_.h.
58911         * modules/float (Files, Makefile.am): Use float.in.h instead of
58912         float_.h.
58913         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58914         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58915         fnmatch_.h.
58916         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58917         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58918         getopt_.h.
58919         * lib/glob.in.h: Renamed from lib/glob_.h.
58920         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58921         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58922         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58923         iconv_.h.
58924         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58925         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58926         inttypes_.h.
58927         * lib/locale.in.h: Renamed from lib/locale_.h.
58928         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58929         locale_.h.
58930         * lib/math.in.h: Renamed from lib/math_.h.
58931         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58932         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58933         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58934         of netinet_in_.h. Add dependency.
58935         * lib/poll.in.h: Renamed from lib/poll_.h.
58936         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58937         * lib/search.in.h: Renamed from lib/search_.h.
58938         * modules/search (Files, Makefile.am): Use search.in.h instead of
58939         search_.h.
58940         * lib/signal.in.h: Renamed from lib/signal_.h.
58941         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58942         _signal.h.
58943         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58944         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58945         stdbool_.h.
58946         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58947         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58948         stdint_.h.
58949         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58950         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58951         stdio_.h.
58952         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58953         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58954         stdlib_.h.
58955         * lib/string.in.h: Renamed from lib/string_.h.
58956         * modules/string (Files, Makefile.am): Use string.in.h instead of
58957         string_.h.
58958         * doc/gnulib-tool.texi (Initial import): Update.
58959         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58960         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58961         of sys_select_.h. Add dependency.
58962         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58963         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58964         of sys_socket_.h.
58965         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58966         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58967         sys_stat_.h.
58968         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58969         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58970         sys_time_.h.
58971         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58972         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58973         sysexits_.h.
58974         * lib/time.in.h: Renamed from lib/time_.h.
58975         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58976         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58977         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58978         unistd_.h.
58979         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58980         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58981         wchar_.h.
58982         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58983         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58984         wctype_.h.
58985         * build-aux/bootstrap (slurp): Update.
58986         * lib/.cppi-disable: Update.
58987
58988 2007-09-30  Bruno Haible  <bruno@clisp.org>
58989
58990         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58991         Needed on BeOS.
58992
58993 2007-09-30  Bruno Haible  <bruno@clisp.org>
58994
58995         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58996
58997 2007-09-29  Bruno Haible  <bruno@clisp.org>
58998
58999         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59000
59001 2007-09-29  Bruno Haible  <bruno@clisp.org>
59002
59003         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59004         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59005         * build-aux/install-reloc: Compile also areadlink.c.
59006         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59007
59008 2007-09-29  Bruno Haible  <bruno@clisp.org>
59009
59010         * gnulib-tool (func_emit_initmacro_done): Indentation.
59011
59012 2007-09-29  Bruno Haible  <bruno@clisp.org>
59013
59014         * README: Add CVS checkout update instructions.
59015         Info from Bob Proulx <bob@proulx.com>.
59016
59017 2007-09-28  Eric Blake  <ebb9@byu.net>
59018
59019         Provide move-if-change.
59020         * build-aux/move-if-change: New file, based on best practice
59021         rather than any canonical upstream location.
59022
59023 2007-09-28  Jim Meyering  <jim@meyering.net>
59024
59025         Fix canonicalize loop-detection corner case.
59026         Do not attempt to stat the symlink values stored via seen_triple.
59027         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59028         on linux-2.6.18, (but not 2.6.22).
59029         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59030         triple_compare.  The former compares dev,ino,filename, while the latter
59031         would actually stat dirname(filename) when dev and ino were equal.
59032         * lib/hash-triple.c: Install <string.h>.
59033         (STREQ): Define.
59034         (triple_compare_ino_str): New function.
59035         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59036
59037 2007-09-28  Eric Blake  <ebb9@byu.net>
59038
59039         Enforce that AC_REPLACE_FUNCS files exist.
59040         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59041         override check for typos.
59042
59043         Fix test-closein on Solaris 10.
59044         * tests/test-closein.c (main): Don't assume stdin can be inherited
59045         closed on all systems.
59046         * tests/test-closein.sh: Likewise.
59047         Reported by Piotr Tarnowski.
59048
59049 2007-09-28  Jim Meyering  <jim@meyering.net>
59050
59051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59052
59053 2007-09-27  Jim Meyering  <jim@meyering.net>
59054
59055         canonicalize: Avoid a false-positive cycle failure.
59056         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59057         Sort.  Remove cycle-check.
59058         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59059         not cycle-check.h.
59060         (seen_triple): New function.
59061         (canonicalize_filename_mode): Use it instead of cycle-check.
59062         * tests/test-canonicalize.c: Add a test for this bug.
59063         * tests/test-canonicalize.sh: Set up and run the test.
59064
59065         New module, file-set, from coreutils.
59066         * modules/file-set: Define it.
59067         * lib/file-set.c, lib/file-set.h: Implement.
59068
59069         New module, hash-triple, from coreutils.
59070         * modules/hash-triple: Define it.
59071         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59072
59073 2007-09-25  Eric Blake  <ebb9@byu.net>
59074
59075         Fix strerror on Interix.
59076         * lib/string_.h (strerror): Declare replacement.
59077         * doc/functions/strerror.texi (strerror): Document the Interix
59078         shortcoming.
59079         * modules/string (Makefile.am): Support new hooks.
59080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59081         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59082         gl_FUNC_STRERROR_SEPARATE.
59083         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59084         * lib/strerror.c (rpl_strerror): Provide replacement.
59085         * modules/strerror (Depends-on): Add string.
59086         (configure.ac): Detect use of module.
59087         * tests/test-strerror.c: New file.
59088         * modules/strerror-tests: New test module.
59089         * modules/argp (Depends-on): Add strerror.
59090         * modules/error (Depends-on): Likewise.
59091         Reported by Martin Koeppe.
59092
59093 2007-09-24  Bruno Haible  <bruno@clisp.org>
59094
59095         * README: Update git instructions.
59096
59097 2007-09-24  Eric Blake  <ebb9@byu.net>
59098
59099         Revert fpending breakage from 2007-09-08.
59100         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59101         __fpending.c.
59102
59103 2007-09-24  Jim Meyering  <jim@meyering.net>
59104
59105         filenamecat.c: Add a test.
59106         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59107         showing how the function works when DIR is the empty string.
59108
59109 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59110
59111         * tests/test-canonicalize.sh: Turn on executable bit.
59112
59113 2007-09-19  Eric Blake  <ebb9@byu.net>
59114
59115         * README: Update CVS instructions.
59116
59117 2007-09-18  Bruno Haible  <bruno@clisp.org>
59118
59119         * modules/areadlink: New file.
59120         * lib/areadlink.h (areadlink): New declaration.
59121         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59122
59123 2007-09-17  Jim Meyering  <jim@meyering.net>
59124
59125         * lib/savewd.c (ESTALE) [!defined]: Define.
59126         Reported to be required on Interix by Martin Koeppe.
59127
59128 2007-09-17  Bruno Haible  <bruno@clisp.org>
59129
59130         * gnulib-tool (func_version): Use $version.
59131
59132 2007-09-16  Bruno Haible  <bruno@clisp.org>
59133
59134         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59135         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59136         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59137         Reported by Greg Schafer <gschafer@zip.com.au>.
59138
59139 2007-09-15  Bruno Haible  <bruno@clisp.org>
59140
59141         * gnulib-tool (sed): Try a little harder to make bash understand the
59142         alias.
59143         Reported by Bruce Korb <bruce.korb@gmail.com>.
59144
59145 2007-09-13  Eric Blake  <ebb9@byu.net>
59146
59147         * ChangeLog: Remove conflict markers.
59148
59149 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59150
59151         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59152         Reported by Bruno Haible <bruno@clisp.org>.
59153
59154 2007-09-12  Bruno Haible  <bruno@clisp.org>
59155
59156         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59157         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59158         is not defined.
59159
59160 2007-09-12  Eric Blake  <ebb9@byu.net>
59161
59162         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59163         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59164         Autoconf definition.
59165         * modules/euidaccess (Depends-on): Add extensions, for
59166         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59167         * modules/fnmatch (Depends-on): Likewise.
59168         * modules/getaddrinfo (Depends-on): Likewise.
59169         * modules/getdelim (Depends-on): Likewise.
59170         * modules/getline (Depends-on): Likewise.
59171         * modules/getsubopt (Depends-on): Likewise.
59172         * modules/gettext (Depends-on): Likewise.
59173         * modules/group-member (Depends-on): Likewise.
59174         * modules/mbchar (Depends-on): Likewise.
59175         * modules/memmem (Depends-on): Likewise.
59176         * modules/mempcpy (Depends-on): Likewise.
59177         * modules/memrchr (Depends-on): Likewise.
59178         * modules/pagealign_alloc (Depends-on): Likewise.
59179         * modules/readutmp (Depends-on): Likewise.
59180         * modules/stpcpy (Depends-on): Likewise.
59181         * modules/stpncpy (Depends-on): Likewise.
59182         * modules/strchrnul (Depends-on): Likewise.
59183         * modules/strndup (Depends-on): Likewise.
59184         * modules/strsep (Depends-on): Likewise.
59185         * modules/strverscmp (Depends-on): Likewise.
59186         * modules/vasprintf (Depends-on): Likewise.
59187         * modules/wcwidth (Depends-on): Likewise.
59188         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59189         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59190         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59191         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59192         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59193         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59194         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59195         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59196         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59197         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59198         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59199         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59200         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59201         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59202         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59203         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59204         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59205         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59206         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59207         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59208         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59209         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59210         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59211         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59212         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59213         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59214         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59215         so that lock.m4 can be used in gettext without extensions module.
59216
59217 2007-09-11  Bruno Haible  <bruno@clisp.org>
59218
59219         * m4/isc-posix.m4: Remove file.
59220         Suggested by Eric Blake.
59221
59222 2007-09-11  Eric Blake  <ebb9@byu.net>
59223
59224         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59225
59226 2007-09-10  Bruno Haible  <bruno@clisp.org>
59227
59228         * posix-modules: Fix typo in error message.
59229         Reported by Matt <mkraai@beckman.com>.
59230
59231 2007-09-09  Bruno Haible  <bruno@clisp.org>
59232
59233         * doc/functions/getdelim.texi: Update list of platforms lacking the
59234         function.
59235         * doc/functions/getline.texi: Likewise.
59236
59237 2007-09-09  Jim Meyering  <jim@meyering.net>
59238
59239         * lib/hash.c (hash_initialize): Detect calloc failure.
59240         Reported by Bruno Haible.
59241
59242 2007-09-09  Bruno Haible  <bruno@clisp.org>
59243
59244         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59245         malloc or realloc fails.
59246
59247 2007-09-09  Bruno Haible  <bruno@clisp.org>
59248
59249         * modules/getcwd (Depends-on): Add malloc-posix.
59250         * modules/glob (Depends-on): Likewise.
59251         * modules/putenv (Depends-on): Likewise.
59252         * modules/strdup (Depends-on): Likewise.
59253         * modules/getdelim (Depends-on): Add realloc-posix.
59254         * modules/read-file (Depends-on): Likewise.
59255
59256 2007-09-09  Bruno Haible  <bruno@clisp.org>
59257
59258         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59259         (gl_FUNC_MALLOC_POSIX): Require it.
59260         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59261         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59262         * modules/realloc (Files): Add m4/malloc.m4.
59263         * modules/calloc (Files): Likewise.
59264
59265 2007-09-09  Bruno Haible  <bruno@clisp.org>
59266
59267         * modules/malloc-posix: New file.
59268         * modules/malloc (Depends-on): Add malloc-posix.
59269         * lib/malloc.c: Include errno.h.
59270         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59271         and a POSIX-compatible malloc into a single function. Set ENOMEM
59272         when returning NULL.
59273         * m4/malloc.m4: New file.
59274         * doc/functions/malloc.texi: Mention the malloc-posix module.
59275         * lib/stdlib_.h (malloc): New declaration.
59276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59277         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59278         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59279         and HAVE_MALLOC_POSIX.
59280
59281 2007-09-09  Bruno Haible  <bruno@clisp.org>
59282
59283         * modules/realloc-posix: New file.
59284         * modules/realloc (Depends-on): Add realloc-posix.
59285         * lib/realloc.c: Include errno.h.
59286         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59287         and a POSIX-compatible realloc into a single function. Set ENOMEM
59288         when returning NULL.
59289         * m4/realloc.m4: New file.
59290         * doc/functions/realloc.texi: Mention the realloc-posix module.
59291         * lib/stdlib_.h (realloc): New declaration.
59292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59293         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59294         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59295         and HAVE_REALLOC_POSIX.
59296
59297 2007-09-09  Bruno Haible  <bruno@clisp.org>
59298
59299         * modules/calloc-posix: New file.
59300         * modules/calloc (Depends-on): Add calloc-posix.
59301         * lib/calloc.c: Include errno.h.
59302         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59303         and a POSIX-compatible calloc into a single function. Set ENOMEM
59304         when returning NULL.
59305         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59306         * doc/functions/calloc.texi: Mention the calloc-posix module.
59307         * lib/stdlib_.h (calloc): New declaration.
59308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59309         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59310         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59311         and HAVE_CALLOC_POSIX.
59312
59313 2007-09-09  Bruno Haible  <bruno@clisp.org>
59314
59315         Allow for modules to show an arbitrary notice.
59316         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59317         * gnulib-tool: New option --extract-notice.
59318         (func_usage): Document it.
59319         (sed_extract_prog): Update.
59320         (func_get_notice): New function.
59321         (func_modules_notice): New function.
59322         (func_import, func_create_testdir): Invoke it.
59323         Suggested by Jim Meyering.
59324
59325 2007-09-09  Bruno Haible  <bruno@clisp.org>
59326
59327         * gnulib-tool: New options --verbose, --quiet.
59328         (func_usage): Document them.
59329         (verbose): New variable.
59330         (func_execute_command): New function.
59331         (func_import): Don't show the module list and the file list if
59332         $verbose < 0.
59333         (func_create_testdir): Likewise. Use func_execute_command.
59334         (func_create_megatestdir): Use func_execute_command.
59335
59336 2007-09-08  Bruno Haible  <bruno@clisp.org>
59337
59338         * gnulib-tool (func_import): Prefer rsync over wget when available,
59339         for fetching the PO files.
59340
59341 2007-09-08  Bruno Haible  <bruno@clisp.org>
59342
59343         * posix-modules: New file. Portions copied from gnulib-tool.
59344         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59345
59346 2007-09-08  Jim Meyering  <jim@meyering.net>
59347
59348         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59349         * lib/fpending.h: Rename from __fpending.h.
59350         * lib/fpending.c: Rename from __fpending.c.
59351         Include "fpending.h", not "__fpending.h".
59352         * lib/__fpending.h, lib/__fpending.c: Remove files.
59353         * modules/fpending (Files): Reflect new file names.
59354         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59355
59356 2007-09-08  Bruno Haible  <bruno@clisp.org>
59357
59358         * m4/inttypes-h.m4: Remove stub file.
59359
59360 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59361
59362         * doc/headers/stdint.texi: Discuss #include_next issue.
59363
59364 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59365
59366         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59367
59368 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59369
59370         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59371         in variable name.
59372
59373 2007-09-03  Jim Meyering  <jim@meyering.net>
59374
59375         New module: git-version-gen.
59376         * modules/git-version-gen: New file.
59377
59378         Import changes from coreutils for bootstrap script.
59379
59380         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59381
59382         bootstrap: uses rsync to download the .po files
59383         * build-aux/bootstrap (po_download_command_format): New global.
59384         (download_po_files): Use rsync.
59385         (update_po_files): Don't remove .po files after download,
59386         so future rsync runs can take advantage of the copies.
59387
59388         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59389
59390         Solve the unnecessary-.po-file-regeneration problem once and for all.
59391         * build-aux/bootstrap (download_po_files): New function, renamed from
59392         get_translations.  Now, downloads, but doesn't update LINGUAS.
59393         (update_po_files): New function.
59394
59395         bootstrap: Ignore more.
59396         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59397         uniwidth to e.g., lib/.gitignore.
59398         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59399
59400         * build-aux/bootstrap: New setting: vc_ignore.
59401         (insert_sorted_if_absent): Create $file if absent.
59402         Adapt to new, possibly empty, list: $vc_ignore.
59403
59404         bootstrap: generate more ignorable names
59405         * build-aux/bootstrap (slurp): When generating ignorable names,
59406         also map .sin to .sed, .gperf to .c, and .y to .c.
59407
59408 2007-09-03  Jim Meyering  <jim@meyering.net>
59409
59410         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59411         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59412
59413 2007-09-02  Bruno Haible  <bruno@clisp.org>
59414
59415         Fix mis-recognition of 'mcs' on QNX 6.
59416         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59417         output contains the string "Mono".
59418         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59419         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59420
59421 2007-09-01  Bruno Haible  <bruno@clisp.org>
59422
59423         Fix collision between uniwidth/* and linebreak modules.
59424         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59425         u32_width): Remove declarations.
59426         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59427         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59428         streq3, streq2, streq1, streq0): Remove functions.
59429         (STREQ): Remove macro.
59430         (is_cjk_encoding): Remove function.
59431         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59432         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59433         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59434         * NEWS: Document the change.
59435
59436 2007-09-01  Bruno Haible  <bruno@clisp.org>
59437
59438         * lib/streq.h: Add double-inclusion guard.
59439
59440 2007-09-01  Karl Berry  <karl@gnu.org>
59441
59442         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59443
59444 2007-08-28  Jim Meyering  <jim@meyering.net>
59445
59446         Rename mreadlink_with_size to areadlink_with_size.
59447         * NEWS: Document the change.
59448         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59449         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59450         * lib/mreadlink.h: Rename this to...
59451         * lib/areadlink.h: ...this.
59452         * modules/mreadlink-with-size: Rename this to...
59453         * modules/areadlink-with-size: ...this.
59454         * lib/canonicalize.c: Reflect the renaming.
59455         * modules/canonicalize: Likewise.
59456
59457 2007-08-26  Bruno Haible  <bruno@clisp.org>
59458
59459         * gnulib-tool (func_import): When deciding which files to remove,
59460         consider also dangling symbolic links.
59461         Reported by Eric Blake.
59462
59463 2007-08-26  Bruno Haible  <bruno@clisp.org>
59464
59465         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59466
59467 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59468
59469         * lib/readline.c: Don't include getline.h, the prototype is now
59470         found in stdio.h.
59471
59472 2007-08-23  Jim Meyering  <jim@meyering.net>
59473
59474         Getdelim touchup.
59475         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59476         around the funlockfile call, since funlockfile never sets errno.
59477         Don't set errno upon failed realloc.
59478
59479 2007-08-22  Eric Blake  <ebb9@byu.net>
59480
59481         Getline touchups.
59482         * lib/getdelim.c (getdelim): Revert regression that required *n to
59483         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59484         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59485         getdelim, rather than whether implementation is missing.
59486         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59487         * lib/stdio_.h (getline): Also declare if replacement is
59488         required.
59489         * doc/functions/getdelim.texi: New file.
59490         * doc/functions/getline.texi: Likewise.
59491         * doc/gnulib.texi (Function Substitutes): Add new files.
59492         Reported by Bruno Haible.
59493
59494 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59495
59496         * users.txt: Add Guile.
59497
59498 2007-08-22  Eric Blake  <ebb9@byu.net>
59499
59500         * tests/test-getdelim.c (main): Use remove, not unlink.
59501         * tests/test-getline.c (main): Likewise.
59502
59503         Move getline and getdelim into stdio.h, per POSIX 200x.
59504         * modules/getline (Files): Remove getline.h.
59505         (Depends-on): Add stdio.
59506         (configure.ac): Add module indicator.
59507         * modules/getdelim (Files): Remove getdelim.h.
59508         (Depends-on): Add stdio.
59509         (configure.ac): Add module indicator.
59510         * modules/stdio (Makefile.am): Work with new indicators.
59511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59512         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59513         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59514         * lib/getdelim.h: Delete.
59515         * lib/getline.h: Delete.
59516         * lib/stdio_.h (getdelim, getline): Declare.
59517         * modules/getdelim-tests: New module.
59518         * modules/getline-tests: Likewise.
59519         * tests/test-getdelim.c: New file.
59520         * tests/test-getline.c: Likewise.
59521         * NEWS: Document the change.
59522         * lib/getline.c: Update choice of header.
59523         * lib/csharpcomp.c: Likewise.
59524         * lib/getpass.c: Likewise.
59525         * lib/javacomp.c: Likewise.
59526         * lib/javaversion.c: Likewise.
59527         * lib/yesno.c: Likewise.
59528         * lib/getdelim.c: Likewise.
59529         (getdelim): Set errno on failure, and avoid memory leak.
59530
59531 2007-08-19  Bruno Haible  <bruno@clisp.org>
59532
59533         * modules/closein (Depends-on): Add freadahead.
59534         * lib/closein.c: Include freadahead.h.
59535         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59536         is zero.
59537
59538 2007-08-19  Bruno Haible  <bruno@clisp.org>
59539
59540         * modules/freadahead-tests: New file.
59541         * tests/test-freadahead.sh: New file.
59542         * tests/test-freadahead.c: New file.
59543
59544         * modules/freadahead: New file.
59545         * lib/freadahead.h: New file.
59546         * lib/freadahead.c: New file.
59547         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59548         fbufmode, fpurge, freadable, fwritable.
59549
59550 2007-08-19  Eric Blake  <ebb9@byu.net>
59551
59552         Test yesno in combination with closein.
59553         * lib/yesno.c (yesno): Document use of stdin.
59554         * modules/yesno-tests (Files): New module.
59555         * tests/test-yesno.c (main): New file.
59556         * tests/test-yesno.sh: Likewise.
59557
59558 2007-08-19  Bruno Haible  <bruno@clisp.org>
59559
59560         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59561         * lib/fseeko.c (rpl_fseeko): Likewise.
59562         * lib/fseterr.c (fseterr): Likewise.
59563
59564 2007-08-19  Bruno Haible  <bruno@clisp.org>
59565
59566         * tests/test-lseek.c (main): Disable a test for BeOS.
59567         * doc/functions/lseek.texi: Document the BeOS bug.
59568
59569 2007-08-19  Bruno Haible  <bruno@clisp.org>
59570             Eric Blake  <ebb9@byu.net>
59571
59572         * lib/lseek.c: Include <sys/stat.h>.
59573         (rpl_lseek): Add workaround code also for Unix platforms.
59574         Needed for BeOS.
59575         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59576         * doc/functions/lseek.texi: Document BeOS definiency.
59577
59578 2007-08-18  Bruno Haible  <bruno@clisp.org>
59579
59580         * modules/fstrcmp-tests: New file.
59581         * tests/test-fstrcmp.c: New file.
59582
59583 2007-08-18  Bruno Haible  <bruno@clisp.org>
59584
59585         * modules/fstrcmp: New file, from GNU gettext with modifications.
59586         * lib/fstrcmp.h: New file, from GNU gettext.
59587         * lib/fstrcmp.c: New file, from GNU gettext.
59588         * MODULES.html.sh (String handling): Add fstrcmp.
59589
59590 2007-08-18  Bruno Haible  <bruno@clisp.org>
59591
59592         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59593         'bool'.
59594         (diag, compareseq): Remove const from the ctxt argument.
59595         (USE_HEURISTIC): Undefine at the end.
59596
59597 2007-08-18  Jim Meyering  <jim@meyering.net>
59598
59599         New file: lib/idcache.h
59600         * NEWS: Mention the addition.
59601         * modules/idcache (Files): Add lib/idcache.h
59602         * lib/idcache.c: Include "idcache.h".
59603         Don't include <sys/types.h>.
59604         Add a FIXME comment.
59605         Move file-scoped "static" declarations to the top.
59606         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59607
59608 2007-08-17  Bruno Haible  <bruno@clisp.org>
59609         and Paul Eggert  <eggert@cs.ucla.edu>
59610
59611         * MODULES.html.sh: Add diffseq.
59612         * modules/diffseq: New file.
59613         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59614         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59615
59616 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59617
59618         Import changes from coreutils for bootstrap script.
59619
59620         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * build-aux/bootstrap (slurp): Work even in environments where
59623         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59624         current code does not slurp files whose names start with ".", and
59625         this looks like it might be a troublesome area.
59626
59627         2007-07-11  Jim Meyering  <jim@meyering.net>
59628
59629         If there's a GPL vN copyright comment, require that N == 3.
59630
59631         2007-07-08  Jim Meyering  <jim@meyering.net>
59632
59633         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59634         * build-aux/bootstrap (mam_template): Move definition out of loop.
59635
59636         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59637
59638         * build-aux/bootstrap (symlink_to_dir): Rename function from
59639         symlink_to_gnulib.  Add a directory parameter.  Update all
59640         callers.
59641         (cp_mark_as_generated): Also check for -- and link to -- files in
59642         gl/.
59643
59644         2007-07-08  Jim Meyering  <jim@meyering.net>
59645
59646         Adapt to deeper hierarchy in gnulib.
59647         * build-aux/bootstrap (symlink_to_dir): If the destination
59648         directory doesn't exist, create it. This is required at least for
59649         "lib/uniwidth/cjk.h".
59650
59651         2007-05-15  Jim Meyering  <jim@meyering.net>
59652
59653         * build-aux/bootstrap: Now that generated Makefile.am files
59654         are no longer under version control, they must be created at
59655         bootstrap time.
59656
59657 2007-08-14  Ben Pfaff  <blp@gnu.org>
59658
59659         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59660
59661 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59662
59663         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59664         given the changes below.
59665         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59666         even on hosts that have padding bits beyond the supported 64.
59667
59668 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59669
59670         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59671         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59672         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59673         depends on it.
59674         (xstrtol_error): Remove.
59675         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59676         but with a different signature.
59677         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59678         * lib/xstrtol-error.c: Include exitfail.h.
59679         (xstrtol_fatal): New function, with a different signature from the
59680         old xstrtol_error, so that the caller need not worry about passing
59681         in an exit status, or about storage management of the option argument.
59682         (xstrtol_error): Now a static function.  Redo signature to
59683         implement xstrtol_fatal.  Output the correct number of hyphens in
59684         front of the option so that the caller need not worry about
59685         storage management.
59686         (N_): New macro.
59687         (_): Remove; not used now.
59688         * modules/xstrtol: Depend on getopt.
59689         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59690         of old STRTOL_FATAL_ERROR macro.
59691         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59692         of test program.
59693         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59694         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59695
59696 2007-08-08  Eric Blake  <ebb9@byu.net>
59697
59698         * lib/xstrtol-error.c: Add missing include.
59699
59700         Move xstrtol messages into gnulib domain, when --pobase is used.
59701         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
59702         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
59703         * modules/xstrtol (Files): Distribute new file.
59704         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
59705         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
59706         * tests/test-xstrtol.c: ...into new file.
59707         * tests/test-xstrtoul.c: Also test xstrtoul.
59708         * tests/test-xstrtoimax.c: Also test xstrtoimax.
59709         * tests/test-xstrtoumax.c: Also test xstrtoumax.
59710         * tests/test-xstrtol.sh: Drive the tests.
59711         * tests/test-xstrtoimax.sh: Likewise.
59712         * tests/test-xstrtoumax.sh: Likewise.
59713         * modules/xstrtol-tests: New module.
59714         * modules/xstrtoimax-tests: Likewise.
59715         * modules/xstrtoumax-tests: Likewise.
59716
59717 2007-08-08  Jim Meyering  <jim@meyering.net>
59718
59719         New function: mfile_name_concat.
59720         * lib/filenamecat.c (mfile_name_concat): New function, just like
59721         file_name_concat, but return NULL upon failure rather than exiting
59722         with a diagnostic.
59723         * lib/filenamecat.h: Declare it.
59724
59725 2007-08-07  Bruno Haible  <bruno@clisp.org>
59726
59727         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
59728         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
59729         warning from gcc.
59730         Reported by Eric Blake.
59731
59732 2007-08-07  Simon Josefsson  <simon@josefsson.org>
59733
59734         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
59735         * modules/crypto/arcfour (License): Likewise.
59736         * modules/crypto/des-tests (License): Likewise.
59737         * modules/crypto/gc-arctwo-tests (License): Likewise.
59738         * modules/crypto/gc-des-tests (License): Likewise.
59739         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
59740         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
59741         * modules/crypto/gc-md2-tests (License): Likewise.
59742         * modules/crypto/gc-md4-tests (License): Likewise.
59743         * modules/crypto/gc-md5-tests (License): Likewise.
59744         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
59745         * modules/crypto/gc-rijndael-tests (License): Likewise.
59746         * modules/crypto/gc-sha1-tests (License): Likewise.
59747         * modules/crypto/gc-tests (License): Likewise.
59748         * modules/crypto/hmac-md5 (License): Likewise.
59749         * modules/crypto/hmac-sha1 (License): Likewise.
59750         * modules/crypto/md2-tests (License): Likewise.
59751         * modules/crypto/md4-tests (License): Likewise.
59752         * modules/crypto/md5 (License): Likewise.
59753         * modules/crypto/rijndael (License): Likewise.
59754         * modules/crypto/sha1 (License): Likewise.
59755         * modules/memxor (License): Likewise.
59756
59757 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59758         and Bruno Haible  <bruno@clisp.org>
59759
59760         * NEWS: Describe interface changes to human, xstrtol.
59761         * lib/human.h: Include <xstrtol.h>.
59762         (human_options): Return enum strtol_error, not int.  Remove
59763         bool arg; take int * instead.
59764         * lib/human.c: Don't include "gettext.h".
59765         (_): Remove; no longer used.
59766         Don't include <xstrtol.h>, since human.h does it.
59767         (human_options): Adjust to abovementioned interface changes.
59768         Do not report error to stderr; that's now the caller's
59769         responsibility.
59770         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
59771         interface change.
59772         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
59773         Str, Argument_type_string.  All uses changed.  Put " argument"
59774         in diagnostics to make them clearer.  Change wording of suffix
59775         message for clarity.
59776         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
59777         Argument_type_string.
59778         (STRTOL_FATAL_WARN): Remove; no longer used.
59779         * modules/human (Depends-on): Remove gettext-h.
59780
59781 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59782
59783         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59784
59785 2007-07-31  Bruno Haible  <bruno@clisp.org>
59786
59787         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59788         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59789         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59790
59791 2007-07-31  Bruno Haible  <bruno@clisp.org>
59792
59793         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59794         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59795
59796 2007-07-30  Bruno Haible  <bruno@clisp.org>
59797
59798         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59799         * modules/c-ctype (License): Likewise.
59800         * modules/c-strcase (License): Likewise.
59801         * modules/check-version (License): Likewise.
59802         * modules/iconv (License): Likewise.
59803         * modules/iconv_open (License): Likewise.
59804         * modules/read-file (License): Likewise.
59805         * modules/striconv (License): Likewise.
59806         * modules/strverscmp (License): Likewise.
59807         * modules/vasprintf (License): Likewise.
59808         * modules/crypto/des (License): Likewise.
59809         * modules/crypto/gc (License): Likewise.
59810         * modules/crypto/gc-arcfour (License): Likewise.
59811         * modules/crypto/gc-arctwo (License): Likewise.
59812         * modules/crypto/gc-des (License): Likewise.
59813         * modules/crypto/gc-hmac-md5 (License): Likewise.
59814         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59815         * modules/crypto/gc-md2 (License): Likewise.
59816         * modules/crypto/gc-md4 (License): Likewise.
59817         * modules/crypto/gc-md5 (License): Likewise.
59818         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59819         * modules/crypto/gc-random (License): Likewise.
59820         * modules/crypto/gc-rijndael (License): Likewise.
59821         * modules/crypto/gc-sha1 (License): Likewise.
59822         * modules/crypto/md2 (License): Likewise.
59823         * modules/crypto/md4 (License): Likewise.
59824
59825 2007-07-30  Jim Meyering  <jim@meyering.net>
59826
59827         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59828         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59829         it has valid stat data.  This bug would cause du not to count the
59830         sizes of inaccessible directories.
59831         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59832         in <http://bugzilla.redhat.com/250077>.
59833
59834 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59835             Bruno Haible  <bruno@clisp.org>
59836
59837         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59838         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59839         #include_next, gives a diagnostic about it, but reports no error in
59840         the exit code.
59841         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59842
59843 2007-07-24  Ben Pfaff  <blp@gnu.org>
59844
59845         Improve name: "count-one-bits" is better than "popcount".
59846         * MODULES.html.sh: Update name.
59847         * lib/popcount.h: Renamed lib/count-one-bits.h.
59848         (popcount): Renamed count_one_bits.
59849         (popcountl): Renamed count_one_bits_l.
59850         (popcountll): Renamed count_one_bits_ll.
59851         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59852         * modules/popcount: Renamed module/count-one-bits.
59853         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59854         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59855
59856 2007-07-23  Ben Pfaff  <blp@gnu.org>
59857
59858         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59859         better code generation, and add U to large constants to avoid
59860         warnings, in non-GCC case.
59861         Suggested by Bruno Haible.
59862
59863 2007-07-23  Ben Pfaff  <blp@gnu.org>
59864
59865         * lib/popcount.h: Use verify_true instead of if...abort.
59866         * modules/popcount: Depend on verify module.
59867         Suggested by Jim Meyering.
59868
59869 2007-07-23  Bruno Haible  <bruno@clisp.org>
59870
59871         * gnulib-tool (func_import): Create a .cvsignore file also when the
59872         directory is not yet in CVS but the toplevel directory is. When
59873         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59874         Reported by Karl Berry.
59875
59876 2007-07-22  Ben Pfaff  <blp@gnu.org>
59877
59878         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59879         case.
59880         Suggested by Eric Blake.
59881
59882 2007-07-22  Ben Pfaff  <blp@gnu.org>
59883
59884         New module: popcount.
59885         * MODULES.html.sh: Add popcount.
59886         * modules/popcount: New file.
59887         * modules/popcount-tests: New file.
59888         * tests/test-popcount.c: New file.
59889         * lib/popcount.h: New file.
59890         * m4/popcount.m4: New file.
59891
59892 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59893
59894         * build-aux/announce-gen: Update to GPLv3.
59895
59896         * build-aux/config.guess: Update from config.
59897
59898 2007-07-21  Bruno Haible  <bruno@clisp.org>
59899
59900         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59901         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59902
59903 2007-07-20  Jim Meyering  <jim@meyering.net>
59904
59905         * check-module: Diagnose a self-dependency.
59906
59907 2007-07-19  Bruno Haible  <bruno@clisp.org>
59908
59909         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59910         empty.
59911         Reported by Eric Blake.
59912
59913 2007-07-18  Bruno Haible  <bruno@clisp.org>
59914
59915         * gnulib-tool: New options --po-base, --po-domain.
59916         (func_usage): Document them.
59917         (pobase, po_domain): New variables.
59918         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59919         DEFAULT_TEXT_DOMAIN.
59920         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59921         (func_import): Consider pobase and po_domain. Create a po/ directory.
59922         (func_create_testdir): Set pobase and po_domain to empty.
59923         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59924         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59925
59926 2007-07-18  Bruno Haible  <bruno@clisp.org>
59927
59928         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59929         EXTRA_DIST augmentation for files in build-aux/.
59930
59931 2007-07-16  Bruno Haible  <bruno@clisp.org>
59932
59933         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59934         * modules/getdelim (License): Likewise.
59935
59936 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59937
59938         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59939         * modules/d-type (License): Likewise.
59940         * modules/extensions (License): Likewise.
59941         * modules/fnmatch (License): Likewise.
59942         * modules/fseeko (License): Likewise.
59943         * modules/getaddrinfo (License): Likewise.
59944         * modules/getline (License): Likewise.
59945         * modules/getlogin_r (License): Likewise.
59946         * modules/getpass (License): Likewise.
59947         * modules/gettimeofday (License): Likewise.
59948         * modules/glob (License): Likewise.
59949         * modules/inet_ntop (License): Likewise.
59950         * modules/malloc (License): Likewise.
59951         * modules/malloca (License): Likewise.
59952         * modules/memmem (License): Likewise.
59953         * modules/mempcpy (License): Likewise.
59954         * modules/memset (License): Likewise.
59955         * modules/minmax (License): Likewise.
59956         * modules/mktime (License): Likewise.
59957         * modules/netinet_in (License): Likewise.
59958         * modules/pathmax (License): Likewise.
59959         * modules/poll (License): Likewise.
59960         * modules/regex (License): Likewise.
59961         * modules/snprintf (License): Likewise.
59962         * modules/stdbool (License): Likewise.
59963         * modules/stdint (License): Likewise.
59964         * modules/stdio (License): Likewise.
59965         * modules/strcase (License): Likewise.
59966         * modules/strcasestr (License): Likewise.
59967         * modules/strdup (License): Likewise.
59968         * modules/string (License): Likewise.
59969         * modules/strndup (License): Likewise.
59970         * modules/strnlen (License): Likewise.
59971         * modules/strpbrk (License): Likewise.
59972         * modules/strptime (License): Likewise.
59973         * modules/strsep (License): Likewise.
59974         * modules/sys_select (License): Likewise.
59975         * modules/sys_socket (License): Likewise.
59976         * modules/sys_stat (License): Likewise.
59977         * modules/sys_time (License): Likewise.
59978         * modules/time (License): Likewise.
59979         * modules/time_r (License): Likewise.
59980         * modules/timegm (License): Likewise.
59981         * modules/unistd (License): Likewise.
59982         * modules/vsnprintf (License): Likewise.
59983         * modules/wctype (License): Likewise.
59984
59985 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59986
59987         * modules/argz (License): LGPLv2+.
59988
59989 2007-07-15  Karl Berry  <karl@gnu.org>
59990
59991         * doc/gnulib.texi: revise node structure per new fdl.texi.
59992
59993 2007-07-14  Bruno Haible  <bruno@clisp.org>
59994
59995         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59996         the output file.
59997         * lib/uniname/uninames.h: Regenerated.
59998
59999 2007-07-14  Karl Berry  <karl@gnu.org>
60000
60001         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60002         omitting sectioning and index commands.
60003
60004 2007-07-13  Bruno Haible  <bruno@clisp.org>
60005
60006         New gnulib-tool option --more-symlinks.
60007         * gnulib-tool (func_usage): Document --more-symlinks.
60008         (do_copyrights): New variable.
60009         Recognize option --more-symlinks.
60010         (func_import): Don't add a copyright notice transform to
60011         sed_transform_lib_file if do_copyrights is empty.
60012
60013 2007-07-13  Bruno Haible  <bruno@clisp.org>
60014
60015         * lib/vasnprintf.c (decimal_point_char): Define also if
60016         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60017         && !NEED_PRINTF_DIRECTIVE_A.
60018         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60019         Gary V. Vaughan <gary@gnu.org>.
60020
60021 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60022
60023         * lib/inttypes_.h: Undo previous change, since it was fixed
60024         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60025
60026 2007-07-13  Bruno Haible  <bruno@clisp.org>
60027
60028         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60029         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60030
60031 2007-07-13  Jim Meyering  <jim@meyering.net>
60032
60033         df: Don't fail for Tru64's "file-on-file mount".
60034         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60035         so we fall through and use statfs instead.  Details here:
60036         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60037         Reported by Albert Chin.
60038
60039 2007-07-13  Bruno Haible  <bruno@clisp.org>
60040
60041         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60042         * modules/configmake (License): Likewise.
60043         * modules/gettext (License): Likewise.
60044         * modules/gettext-h (License): Likewise.
60045         * modules/include_next (License): Likewise.
60046         * modules/link-warning (License): Likewise.
60047         * modules/localcharset (License): Likewise.
60048         * modules/localename (License): Likewise.
60049         * modules/lock (License): Likewise.
60050         * modules/relocatable-lib-lgpl (License): Likewise.
60051         * modules/size_max (License): Likewise.
60052         * modules/vasnprintf (License): Likewise.
60053         * modules/wchar (License): Likewise.
60054         * modules/xsize (License): Likewise.
60055
60056 2007-07-13  Bruno Haible  <bruno@clisp.org>
60057
60058         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60059         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60060
60061 2007-07-12  Bruno Haible  <bruno@clisp.org>
60062
60063         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60064         in the modules files.
60065
60066 2007-07-11  Karl Berry  <karl@gnu.org>
60067
60068         * MODULES.html.sh (func_module): use
60069          sed -e '\|^'"${includefile}"'$|d'
60070          instead of /.../d, to avoid errors on $includefile's containing /.
60071
60072 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60073
60074         * gnulib-tool (func_import): Avoid duplication of --avoid
60075         statements
60076         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60077         names to `_' in variable names.
60078
60079 2007-07-10  Eric Blake  <ebb9@byu.net>
60080
60081         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60082         * NEWS: Document this change.
60083
60084 2007-07-08  Bruno Haible  <bruno@clisp.org>
60085
60086         Update to Unicode 5.0.
60087         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60088         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60089         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60090         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60091         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60092         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60093         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60094         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60095         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60096         U+10A3F, U+1D242..U+1D244.
60097         (nonspacing_table_ind): Update.
60098         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60099         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60100
60101 2007-07-08  Bruno Haible  <bruno@clisp.org>
60102
60103         Update to Unicode 5.0.
60104         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60105         code transform. Extend the name index field of unicode_name_to_code and
60106         unicode_code_to_name from 16 to 24 bits.
60107         * lib/uniname/uniname.c (unicode_character_name,
60108         unicode_name_character): Add the range 0x12xxx to the code transform.
60109         * lib/uniname/uninames.h: Regenerated.
60110         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60111
60112 2007-07-07  Bruno Haible  <bruno@clisp.org>
60113
60114         * modules/wcwidth-tests: New file.
60115         * tests/test-wcwidth.c: New file.
60116
60117         Work around MacOS X wcwidth() bug.
60118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60119         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60120         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60121         original wcwidth in non-UTF-8 locales.
60122         * modules/wcwidth (Depends-on): Add localcharset, streq,
60123         uniwidth/width.
60124         * doc/functions/wcwidth.texi: Update.
60125
60126 2007-07-07  Bruno Haible  <bruno@clisp.org>
60127
60128         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60129         (wcwidth): New declaration.
60130         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60131         macros.
60132         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60133         here. Prepare for creating <wchar.h> unconditionally.
60134         * modules/wchar (Depends-on): Add link-warning.
60135         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60136         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60137         * lib/wcwidth.h: Remove file.
60138         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60139         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60140         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60141         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60142         (Include): Replace wcwidth.h with <wchar.h>.
60143         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60144         * lib/mbchar.h: Don't include wcwidth.h.
60145         * lib/mbswidth.c: Likewise.
60146         * NEWS: Mention the change.
60147
60148 2007-07-07  Bruno Haible  <bruno@clisp.org>
60149
60150         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60151         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60152         definition with an external declaration.
60153         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60154         defined as a function. Remove AC_C_INLINE requirement.
60155         * modules/wcwidth (Files): Add lib/wcwidth.c.
60156         (Makefile.am): Remove redundant statement.
60157
60158 2007-07-07  Bruno Haible  <bruno@clisp.org>
60159
60160         * MODULES.html.sh (Unicode string functions): Add the new modules.
60161
60162         * tests/uniwidth/test-u32-strwidth.c: New file.
60163         * modules/uniwidth/u32-strwidth-tests: New file.
60164
60165         * lib/uniwidth/u32-strwidth.c: New file.
60166         * modules/uniwidth/u32-strwidth: New file.
60167
60168         * tests/uniwidth/test-u16-strwidth.c: New file.
60169         * modules/uniwidth/u16-strwidth-tests: New file.
60170
60171         * lib/uniwidth/u16-strwidth.c: New file.
60172         * modules/uniwidth/u16-strwidth: New file.
60173
60174         * tests/uniwidth/test-u8-strwidth.c: New file.
60175         * modules/uniwidth/u8-strwidth-tests: New file.
60176
60177         * lib/uniwidth/u8-strwidth.c: New file.
60178         * modules/uniwidth/u8-strwidth: New file.
60179
60180         * tests/uniwidth/test-u32-width.c: New file.
60181         * modules/uniwidth/u32-width-tests: New file.
60182
60183         * lib/uniwidth/u32-width.c: New file.
60184         * modules/uniwidth/u32-width: New file.
60185
60186         * tests/uniwidth/test-u16-width.c: New file.
60187         * modules/uniwidth/u16-width-tests: New file.
60188
60189         * lib/uniwidth/u16-width.c: New file.
60190         * modules/uniwidth/u16-width: New file.
60191
60192         * tests/uniwidth/test-u8-width.c: New file.
60193         * modules/uniwidth/u8-width-tests: New file.
60194
60195         * lib/uniwidth/u8-width.c: New file.
60196         * modules/uniwidth/u8-width: New file.
60197
60198         * tests/uniwidth/test-uc_width.c: New file.
60199         * modules/uniwidth/width-tests: New file.
60200
60201         * lib/uniwidth/width.c: New file, from GNU libiconv.
60202         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60203         * modules/uniwidth/width: New file.
60204
60205         * lib/uniwidth.h: New file, from GNU libiconv.
60206         * modules/uniwidth/base: New file.
60207
60208 2007-07-07  Bruno Haible  <bruno@clisp.org>
60209
60210         * lib/uniname.h: New file, from GNU gettext.
60211         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60212         * lib/uniname/uninames.h: New file, from GNU gettext.
60213         * lib/uniname/uniname.c: New file, from GNU gettext.
60214         * tests/uniname/test-uninames.sh: New file.
60215         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60216         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60217         * modules/uniname/base: New file.
60218         * modules/uniname/uniname: New file.
60219         * modules/uniname/uniname-tests: New file.
60220         * MODULES.html.sh (Unicode string functions): Add the new modules.
60221
60222 2007-07-06  Bruno Haible  <bruno@clisp.org>
60223
60224         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60225
60226 2007-07-06  Bruno Haible  <bruno@clisp.org>
60227
60228         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60229         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60230         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60231         include <sys/time.h>.
60232         Reported by Eric Blake.
60233
60234 2007-07-06  Eric Blake  <ebb9@byu.net>
60235
60236         Fix testing canonicalize on cygwin.
60237         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60238         Revert patch from 2007-06-19.
60239         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60240         canonicalize module is also in use.
60241         * tests/test-canonicalize.c: New file.
60242         * tests/test-canonicalize.sh: Likewise.
60243         * modules/canonicalize-tests: Likewise.
60244
60245 2007-07-06  Jim Meyering  <jim@meyering.net>
60246
60247         * lib/getugroups.c (getugroups): Detect getgrent failure.
60248         Adjust comment to reflect reality: this function may return -1.
60249
60250 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60251
60252         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60253         the new TP address.
60254         (usage): Fix typo
60255         (gnulib_mk): New variable.
60256
60257 2007-07-05  Jim Meyering  <jim@meyering.net>
60258
60259         Don't let endgrent clobber errno, no matter how improbable.
60260         * lib/getugroups.c (getugroups): Save and restore errno around
60261         endgrent call.
60262
60263         Close the group DB even when failing with 2^31 or more members.
60264         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60265
60266 2007-07-04  Jim Meyering  <jim@meyering.net>
60267
60268         * lib/getugroups.h: New file.
60269         * lib/getugroups.c: Include "getugroups.h".
60270         Remove uses of "register" keyword.
60271         Move local variable, "cp", down into scope where used.
60272         Give "username" parameter the "const" attribute.
60273         * modules/getugroups (Files): Add lib/getugroups.h
60274
60275 2007-07-04  Karl Berry  <karl@gnu.org>
60276
60277         * MODULES.html.sh (func_all_modules): Complete rename of
60278         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60279
60280 2007-07-02  Bruno Haible  <bruno@clisp.org>
60281
60282         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60283         mode, when inttypes.h comes from gnulib.
60284         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60285
60286 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60287
60288         * NEWS: Mention lgpl module name change.
60289
60290         * modules/lgpl-2.1: Renamed from lgpl.
60291
60292         * NEWS: Mention gpl module name change.
60293
60294         * modules/gpl-3.0: New file, based on gpl-2.0.
60295
60296         * modules/gpl-2.0: Renamed from gpl.
60297
60298         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60299         doc/gpl-2.0.texi.
60300
60301 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60302
60303         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60304         #define __STDC_LIMIT_MACROS temporarily while including
60305         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60306         Problem reported by Joel E. Denny in
60307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60308
60309 2007-07-01  Bruno Haible  <bruno@clisp.org>
60310
60311         * lib/unistdio.h: New file.
60312         * lib/unistdio/u-asnprintf.h: New file.
60313         * lib/unistdio/u-asprintf.h: New file.
60314         * lib/unistdio/u-printf-args.c: New file.
60315         * lib/unistdio/u-printf-args.h: New file.
60316         * lib/unistdio/u-printf-parse.h: New file.
60317         * lib/unistdio/u-snprintf.h: New file.
60318         * lib/unistdio/u-sprintf.h: New file.
60319         * lib/unistdio/u-vasprintf.h: New file.
60320         * lib/unistdio/u-vsnprintf.h: New file.
60321         * lib/unistdio/u-vsprintf.h: New file.
60322         * lib/unistdio/ulc-asnprintf.c: New file.
60323         * lib/unistdio/ulc-asprintf.c: New file.
60324         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60325         * lib/unistdio/ulc-printf-parse.c: New file.
60326         * lib/unistdio/ulc-snprintf.c: New file.
60327         * lib/unistdio/ulc-sprintf.c: New file.
60328         * lib/unistdio/ulc-vasnprintf.c: New file.
60329         * lib/unistdio/ulc-vasprintf.c: New file.
60330         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60331         * lib/unistdio/ulc-vsnprintf.c: New file.
60332         * lib/unistdio/ulc-vsprintf.c: New file.
60333         * lib/unistdio/u8-asnprintf.c: New file.
60334         * lib/unistdio/u8-asprintf.c: New file.
60335         * lib/unistdio/u8-printf-parse.c: New file.
60336         * lib/unistdio/u8-snprintf.c: New file.
60337         * lib/unistdio/u8-sprintf.c: New file.
60338         * lib/unistdio/u8-vasnprintf.c: New file.
60339         * lib/unistdio/u8-vasprintf.c: New file.
60340         * lib/unistdio/u8-vsnprintf.c: New file.
60341         * lib/unistdio/u8-vsprintf.c: New file.
60342         * lib/unistdio/u8-u8-asnprintf.c: New file.
60343         * lib/unistdio/u8-u8-asprintf.c: New file.
60344         * lib/unistdio/u8-u8-snprintf.c: New file.
60345         * lib/unistdio/u8-u8-sprintf.c: New file.
60346         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60347         * lib/unistdio/u8-u8-vasprintf.c: New file.
60348         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60349         * lib/unistdio/u8-u8-vsprintf.c: New file.
60350         * lib/unistdio/u16-asnprintf.c: New file.
60351         * lib/unistdio/u16-asprintf.c: New file.
60352         * lib/unistdio/u16-printf-parse.c: New file.
60353         * lib/unistdio/u16-snprintf.c: New file.
60354         * lib/unistdio/u16-sprintf.c: New file.
60355         * lib/unistdio/u16-vasnprintf.c: New file.
60356         * lib/unistdio/u16-vasprintf.c: New file.
60357         * lib/unistdio/u16-vsnprintf.c: New file.
60358         * lib/unistdio/u16-vsprintf.c: New file.
60359         * lib/unistdio/u16-u16-asnprintf.c: New file.
60360         * lib/unistdio/u16-u16-asprintf.c: New file.
60361         * lib/unistdio/u16-u16-snprintf.c: New file.
60362         * lib/unistdio/u16-u16-sprintf.c: New file.
60363         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60364         * lib/unistdio/u16-u16-vasprintf.c: New file.
60365         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60366         * lib/unistdio/u16-u16-vsprintf.c: New file.
60367         * lib/unistdio/u32-asnprintf.c: New file.
60368         * lib/unistdio/u32-asprintf.c: New file.
60369         * lib/unistdio/u32-printf-parse.c: New file.
60370         * lib/unistdio/u32-snprintf.c: New file.
60371         * lib/unistdio/u32-sprintf.c: New file.
60372         * lib/unistdio/u32-vasnprintf.c: New file.
60373         * lib/unistdio/u32-vasprintf.c: New file.
60374         * lib/unistdio/u32-vsnprintf.c: New file.
60375         * lib/unistdio/u32-vsprintf.c: New file.
60376         * lib/unistdio/u32-u32-asnprintf.c: New file.
60377         * lib/unistdio/u32-u32-asprintf.c: New file.
60378         * lib/unistdio/u32-u32-snprintf.c: New file.
60379         * lib/unistdio/u32-u32-sprintf.c: New file.
60380         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60381         * lib/unistdio/u32-u32-vasprintf.c: New file.
60382         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60383         * lib/unistdio/u32-u32-vsprintf.c: New file.
60384         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60385         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60386         * tests/unistdio/test-ulc-printf1.h: New file.
60387         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60388         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60389         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60390         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60391         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60392         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60393         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60394         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60395         * tests/unistdio/test-u8-asnprintf1.c: New file.
60396         * tests/unistdio/test-u8-asnprintf1.h: New file.
60397         * tests/unistdio/test-u8-printf1.h: New file.
60398         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60399         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60400         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60401         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60402         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60403         * tests/unistdio/test-u8-vasprintf1.c: New file.
60404         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60405         * tests/unistdio/test-u8-vsprintf1.c: New file.
60406         * tests/unistdio/test-u16-asnprintf1.c: New file.
60407         * tests/unistdio/test-u16-asnprintf1.h: New file.
60408         * tests/unistdio/test-u16-printf1.h: New file.
60409         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60410         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60411         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60412         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60413         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60414         * tests/unistdio/test-u16-vasprintf1.c: New file.
60415         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60416         * tests/unistdio/test-u16-vsprintf1.c: New file.
60417         * tests/unistdio/test-u32-asnprintf1.c: New file.
60418         * tests/unistdio/test-u32-asnprintf1.h: New file.
60419         * tests/unistdio/test-u32-printf1.h: New file.
60420         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60421         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60422         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60423         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60424         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60425         * tests/unistdio/test-u32-vasprintf1.c: New file.
60426         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60427         * tests/unistdio/test-u32-vsprintf1.c: New file.
60428         * modules/unistdio/base: New file.
60429         * modules/unistdio/u-printf-args: New file.
60430         * modules/unistdio/ulc-asnprintf: New file.
60431         * modules/unistdio/ulc-asprintf: New file.
60432         * modules/unistdio/ulc-fprintf: New file.
60433         * modules/unistdio/ulc-printf-parse: New file.
60434         * modules/unistdio/ulc-snprintf: New file.
60435         * modules/unistdio/ulc-sprintf: New file.
60436         * modules/unistdio/ulc-vasnprintf: New file.
60437         * modules/unistdio/ulc-vasprintf: New file.
60438         * modules/unistdio/ulc-vfprintf: New file.
60439         * modules/unistdio/ulc-vsnprintf: New file.
60440         * modules/unistdio/ulc-vsprintf: New file.
60441         * modules/unistdio/u8-asnprintf: New file.
60442         * modules/unistdio/u8-asprintf: New file.
60443         * modules/unistdio/u8-printf-parse: New file.
60444         * modules/unistdio/u8-snprintf: New file.
60445         * modules/unistdio/u8-sprintf: New file.
60446         * modules/unistdio/u8-vasnprintf: New file.
60447         * modules/unistdio/u8-vasprintf: New file.
60448         * modules/unistdio/u8-vsnprintf: New file.
60449         * modules/unistdio/u8-vsprintf: New file.
60450         * modules/unistdio/u8-u8-asnprintf: New file.
60451         * modules/unistdio/u8-u8-asprintf: New file.
60452         * modules/unistdio/u8-u8-snprintf: New file.
60453         * modules/unistdio/u8-u8-sprintf: New file.
60454         * modules/unistdio/u8-u8-vasnprintf: New file.
60455         * modules/unistdio/u8-u8-vasprintf: New file.
60456         * modules/unistdio/u8-u8-vsnprintf: New file.
60457         * modules/unistdio/u8-u8-vsprintf: New file.
60458         * modules/unistdio/u16-asnprintf: New file.
60459         * modules/unistdio/u16-asprintf: New file.
60460         * modules/unistdio/u16-printf-parse: New file.
60461         * modules/unistdio/u16-snprintf: New file.
60462         * modules/unistdio/u16-sprintf: New file.
60463         * modules/unistdio/u16-vasnprintf: New file.
60464         * modules/unistdio/u16-vasprintf: New file.
60465         * modules/unistdio/u16-vsnprintf: New file.
60466         * modules/unistdio/u16-vsprintf: New file.
60467         * modules/unistdio/u16-u16-asnprintf: New file.
60468         * modules/unistdio/u16-u16-asprintf: New file.
60469         * modules/unistdio/u16-u16-snprintf: New file.
60470         * modules/unistdio/u16-u16-sprintf: New file.
60471         * modules/unistdio/u16-u16-vasnprintf: New file.
60472         * modules/unistdio/u16-u16-vasprintf: New file.
60473         * modules/unistdio/u16-u16-vsnprintf: New file.
60474         * modules/unistdio/u16-u16-vsprintf: New file.
60475         * modules/unistdio/u32-asnprintf: New file.
60476         * modules/unistdio/u32-asprintf: New file.
60477         * modules/unistdio/u32-printf-parse: New file.
60478         * modules/unistdio/u32-snprintf: New file.
60479         * modules/unistdio/u32-sprintf: New file.
60480         * modules/unistdio/u32-vasnprintf: New file.
60481         * modules/unistdio/u32-vasprintf: New file.
60482         * modules/unistdio/u32-vsnprintf: New file.
60483         * modules/unistdio/u32-vsprintf: New file.
60484         * modules/unistdio/u32-u32-asnprintf: New file.
60485         * modules/unistdio/u32-u32-asprintf: New file.
60486         * modules/unistdio/u32-u32-snprintf: New file.
60487         * modules/unistdio/u32-u32-sprintf: New file.
60488         * modules/unistdio/u32-u32-vasnprintf: New file.
60489         * modules/unistdio/u32-u32-vasprintf: New file.
60490         * modules/unistdio/u32-u32-vsnprintf: New file.
60491         * modules/unistdio/u32-u32-vsprintf: New file.
60492         * modules/unistdio/ulc-asnprintf-tests: New file.
60493         * modules/unistdio/ulc-vasnprintf-tests: New file.
60494         * modules/unistdio/ulc-vasprintf-tests: New file.
60495         * modules/unistdio/ulc-vsnprintf-tests: New file.
60496         * modules/unistdio/ulc-vsprintf-tests: New file.
60497         * modules/unistdio/u8-asnprintf-tests: New file.
60498         * modules/unistdio/u8-vasnprintf-tests: New file.
60499         * modules/unistdio/u8-vasprintf-tests: New file.
60500         * modules/unistdio/u8-vsnprintf-tests: New file.
60501         * modules/unistdio/u8-vsprintf-tests: New file.
60502         * modules/unistdio/u16-asnprintf-tests: New file.
60503         * modules/unistdio/u16-vasnprintf-tests: New file.
60504         * modules/unistdio/u16-vasprintf-tests: New file.
60505         * modules/unistdio/u16-vsnprintf-tests: New file.
60506         * modules/unistdio/u16-vsprintf-tests: New file.
60507         * modules/unistdio/u32-asnprintf-tests: New file.
60508         * modules/unistdio/u32-vasnprintf-tests: New file.
60509         * modules/unistdio/u32-vasprintf-tests: New file.
60510         * modules/unistdio/u32-vsnprintf-tests: New file.
60511         * modules/unistdio/u32-vsprintf-tests: New file.
60512         * MODULES.html.sh (Unicode string functions): Add the new modules.
60513
60514 2007-07-01  Bruno Haible  <bruno@clisp.org>
60515
60516         * lib/sprintf.c (sprintf): Limit the available length estimation,
60517         to avoid address wraparound.
60518         * lib/vsprintf.c (vsprintf): Likewise.
60519         * modules/sprintf-posix (Dependencies): Add stdint.
60520         * modules/vsprintf-posix (Dependencies): Likewise.
60521
60522 2007-07-01  Bruno Haible  <bruno@clisp.org>
60523
60524         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60525         Windows PATH as well. Conservative double-quoting. Comments.
60526
60527 2007-07-01  Bruno Haible  <bruno@clisp.org>
60528             Eric Blake  <ebb9@byu.net>
60529             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60530
60531         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60532         empty components in $PATH, denoting '.'.
60533
60534 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60535
60536         * gnulib-tool: Fix indentation.
60537         (func_create_megatestdir): Likewise.
60538         Report by Bruno Haible.
60539
60540 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60541
60542         Sync from Automake.
60543         * build-aux/gnupload: Fix shell portability issues with for loops.
60544         Report by Karl Berry.
60545
60546 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60547
60548         * build-aux/maint.mk (POURL): Use translationproject.org.
60549
60550 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60551             Bruno Haible  <bruno@clisp.org>
60552
60553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60554         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60555         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60556         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60557         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60558
60559 2007-06-27  Bruno Haible  <bruno@clisp.org>
60560
60561         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60562         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60563
60564 2007-06-26  Karl Berry  <karl@gnu.org>
60565
60566         * MODULES.html.sh: remove xreadlink-with-size.
60567
60568 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60569
60570         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60571         method that I hope also handles the double-include problem noted
60572         by Bruno Haible in
60573         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60574
60575 2007-06-23  Bruno Haible  <bruno@clisp.org>
60576
60577         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60578         Don't let the 'mostlyclean' target fail if the last subdirectory could
60579         not be removed.
60580         Reported by Karl Berry.
60581
60582 2007-06-23  Bruno Haible  <bruno@clisp.org>
60583
60584         * gnulib-tool (echo): Add a speedier workaround for ksh.
60585         * tests/test-echo.sh: Likewise.
60586
60587 2007-06-23  Bruno Haible  <bruno@clisp.org>
60588
60589         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60590         * tests/test-echo.sh: Likewise.
60591
60592 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60593
60594         * gnulib-tool (IFS): Initialize early, so we don't set it to
60595         empty later.
60596         (self_abspathname): Rewrite algorithm to set it, reindent.
60597         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60598         (func_create_megatestdir): Merge some sed scripts.
60599
60600 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60601
60602         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60603         exposed by Sun Studio 11 cc on Solaris 8.
60604
60605 2007-06-22  Bruno Haible  <bruno@clisp.org>
60606
60607         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60608         backslashes.
60609         * tests/test-echo.sh: New file.
60610
60611 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60612
60613         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60614         simplify `sed_replace_build_aux' scripts, they are portable but
60615         echoing them with `echo' is not.
60616         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60617
60618 2007-06-21  Karl Berry  <karl@gnu.org>
60619
60620         * config/srclist.txt: guess we can't handle the licenses via
60621         srclist at the moment.
60622
60623 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60624
60625         * MODULES.html.sh: Add include_next.
60626         * modules/include_next: New file.
60627
60628 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60629
60630         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60631         INCLUDE_NEXT.
60632         (gl_CHECK_NEXT_HEADERS): New macro.
60633         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60634         the obsolescent gl_ABSOLUTE_HEADER.
60635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60636         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60637         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60638         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60639         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60640         * m4/math_h.m4 (gl_MATH_H): Likewise.
60641         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60642         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60643         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60644         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60645         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60646         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60647         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60650         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60651         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60652         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60653         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60654         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60655         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60656         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60657         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60658         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60659         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60660         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60661         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60662         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60663         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60664         * lib/float_.h: Likewise.
60665         * lib/inttypes_.h: Likewise.
60666         * lib/math_.h: Likewise.
60667         * lib/search_.h: Likewise.
60668         * lib/signal_.h: Likewise.
60669         * lib/stdint_.h: Likewise.
60670         * lib/stdio_.h: Likewise.
60671         * lib/stdlib_.h: Likewise.
60672         * lib/string_.h: Likewise.
60673         * lib/sys_stat_.h: Likewise.
60674         * lib/sys_time_.h: Likewise.
60675         * lib/time_.h: Likewise.
60676         * lib/unistd_.h: Likewise.
60677         * lib/wchar_.h: Likewise.
60678         * lib/wctype_.h: Likewise.
60679         * lib/dirent_.h: Likewise.
60680         * lib/iconv_.h: Likewise.
60681         * lib/locale_.h: Likewise.
60682         * lib/netinet_in_.h: Likewise.
60683         * lib/sys_select_.h: Likewise.
60684         * lib/sys_socket_.h: Likewise.
60685         * lib/sysexits_.h: Likewise.
60686         * modules/fcntl (Depends-on): Depend on include_next, not
60687         absolute_header.
60688         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60689         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60690         * modules/fchdir: Likewise.
60691         * modules/float: Likewise.
60692         * modules/iconv_open: Likewise.
60693         * modules/inttypes: Likewise.
60694         * modules/locale: Likewise.
60695         * modules/math: Likewise.
60696         * modules/netinet_in: Likewise.
60697         * modules/search: Likewise.
60698         * modules/signal: Likewise.
60699         * modules/stdint: Likewise.
60700         * modules/stdio: Likewise.
60701         * modules/stdlib: Likewise.
60702         * modules/string: Likewise.
60703         * modules/sys_select: Likewise.
60704         * modules/sys_socket: Likewise.
60705         * modules/sys_stat: Likewise.
60706         * modules/sys_time: Likewise.
60707         * modules/sysexits: Likewise.
60708         * modules/time: Likewise.
60709         * modules/unistd: Likewise.
60710         * modules/wchar: Likewise.
60711         * modules/wctype: Likewise.
60712         * modules/sys_stat: Change maintainer to "all".
60713         * modules/unistd: Likewise.
60714
60715 2007-06-20  Karl Berry  <karl@gnu.org>
60716
60717         * config/srclist.txt: track www changes in license files.
60718
60719 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
60720
60721         * build-aux/bootstrap: Remove stray dot.
60722         Make sure build_aux settings are honored when linking
60723         gnulib_extra_files.
60724
60725 2007-06-19  Eric Blake  <ebb9@byu.net>
60726
60727         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60728         Allow compilation on cygwin.
60729
60730 2007-06-19  Jim Meyering  <jim@meyering.net>
60731
60732         xreadlink-with-size: Remove module.  No longer used.
60733         Ex-callers now use xreadlink or mreadlink-with-size.
60734         * modules/xreadlink-with-size: Remove module.
60735         * lib/xreadlink-with-size.c: Remove file.
60736         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
60737         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
60738         just before the function definition *is* accurate.
60739
60740         Eliminate one way canonicalize_filename_mode could exit.
60741         * lib/canonicalize.c (canonicalize_filename_mode):
60742         Use mreadlink_with_size, not xreadlink_with_size.
60743
60744 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
60745
60746         Detect porting problems to FreeBSD/arm, which has time_t wider than
60747         long int.  Original problem reported for GNU diff by Xin Li in
60748         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
60749         * modules/getdate (Depends-on): Add intprops, verify.
60750         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
60751         is an integer type no wider than long int.
60752
60753 2007-06-18  Jim Meyering  <jim@meyering.net>
60754
60755         New module: mreadlink-with-size.
60756         * MODULES.html.sh: Add mreadlink-with-size.
60757         * modules/mreadlink-with-size: New module
60758         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60759         not xreadlink-with-size.
60760         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60761
60762 2007-06-16  Bruno Haible  <bruno@clisp.org>
60763
60764         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60765         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60766         Reported by Gary V. Vaughan <gary@gnu.org>.
60767
60768 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60769
60770         Revamp lchown so that it lives in unistd.h where it belongs.
60771         * lib/lchown.h: Remove.
60772         * lib/dirchownmod.c: Don't include lib/lchown.h.
60773         * lib/fchownat.c: Likewise.
60774         * lib/openat.c: Likewise.
60775         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
60776         does not follow symlinks.
60777         (EOPNOTSUPP): Define if not defined.
60778         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60779         is defined to 0.
60780         (lchown): New decl.
60781         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60782         Do not check for lchown decl.
60783         Set REPLACE_LCHOWN.
60784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60785         REPLACE_LCHOWN.
60786         * modules/chown: Make it clear it follows symlinks.
60787         * modules/lchown: Make it clear it doesn't follow symlinks.
60788         (Files): Remove lib/lchown.h
60789         (Depends-on): Add unistd.
60790         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60791         (Include): Include <unistd.h>, not "lchown.h".
60792         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60793         REPLACE_LCHOWN.
60794
60795 2007-06-15  Jim Meyering  <jim@meyering.net>
60796
60797         Change license (GPL to LGPL) of fsusage and dependents.
60798         * modules/fsusage (License): Change to LGPL.
60799         * modules/full-read (License): Likewise.
60800         * modules/full-write (License): Likewise.
60801         * modules/safe-read (License): Likewise.
60802         * modules/safe-write (License): Likewise.
60803
60804 2007-06-14  Ben Pfaff  <blp@gnu.org>
60805
60806         Missing part of allocsa -> malloca transition.
60807         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60808         gl_MALLOCA.
60809
60810 2007-06-12  Bruno Haible  <bruno@clisp.org>
60811
60812         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60813         to ia64, x86_64, i386.
60814         Reported by Eric Blake.
60815
60816 2007-06-12  Bruno Haible  <bruno@clisp.org>
60817
60818         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60819         cross-compiling to x86_64.
60820
60821 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60822
60823         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60824         glitch reported by Ralf Wildenhues in
60825         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60826
60827         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60828         Vin Shelton.
60829
60830 2007-06-11  Bruno Haible  <bruno@clisp.org>
60831
60832         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60833         replacement string.
60834         Reported by Eric Blake.
60835
60836 2007-06-10  Bruno Haible  <bruno@clisp.org>
60837
60838         Prepare vasnprintf code for use with Unicode strings.
60839         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60840         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60841         TYPE_U32_STRING.
60842         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60843         a_u32_string variants.
60844         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60845         * lib/printf-args.c: Don't include config.h and the specification
60846         header if PRINTF_FETCHARGS is already defined.
60847         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60848         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60849         TYPE_U16_STRING, TYPE_U32_STRING.
60850         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60851         u16_directive, u16_directives, u32_directive, u32_directives): New
60852         types.
60853         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60854         New declarations.
60855         * lib/printf-parse.c: Don't include config.h and the specification
60856         header if PRINTF_PARSE is already defined. Eliminate the set of
60857         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60858         them now. Include c-ctype.h.
60859         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60860         directive and CHAR_T_ONLY_ASCII.
60861         * lib/vasnprintf.c: Don't include config.h and the specification header
60862         if VASNPRINTF is already defined.
60863         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60864         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60865         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60866         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60867         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60868         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60869         code accordingly.
60870         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60871         pad_ourselves also in this case, with the 'c' and 's' directives, and
60872         with a different notion of "width".
60873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60874
60875 2007-06-10  Bruno Haible  <bruno@clisp.org>
60876
60877         * modules/unistr/u32-mbsnlen: New file.
60878         * lib/unistr/u32-mbsnlen.c: New file.
60879
60880         * modules/unistr/u16-mbsnlen: New file.
60881         * lib/unistr/u16-mbsnlen.c: New file.
60882
60883         * modules/unistr/u8-mbsnlen: New file.
60884         * lib/unistr/u8-mbsnlen.c: New file.
60885
60886         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60887         declarations.
60888
60889 2007-06-10  Bruno Haible  <bruno@clisp.org>
60890
60891         * lib/string_.h (mbsnlen): New declaration.
60892         * lib/mbsnlen.c: New file.
60893         * m4/mbsnlen.m4: New file.
60894         * modules/mbsnlen: New file.
60895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60896         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60897         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60898
60899 2007-06-10  Bruno Haible  <bruno@clisp.org>
60900
60901         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60902
60903 2007-06-10  Bruno Haible  <bruno@clisp.org>
60904
60905         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60906         * lib/mbuiter.h: Likewise.
60907
60908 2007-06-10  Bruno Haible  <bruno@clisp.org>
60909
60910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60911         declaration.
60912
60913 2007-06-10  Karl Berry  <karl@gnu.org>
60914
60915         * config/srclist.txt: remove gettext entries, Bruno prefers
60916         to update individually.
60917
60918 2007-06-10  Bruno Haible  <bruno@clisp.org>
60919
60920         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60921         'maxlen'. Ensure only length + width bytes are allocated, not
60922         length + 1 + width.
60923
60924 2007-06-09  Bruno Haible  <bruno@clisp.org>
60925
60926         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60927         (CHAR_T): Remove macro.
60928         (VASNPRINTF): Update.
60929
60930 2007-06-09  Bruno Haible  <bruno@clisp.org>
60931
60932         * MODULES.html.sh (Unicode string functions): Add the new modules.
60933
60934         * modules/uniconv/u32-conv-to-enc: New file.
60935         * lib/uniconv/u32-conv-to-enc.c: New file.
60936         * modules/uniconv/u32-conv-to-enc-tests: New file.
60937         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60938
60939         * modules/uniconv/u16-conv-to-enc: New file.
60940         * lib/uniconv/u16-conv-to-enc.c: New file.
60941         * lib/uniconv/u-conv-to-enc.h: New file.
60942         * modules/uniconv/u16-conv-to-enc-tests: New file.
60943         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60944
60945         * modules/uniconv/u8-conv-to-enc: New file.
60946         * lib/uniconv/u8-conv-to-enc.c: New file.
60947         * modules/uniconv/u8-conv-to-enc-tests: New file.
60948         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60949
60950         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60951         u32_conv_to_encoding): New declarations.
60952
60953 2007-06-09  Bruno Haible  <bruno@clisp.org>
60954
60955         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60956
60957 2007-06-09  Bruno Haible  <bruno@clisp.org>
60958
60959         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60960         * modules/malloca: Renamed from modules/allocsa, updated.
60961         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60962         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60963         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60964         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60965         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60966         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60967         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60968         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60969         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60970         * modules/c-strcasestr (Depends-on): Update.
60971         * lib/c-strcasestr.c: Update.
60972         * modules/c-strstr (Depends-on): Update.
60973         * lib/c-strstr.c: Update.
60974         * modules/canonicalize-lgpl (Depends-on): Update.
60975         * lib/canonicalize-lgpl.c: Update.
60976         * modules/clean-temp (Depends-on): Update.
60977         * lib/clean-temp.c: Update.
60978         * modules/csharpcomp (Depends-on): Update.
60979         * lib/csharpcomp.c: Update.
60980         * modules/csharpexec (Depends-on): Update.
60981         * lib/csharpexec.c: Update.
60982         * modules/javacomp (Depends-on): Update.
60983         * lib/javacomp.c: Update.
60984         * modules/javaexec (Depends-on): Update.
60985         * lib/javaexec.c: Update.
60986         * modules/mbscasestr (Depends-on): Update.
60987         * lib/mbscasestr.c: Update.
60988         * modules/mbsstr (Depends-on): Update.
60989         * lib/mbsstr.c: Update.
60990         * modules/setenv (Depends-on): Update.
60991         * lib/setenv.c: Update.
60992         * modules/strcasestr (Depends-on): Update.
60993         * lib/strcasestr.c: Update.
60994         * modules/striconveha (Depends-on): Update.
60995         * lib/striconveha.c: Update.
60996         * modules/relocatable-prog-wrapper (Files): Update.
60997         * lib/relocwrapper.c: Update.
60998         * build-aux/install-reloc: Update.
60999         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61000
61001 2007-06-08  Bruno Haible  <bruno@clisp.org>
61002
61003         Port to uClibc.
61004         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61005         * lib/fpurge.c (fpurge): Likewise.
61006         * lib/freading.c (freading): Likewise.
61007         * lib/fseeko.c (rpl_fseeko): Likewise.
61008         * lib/fseterr.c (fseterr): Likewise.
61009         * lib/fwriting.c (fwriting): Likewise.
61010         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61011
61012 2007-06-08  Bruno Haible  <bruno@clisp.org>
61013
61014         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61015         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61016         * modules/gettext (Files): Add m4/intlmacosx.m4.
61017
61018 2007-06-07  Bruno Haible  <bruno@clisp.org>
61019
61020         * modules/localename-tests: New file.
61021         * tests/test-localename.c: New file.
61022
61023         New module 'localename'.
61024         * lib/localename.h: New file.
61025         * lib/localename.c: New file, from GNU gettext.
61026         * m4/localename.m4: New file.
61027         * modules/localename: New file.
61028
61029 2007-06-07  Bruno Haible  <bruno@clisp.org>
61030
61031         Work around the lack of <wchar.h> on some builds of uClibc.
61032         * doc/headers/wchar.texi: Update.
61033         * lib/wchar_.h: Include <wchar.h> only if it exists.
61034         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61035         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61036         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61037         doesn't exist.
61038         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61039         * modules/mbfile (Depends-on): Add wchar.
61040         * modules/mbiter (Depends-on): Likewise.
61041         * modules/mbuiter (Depends-on): Likewise.
61042         Reported by Simon Josefsson.
61043
61044 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61045
61046         Work around problem reported by Steven M. Schweda in
61047         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61048         Tru64 5.1B with the Compaq compiler environment installed declares
61049         an 'isblank' function but does not define it in the C library.
61050         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61051         * lib/regex_internal.h (isblank): Likewise.
61052         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61053         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61054
61055 2007-06-05  Bruno Haible  <bruno@clisp.org>
61056
61057         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61058         ia64.
61059         * modules/printf-safe: New file.
61060         * modules/fprintf-posix (Depends-on): Add printf-safe.
61061         * modules/printf-posix (Depends-on): Likewise.
61062         * modules/snprintf-posix (Depends-on): Likewise.
61063         * modules/sprintf-posix (Depends-on): Likewise.
61064         * modules/vasnprintf-posix (Depends-on): Likewise.
61065         * modules/vasprintf-posix (Depends-on): Likewise.
61066         * modules/vfprintf-posix (Depends-on): Likewise.
61067         * modules/vprintf-posix (Depends-on): Likewise.
61068         * modules/vsnprintf-posix (Depends-on): Likewise.
61069         * modules/vsprintf-posix (Depends-on): Likewise.
61070         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61071         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61072         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61073         "no" on i386, x86_64, ia64.
61074         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61075         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61076         on i386, x86_64, ia64.
61077         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61078         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61079         on i386, x86_64, ia64.
61080         * tests/test-vasnprintf-posix.c: Include float.h.
61081         (LDBL80_WORDS): New macro.
61082         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61083         on i386, x86_64, ia64.
61084         * tests/test-vasprintf-posix.c: Include float.h.
61085         (LDBL80_WORDS): New macro.
61086         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61087         on i386, x86_64, ia64.
61088         * tests/test-snprintf-posix.c: Include float.h.
61089         * tests/test-sprintf-posix.c: Likewise.
61090         * tests/test-vsnprintf-posix.c: Likewise.
61091         * tests/test-vsprintf-posix.c: Likewise.
61092
61093 2007-06-05  Bruno Haible  <bruno@clisp.org>
61094
61095         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61096         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61097         non-IEEE numbers on i386, x86_64, ia64.
61098         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61099         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61100         * tests/test-isnanl.h: Include float.h.
61101         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61102
61103 2007-06-05  Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61106         also the %a / %A. Handle the %a / %A code before this extra handling.
61107
61108 2007-06-05  Bruno Haible  <bruno@clisp.org>
61109
61110         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61111         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61112
61113 2007-06-05  Bruno Haible  <bruno@clisp.org>
61114
61115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61116         typo in variable name.
61117
61118 2007-06-05  Eric Blake  <ebb9@byu.net>
61119
61120         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61121         Reported by Simon Josefsson.
61122
61123 2007-06-04  Bruno Haible  <bruno@clisp.org>
61124
61125         Avoid test failures on some PowerPC platforms.
61126         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61127         Define differently for PowerPC.
61128         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61129         Reported by Gary V. Vaughan <gary@gnu.org>.
61130
61131 2007-06-02  Bruno Haible  <bruno@clisp.org>
61132
61133         Fix test-stdint failure on FreeBSD/ia64.
61134         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61135         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61136         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61137         * doc/headers/stdint.texi: Update.
61138
61139 2007-06-01  Bruno Haible  <bruno@clisp.org>
61140
61141         * tests/test-binary-io.c (main): Pass a third argument to open().
61142         Reported by Gary V. Vaughan <gary@gnu.org>.
61143
61144 2007-06-01  Bruno Haible  <bruno@clisp.org>
61145
61146         * doc/functions/frexpl.texi: Update for mingw.
61147
61148 2007-06-01  Bruno Haible  <bruno@clisp.org>
61149
61150         * tests/test-lseek.c (main): Disable test of errno for invalid third
61151         argument.
61152         * doc/functions/lseek.texi: Update.
61153         Reported by Gary V. Vaughan <gary@gnu.org>.
61154
61155 2007-05-28  Bruno Haible  <bruno@clisp.org>
61156
61157         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61158
61159 2007-05-31  Eric Blake  <ebb9@byu.net>
61160
61161         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61162         cross compiling.
61163
61164 2007-05-30  Eric Blake  <ebb9@byu.net>
61165         and Bruno Haible  <bruno@clisp.org>
61166
61167         Work around mingw test failures exposed by m4-1.4.9b.
61168         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61169         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61170         moment.
61171
61172 2007-05-30  Bruno Haible  <bruno@clisp.org>
61173
61174         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61175         assuming that they are closed. Needed on HP-UX 11.
61176
61177 2007-05-29  Bruno Haible  <bruno@clisp.org>
61178
61179         Fix a problem with #include_next.
61180         * lib/dirent_.h: Split the double-inclusion guard.
61181         * lib/fcntl_.h: Likewise.
61182         * lib/float_.h: Likewise.
61183         * lib/iconv_.h: Likewise.
61184         * lib/inttypes_.h: Likewise.
61185         * lib/locale_.h: Likewise.
61186         * lib/math_.h: Likewise.
61187         * lib/netinet_in_.h: Likewise.
61188         * lib/search_.h: Likewise.
61189         * lib/signal_.h: Likewise.
61190         * lib/stdint_.h: Likewise.
61191         * lib/stdio_.h: Likewise.
61192         * lib/stdlib_.h: Likewise.
61193         * lib/string_.h: Likewise.
61194         * lib/sys_select_.h: Likewise.
61195         * lib/sys_socket_.h: Likewise.
61196         * lib/sys_stat_.h: Likewise.
61197         * lib/sys_time_.h: Likewise.
61198         * lib/sysexits_.h: Likewise.
61199         * lib/time_.h: Likewise.
61200         * lib/unistd_.h: Likewise.
61201         * lib/wchar_.h: Likewise.
61202         * lib/wctype_.h: Likewise.
61203
61204 2007-05-29  Bruno Haible  <bruno@clisp.org>
61205
61206         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61207         for the moment.
61208
61209 2007-05-29  Bruno Haible  <bruno@clisp.org>
61210
61211         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61212         invocation.
61213         Reported by Eric Blake.
61214
61215 2007-05-29  Bruno Haible  <bruno@clisp.org>
61216
61217         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61218         compiling case.
61219
61220 2007-05-29  Eric Blake  <ebb9@byu.net>
61221             Bruno Haible  <bruno@clisp.org>
61222
61223         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61224         cross compiles.
61225
61226 2007-05-28  Eric Blake  <ebb9@byu.net>
61227
61228         * modules/closein-tests (test_closein_LDADD): Support test on
61229         cygwin with libtool.
61230
61231 2007-05-28  Bruno Haible  <bruno@clisp.org>
61232
61233         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61234         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61235         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61236         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61237         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61238         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61239         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61240         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61241         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61242
61243 2007-05-28  Eric Blake  <ebb9@byu.net>
61244
61245         Unconditionally include <config.h> in unit tests.
61246         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61247         * tests/test-allocsa.c, tests/test-arcfour.c,
61248         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61249         tests/test-array_list.c, tests/test-array_oset.c,
61250         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61251         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61252         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61253         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61254         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61255         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61256         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61257         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61258         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61259         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61260         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61261         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61262         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61263         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61264         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61265         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61266         test-md5.c, test-memmem.c, test-printf-posix.c,
61267         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61268         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61269         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61270         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61271         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61272         test-vasnprintf-posix2.c, test-vasnprintf.c,
61273         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61274         test-vfprintf-posix.c, test-vprintf-posix.c,
61275         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61276         test-xvasprintf.c: Likewise.
61277
61278 2007-05-28  Bruno Haible  <bruno@clisp.org>
61279
61280         * gnulib-tool (func_import): Remember the --with-tests command-line
61281         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61282         Reported by Eric Blake.
61283
61284 2007-05-28  Bruno Haible  <bruno@clisp.org>
61285
61286         * modules/ftell-tests: New file.
61287         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61288         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61289
61290         * lib/ftell.c: New file.
61291         * modules/ftell: New file.
61292         * m4/ftell.m4: New file.
61293         * doc/functions/ftell.texi: Update.
61294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61295         REPLACE_FTELL.
61296         * lib/stdio_.h (rpl_ftell): New declaration.
61297         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61298         REPLACE_FTELL.
61299
61300 2007-05-28  Eric Blake  <ebb9@byu.net>
61301
61302         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61303
61304 2007-05-28  Bruno Haible  <bruno@clisp.org>
61305
61306         * modules/fseek-tests: New file.
61307         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61308         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61309
61310         * lib/fseek.c: New file.
61311         * modules/fseek: New file.
61312         * m4/fseek.m4: New file.
61313         * doc/functions/fseek.texi: Update.
61314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61315         REPLACE_FSEEK.
61316         * lib/stdio_.h (rpl_fseek): New declaration.
61317         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61318         REPLACE_FSEEK.
61319
61320 2007-05-28  Bruno Haible  <bruno@clisp.org>
61321
61322         * lib/stdio_.h (fflush): More comments.
61323
61324 2007-05-28  Bruno Haible  <bruno@clisp.org>
61325
61326         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61327         runtime test.
61328
61329 2007-05-28  Eric Blake  <ebb9@byu.net>
61330
61331         Improve lseek module.
61332         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61333         * lib/unistd_.h (lseek): Scale back link warning message.
61334         * tests/test-lseek.c: Beef up test.
61335         * tests/test-lseek.sh: Exercise more facets of lseek.
61336         Reported by Bruno Haible.
61337
61338 2007-05-28  Bruno Haible  <bruno@clisp.org>
61339
61340         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61341         to define.
61342
61343 2007-05-27  Bruno Haible  <bruno@clisp.org>
61344
61345         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61346
61347 2007-05-27  Bruno Haible  <bruno@clisp.org>
61348
61349         * modules/openmp: New file.
61350         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61351         Noah Misch.
61352
61353 2007-05-26  Bruno Haible  <bruno@clisp.org>
61354
61355         * modules/chdir-long (Depends-on): Add fchdir.
61356         * modules/chdir-safer (Depends-on): Likewise.
61357         * modules/fts (Depends-on): Likewise.
61358         * modules/fts-lgpl (Depends-on): Likewise.
61359         * modules/openat (Depends-on): Likewise.
61360         * modules/savewd (Depends-on): Likewise.
61361
61362 2007-05-24  Eric Blake  <ebb9@byu.net>
61363
61364         Fix lseek on mingw.
61365         * modules/lseek: New module.
61366         * m4/lseek.m4: New file.
61367         * lib/lseek.c: New file.
61368         * modules/lseek-tests: New file.
61369         * tests/test-lseek.c: New file.
61370         * tests/test-lseek.sh: New file.
61371         * MODULES.html.sh: Document lseek module.
61372         * modules/fflush (Depends-on): Add lseek, fseeko.
61373         * modules/fseeko (Depends-on): Likewise.
61374         * modules/ftello (Depends-on): Likewise.
61375         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61376         broken.
61377         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61378         broken.
61379         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61380         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61381         * lib/ftello.c (rpl_ftello): Likewise.
61382         * tests/test-fseeko.c (main): Test this.
61383         * tests/test-fseeko.sh: Likewise.
61384         * tests/test-ftello.c (main): Likewise.
61385         * tests/test-ftello.sh: Likewise.
61386         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61387         implies replacing fseek.
61388         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61389         HAVE_FTELLO.
61390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61391         * modules/unistd (Makefile.am): Likewise.
61392         * lib/unistd_.h (lseek): Declare a replacement.
61393         * doc/functions/lseek.texi (lseek): Document this fix.
61394         * doc/functions/fseek.texi (fseek): Likewise.
61395         * doc/functions/ftell.texi (ftell): Likewise.
61396
61397 2007-05-24  Bruno Haible  <bruno@clisp.org>
61398
61399         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61400         in the printed representation of a NaN.
61401         * tests/test-vasprintf-posix.c (test_function): Likewise.
61402         * tests/test-snprintf-posix.h (test_function): Likewise.
61403         * tests/test-sprintf-posix.h (test_function): Likewise.
61404         Reported by Eric Blake.
61405
61406 2007-05-23  Eric Blake  <ebb9@byu.net>
61407
61408         Fix fseeko/ftello on cygwin 1.5.24.
61409         * doc/functions/fseeko.texi (fseeko): Document the fix.
61410         * doc/functions/ftello.texi (ftello): Document the fix.
61411         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61412         * doc/functions/stdout.text (stdout): New file.
61413         * doc/functions/stderr.text (stderr): New file.
61414         * doc/gnulib.texi (Function Substitutes): Use new files.
61415         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61416         prior to 1.7.0.
61417         * tests/test-ftello.c (main): Likewise for ftello.
61418         * tests/test-fseeko.sh: New file.
61419         * tests/test-ftello.sh: New file.
61420         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61421         with seekable stdin.
61422         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61423         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61424         (gl_REPLACE_FSEEKO): New macro.
61425         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61426         * modules/fseeko (Files): Distribute fseeko.c.
61427         * modules/ftello (Files): Distribute ftello.c.
61428         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61429         mode.
61430         * lib/ftello.c (rpl_ftello): New file.
61431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61432         fseeko, ftello.
61433         (gl_STDIN_LARGE_OFFSET): New macro.
61434         * modules/stdio (Makefile.am): Perform the replacement.
61435         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61436
61437 2007-05-23  Bruno Haible  <bruno@clisp.org>
61438
61439         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61440         GNULIB_POSIXCHECK is defined.
61441
61442 2007-05-21  Bruno Haible  <bruno@clisp.org>
61443
61444         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61445         Check also the output for NaN arguments. When cross-compiling, guess
61446         no on IRIX.
61447         * lib/vasnprintf.c: Update comments.
61448         * tests/test-vasnprintf-posix.c (strisnan): New function.
61449         (test_function): Use it.
61450         * tests/test-vasprintf-posix.c (strisnan): New function.
61451         (test_function): Use it.
61452         * tests/test-snprintf-posix.h (strisnan): New function.
61453         (test_function): Use it.
61454         * tests/test-sprintf-posix.h (strisnan): New function.
61455         (test_function): Use it.
61456         Reported by Eric Blake.
61457
61458 2007-05-20  Bruno Haible  <bruno@clisp.org>
61459
61460         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61461         numbers that fails on BeOS.
61462         * doc/functions/frexpl.texi: Update.
61463
61464 2007-05-20  Jim Meyering  <jim@meyering.net>
61465
61466         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61467         forced upon us by glibc-2.6.
61468
61469 2007-05-20  Bruno Haible  <bruno@clisp.org>
61470
61471         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61472         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61473         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61474         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61475         NEED_PRINTF_INFINITE.
61476         (is_infinitel): New function.
61477         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61479         gl_PREREQ_VASNPRINTF_INFINITE.
61480         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61481         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61482         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61483         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61484         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61485         gl_PREREQ_VASNPRINTF_INFINITE.
61486         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61487         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61488         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61489         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61490         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61491         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61492         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61493         * doc/functions/fprintf.texi: Update.
61494         * doc/functions/printf.texi: Update.
61495         * doc/functions/snprintf.texi: Update.
61496         * doc/functions/sprintf.texi: Update.
61497         * doc/functions/vfprintf.texi: Update.
61498         * doc/functions/vprintf.texi: Update.
61499         * doc/functions/vsnprintf.texi: Update.
61500         * doc/functions/vsprintf.texi: Update.
61501
61502 2007-05-20  Bruno Haible  <bruno@clisp.org>
61503
61504         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61505         was not found in libc.
61506         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61507
61508 2007-05-20  Bruno Haible  <bruno@clisp.org>
61509
61510         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61511         printed as "-nan" instead of "nan".
61512         * tests/test-vasprintf-posix.c (test_function): Likewise.
61513         * tests/test-snprintf-posix.h (test_function): Likewise.
61514         * tests/test-sprintf-posix.h (test_function): Likewise.
61515         Needed for HP-UX 11.
61516
61517 2007-05-20  Jim Meyering  <jim@meyering.net>
61518
61519         Fix buggy test for the fchownat-deref bug.
61520         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61521         symlink required for the run-test.  Without it, this test would
61522         always declare that fchownat doesn't work, and client code would
61523         unnecessarily use the replacement function with fixed libc.
61524         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61525         Reported by Greg Schafer.
61526
61527 2007-05-19  Bruno Haible  <bruno@clisp.org>
61528
61529         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61530         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61531         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61532         Needed for IRIX 6.5 and Solaris 2.5.1.
61533
61534 2007-05-19  Bruno Haible  <bruno@clisp.org>
61535
61536         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61537         (test_function): Skip tests involving -0.0 on platforms where
61538         -0.0 = 0.0.
61539         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61540         (test_function): Skip tests involving -0.0 on platforms where
61541         -0.0 = 0.0.
61542         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61543         (test_function): Skip tests involving -0.0 on platforms where
61544         -0.0 = 0.0.
61545         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61546         (test_function): Skip tests involving -0.0 on platforms where
61547         -0.0 = 0.0.
61548         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61549         tests.
61550         * tests/test-printf-posix.h (test_function): Likewise.
61551         * tests/test-printf-posix.output: Remove all -0.0 related results.
61552         Needed for IRIX 6.5.
61553
61554 2007-05-19  Bruno Haible  <bruno@clisp.org>
61555
61556         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61557         printed as "nan0x7fffffff" instead of "nan".
61558         * tests/test-vasprintf-posix.c (test_function): Likewise.
61559         * tests/test-snprintf-posix.h (test_function): Likewise.
61560         * tests/test-sprintf-posix.h (test_function): Likewise.
61561         * tests/test-fprintf-posix.h (NaN): Remove macro.
61562         (test_function): Remove all NaN related tests.
61563         * tests/test-printf-posix.h (NaN): Remove macro.
61564         (test_function): Remove all NaN related tests.
61565         * tests/test-printf-posix.output: Remove all NaN related results.
61566         Needed for IRIX 6.5.
61567
61568 2007-05-19  Bruno Haible  <bruno@clisp.org>
61569
61570         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61571         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61572
61573 2007-05-19  Bruno Haible  <bruno@clisp.org>
61574
61575         * lib/float_.h: New file.
61576         * m4/float_h.m4: New file.
61577         * modules/float: New file.
61578         * modules/isnanl (Dependencies): Add float.
61579         * modules/isnanl-nolibm (Dependencies): Likewise.
61580         * modules/mathl (Dependencies): Likewise.
61581         * modules/printf-frexpl (Dependencies): Likewise.
61582         * modules/signbit (Dependencies): Likewise.
61583         * modules/vasnprintf (Dependencies): Likewise.
61584         * doc/headers/float.texi: Update.
61585
61586 2007-05-19  Jim Meyering  <jim@meyering.net>
61587
61588         * lib/utimens.c (gl_futimens): Rename from futimens,
61589         now that glibc-2.6 declares futimens.
61590         * lib/utimens.h: Likewise.
61591
61592 2007-05-19  Bruno Haible  <bruno@clisp.org>
61593
61594         Avoid test failures on mingw.
61595         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61596         * tests/test-printf-posix.sh: Likewise.
61597         * tests/test-vfprintf-posix.sh: Likewise.
61598         * tests/test-vprintf-posix.sh: Likewise.
61599
61600 2007-05-19  Bruno Haible  <bruno@clisp.org>
61601
61602         Fix *printf result for NaN, Inf, -0.0 on mingw.
61603         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61604         * lib/vasnprintf.c: Include math.h and isnan.h.
61605         (is_infinite_or_zero): New function.
61606         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61607         values in the %f, %F, %e, %E, %g, %G directives.
61608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61609         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61610         gl_PRINTF_INFINITE and test its result. Invoke
61611         gl_PREREQ_VASNPRINTF_INFINITE.
61612         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61613         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61614         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61615         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61616         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61618         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61619         * doc/functions/fprintf.texi: Update.
61620         * doc/functions/printf.texi: Update.
61621         * doc/functions/snprintf.texi: Update.
61622         * doc/functions/sprintf.texi: Update.
61623         * doc/functions/vfprintf.texi: Update.
61624         * doc/functions/vprintf.texi: Update.
61625         * doc/functions/vsnprintf.texi: Update.
61626         * doc/functions/vsprintf.texi: Update.
61627
61628 2007-05-19  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61631         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61632         Instead of multiplying with 10^k, set extra_zeroes to k.
61633         (scale10_round_long_double): Remove function.
61634
61635 2007-05-18  Bruno Haible  <bruno@clisp.org>
61636
61637         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61638         introduced on 2007-05-06.
61639
61640 2007-05-18  Bruno Haible  <bruno@clisp.org>
61641
61642         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61643         %g directives.
61644         * tests/test-vasprintf-posix.c (test_function): Likewise.
61645         * tests/test-snprintf-posix.h (test_function): Likewise.
61646         * tests/test-sprintf-posix.h (test_function): Likewise.
61647
61648 2007-05-18  Bruno Haible  <bruno@clisp.org>
61649
61650         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61651         (strmatch): New function.
61652         (test_function): Test the %f directive on numbers of various exponents.
61653         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61654         (strmatch): New function.
61655         (test_function): Test the %f directive on numbers of various exponents.
61656         * tests/test-snprintf-posix.h (strmatch): New function.
61657         (test_function): Test the %f directive on numbers of various exponents.
61658         * tests/test-sprintf-posix.h (strmatch): New function.
61659         (test_function): Test the %f directive on numbers of various exponents.
61660         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61661         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61662         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61663         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61664
61665 2007-05-18  Bruno Haible  <bruno@clisp.org>
61666
61667         Add support for 'long double' number output.
61668         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61669         * lib/vasnprintf.c: Include math.h and float+.h.
61670         (mp_limb_t): New type.
61671         (GMP_LIMB_BITS): New macro.
61672         (mp_twolimb_t): New type.
61673         (GMP_TWOLIMB_BITS): New macro.
61674         (mpn_t): New type.
61675         (multiply, divide, convert_to_decimal, decode_long_double,
61676         scale10_round_long_double, scale10_round_decimal_long_double,
61677         floorlog10l): New functions.
61678         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61679         for the %f, %F, %e, %E, %g, %G directives.
61680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61681         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61682         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61683         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61684         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61685         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61687         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61688         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61689         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61690         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61691         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61692         * modules/snprintf-posix (Depends-on): Likewise.
61693         * modules/sprintf-posix (Depends-on): Likewise.
61694         * modules/vasnprintf-posix (Depends-on): Likewise.
61695         * modules/vasprintf-posix (Depends-on): Likewise.
61696         * modules/vfprintf-posix (Depends-on): Likewise.
61697         * modules/vsnprintf-posix (Depends-on): Likewise.
61698         * modules/vsprintf-posix (Depends-on): Likewise.
61699         * modules/vasnprintf (Files): Add lib/float+.h.
61700         * doc/functions/fprintf.texi: Update.
61701         * doc/functions/printf.texi: Update.
61702         * doc/functions/snprintf.texi: Update.
61703         * doc/functions/sprintf.texi: Update.
61704         * doc/functions/vfprintf.texi: Update.
61705         * doc/functions/vprintf.texi: Update.
61706         * doc/functions/vsnprintf.texi: Update.
61707         * doc/functions/vsprintf.texi: Update.
61708
61709 2007-05-18  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
61712
61713 2007-05-18  Bruno Haible  <bruno@clisp.org>
61714
61715         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
61716         for printing 64-bit integers. Needed for mingw.
61717
61718 2007-05-18  Bruno Haible  <bruno@clisp.org>
61719
61720         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61721         gl_FUNC_FREXPL_WORKS.
61722         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
61723
61724 2007-05-18  Bruno Haible  <bruno@clisp.org>
61725
61726         * modules/frexpl-nolibm-tests: New file.
61727
61728         * modules/frexpl-nolibm: New file.
61729         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
61730
61731 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61732
61733         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
61734         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61735         GCC 4.2, which otherwise issues a lot of warnings.
61736         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
61737         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
61738         Likewise.
61739         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
61740         * modules/iconv_open (iconv.h): Likewise.
61741         * modules/locale (locale.h): Likewise.
61742         * modules/netinet_in (netinet/in.h): Likewise.
61743         * modules/sys_select (sys_select.h): Likewise.
61744         * modules/sys_socket (sys/socket.h): Likewise.
61745         * modules/sys_stat (sys/stat.h): Likewise.
61746         * modules/sysexits (sysexits.h): Likewise.
61747         * modules/unistd (unistd.h): Likewise.
61748
61749 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61750
61751         * modules/closein-tests (Makefile.am): Distribute
61752         `test-closein.sh'.
61753
61754 2007-05-17  Bruno Haible  <bruno@clisp.org>
61755
61756         * tests/test-printf-posix.output: Renamed from
61757         tests/test-fprintf-posix.out.
61758         * modules/fprintf-posix-tests: Update.
61759         * modules/printf-posix-tests: Update.
61760         * modules/vfprintf-posix-tests: Update.
61761         * modules/vprintf-posix-tests: Update.
61762         * tests/test-fprintf-posix.sh: Update.
61763         * tests/test-printf-posix.sh: Update.
61764         * tests/test-vfprintf-posix.sh: Update.
61765         * tests/test-vprintf-posix.sh: Update.
61766         Reported by Ralf Wildenhues.
61767
61768 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61769
61770         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
61771         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61772         GCC 4.2, which otherwise issues a lot of warnings.
61773         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
61774         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
61775         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
61776         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
61777         it should no longer be needed.
61778         * lib/string_.h: Likewise.
61779         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61780         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61781         * modules/inttypes (inttypes.h): Likewise.
61782         * modules/math (math.h): Likewise.
61783         * modules/search (search.h): Likewise.
61784         * modules/signal (signal.h): Likewise.
61785         * modules/stdint (stdint.h): Likewise.
61786         * modules/stdio (stdio.h): Likewise.
61787         * modules/stdlib (stdlib.h): Likewise.
61788         * modules/string (string.h): Likewise.
61789         * modules/sys_time (sys/time.h): Likewise.
61790         * modules/time (time.h): Likewise.
61791         * modules/wchar (wchar.h): Likewise.
61792         * modules/wctype (wtype.h): Likewise.
61793
61794 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61795
61796         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61797
61798 2007-05-13  Bruno Haible  <bruno@clisp.org>
61799
61800         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61801         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61802         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61803         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61804         (gl_PREREQ_STRTOK_R): Don't require it here.
61805
61806 2007-05-13  Bruno Haible  <bruno@clisp.org>
61807
61808         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61809         when used in C++ mode.
61810
61811 2007-05-12  Bruno Haible  <bruno@clisp.org>
61812
61813         * lib/linebuffer.h: Tweak doc.
61814         * lib/linebuffer.c: Likewise.
61815
61816 2007-05-12  James Youngman  <jay@gnu.org>
61817
61818         * lib/linebuffer.c (readlinebuffer_delim): New function,
61819         like readlinebuffer, but use a caller-specified delimiter.
61820         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61821         as the delimiter.
61822         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61823
61824 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61825
61826         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61827         * modules/openat (Files): Remove openat-die.c.
61828         (Depends-on): Add openat-die.
61829         * modules/openat-die: New module.
61830
61831 2007-05-06  Bruno Haible  <bruno@clisp.org>
61832
61833         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61834         Update with info about Cygwin.
61835         * doc/functions/fprintf.texi: Update.
61836         * doc/functions/printf.texi: Update.
61837         * doc/functions/snprintf.texi: Update.
61838         * doc/functions/sprintf.texi: Update.
61839         * doc/functions/vfprintf.texi: Update.
61840         * doc/functions/vprintf.texi: Update.
61841         * doc/functions/vsnprintf.texi: Update.
61842         * doc/functions/vsprintf.texi: Update.
61843         Reported by Eric Blake.
61844
61845 2007-05-06  Bruno Haible  <bruno@clisp.org>
61846
61847         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61848         padding ourselves for the floating-point directives.
61849         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61851         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61852         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61853         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61854         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61855         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61856         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61857         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61858         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61859         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61860         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61861         * tests/test-snprintf-posix.h (test_function): Also check the width
61862         and some flags in the %f directive.
61863         * tests/test-sprintf-posix.h (test_function): Likewise.
61864         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61865         * tests/test-vasprintf-posix.c (test_function): Likewise.
61866         * doc/functions/fprintf.texi: Update.
61867         * doc/functions/printf.texi: Update.
61868         * doc/functions/snprintf.texi: Update.
61869         * doc/functions/sprintf.texi: Update.
61870         * doc/functions/vfprintf.texi: Update.
61871         * doc/functions/vprintf.texi: Update.
61872         * doc/functions/vsnprintf.texi: Update.
61873         * doc/functions/vsprintf.texi: Update.
61874
61875 2007-05-06  Bruno Haible  <bruno@clisp.org>
61876
61877         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61878         pass the ' flag character to sprintf or snprintf.
61879         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61881         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61882         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61883         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61884         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61885         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61886         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61887         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61888         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61889         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61890         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61891         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61892         flag.
61893         * tests/test-sprintf-posix.h (test_function): Likewise.
61894         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61895         * tests/test-vasprintf-posix.c (test_function): Likewise.
61896         * doc/functions/fprintf.texi: Update.
61897         * doc/functions/printf.texi: Update.
61898         * doc/functions/snprintf.texi: Update.
61899         * doc/functions/sprintf.texi: Update.
61900         * doc/functions/vfprintf.texi: Update.
61901         * doc/functions/vprintf.texi: Update.
61902         * doc/functions/vsnprintf.texi: Update.
61903         * doc/functions/vsprintf.texi: Update.
61904
61905 2007-05-01  Bruno Haible  <bruno@clisp.org>
61906
61907         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61908
61909 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61910
61911         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61912         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61913
61914 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61915
61916         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61917         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61918         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61919
61920 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61921
61922         * lib/argp-help.c (struct hol_entry): New member `ord'.
61923         (HOL_ENTRY_PTRCMP): Use ord for comparison
61924         (hol_sort): Initialize ord.
61925
61926 2007-05-01  Bruno Haible  <bruno@clisp.org>
61927
61928         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61929         Reported by Eric Blake.
61930         * doc/gnulib.texi (Function Substitutes): Update.
61931
61932 2007-05-01  Bruno Haible  <bruno@clisp.org>
61933
61934         * doc/functions.texi: Remove file, now redundant through
61935         doc/functions/*.texi.
61936
61937 2007-05-01  Bruno Haible  <bruno@clisp.org>
61938
61939         * modules/argp (Depends-on): Add sleep.
61940
61941 2007-05-01  Bruno Haible  <bruno@clisp.org>
61942
61943         * modules/sleep-tests: New file.
61944         * tests/test-sleep.c: New file.
61945
61946         * modules/sleep: New file.
61947         * lib/sleep.c: New file.
61948         * m4/sleep.m4: New file.
61949         * lib/unistd_.h (sleep): New declaration.
61950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61951         HAVE_SLEEP.
61952         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61953         * doc/functions/sleep.texi: Document the sleep module.
61954
61955 2007-05-01  Bruno Haible  <bruno@clisp.org>
61956
61957         * lib/sigprocmask.h: Remove file.
61958         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61959         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61960         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61961         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61962         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61963         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61964         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61965         HAVE_SIGSET_T as a shell variable.
61966         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61967         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61968         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61969         (Depends-on): Add signal. Remove verify.
61970         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61971         (Include): Mention <signal.h> instead of sigprocmask.h.
61972         * NEWS: Mention the change.
61973         * lib/fatal-signal.c: Don't include sigprocmask.h.
61974
61975 2007-05-01  Bruno Haible  <bruno@clisp.org>
61976
61977         * modules/signal: New file.
61978         * lib/signal_.h: New file.
61979         * m4/signal_h.m4: New file.
61980
61981 2007-05-01  Bruno Haible  <bruno@clisp.org>
61982
61983         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61984         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61985         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61986         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61987
61988 2007-05-01  Bruno Haible  <bruno@clisp.org>
61989
61990         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61991         configure time.
61992         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61993         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61994         * modules/sys_stat (Makefile.am): Substitute their values into
61995         sys/stat.h.
61996
61997 2007-05-01  Bruno Haible  <bruno@clisp.org>
61998
61999         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62000         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62001         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62002
62003 2007-05-01  Bruno Haible  <bruno@clisp.org>
62004
62005         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62006         'assert' module here.
62007
62008 2007-05-01  Bruno Haible  <bruno@clisp.org>
62009
62010         * doc/functions/*.texi: New files.
62011         * doc/functions/google-ranking.txt: New file.
62012         * doc/gnulib.texi (Function Substitutes): New chapter.
62013         (ctime, inet_ntoa): Remove sections.
62014         * doc/ctime.texi: Remove file.
62015         * doc/inet_ntoa.texi: Remove file.
62016         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62017         dependencies.
62018         (%.info): New rule, specifying a --reference-limit.
62019
62020 2007-05-01  Bruno Haible  <bruno@clisp.org>
62021
62022         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62023
62024 2007-05-01  Bruno Haible  <bruno@clisp.org>
62025
62026         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62027         the portability of 'mkdir' to mingw systems.
62028
62029 2007-05-01  Bruno Haible  <bruno@clisp.org>
62030
62031         * doc/headers/google-ranking.txt: New file.
62032
62033 2007-04-30  Eric Blake  <ebb9@byu.net>
62034
62035         Prefer fseeko to fseek.
62036         * modules/getpass (Depends-on): Add fseeko.
62037         * lib/getpass.c (getpass): Use fseeko, not fseek.
62038
62039 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62040
62041         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62042         assumes the sorting is stable, while most qsort implementations
62043         are not.  Use argument addresses to ensure they never compare as
62044         equal.
62045
62046         * tests/test-argp-2.sh (usage-indent test): Fix output
62047         (func_compare): Restore diff options
62048         * tests/test-argp.c: Restore #include "progname.h"
62049
62050 2007-04-29  Bruno Haible  <bruno@clisp.org>
62051
62052         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62054         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62056         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62057         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62058         (TESTS, check_PROGRAMS): Add test-snprintf.
62059         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62060         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62061         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62062         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62063         assertions that fail on HP-UX, OSF/1, or IRIX.
62064         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62065
62066 2007-04-29  Bruno Haible  <bruno@clisp.org>
62067
62068         * MODULES.html.sh (posix_functions): Remove 'contents'.
62069
62070 2007-04-29  Karl Berry  <karl@gnu.org>
62071
62072         * config/srclist.txt (gendocs_template_min): new entry.
62073
62074 2007-04-29  Bruno Haible  <bruno@clisp.org>
62075
62076         Work around fpurge bug on BSD systems.
62077         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62078         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62079         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62080         fpurge to rpl_fpurge if the system already has this function.
62081         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62082         the case where the system already has this function. Correct invariants
62083         on BSD systems.
62084         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62085         BSD systems.
62086
62087 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62088
62089         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62090         proposed by Sven Verdoolaege.
62091
62092         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62093         options.
62094         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62095         (usage and help tests): Update
62096
62097 2007-04-29  Bruno Haible  <bruno@clisp.org>
62098
62099         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62100         Print more information in case of failure. Disable a test on BeOS.
62101
62102 2007-04-29  Bruno Haible  <bruno@clisp.org>
62103
62104         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62105         This helps debugging on systems on which no gdb is available.
62106
62107 2007-04-29  Bruno Haible  <bruno@clisp.org>
62108
62109         * lib/freading.h: Improve comments.
62110         * lib/fwriting.h: Likewise.
62111         * tests/test-freading.c (main): Don't check freading immediately after
62112         repositioning. Needed for glibc.
62113
62114 2007-04-29  Bruno Haible  <bruno@clisp.org>
62115
62116         * lib/freading.c (freading): Trivial simplification.
62117
62118 2007-04-28  Bruno Haible  <bruno@clisp.org>
62119
62120         * tests/test-fwriting.c (main): Also test the interaction between
62121         fflush and fwriting.
62122         * modules/fwriting-tests (Depends-on): Add fflush.
62123
62124         * tests/test-freading.c (main): Also test the interaction between
62125         fflush and freading.
62126         * modules/freading-tests (Depends-on): Add fflush.
62127
62128 2007-04-28  Bruno Haible  <bruno@clisp.org>
62129
62130         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62131         fseeko and ftello.
62132         Suggested by Eric Blake.
62133
62134 2007-04-28  Jim Meyering  <jim@meyering.net>
62135
62136         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62137         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62138         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62139
62140 2007-04-27  Eric Blake  <ebb9@byu.net>
62141
62142         * doc/headers/assert.texi (assert.h): Document assert module use.
62143
62144 2007-04-27  Bruno Haible  <bruno@clisp.org>
62145
62146         * doc/headers/*.texi: New files.
62147         * doc/gnulib.texi (Header File Substitutes): New chapter.
62148         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62149         dependencies.
62150         (standards.info ,standards.html, standards.dvi): Update dependencies.
62151         (mostlyclean, clean): New targets.
62152
62153 2007-04-27  Bruno Haible  <bruno@clisp.org>
62154
62155         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62156         * modules/sysexits (Files, Makefile.am): Update.
62157
62158         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62159         * modules/sys_socket (Files, Makefile.am): Update.
62160
62161         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62162         * modules/sys_stat (Files, Makefile.am): Update.
62163
62164 2007-04-27  Eric Blake  <ebb9@byu.net>
62165
62166         * lib/freading.h: Improve comments.
62167         * lib/fwriting.h: Likewise.
62168         * lib/fflush.c: Likewise.
62169
62170         Fix closein for mingw.
62171         * modules/closein-tests: Add tests for closein.
62172         * tests/test-closein.c: New file.
62173         * tests/test-closein.sh: Likewise.
62174         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62175         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62176
62177 2007-04-27  Bruno Haible  <bruno@clisp.org>
62178
62179         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62180         version is < 6.
62181         * lib/math_.h [__DECC]: Likewise.
62182         * lib/stdio_.h [__DECC]: Likewise.
62183         * lib/stdlib_.h [__DECC]: Likewise.
62184         * lib/string_.h [__DECC]: Likewise.
62185         * lib/time_.h [__DECC]: Likewise.
62186         * lib/wchar_.h [__DECC]: Likewise.
62187         * lib/wctype_.h [__DECC]: Likewise.
62188
62189 2007-04-27  Bruno Haible  <bruno@clisp.org>
62190
62191         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62192
62193 2007-04-27  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/fflush.c: Add comments.
62196         * modules/fpurge-tests (Depends-on): Add fflush.
62197         * modules/freadable-tests (Depends-on): Likewise.
62198         * modules/fwritable-tests (Depends-on): Likewise.
62199
62200 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62201
62202         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62203         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62204         Report by Bruno Haible <bruno@clisp.org>.
62205
62206 2007-04-26  Eric Blake  <ebb9@byu.net>
62207
62208         Fix fflush on mingw.
62209         * modules/fflush (Depends-on): Add freading.
62210         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62211         but unread data.
62212
62213 2007-04-26  Eric Blake  <ebb9@byu.net>
62214         and Bruno Haible  <bruno@clisp.org>
62215
62216         Implement freading and fwriting.
62217         * lib/freading.c: New file.
62218         * lib/freading.h: Likewise.
62219         * m4/freading.m4: Likewise.
62220         * modules/freading: Likewise.
62221         * modules/freading-tests: Likewise.
62222         * tests/test-freading.c: Likewise.
62223         * lib/fwriting.c: New file.
62224         * lib/fwriting.h: Likewise.
62225         * m4/fwriting.m4: Likewise.
62226         * modules/fwriting: Likewise.
62227         * modules/fwriting-tests: Likewise.
62228         * tests/test-fwriting.c: Likewise.
62229         * MODULES.html.sh (File stream based Input/Output): Mention them.
62230
62231 2007-04-26  Bruno Haible  <bruno@clisp.org>
62232
62233         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62234         'long' when we assume it.
62235         Suggested by Eric Blake.
62236
62237 2007-04-26  Bruno Haible  <bruno@clisp.org>
62238
62239         Ensure fseeko, ftello are declared on glibc systems.
62240         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62241         * modules/fseeko (configure.ac-early): Likewise.
62242         * modules/ftello (configure.ac-early): Likewise.
62243         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62244         AC_FUNC_FSEEKO for this.
62245         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62246         (gl_CHECK_FSEEKO): Remove macro.
62247
62248 2007-04-26  Bruno Haible  <bruno@clisp.org>
62249
62250         * tests/test-fflush.c (main): Also check the ftell result after
62251         fflush and fseek/fseeko.
62252         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62253         file descriptor position cache in the stream.
62254         * lib/fseeko.c (rpl_fseeko): Likewise.
62255
62256 2007-04-26  Bruno Haible  <bruno@clisp.org>
62257
62258         * modules/fflush-tests (Depends-on): Add fseeko.
62259
62260 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62261             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62262
62263         * lib/argz_.h: ensure error_t definition is obtained in same
62264         mechanism system argz.h would have.
62265         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62266         argz facilities are known bad.  Err on the side of caution if
62267         cross-compiling.
62268
62269 2007-04-25  Eric Blake  <ebb9@byu.net>
62270
62271         * lib/fpurge.c (includes): Use stdlib.h for free.
62272         * tests/test-fflush.c (main): Also test fflush-fseeko.
62273
62274 2007-04-25  Bruno Haible  <bruno@clisp.org>
62275
62276         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62277         * lib/fseeko.c: New file.
62278         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62279         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62280         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62281         gl_FUNC_FSEEKO.
62282         (gl_FUNC_FSEEKO): Invoke it.
62283         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62284         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62285         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62286
62287 2007-04-25  Bruno Haible  <bruno@clisp.org>
62288
62289         * modules/fflush (Depends-on): Add ftello.
62290
62291 2007-04-25  Bruno Haible  <bruno@clisp.org>
62292
62293         * modules/ftello-tests: New file.
62294         * tests/test-ftello.c: New file.
62295
62296         * modules/ftello: New file.
62297         * m4/ftello.m4: New file.
62298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62299         HAVE_FTELLO.
62300         * lib/stdio_.h (ftello): New declaration.
62301         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62302         HAVE_FTELLO.
62303
62304 2007-04-25  Bruno Haible  <bruno@clisp.org>
62305
62306         * modules/fseeko-tests: New file.
62307         * tests/test-fseeko.c: New file.
62308
62309         * modules/fseeko: New file.
62310         * m4/fseeko.m4: New file.
62311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62312         HAVE_FSEEKO.
62313         * lib/stdio_.h (fseeko): New declaration.
62314         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62315         HAVE_FSEEKO.
62316
62317 2007-04-25  Bruno Haible  <bruno@clisp.org>
62318
62319         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62320
62321 2007-04-25  Bruno Haible  <bruno@clisp.org>
62322
62323         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62324         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62325         * tests/test-unistd.c: Likewise.
62326         * tests/test-fcntl.c: Likewise.
62327
62328 2007-04-23  Eric Blake  <ebb9@byu.net>
62329
62330         * lib/fflush.c: Fix missing include.
62331         Reported by Bruno Haible.
62332
62333 2007-04-23  Bruno Haible  <bruno@clisp.org>
62334
62335         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62336         Reported by Eric Blake.
62337
62338 2007-04-23  Bruno Haible  <bruno@clisp.org>
62339
62340         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62341
62342 2007-04-23  Bruno Haible  <bruno@clisp.org>
62343
62344         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62345
62346 2007-04-23  Bruno Haible  <bruno@clisp.org>
62347
62348         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62349         Needed on HP-UX 11.
62350
62351 2007-04-16  Eric Blake  <ebb9@byu.net>
62352
62353         Make fflush rely on fpurge.
62354         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62355         open coding all variants.
62356         * modules/fflush (Depends-on): Add fpurge and unistd.
62357         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62358         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62359
62360         Fix --with-tests compilation on cygwin.
62361         * modules/argmatch-tests (Makefile.am): List gnulib library first
62362         in LDADD.
62363         * modules/argp-tests (Makefile.am): Likewise.
62364         * modules/array-list-tests (Makefile.am): Likewise.
62365         * modules/array-oset-tests (Makefile.am): Likewise.
62366         * modules/avltree-list-tests (Makefile.am): Likewise.
62367         * modules/avltree-oset-tests (Makefile.am): Likewise.
62368         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62369         * modules/carray-list-tests (Makefile.am): Likewise.
62370         * modules/dirname-tests (Makefile.am): Likewise.
62371         * modules/frexp-tests (Makefile.am): Likewise.
62372         * modules/isnanl-tests (Makefile.am): Likewise.
62373         * modules/linked-list-tests (Makefile.am): Likewise.
62374         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62375         * modules/lock-tests (Makefile.am): Likewise.
62376         * modules/rbtree-list-tests (Makefile.am): Likewise.
62377         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62378         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62379         * modules/tls-tests (Makefile.am): Likewise.
62380         * modules/tsearch-tests (Makefile.am): Likewise.
62381         * modules/xvasprintf-tests (Makefile.am): Likewise.
62382
62383         Fix fpurge for cygwin.
62384         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62385         value.
62386         * modules/fpurge-tests (Depends-on): Clean up trash.
62387
62388 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62389
62390         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62391
62392         * m4/autobuild.m4: Re-indent.
62393
62394 2007-04-13  Bruno Haible  <bruno@clisp.org>
62395
62396         * modules/fpurge-tests: New file.
62397         * tests/test-fpurge.c: New file.
62398
62399         * modules/fpurge: New file.
62400         * lib/fpurge.h: New file.
62401         * lib/fpurge.c: New file.
62402         * m4/fpurge.m4: New file.
62403
62404 2007-04-13  Bruno Haible  <bruno@clisp.org>
62405
62406         * modules/fbufmode-tests: New file.
62407         * tests/test-fbufmode.c: New file.
62408
62409         * modules/fbufmode: New file.
62410         * lib/fbufmode.h: New file.
62411         * lib/fbufmode.c: New file.
62412         * m4/fbufmode.m4: New file.
62413
62414 2007-04-13  Bruno Haible  <bruno@clisp.org>
62415
62416         * modules/fwritable-tests: New file.
62417         * tests/test-fwritable.c: New file.
62418
62419         * modules/fwritable: New file.
62420         * lib/fwritable.h: New file.
62421         * lib/fwritable.c: New file.
62422         * m4/fwritable.m4: New file.
62423
62424 2007-04-13  Bruno Haible  <bruno@clisp.org>
62425
62426         * modules/freadable-tests: New file.
62427         * tests/test-freadable.c: New file.
62428
62429         * modules/freadable: New file.
62430         * lib/freadable.h: New file.
62431         * lib/freadable.c: New file.
62432         * m4/freadable.m4: New file.
62433
62434 2007-04-13  Bruno Haible  <bruno@clisp.org>
62435
62436         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62437         MOSTLYCLEANFILES.
62438
62439 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62440
62441         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62442         gzip bootstrap.conf to avoid dragging in i18n machinery.
62443         (gnulib_tool_option): Use it.
62444
62445 2007-04-13  Bruno Haible  <bruno@clisp.org>
62446
62447         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62448         %F directives.
62449         * tests/test-vasprintf-posix.c (test_function): Likewise.
62450         * tests/test-snprintf-posix.h (test_function): Likewise.
62451         * tests/test-sprintf-posix.h (test_function): Likewise.
62452         * tests/test-fprintf-posix.h (test_function): Likewise.
62453         * tests/test-printf-posix.h (test_function): Likewise.
62454         * tests/test-fprintf-posix.out: Likewise.
62455
62456 2007-04-13  Bruno Haible  <bruno@clisp.org>
62457
62458         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62459         * modules/tls-tests (configure.ac): Likewise.
62460         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62461
62462 2007-04-13  Bruno Haible  <bruno@clisp.org>
62463
62464         * lib/tls.c (glthread_tls_get): Fix return type.
62465         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62466
62467 2007-04-12  Eric Blake  <ebb9@byu.net>
62468
62469         * modules/gettime (Depends-on): Remove gettime.
62470         Reported by Dmitry V. Levin.
62471
62472 2007-04-12  Bruno Haible  <bruno@clisp.org>
62473
62474         * modules/fflush (Include): Mention <stdio.h>.
62475         * modules/strtoimax (Include): Mention <inttypes.h>.
62476         * modules/strtoumax (Include): Likewise.
62477
62478 2007-04-12  Eric Blake  <ebb9@byu.net>
62479
62480         * .cvsignore: New file.
62481         * .gitignore: Likewise.
62482
62483 2007-04-12  Bruno Haible  <bruno@clisp.org>
62484
62485         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62486         not before, since $(LDADD) often contains libgnu.a.
62487         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62488         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62489         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62490         Needed on Cygwin.
62491
62492 2007-04-12  Eric Blake  <ebb9@byu.net>
62493
62494         Work around glibc's failure to flush stdin on fclose.
62495         * lib/closein.c (close_stdin): Flush stdin before closing.
62496
62497         Work around glibc's failure to reset seekable stdin on exit.
62498         * modules/closein: New module.
62499         * lib/closein.c: New file.
62500         * lib/closein.h: Likewise.
62501         * m4/closein.m4: Likewise.
62502         * MODULES.html.sh (File stream based Input/Output): Document it.
62503
62504 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62505
62506         * gnulib-tool: Rename generated 'autobuild' script to
62507         'do-autobuild' in --create-megatestdir output.
62508
62509         * doc/gnulib.texi (Build robot for gnulib): Fix.
62510
62511 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62512
62513         * modules/sysexits (Depends-on): Add absolute-header.
62514
62515 2007-04-12  Eric Blake  <ebb9@byu.net>
62516
62517         No need to preserve errno on success.
62518         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62519         Reported by Bruno Haible.
62520
62521 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62522
62523         * MODULES.html.sh (Support for maintaining and releasing
62524         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62525
62526 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62527
62528         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62529
62530 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62531
62532         * modules/autobuild: New module.
62533
62534         * m4/autobuild.m4: New file.
62535
62536 2007-04-11  Bruno Haible  <bruno@clisp.org>
62537
62538         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62539         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62540         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62542         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62543         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62544         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62546         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62547         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62548         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62549         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62550         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62551         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62552         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62553         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62554         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62555         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62556         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62557         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62558         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62559         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62561         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62562         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62563         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62564         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62565         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62566         Reported by Eric Blake.
62567
62568 2007-04-11  Bruno Haible  <bruno@clisp.org>
62569
62570         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62571
62572 2007-04-10  Bruno Haible  <bruno@clisp.org>
62573
62574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62575         for NaN and Infinity. Needed on FreeBSD 6.1.
62576         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62577         regarding results for "%010a" of Infinity and NaN.
62578         * tests/test-vasprintf-posix.c (test_function): Likewise.
62579         * tests/test-snprintf-posix.h (test_function): Likewise.
62580         * tests/test-sprintf-posix.h (test_function): Likewise.
62581         * tests/test-fprintf-posix.h (test_function): Likewise.
62582         * tests/test-printf-posix.h (test_function): Likewise.
62583         * tests/test-fprintf-posix.out: Likewise.
62584
62585 2007-04-10  Bruno Haible  <bruno@clisp.org>
62586
62587         * modules/locale-tests: New file.
62588         * tests/test-locale.c: New file.
62589
62590         * modules/locale: New file.
62591         * lib/locale_.h: New file.
62592         * m4/locale_h.m4: New file.
62593
62594 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62595             Bruno Haible  <bruno@clisp.org>
62596
62597         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62598         be determined, test for availability of the copysignf, copysign,
62599         copysignl functions.
62600         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62601         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62602         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62603
62604 2007-04-09  Eric Blake  <ebb9@byu.net>
62605
62606         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62607         * modules/stdio (Makefile.am): Support fflush.
62608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62609         * modules/fflush: New file.
62610         * lib/fflush.c: Likewise.
62611         * m4/fflush.m4: Likewise.
62612         * modules/fflush-tests: New test.
62613         * tests/test-fflush.c: Likewise.
62614         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62615
62616 2007-04-06  Bruno Haible  <bruno@clisp.org>
62617
62618         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62619         (VASNPRINTF): Use signbit for faster determination whether to print a
62620         minus sign.
62621         * modules/vasnprintf (Files): Remove lib/float+.h.
62622         * modules/fprintf-posix (Depends-on): Add signbit.
62623         * modules/snprintf-posix (Depends-on): Likewise.
62624         * modules/sprintf-posix (Depends-on): Likewise.
62625         * modules/vasnprintf-posix (Depends-on): Likewise.
62626         * modules/vasprintf-posix (Depends-on): Likewise.
62627         * modules/vfprintf-posix (Depends-on): Likewise.
62628         * modules/vsnprintf-posix (Depends-on): Likewise.
62629         * modules/vsprintf-posix (Depends-on): Likewise.
62630
62631 2007-04-06  Bruno Haible  <bruno@clisp.org>
62632
62633         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62634         * tests/test-frexpl.c (main): Likewise.
62635         * tests/test-ldexpl.c (main): Likewise.
62636         * modules/frexp-tests (Depends-on): Add signbit.
62637         * modules/frexpl-tests (Depdends-on): Likewise.
62638         * modules/ldexpl-tests (Depdends-on): Likewise.
62639
62640 2007-04-06  Bruno Haible  <bruno@clisp.org>
62641
62642         * modules/signbit-tests: New file.
62643         * tests/test-signbit.c: New file.
62644
62645         * modules/signbit: New file.
62646         * lib/signbitf.c: New file.
62647         * lib/signbitd.c: New file.
62648         * lib/signbitl.c: New file.
62649         * m4/signbit.m4: New file.
62650         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62651         (signbit): New macro.
62652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62653         REPLACE_SIGNBIT.
62654         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62655         REPLACE_FREXPL into math.h.
62656
62657 2007-04-06  Bruno Haible  <bruno@clisp.org>
62658
62659         * modules/isnanf-nolibm-tests: New file.
62660         * tests/test-isnanf.c: New file.
62661
62662         * modules/isnanf-nolibm: New file.
62663         * lib/isnanf.h: New file.
62664         * lib/isnanf.c: New file.
62665         * lib/isnan.c: Consider the USE_FLOAT macro.
62666         * m4/isnanf.m4: New file.
62667
62668 2007-04-06  Bruno Haible  <bruno@clisp.org>
62669
62670         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62671         (Link): New section.
62672
62673         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62674
62675 2007-04-06  Bruno Haible  <bruno@clisp.org>
62676
62677         Assume the 'long double' type.
62678         * m4/longdouble.m4: Remove file.
62679         * config/srclist.txt: Don't mention longdouble.m4.
62680         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62681         * lib/float+.h: Likewise.
62682         * lib/frexp.c: Likewise.
62683         * lib/printf-args.h: Likewise.
62684         * lib/printf-args.c: Likewise.
62685         * lib/printf-frexp.c: Likewise.
62686         * lib/printf-parse.c: Likewise.
62687         * lib/vasnprintf.c: Likewise.
62688         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62689         * m4/intl.m4: Likewise.
62690         * m4/isnanl.m4: Likewise.
62691         * m4/printf.m4: Likewise.
62692         * m4/printf-frexpl.m4: Likewise.
62693         * m4/vasnprintf.m4: Likewise.
62694         * modules/allocsa (Files): Remove m4/longdouble.m4.
62695         * modules/gettext (Files): Likewise.
62696         * modules/relocatable-prog-wrapper (Files): Likewise.
62697         * modules/vasnprintf (Files): Likewise.
62698         * modules/isnanl (Files): Likewise.
62699         (Include): Simplify.
62700         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
62701         (Include): Simplify.
62702         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
62703         (Include): Simplify.
62704         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
62705         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62706         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
62707         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62708         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62709         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62710         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
62711         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62712         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62713         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62714         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
62715         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62716         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
62717         * tests/test-isnanl.c: Likewise.
62718         * tests/test-snprintf-posix.h: Likewise.
62719         * tests/test-sprintf-posix.h: Likewise.
62720         * tests/test-vasnprintf-posix.c: Likewise.
62721         * tests/test-vasnprintf-posix2.c: Likewise.
62722         * tests/test-vasprintf-posix.c: Likewise.
62723
62724 2007-04-06  Bruno Haible  <bruno@clisp.org>
62725
62726         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
62727         * lib/math_.h [__DECC]: Include the overridden include file through
62728         #include_next, outside the double-inclusion guard.
62729         * lib/stdio_.h [__DECC]: Likewise.
62730         * lib/stdlib_.h [__DECC]: Likewise.
62731         * lib/string_.h [__DECC]: Likewise.
62732         * lib/time_.h [__DECC]: Likewise.
62733         * lib/wchar_.h [__DECC]: Likewise.
62734         * lib/wctype_.h [__DECC]: Likewise.
62735         * lib/inttypes_.h [__DECC]: Likewise.
62736         Reported by Albert Chin <china@thewrittenword.com> in
62737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
62738
62739 2007-04-04  Eric Blake  <ebb9@byu.net>
62740
62741         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
62742         1.5.x.
62743
62744 2007-04-04  Bruno Haible  <bruno@clisp.org>
62745
62746         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
62747         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
62748
62749 2007-04-04  Bruno Haible  <bruno@clisp.org>
62750
62751         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
62752         results for "%010a" of Infinity and NaN.
62753         * tests/test-vasprintf-posix.c (test_function): Likewise.
62754         * tests/test-snprintf-posix.h (test_function): Likewise.
62755         * tests/test-sprintf-posix.h (test_function): Likewise.
62756         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62757         * tests/test-printf-posix.h (test_function): Likewise.
62758         * tests/test-fprintf-posix.out: Update.
62759         Needed for FreeBSD 6.1.
62760
62761 2007-04-04  Bruno Haible  <bruno@clisp.org>
62762
62763         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62764         directly used by the gnulib modules nor by gnulib-tool.
62765
62766 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62767
62768         * DEPENDENCIES: Give overall description of version dependency
62769         desirability.  Use more-typical names for apps.
62770         Add shell, coreutils, diffutils, grep, tar, gzip.
62771
62772 2007-04-04  Simon Josefsson  <simon@josefsson.org>
62773
62774         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
62775
62776 2007-04-04  Karl Berry  <karl@gnu.org>
62777
62778         * MODULES.html.sh (func_module): missing '.
62779
62780 2007-04-03  Bruno Haible  <bruno@clisp.org>
62781
62782         * modules/argmatch-tests (Makefile.am): New variable
62783         test_argmatch_LDADD.
62784         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62785         * modules/array-list-tests (Makefile.am): New variable
62786         test_array_list_LDADD.
62787         * modules/array-oset-tests (Makefile.am): New variable
62788         test_array_oset_LDADD.
62789         * modules/avltree-list-tests (Makefile.am): New variable
62790         test_avltree_list_LDADD.
62791         * modules/avltree-oset-tests (Makefile.am): New variable
62792         test_avltree_oset_LDADD.
62793         * modules/avltreehash-list-tests (Makefile.am): New variable
62794         test_avltreehash_list_LDADD.
62795         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62796         test_canonicalize_lgpl_LDADD.
62797         * modules/carray-list-tests (Makefile.am): New variable
62798         test_carray_list_LDADD.
62799         * modules/dirname-tests (Makefile.am): New variable
62800         test_dirname_LDADD.
62801         * modules/linked-list-tests (Makefile.am): New variable
62802         test_linked_list_LDADD.
62803         * modules/linkedhash-list-tests (Makefile.am): New variable
62804         test_linkedhash_list_LDADD.
62805         * modules/rbtree-list-tests (Makefile.am): New variable
62806         test_rbtree_list_LDADD.
62807         * modules/rbtree-oset-tests (Makefile.am): New variable
62808         test_rbtree_oset_LDADD.
62809         * modules/rbtreehash-list-tests (Makefile.am): New variable
62810         test_rbtreehash_list_LDADD.
62811         * modules/xvasprintf-tests (Makefile.am): New variable
62812         test_xvasprintf_LDADD.
62813         Reported by Eric Blake.
62814
62815 2007-04-03  Eric Blake  <ebb9@byu.net>
62816
62817         * DEPENDENCIES: Weaken m4 requirements.
62818
62819 2007-04-03  Bruno Haible  <bruno@clisp.org>
62820
62821         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62822         * modules/isnanl-tests (configure.ac): Likewise.
62823
62824 2007-04-03  Ben Pfaff  <blp@gnu.org>
62825
62826         * modules/iconv_open: Add $(srcdir)/ to source directory
62827         references in Makefile fragments that call gperf, to fix VPATH
62828         builds.
62829
62830 2007-04-03  Bruno Haible  <bruno@clisp.org>
62831
62832         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62833         * lib/ldexpl.c: Undo last change.
62834
62835 2007-04-03  Bruno Haible  <bruno@clisp.org>
62836
62837         * modules/printf-frexpl (Depends-on): Undo last change.
62838         (Files): Add m4/ldexpl.m4.
62839
62840 2007-04-03  Bruno Haible  <bruno@clisp.org>
62841
62842         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62843         * modules/isnanl (Link): New section.
62844
62845         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62846         * modules/frexp (Link): New section.
62847
62848         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62849         * modules/frexpl (Link): New section.
62850
62851         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62852         * modules/ldexpl (Link): New section.
62853
62854 2007-04-03  Bruno Haible  <bruno@clisp.org>
62855
62856         * modules/TEMPLATE-EXTENDED: New file.
62857         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62858
62859 2007-04-03  Bruno Haible  <bruno@clisp.org>
62860
62861         * DEPENDENCIES: New file.
62862         Suggested by Simon Josefsson.
62863
62864 2007-04-03  Bruno Haible  <bruno@clisp.org>
62865
62866         * doc/gnulib.texi: Escape @.
62867
62868 2007-04-03  James Youngman  <jay@gnu.org>
62869         and Paul Eggert  <eggert@cs.ucla.edu>
62870
62871         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62872         birthtime on all systems that have birthtime, not just those which
62873         use st_birthtimensec rather than st_birthtim.  Putting zero in
62874         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62875         that the birth time is not available for files on an NFS mount.
62876
62877 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62878
62879         * modules/memxor: Move back from crypto/, suggested by Bruno.
62880         * modules/crypto/hmac-sha1: Fix memxor dependency.
62881
62882         * modules/crypto/gc: Moved from ../.
62883
62884 2007-04-02  Eric Blake  <ebb9@byu.net>
62885
62886         * lib/ldexpl.c (includes): Avoid libm.
62887
62888         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62889
62890 2007-04-02  Bruno Haible  <bruno@clisp.org>
62891
62892         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62893         on IRIX.
62894
62895 2007-04-02  Bruno Haible  <bruno@clisp.org>
62896
62897         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62898         x86 or x86_64 platforms running MacOS X.
62899         Reported by Ryan Schmidt <@ryandesign.com>.
62900
62901 2007-04-02  Bruno Haible  <bruno@clisp.org>
62902
62903         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62904         i386.
62905
62906 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62907
62908         * modules/crypto/arcfour: Moved from ../.
62909         * modules/crypto/arcfour-tests: Moved from ../.
62910         * modules/crypto/arctwo: Moved from ../.
62911         * modules/crypto/arctwo-tests: Moved from ../.
62912         * modules/crypto/des: Moved from ../.
62913         * modules/crypto/des-tests: Moved from ../.
62914         * modules/crypto/gc-arcfour: Moved from ../.
62915         * modules/crypto/gc-arcfour-tests: Moved from ../.
62916         * modules/crypto/gc-arctwo: Moved from ../.
62917         * modules/crypto/gc-arctwo-tests: Moved from ../.
62918         * modules/crypto/gc-des: Moved from ../.
62919         * modules/crypto/gc-des-tests: Moved from ../.
62920         * modules/crypto/gc-hmac-md5: Moved from ../.
62921         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62922         * modules/crypto/gc-hmac-sha1: Moved from ../.
62923         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62924         * modules/crypto/gc-md2: Moved from ../.
62925         * modules/crypto/gc-md2-tests: Moved from ../.
62926         * modules/crypto/gc-md4: Moved from ../.
62927         * modules/crypto/gc-md4-tests: Moved from ../.
62928         * modules/crypto/gc-md5: Moved from ../.
62929         * modules/crypto/gc-md5-tests: Moved from ../.
62930         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62931         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62932         * modules/crypto/gc-random: Moved from ../.
62933         * modules/crypto/gc-rijndael: Moved from ../.
62934         * modules/crypto/gc-rijndael-tests: Moved from ../.
62935         * modules/crypto/gc-sha1: Moved from ../.
62936         * modules/crypto/gc-sha1-tests: Moved from ../.
62937         * modules/crypto/gc-tests: Moved from ../.
62938         * modules/crypto/hmac-md5: Moved from ../.
62939         * modules/crypto/hmac-md5-tests: Moved from ../.
62940         * modules/crypto/hmac-sha1: Moved from ../.
62941         * modules/crypto/hmac-sha1-tests: Moved from ../.
62942         * modules/crypto/md2: Moved from ../.
62943         * modules/crypto/md2-tests: Moved from ../.
62944         * modules/crypto/md4: Moved from ../.
62945         * modules/crypto/md4-tests: Moved from ../.
62946         * modules/crypto/md5: Moved from ../.
62947         * modules/crypto/md5-tests: Moved from ../.
62948         * modules/crypto/memxor: Moved from ../.
62949         * modules/crypto/rijndael: Moved from ../.
62950         * modules/crypto/rijndael-tests: Moved from ../.
62951         * modules/crypto/sha1: Moved from ../.
62952
62953 2007-03-30  James Youngman  <jay@gnu.org>
62954
62955         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62956         rename() to change the ctime of a file (because ctime is unaffected
62957         by rename on jfs2 on AIX 5.1).
62958         (main): Start by doing cleanup, in case a previous run failed leaving
62959         test files behind.
62960
62961 2007-03-31  Bruno Haible  <bruno@clisp.org>
62962
62963         Support old proprietary implementations of iconv.
62964         * modules/iconv_open: New file.
62965         * lib/iconv_.h: New file.
62966         * m4/iconv_h.m4: New file.
62967         * lib/iconv_open.c: New file.
62968         * lib/iconv_open-aix.gperf: New file.
62969         * lib/iconv_open-hpux.gperf: New file.
62970         * lib/iconv_open-irix.gperf: New file.
62971         * lib/iconv_open-osf.gperf: New file.
62972         * m4/iconv_open.m4: New file.
62973         * modules/linebreak (Depends-on): Add iconv_open.
62974         * modules/striconv (Depends-on): Likewise.
62975         * modules/striconveh (Depends-on): Likewise.
62976         * modules/unicodeio (Depends-on): Likewise.
62977         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62978         (iconv_t)(-1).
62979         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62980         conversion if cd is (iconv_t)(-1).
62981         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62982         is not possible.
62983
62984 2007-03-31  Bruno Haible  <bruno@clisp.org>
62985
62986         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62987         work on Solaris either. Protect also second use of "autodetect_jp".
62988
62989 2007-03-31  Bruno Haible  <bruno@clisp.org>
62990
62991         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62992         the function is not present.
62993
62994 2007-03-31  Bruno Haible  <bruno@clisp.org>
62995
62996         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62997         the function is not present.
62998
62999 2007-03-31  Bruno Haible  <bruno@clisp.org>
63000
63001         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63002         a bug in HP-UX iconv_open().
63003
63004 2007-03-31  Bruno Haible  <bruno@clisp.org>
63005
63006         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63007         (Mathematics <math.h>): New section, add fpieee.
63008         (Input/output <stdio.h>): Add fseterr.
63009         (Mathematics <math.h>): New section, add printf-frexp.
63010         (Container data structures): Add sublist.
63011         (Core language properties): Add fpucw, inline.
63012         (Functions for greatest-width integer types <inttypes.h>): Add
63013         imaxabs, imaxdiv, inttypes.
63014         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63015         isnanl-nolibm, ldexp.
63016         (Mathematics <math.h>): New section, add printf-frexpl.
63017         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63018         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63019         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63020         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63021         (Unicode string functions): Add unistr/u*-mbtoucr.
63022         (Java): Add javacomp-script, javaexec-script.
63023         (C#): Add csharpcomp-script, csharpexec-script.
63024         (Support for building libraries and executables): Add havelib,
63025         relocatable-*.
63026         (Support for maintaining and releasing projects): Renamed from
63027         'Support for maintaining and release projects'. Add announce-gen.
63028
63029 2007-03-31  Bruno Haible  <bruno@clisp.org>
63030
63031         * README: Talk primarily about git.
63032         (git and CVS): Renamed from CVS.
63033         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63034         gnulib is available through git.
63035         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63036
63037 2007-03-30  Bruno Haible  <bruno@clisp.org>
63038
63039         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63040         * lib/poll_.h: Likewise.
63041         * lib/stat_.h: Likewise.
63042         * lib/sys_time_.h: Likewise.
63043         * lib/sysexit_.h: Likewise.
63044         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63045         * lib/stdbool_.h: Likewise.
63046         * lib/byteswap_.h: Add double-inclusion guard.
63047
63048 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63049
63050         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63051
63052 2007-03-30  Karl Berry  <karl@gnu.org>
63053
63054         * config/srclist-update: double space after USA in the license
63055         substitution, since that's how it's usually (?) written.
63056
63057 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63058
63059         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63060         reported by Bruno Haible.
63061
63062 2007-03-29  Bruno Haible  <bruno@clisp.org>
63063
63064         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63065         a bug in AIX iconv().
63066
63067 2007-03-29  Bruno Haible  <bruno@clisp.org>
63068
63069         * modules/ldexpl-tests: New file.
63070         * tests/test-ldexpl.c: New file.
63071
63072 2007-03-29  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/ldexpl.c: Include fpucw.h.
63075         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63076         multiplication.
63077         * modules/ldexpl (Depends-on): Add fpucw.
63078
63079 2007-03-29  Bruno Haible  <bruno@clisp.org>
63080
63081         * modules/ldexpl: New file.
63082         * m4/ldexpl.m4: New file.
63083         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63084         set.
63085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63086         REPLACE_LDEXPL.
63087         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63088         REPLACE_LDEXPL.
63089         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63090         gl_FUNC_LDEXPL_WORKS.
63091         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63092         * modules/mathl (Files): Remove lib/ldexpl.c.
63093         (Depends-on): Add ldexpl.
63094
63095 2007-03-29  Bruno Haible  <bruno@clisp.org>
63096
63097         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63098
63099 2007-03-29  Bruno Haible  <bruno@clisp.org>
63100
63101         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63102         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63103         and possibly also HP-UX.
63104         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63105         work on AIX, IRIX, HP-UX, OSF/1.
63106         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63107         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63108         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63109         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63110         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63111         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63112
63113 2007-03-29  Bruno Haible  <bruno@clisp.org>
63114
63115         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63116
63117 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63118
63119         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63120         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63121
63122 2007-03-29  Eric Blake  <ebb9@byu.net>
63123
63124         * lib/acl-internal.h: Remove redundant include.
63125         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63126         Cygwin when a file is locked.
63127
63128 2007-03-29  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63131         file.
63132         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63133
63134 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63135
63136         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63137         try to remove a parent directory if the child couldn't be removed
63138         (except for the first rmdir, which could fail because the child
63139         doesn't exist).  Problem reported by Jeff Blaine in
63140         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63141
63142 2007-03-28  Bruno Haible  <bruno@clisp.org>
63143
63144         * lib/striconveh.c (utf8conv_carefully): New function.
63145         (mem_cd_iconveh_internal): Invoke it.
63146
63147 2007-03-28  Bruno Haible  <bruno@clisp.org>
63148
63149         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63150         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63151         input.
63152         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63153         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63154         unistr/u8-uctomb.
63155
63156 2007-03-28  Bruno Haible  <bruno@clisp.org>
63157
63158         * modules/unistr/u8-mbtoucr: New file.
63159         * lib/unistr/u8-mbtoucr.c: New file.
63160         * modules/unistr/u16-mbtoucr: New file.
63161         * lib/unistr/u16-mbtoucr.c: New file.
63162         * modules/unistr/u16-mbtoucr: New file.
63163         * lib/unistr/u16-mbtoucr.c: New file.
63164         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63165
63166 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63167             Bruno Haible  <bruno@clisp.org>
63168
63169         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63170         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63171         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63172
63173         * m4/stdio_h.m4: Add stubs for vasprintf too.
63174
63175         * modules/stdio: Support vasprintf in sed command.
63176
63177         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63178         vasprintf.h.  Add stdio module indicator.
63179
63180         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63181         vasprintf.h.
63182
63183         * lib/vasprintf.h: File removed.
63184
63185         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63186         * lib/vasprintf.c: Ditto.
63187         * lib/xvasprintf.c: Ditto.
63188         * tests/test-vasprintf-posix.c: Ditto.
63189         * tests/test-vasprintf.c: Ditto.
63190
63191 2007-03-27  Bruno Haible  <bruno@clisp.org>
63192
63193         Make vasnprintf multithread-safe.
63194         * lib/vasnprintf.c (decimal_point_char): New function.
63195         (VASNPRINTF): Use it.
63196         Suggested by Simon Josefsson.
63197
63198 2007-03-27  Eric Blake  <ebb9@byu.net>
63199
63200         Support sub-second birthtime on cygwin.
63201         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63202         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63203         (get_stat_birthtime): Also work with st_birthtim.
63204
63205 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63206
63207         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63208         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63209         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63210         (get_stat_birthtime_ns): Simplify compile-time tests.
63211         (get_stat_birthtime): Change the API to look like
63212         get_stat_mtime etc., except return a negative tv_nsec on error.
63213         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63214         Don't check for "spare" fields.
63215         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63216         or for struct stat.st_birthtime, as these tests aren't used.
63217         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63218
63219 2007-03-27  Bruno Haible  <bruno@clisp.org>
63220
63221         * lib/stat-time.h: Include <sys/stat.h>.
63222
63223 2007-03-27  James Youngman  <jay@gnu.org>
63224
63225         * lib/stat-time.h (get_stat_birthtime): New function for
63226           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63227         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63228           and its variants.
63229         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63230         * modules/stat-time-test: New file.
63231         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63232
63233 2007-03-26  Bruno Haible  <bruno@clisp.org>
63234
63235         Better support of signalling NaNs.
63236         * lib/atanl.c: Include isnanl.h.
63237         (atanl): Perform test for NaN at the beginning of the function and
63238         through a call to isnanl.
63239         * lib/cosl.c: Include isnanl.h.
63240         (cosl): Perform test for NaN at the beginning of the function and
63241         through a call to isnanl.
63242         * lib/ldexpl.c: Include isnanl.h.
63243         (ldexpl): Perform test for NaN through a call to isnanl.
63244         * lib/logl.c: Include isnanl.h.
63245         (logl): Perform test for NaN at the beginning of the function and
63246         through a call to isnanl.
63247         * lib/sinl.c: Include isnanl.h.
63248         (sinl): Perform test for NaN at the beginning of the function and
63249         through a call to isnanl.
63250         * lib/sqrtl.c: Include isnanl.h.
63251         (sqrtl): Perform test for NaN at the beginning of the function and
63252         through a call to isnanl.
63253         * lib/tanl.c: Include isnanl.h.
63254         (tanl): Perform test for NaN at the beginning of the function and
63255         through a call to isnanl.
63256         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63257         * modules/mathl (Depends-on): Add isnanl.
63258
63259 2007-03-26  Eric Blake  <ebb9@byu.net>
63260
63261         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63262         regression in logic sense of previous patch.
63263
63264 2007-03-26  Bruno Haible  <bruno@clisp.org>
63265
63266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63267         unportable shell command "if ! ...".
63268         Reported by Ralf Wildenhues.
63269
63270 2007-03-25  Bruno Haible  <bruno@clisp.org>
63271
63272         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63273         <sysexits.h> file, and only add EX_CONFIG.
63274         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63275         absolute file name and whether it is sufficient. Substitute also
63276         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63277         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63278         ABSOLUTE_SYSEXITS_H into sysexits.h.
63279
63280 2007-03-25  Bruno Haible  <bruno@clisp.org>
63281
63282         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63283         hints is NULL.
63284
63285 2007-03-25  Bruno Haible  <bruno@clisp.org>
63286
63287         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63288         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63289
63290 2007-03-25  Bruno Haible  <bruno@clisp.org>
63291
63292         * lib/vasnprintf.c: Include langinfo.h.
63293         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63294         multithread-safe.
63295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63296         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63304         Reported by Simon Josefsson.
63305
63306 2007-03-25  Bruno Haible  <bruno@clisp.org>
63307
63308         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63309         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63310         * modules/vasnprintf (Depends-on): Add stdint.
63311
63312 2007-03-25  Bruno Haible  <bruno@clisp.org>
63313
63314         * modules/fpieee: New file.
63315         * m4/fpieee.m4: New file.
63316         * modules/isnan-nolibm (Depends-on): Add fpieee.
63317         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63318         * modules/isnanl (Depends-on): Add fpieee.
63319
63320 2007-03-25  Bruno Haible  <bruno@clisp.org>
63321
63322         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63323
63324 2007-03-25  Bruno Haible  <bruno@clisp.org>
63325
63326         Avoid test failures on IRIX 6.5.
63327         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63328         (main): Use it.
63329         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63330         macros.
63331         (main): Use them.
63332
63333 2007-03-25  Bruno Haible  <bruno@clisp.org>
63334
63335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63336         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63337         exists but doesn't work.
63338         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63339         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63341         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63342         math.h.
63343
63344 2007-03-25  Bruno Haible  <bruno@clisp.org>
63345
63346         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63347         returns inf. Needed on IRIX 6.5.
63348
63349 2007-03-25  Bruno Haible  <bruno@clisp.org>
63350
63351         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63352         (main): Use isnanl instead of x != x idiom.
63353         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63354
63355         * tests/test-frexp.c: Include isnan.h.
63356         (main): Use isnan instead of x != x idiom.
63357         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63358
63359 2007-03-25  Bruno Haible  <bruno@clisp.org>
63360
63361         * tests/test-frexp.c (NaN): New function/macro.
63362         (main): Use it instead of 0.0 / 0.0.
63363         * tests/test-isnan.c (NaN): New function/macro.
63364         (main): Use it instead of 0.0 / 0.0.
63365         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63366         (test_function): Use it instead of 0.0 / 0.0.
63367         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63368         (test_function): Use it instead of 0.0 / 0.0.
63369         * tests/test-snprintf-posix.h (NaN): New function/macro.
63370         (test_function): Use it instead of 0.0 / 0.0.
63371         * tests/test-sprintf-posix.h (NaN): New function/macro.
63372         (test_function): Use it instead of 0.0 / 0.0.
63373         * tests/test-fprintf-posix.h (NaN): New function/macro.
63374         (test_function): Use it instead of 0.0 / 0.0.
63375         * tests/test-printf-posix.h (NaN): New function/macro.
63376         (test_function): Use it instead of 0.0 / 0.0.
63377
63378         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63379
63380 2007-03-25  Bruno Haible  <bruno@clisp.org>
63381
63382         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63383
63384 2007-03-25  Bruno Haible  <bruno@clisp.org>
63385
63386         * lib/regexec.c (merge_state_with_log): Make static.
63387
63388 2007-03-25  Bruno Haible  <bruno@clisp.org>
63389
63390         * lib/trigl.c (kernel_rem_pio2): Make static.
63391
63392 2007-03-25  Bruno Haible  <bruno@clisp.org>
63393
63394         * lib/sincosl.c (sincosl_table): Make static.
63395
63396 2007-03-25  Bruno Haible  <bruno@clisp.org>
63397
63398         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63399         if the compiler does not support C99.
63400
63401 2007-03-25  Bruno Haible  <bruno@clisp.org>
63402
63403         * modules/time (Makefile.am): Ensure all rule action lines start with a
63404         tab.
63405
63406 2007-03-24  Bruno Haible  <bruno@clisp.org>
63407
63408         * modules/tsearch-tests: New file.
63409         * tests/test-tsearch.sh: New file.
63410         * tests/test-tsearch.c: New file, mostly copied from glibc.
63411
63412         * modules/search-tests: New file.
63413         * tests/test-search.c: New file.
63414
63415         * modules/search: New file.
63416         * lib/search_.h: New file, incorporating lib/tsearch.h.
63417         * m4/search_h.m4: New file.
63418         * lib/tsearch.h: Remove file.
63419         * lib/tsearch.c: Include search.h instead of tsearch.h.
63420         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63421         HAVE_TSEARCH.
63422         * modules/tsearch (Files): Remove lib/tsearch.h.
63423         (Depends-on): Add search.
63424         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63425         (Include): Change tsearch.h into search.h.
63426
63427 2007-03-24  Bruno Haible  <bruno@clisp.org>
63428
63429         * modules/fpucw: New file.
63430         * lib/fpucw.h: New file.
63431         * lib/frexp.c: Include fpucw.h.
63432         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63433         (FUNC): Use them.
63434         * lib/printf-frexp.c: Include fpucw.h.
63435         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63436         (FUNC): Use them.
63437         * lib/vasnprintf.c: Include fpucw.h.
63438         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63439         'long double' calculations.
63440         * tests/test-frexpl.c: Include fpucw.h.
63441         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63442         * tests/test-printf-frexpl.c: Include fpucw.h.
63443         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63444         * modules/frexpl (Depends-on): Add fpucw.
63445         * modules/printf-frexpl (Depends-on): Likewise.
63446         * modules/fprintf-posix (Depends-on): Likewise.
63447         * modules/snprintf-posix (Depends-on): Likewise.
63448         * modules/sprintf-posix (Depends-on): Likewise.
63449         * modules/vasnprintf-posix (Depends-on): Likewise.
63450         * modules/vasprintf-posix (Depends-on): Likewise.
63451         * modules/vfprintf-posix (Depends-on): Likewise.
63452         * modules/vsnprintf-posix (Depends-on): Likewise.
63453         * modules/vsprintf-posix (Depends-on): Likewise.
63454         * modules/frexpl-tests (Depends-on): Likewise.
63455         * modules/printf-frexpl-tests (Depends-on): Likewise.
63456
63457 2007-03-24  Bruno Haible  <bruno@clisp.org>
63458
63459         * lib/float+.h: New file.
63460         * lib/isnan.c: Include float+.h.
63461         (SIZE): New macro.
63462         (FUNC): Compare only SIZE bytes of the value.
63463         * lib/vasnprintf.c: Include float+.h.
63464         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63465         SIZEOF_LDBL or SIZEOF_DBL bytes.
63466         * modules/isnan-nolibm (Files): Add lib/float+.h.
63467         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63468         * modules/isnanl (Files): Add lib/float+.h.
63469         * modules/vasnprintf (Files): Add lib/float+.h.
63470
63471 2007-03-24  Bruno Haible  <bruno@clisp.org>
63472
63473         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63474         include isnanl-nolibm.h.
63475
63476 2007-03-24  Bruno Haible  <bruno@clisp.org>
63477
63478         * tests/test-read-file.c (main): Don't produce spurious output for
63479         expected situations. Make the test fail if it encountered unexpected
63480         results.
63481
63482 2007-03-24  Bruno Haible  <bruno@clisp.org>
63483
63484         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63485         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63486
63487 2007-03-24  Bruno Haible  <bruno@clisp.org>
63488
63489         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63490
63491 2007-03-24  Bruno Haible  <bruno@clisp.org>
63492
63493         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63494         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63495
63496         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63497         * modules/utf8-ucs4: Turn into a symbolic link to module
63498         unistr/u8-mbtouc.
63499
63500         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63501         utf8-ucs4-unsafe.
63502         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63503         unistr/u8-mbtouc-unsafe.
63504
63505         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63506         * modules/utf16-ucs4: Turn into a symbolic link to module
63507         unistr/u16-mbtouc.
63508
63509         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63510         utf16-ucs4-unsafe.
63511         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63512         unistr/u16-mbtouc-unsafe.
63513
63514         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63515         * modules/ucs4-utf8: Turn into a symbolic link to module
63516         unistr/u8-ubtomb.
63517
63518         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63519         * modules/ucs4-utf16: Turn into a symbolic link to module
63520         unistr/u16-ubtomb.
63521
63522 2007-03-24  Bruno Haible  <bruno@clisp.org>
63523
63524         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63525         Enable the function only if HAVE_INLINE.
63526         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63527         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63528         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63529         Enable the function only if HAVE_INLINE.
63530         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63531         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63532         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63533         Enable the function only if HAVE_INLINE.
63534         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63535         Enable the function only if HAVE_INLINE.
63536         * modules/utf8-ucs4: Update.
63537         * modules/utf8-ucs4-unsafe: Update.
63538         * modules/utf16-ucs4: Update.
63539         * modules/utf16-ucs4-unsafe: Update.
63540         * modules/ucs4-utf8: Update.
63541         * modules/ucs4-utf16: Update.
63542
63543 2007-03-24  Bruno Haible  <bruno@clisp.org>
63544
63545         * lib/utf8-ucs4.h: Remove file.
63546         * lib/utf8-ucs4-unsafe.h: Remove file.
63547         * lib/utf16-ucs4.h: Remove file.
63548         * lib/utf16-ucs4-unsafe.h: Remove file.
63549         * lib/ucs4-utf8.h: Remove file.
63550         * lib/ucs4-utf16.h: Remove file.
63551         * lib/unistr.h: Include their previous contents.
63552         * m4/utf-ucs4.m4: Remove file.
63553         * m4/ucs4-utf.m4: Remove file.
63554         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63555         (Depends-on): Add unistr/base.
63556         (configure.ac): Remove gl_UTF_UCS4.
63557         (Makefile.am): Update.
63558         (Include): Change to unistr.h.
63559         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63560         (Depends-on): Add unistr/base.
63561         (configure.ac): Remove gl_UTF_UCS4.
63562         (Makefile.am): Update.
63563         (Include): Change to unistr.h.
63564         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63565         (Depends-on): Add unistr/base.
63566         (configure.ac): Remove gl_UTF_UCS4.
63567         (Makefile.am): Update.
63568         (Include): Change to unistr.h.
63569         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63570         (Depends-on): Add unistr/base.
63571         (configure.ac): Remove gl_UTF_UCS4.
63572         (Makefile.am): Update.
63573         (Include): Change to unistr.h.
63574         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63575         (Depends-on): Add unistr/base.
63576         (configure.ac): Remove gl_UCS4_UTF.
63577         (Makefile.am): Update.
63578         (Include): Change to unistr.h.
63579         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63580         (Depends-on): Add unistr/base.
63581         (configure.ac): Remove gl_UCS4_UTF.
63582         (Makefile.am): Update.
63583         (Include): Change to unistr.h.
63584         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63585         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63586         utf8-ucs4-unsafe.h.
63587         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63588         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63589         utf16-ucs4-unsafe.h.
63590         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63591         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63592         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63593         * lib/unistr/u8-strchr.c: Likewise.
63594         * lib/unistr/u8-strrchr.c: Likewise.
63595         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63596         * lib/unistr/u16-strchr.c: Likewise.
63597         * lib/unistr/u16-strrchr.c: Likewise.
63598         * lib/striconveh.c: Update.
63599         * lib/linebreak.c: Update.
63600
63601 2007-03-24  Bruno Haible  <bruno@clisp.org>
63602
63603         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63604         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63605
63606 2007-03-22  Bruno Haible  <bruno@clisp.org>
63607
63608         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63609
63610 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63611
63612         * MODULES.html.sh (File system functions): New module write-any-file.
63613         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63614         * m4/write-any-file.m4: New files.
63615
63616 2007-03-23  Eric Blake  <ebb9@byu.net>
63617
63618         * gnulib-tool: Rearrange space-tab sequences, since some editors
63619         like to eat them.
63620
63621 2007-03-23  Eric Blake  <ebb9@byu.net>
63622
63623         * lib/version-etc.c (version_etc_va): Update license wording to
63624         be more concise.  Recommended by Richard Stallman.
63625
63626 2007-03-22  Bruno Haible  <bruno@clisp.org>
63627
63628         * lib/poll.c (MSG_PEEK): New fallback definition.
63629
63630 2007-03-22  Bruno Haible  <bruno@clisp.org>
63631
63632         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63633         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63634         (main): Update.
63635         Fixes a compilation error on BeOS.
63636
63637 2007-03-22  Bruno Haible  <bruno@clisp.org>
63638
63639         * modules/frexpl-tests: New file.
63640         * tests/test-frexpl.c: New file.
63641
63642         * modules/frexpl: New file.
63643         * m4/frexpl.m4: New file.
63644         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63645         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63647         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63648         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63649         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63650
63651 2007-03-22  Bruno Haible  <bruno@clisp.org>
63652
63653         * lib/frexpl.c: Share code with lib/frexp.c.
63654         * modules/mathl (Files): Add lib/frexp.c.
63655         (Depends-on): Add isnanl-nolibm.
63656
63657 2007-03-22  Bruno Haible  <bruno@clisp.org>
63658
63659         * modules/printf-frexp (Files): Add m4/frexp.m4.
63660         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63661         only if the found frexp function actually works.
63662
63663 2007-03-22  Bruno Haible  <bruno@clisp.org>
63664
63665         * lib/frexp.c: Remove older implementation that uses divisions.
63666
63667 2007-03-21  Bruno Haible  <bruno@clisp.org>
63668
63669         * modules/frexp-tests: New file.
63670         * tests/test-frexp.c: New file.
63671
63672         * modules/frexp: New file.
63673         * lib/frexp.c: New file.
63674         * m4/frexp.m4: New file.
63675         * lib/math_.h (frexp): New declaration.
63676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63677         REPLACE_FREXP.
63678         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63679
63680 2007-03-21  Bruno Haible  <bruno@clisp.org>
63681
63682         * modules/isnanl-tests: New file.
63683         * tests/test-isnanl.c: New file.
63684
63685         * modules/isnanl: New file.
63686         * lib/isnanl.h: New file.
63687         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63688         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63689         gl_FUNC_ISNANL_WORKS.
63690         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63691         New macros.
63692
63693 2007-03-21  Bruno Haible  <bruno@clisp.org>
63694
63695         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63696         lib/isnanl.h.
63697         (Include): Update.
63698         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
63699         * lib/vasnprintf.c: Update.
63700         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
63701         tests/test-isnanl.h, remove tests/test-isnanl.c.
63702         (Makefile.am): Update.
63703         * tests/test-isnanl-nolibm.c: New file.
63704         * tests/test-isnanl.h: New file.
63705         * tests/test-isnanl.c: Remove file.
63706
63707 2007-03-21  Jim Meyering  <jim@meyering.net>
63708
63709         When trying to open ".", treat ESTALE like EACCES.
63710         * lib/savewd.c (savewd_save): Resort to forking not just upon
63711         failure with EACCES, but also when errno is ESTALE.
63712
63713 2007-03-20  Bruno Haible  <bruno@clisp.org>
63714
63715         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
63716         Needed on AIX 5.1. Reported by Matthew Woehlke.
63717
63718 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63719
63720         Suggestions by Bruno Haible:
63721         * lib/acl-internal.h: Include "gettext.h" rather than rolling
63722         our own.
63723         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
63724         * modules/acl (Depends-on): Add gettext.
63725
63726 2007-03-19  Bruno Haible  <bruno@clisp.org>
63727
63728         * modules/iconvme: Remove file.
63729         * lib/iconvme.h: Remove file.
63730         * lib/iconvme.c: Remove file.
63731         * m4/iconvme.m4: Remove file.
63732
63733 2007-03-19  Bruno Haible  <bruno@clisp.org>
63734
63735         * doc/relocatable-maint.texi: Break long shell script line.
63736         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63737
63738 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63739
63740         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
63741         handle file_has_acl.
63742         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
63743         * lib/acl.c: Move header inclusions and related macro defns into
63744         lib/acl-internal.h.
63745         (S_ISLNK): Remove defn, since that's now done for us.
63746         (file_has_acl): Move to lib/file-has-acl.c.
63747         Call acl_trivial if available.  This is the crucial part of the fix.
63748         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
63749         shared within the library.  Rewrite a bit, partly to make it compatible
63750         with the GNU coding style.
63751         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
63752         Remove unnecessary double-quotes.
63753         Don't test for acl_to_text; the build will catch that.
63754         Replace acl_entries if it doesn't exist and it is needed.
63755         Check for -lsec and acl_trivial (as used on Solaris 10).
63756         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63757         lib/file-has-acl.c.
63758         (Depends-on): Add sys_stat, for S_ISLNK.
63759
63760 2007-03-19  Ben Pfaff  <blp@gnu.org>
63761
63762         * doc/gnulib.texi: Fix typos.
63763         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63764
63765 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63766
63767         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63768         If size is zero here, buf must be zero.
63769
63770 2007-03-19  Simon Josefsson  <simon@josefsson.org>
63771
63772         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
63773         <bruno@clisp.org>.
63774
63775 2007-03-18  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63778         Suggested by Eric Blake.
63779
63780 2007-03-18  Ben Pfaff  <blp@gnu.org>
63781
63782         * doc/relocatable.texi: Recommend using as prefix a directory
63783         that does not exist and will never be created.  Based on
63784         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63785         and others.
63786
63787 2007-03-17  Bruno Haible  <bruno@clisp.org>
63788
63789         * lib/fchownat.c: Include lchown.h.
63790
63791 2007-03-17  Bruno Haible  <bruno@clisp.org>
63792
63793         Fix endless loop when the given allocated size was > INT_MAX.
63794         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63795         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63796         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63797         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63798         * lib/sprintf.c (sprintf): Likewise.
63799
63800 2007-03-17  Bruno Haible  <bruno@clisp.org>
63801
63802         * tests/test-argp-2.sh (func_compare): Output a context diff.
63803
63804 2007-03-17  Bruno Haible  <bruno@clisp.org>
63805
63806         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63807         locale's decimal-point character.
63808
63809 2007-03-17  Bruno Haible  <bruno@clisp.org>
63810
63811         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63812         before comparing it. Needed because on some platforms (e.g. x86) a
63813         'long double' occupies less bytes than sizeof (long double).
63814
63815 2007-03-17  Bruno Haible  <bruno@clisp.org>
63816
63817         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63818         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63819         * tests/test-getaddrinfo.c (simple): Likewise.
63820         * tests/test-read-file.c (main): Likewise.
63821
63822 2007-03-17  Bruno Haible  <bruno@clisp.org>
63823
63824         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63825
63826 2007-03-17  Bruno Haible  <bruno@clisp.org>
63827
63828         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63829         unused variable.
63830
63831 2007-03-17  Bruno Haible  <bruno@clisp.org>
63832
63833         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63834         * tests/test-c-strncasecmp.c: Likewise.
63835
63836 2007-03-17  Bruno Haible  <bruno@clisp.org>
63837
63838         * modules/stdlib (Depends-on): Add unistd.
63839         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63840         Needed for MacOS X 10.3.
63841
63842 2007-03-17  Bruno Haible  <bruno@clisp.org>
63843
63844         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63845
63846 2007-03-17  Bruno Haible  <bruno@clisp.org>
63847
63848         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63849
63850 2007-03-17  Bruno Haible  <bruno@clisp.org>
63851
63852         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63853         to reflect files copied from gnulib (with or without modifications).
63854         Suggested by Jim Meyering.
63855
63856 2007-03-17  Eric Blake  <ebb9@byu.net>
63857
63858         * NEWS: Document stdlib change from 2007-02-18.
63859
63860 2007-03-17  Jim Meyering  <jim@meyering.net>
63861
63862         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63863         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63864         someone uses a name containing shell meta-characters.
63865         Reported by Alfred M. Szmidt.
63866
63867         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63868
63869 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63870
63871         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63872         and copy gettext configuration files only if configure.ac contains
63873         a use of AM_GNU_GETTEXT_VERSION.
63874
63875 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63876
63877         * build-aux/bootstrap (gnulib_name): New variable.
63878         (gnulib_tool_options): Use it.
63879
63880 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63881
63882         * tests/test-des.c: Use new namespace.
63883
63884 2007-03-15  Bruno Haible  <bruno@clisp.org>
63885
63886         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63887         Reported by James Youngman <jay@gnu.org>.
63888
63889 2007-03-15  Bruno Haible  <bruno@clisp.org>
63890
63891         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63892         declared prototype. Needed with cc on OSF/1 5.1.
63893
63894 2007-03-15  Bruno Haible  <bruno@clisp.org>
63895
63896         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63897         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63898         (struct gl_list_implementation): Add dispose_fn argument to the
63899         'create_empty', 'create' methods.
63900         (struct gl_list_impl_base): Add field 'dispose_fn'.
63901         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63902         argument.
63903         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63904         dispose_fn argument.
63905         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63906         dispose_fn on the dropped values.
63907         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63908         dispose_fn argument.
63909         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63910         dropped values.
63911         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63912         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63913         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63914         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63915         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63916         argument.
63917         (gl_tree_list_free): Call dispose_fn on the dropped values.
63918         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63919         the dropped values.
63920         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63921         Add dispose_fn argument.
63922         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63923         Call dispose_fn on the dropped values.
63924         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63925         Add dispose_fn argument.
63926         (gl_sublist_create): Initialize the 'dispose_fn' field.
63927         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63928         * tests/test-array_list.c (main): Update.
63929         * tests/test-carray_list.c (main): Update.
63930         * tests/test-avltree_list.c (main): Update.
63931         * tests/test-rbtree_list.c (main): Update.
63932         * tests/test-avltreehash_list.c (main): Update.
63933         * tests/test-rbtreehash_list.c (main): Update.
63934         * tests/test-linked_list.c (main): Update.
63935         * tests/test-linkedhash_list.c (main): Update.
63936         * tests/test-array_oset.c (main): Update.
63937
63938 2007-03-15  Bruno Haible  <bruno@clisp.org>
63939
63940         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63941         (gl_oset_create_empty): Add dispose_fn argument.
63942         (struct gl_oset_implementation): Add dispose_fn argument to
63943         'create_empty' method.
63944         (struct gl_oset_impl_base): Add dispose_fn field.
63945         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63946         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63947         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63948         values.
63949         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63950         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63951         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63952         dropped value.
63953         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63954         dropped value.
63955         * tests/test-array_oset.c (main): Update.
63956         * tests/test-avltree_oset.c (main): Update.
63957         * tests/test-rbtree_oset.c (main): Update.
63958         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63959
63960 2007-03-13  Bruno Haible  <bruno@clisp.org>
63961
63962         * tests/test-stdbool.c (i): Update after last patch.
63963
63964 2007-03-12  Bruno Haible  <bruno@clisp.org>
63965
63966         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63967         the iswprint macro. Needed on Solaris 2.5.1.
63968
63969 2007-03-12  Bruno Haible  <bruno@clisp.org>
63970
63971         * tests/test-printf-frexp.c (main): Declare x as volatile.
63972
63973 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63974
63975         * doc/gnulib.texi (Build robot for gnulib): New section.
63976
63977 2007-03-12  Jim Meyering  <jim@meyering.net>
63978
63979         * build-aux/bootstrap: New file.
63980         * build-aux/bootstrap.conf: New file, from coreutils.
63981
63982 2007-03-11  Bruno Haible  <bruno@clisp.org>
63983
63984         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63985
63986 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63987
63988         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63989         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63990         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63991
63992 2007-03-11  Bruno Haible  <bruno@clisp.org>
63993
63994         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63995         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63996
63997 2007-03-11  Bruno Haible  <bruno@clisp.org>
63998
63999         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64000         formula. Needed for SunPRO C 5.0.
64001
64002 2007-03-11  Bruno Haible  <bruno@clisp.org>
64003
64004         * modules/long-options (Depends-on): Add getopt.
64005
64006 2007-03-11  Bruno Haible  <bruno@clisp.org>
64007
64008         * modules/modechange (Depends-on): Add stdbool.
64009
64010 2007-03-11  Bruno Haible  <bruno@clisp.org>
64011
64012         * modules/i-ring (Depends-on): Add stdbool.
64013
64014 2007-03-11  Bruno Haible  <bruno@clisp.org>
64015
64016         * modules/gc-des (Depends-on): Add stdbool.
64017
64018 2007-03-11  Bruno Haible  <bruno@clisp.org>
64019
64020         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64021
64022 2007-03-11  Bruno Haible  <bruno@clisp.org>
64023
64024         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64025
64026 2007-03-11  Bruno Haible  <bruno@clisp.org>
64027
64028         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64029
64030 2007-03-11  Bruno Haible  <bruno@clisp.org>
64031
64032         * lib/vasnprintf.c (sprintf): Undefine.
64033
64034 2007-03-11  Bruno Haible  <bruno@clisp.org>
64035
64036         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64037         initializers in SunPRO C and Compaq C compilers.
64038
64039 2007-03-11  Bruno Haible  <bruno@clisp.org>
64040
64041         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64042         decrementing code ANSI C compliant.
64043
64044 2007-03-11  Bruno Haible  <bruno@clisp.org>
64045
64046         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64047         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64048
64049 2007-03-11  Bruno Haible  <bruno@clisp.org>
64050
64051         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64052         <stdbool.h> substitute doesn't pass.
64053
64054 2007-03-11  Bruno Haible  <bruno@clisp.org>
64055
64056         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64057
64058 2007-03-11  Bruno Haible  <bruno@clisp.org>
64059
64060         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64061         script, for submission to autobuild.josefsson.org.
64062
64063 2007-03-10  Bruno Haible  <bruno@clisp.org>
64064
64065         * modules/canonicalize-lgpl-tests: New file.
64066         * tests/test-canonicalize-lgpl.sh: New file.
64067         * tests/test-canonicalize-lgpl.c: New file.
64068
64069         * modules/c-strcase-tests: New file.
64070         * tests/test-c-strcase.sh: New file.
64071         * tests/test-c-strcasecmp.c: New file.
64072         * tests/test-c-strncasecmp.c: New file.
64073
64074         * modules/atexit-tests: New file.
64075         * tests/test-atexit.sh: New file.
64076         * tests/test-atexit.c: New file.
64077
64078 2007-03-10  Bruno Haible  <bruno@clisp.org>
64079
64080         * tests/test-binary-io.sh: Use temporary filenames that are not so
64081         likely to clash with those of other tests (in a parallel make).
64082         * tests/test-binary-io.c: Likewise.
64083
64084 2007-03-10  Bruno Haible  <bruno@clisp.org>
64085
64086         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64087         fallback; use #error instead.
64088         Suggested by Simon Josefsson.
64089
64090 2007-03-10  Bruno Haible  <bruno@clisp.org>
64091
64092         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64093         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64094         first and the last.
64095
64096 2007-03-10  Bruno Haible  <bruno@clisp.org>
64097
64098         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64099
64100 2007-03-10  Bruno Haible  <bruno@clisp.org>
64101
64102         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64103         "make distcheck".
64104         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64105         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64106         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64107
64108 2007-03-10  Bruno Haible  <bruno@clisp.org>
64109
64110         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64111         variable.
64112         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64113         variable.
64114
64115 2007-03-09  Eric Blake  <ebb9@byu.net>
64116         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64117
64118         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64119         types are not being provided by gnulib.
64120         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64121         types are supported.
64122
64123 2007-03-10  Bruno Haible  <bruno@clisp.org>
64124
64125         * lib/stdio_.h (__attribute__): New macro.
64126         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64127         vsprintf): Specify __attribute__ __format__ for GCC.
64128         Suggested by Eric Blake.
64129
64130 2007-03-09  Bruno Haible  <bruno@clisp.org>
64131
64132         * modules/printf-posix-tests: New file.
64133         * tests/test-printf-posix.sh: New file.
64134         * tests/test-printf-posix.c: New file.
64135
64136         * modules/printf-posix: New file.
64137         * lib/printf.c: New file.
64138         * m4/printf-posix-rpl.m4: New file.
64139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64140         REPLACE_PRINTF.
64141         * lib/stdio_.h (printf): New declaration.
64142         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64143         ____strfmon____): New macros.
64144         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64145         REPLACE_PRINTF.
64146
64147 2007-03-09  Bruno Haible  <bruno@clisp.org>
64148
64149         * tests/test-vasnprintf-posix2.sh: New file.
64150         * tests/test-vasnprintf-posix2.c: New file.
64151         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64152         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64153         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64154
64155         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64156         a locale dependent decimal point, rather than always '.'.
64157
64158 2007-03-09  Eric Blake  <ebb9@byu.net>
64159
64160         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64161         spite of platforms like Tandem/NSK that define it to -1.
64162
64163 2007-03-08  Bruno Haible  <bruno@clisp.org>
64164
64165         * modules/vprintf-posix-tests: New file.
64166         * tests/test-vprintf-posix.sh: New file.
64167         * tests/test-vprintf-posix.c: New file.
64168         * tests/test-printf-posix.h: New file.
64169
64170         * modules/vprintf-posix: New file.
64171         * lib/vprintf.c: New file.
64172         * m4/vprintf-posix.m4: New file.
64173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64174         REPLACE_VPRINTF.
64175         * lib/stdio_.h (vprintf): New declaration.
64176         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64177         REPLACE_VPRINTF.
64178
64179 2007-03-08  Bruno Haible  <bruno@clisp.org>
64180
64181         * modules/fprintf-posix-tests: New file.
64182         * tests/test-fprintf-posix.sh: New file.
64183         * tests/test-fprintf-posix.c: New file.
64184
64185         * modules/fprintf-posix: New file.
64186         * lib/fprintf.c: New file.
64187         * m4/fprintf-posix.m4: New file.
64188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64189         REPLACE_FPRINTF.
64190         * lib/stdio_.h (fprintf): New declaration.
64191         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64192         REPLACE_FPRINTF.
64193
64194 2007-03-08  Bruno Haible  <bruno@clisp.org>
64195
64196         * modules/vfprintf-posix-tests: New file.
64197         * tests/test-vfprintf-posix.sh: New file.
64198         * tests/test-vfprintf-posix.c: New file.
64199         * tests/test-fprintf-posix.h: New file.
64200         * tests/test-fprintf-posix.out: New file.
64201
64202         * modules/vfprintf-posix: New file.
64203         * lib/vfprintf.c: New file.
64204         * m4/vfprintf-posix.m4: New file.
64205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64206         REPLACE_VFPRINTF.
64207         * lib/stdio_.h (vfprintf): New declaration.
64208         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64209         REPLACE_VFPRINTF.
64210
64211 2007-03-08  Bruno Haible  <bruno@clisp.org>
64212
64213         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64214
64215 2007-03-08  Bruno Haible  <bruno@clisp.org>
64216
64217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64218         instead of 'expr' invocations.
64219         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64222         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64223         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64224         Suggested by Paul Eggert.
64225
64226 2007-03-08  Bruno Haible  <bruno@clisp.org>
64227
64228         * modules/fseterr-tests: New file.
64229         * tests/test-fseterr.c: New file.
64230
64231         * modules/fseterr: New file.
64232         * lib/fseterr.h: New file.
64233         * lib/fseterr.c: New file.
64234
64235 2007-03-08  Bruno Haible  <bruno@clisp.org>
64236
64237         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64238         * lib/getopt_.h: Likewise.
64239         * lib/mbswidth.h: Likewise.
64240         * lib/setenv.h: Likewise.
64241         * lib/vasnprintf.h: Likewise.
64242         * lib/vasprintf.h: Likewise.
64243         * lib/verror.h: Likewise.
64244         * lib/xsetenv.h: Likewise.
64245         * lib/xvasprintf.h: Likewise.
64246
64247 2007-03-08  Jim Meyering  <jim@meyering.net>
64248
64249         * users.txt: Add parted.
64250
64251         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64252
64253 2007-03-07  Bruno Haible  <bruno@clisp.org>
64254
64255         * m4/printf.m4: Make the shell script snippets copy&pastable.
64256
64257 2007-03-02  Bruno Haible  <bruno@clisp.org>
64258
64259         * lib/netinet_in_.h: New file.
64260         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64261         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64262         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64263         (Depends-on): Add absolute-header.
64264         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64265         into netinet/in.h.
64266
64267 2007-03-03  Bruno Haible  <bruno@clisp.org>
64268
64269         * lib/sys_select_.h: New file.
64270         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64271         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64272         * modules/sys_select (Files): Add lib/sys_select_.h.
64273         (Depends-on): Add absolute-header.
64274         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64275         into sys/select.h.
64276
64277 2007-03-02  Bruno Haible  <bruno@clisp.org>
64278
64279         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64280         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64281         values.
64282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64283         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64284         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64285         * modules/sys_socket (Depends-on): Add absolute-header.
64286         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64287         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64288         (Include): Remove requirement of inclusion of <sys/types.h>.
64289
64290 2007-03-02  Bruno Haible  <bruno@clisp.org>
64291
64292         * lib/byteswap_.h (bswap_32): Fix formula.
64293
64294 2007-03-06  Bruno Haible  <bruno@clisp.org>
64295
64296         * modules/sprintf-posix-tests: New file.
64297         * tests/test-sprintf-posix.c: New file.
64298
64299         * modules/sprintf-posix: New file.
64300         * lib/sprintf.c: New file.
64301         * m4/sprintf-posix.m4: New file.
64302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64303         REPLACE_SPRINTF.
64304         * lib/stdio_.h (sprintf): New declaration.
64305         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64306         REPLACE_SPRINTF.
64307
64308 2007-03-06  Bruno Haible  <bruno@clisp.org>
64309
64310         * modules/vsprintf-posix-tests: New file.
64311         * tests/test-vsprintf-posix.c: New file.
64312         * tests/test-sprintf-posix.h: New file.
64313
64314         * modules/vsprintf-posix: New file.
64315         * lib/vsprintf.c: New file.
64316         * m4/vsprintf-posix.m4: New file.
64317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64318         REPLACE_VSPRINTF.
64319         * lib/stdio_.h (vsprintf): New declaration.
64320         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64321         REPLACE_VSPRINTF.
64322
64323 2007-03-06  Bruno Haible  <bruno@clisp.org>
64324
64325         * modules/vsnprintf (Depend-on): Remove minmax.
64326
64327 2007-03-06  Bruno Haible  <bruno@clisp.org>
64328
64329         * modules/snprintf-posix-tests: New file.
64330         * tests/test-snprintf-posix.c: New file.
64331
64332         * modules/snprintf-posix: New file.
64333         * m4/snprintf-posix.m4: New file.
64334         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64335         gl_FUNC_SNPRINTF.
64336         (gl_FUNC_SNPRINTF): Invoke it.
64337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64338         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64339         is set.
64340         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64341
64342 2007-03-06  Bruno Haible  <bruno@clisp.org>
64343
64344         * modules/vsnprintf-posix-tests: New file.
64345         * tests/test-vsnprintf-posix.c: New file.
64346         * tests/test-snprintf-posix.h: New file.
64347
64348         * modules/vsnprintf-posix: New file.
64349         * m4/vsnprintf-posix.m4: New file.
64350         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64351         gl_FUNC_VSNPRINTF.
64352         (gl_FUNC_VSNPRINTF): Invoke it.
64353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64354         * lib/stdio_.h (vsnprintf): Define as a replacement if
64355         REPLACE_VSNPRINTF is set.
64356         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64357
64358 2007-03-06  Bruno Haible  <bruno@clisp.org>
64359
64360         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64361         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64362
64363 2007-03-06  Bruno Haible  <bruno@clisp.org>
64364
64365         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64366         (asinl): Declare also if HAVE_DECL_ASINL is set.
64367         (atanl): Declare also if HAVE_DECL_ATANL is set.
64368         (ceill): Declare also if HAVE_DECL_CEILL is set.
64369         (cosl): Declare also if HAVE_DECL_COSL is set.
64370         (expl): Declare also if HAVE_DECL_EXPL is set.
64371         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64372         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64373         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64374         (logl): Declare also if HAVE_DECL_LOGL is set.
64375         (sinl): Declare also if HAVE_DECL_SINL is set.
64376         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64377         (tanl): Declare also if HAVE_DECL_TANL is set.
64378         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64380         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64381         declaration of frexpl, ldexpl.
64382         * modules/printf-frexpl (Depends-on): Add math.
64383         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64384
64385 2007-03-05  Bruno Haible  <bruno@clisp.org>
64386
64387         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64388         frexpl and ldexpl are declared.
64389         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64390
64391 2007-03-05  Bruno Haible  <bruno@clisp.org>
64392
64393         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64394         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64395
64396 2007-03-05  Bruno Haible  <bruno@clisp.org>
64397
64398         * lib/stdio_.h: Include <stddef.h>.
64399
64400 2007-03-05  Bruno Haible  <bruno@clisp.org>
64401
64402         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64403
64404 2007-03-05  Bruno Haible  <bruno@clisp.org>
64405
64406         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64407         NetBSD 4, from Ralf Wildenhues.
64408
64409 2007-03-04  Bruno Haible  <bruno@clisp.org>
64410
64411         * lib/vasprintf.h: Update #if logic for the case when the functions
64412         exist but are overridden.
64413
64414 2007-03-04  Bruno Haible  <bruno@clisp.org>
64415
64416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64417         implementations: glibc-2.4 and MacOS X 10.3.
64418         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64419         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64420         * tests/test-vasprintf-posix.c (test_function): Likewise.
64421
64422 2007-03-04  Bruno Haible  <bruno@clisp.org>
64423
64424         * modules/vasprintf-posix-tests: New file.
64425         * tests/test-vasprintf-posix.c: New file.
64426
64427         * modules/vasprintf-posix: New file.
64428         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64429         defined.
64430         * m4/vasprintf-posix.m4: New file.
64431         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64432         gl_FUNC_VASPRINTF.
64433         (gl_FUNC_VASPRINTF): Invoke it.
64434         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64435         here.
64436         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64437
64438 2007-03-04  Bruno Haible  <bruno@clisp.org>
64439
64440         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64441         REPLACE_GETTIMEOFDAY.
64442         * modules/sys_time (Makefile.am): Likewise.
64443         * m4/sys_time_h.m4: Likewise.
64444         * m4/gettimeofday.m4: Likewise.
64445
64446 2007-03-04  Bruno Haible  <bruno@clisp.org>
64447
64448         * modules/vasnprintf-posix-tests: New file.
64449         * tests/test-vasnprintf-posix.c: New file.
64450
64451         * modules/vasnprintf-posix: New file.
64452         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64453         printf-frexpl.h.
64454         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64455         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64456         REPLACE_VASNPRINTF is defined.
64457         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64458         gl_FUNC_VASNPRINTF.
64459         (gl_FUNC_VASNPRINTF): Invoke it.
64460         * m4/vasnprintf-posix.m4: New file.
64461         * m4/printf.m4: New file.
64462
64463 2007-03-04  Bruno Haible  <bruno@clisp.org>
64464
64465         Compile progreloc.c only if --enable-relocatable is specified.
64466         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64467         if --enable-relocatable was specified.
64468         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64469         lib_SOURCES.
64470
64471 2007-03-04  Jim Meyering  <jim@meyering.net>
64472
64473         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64474         Use it consistently, rather than enumerating errno constants.
64475
64476 2007-03-04  Bruno Haible  <bruno@clisp.org>
64477
64478         * modules/xvasprintf-tests: New file.
64479         * tests/test-xvasprintf.c: New file.
64480
64481         * modules/vasprintf-tests: New file.
64482         * tests/test-vasprintf.c: New file.
64483
64484         * modules/vasnprintf-tests: New file.
64485         * tests/test-vasnprintf.c: New file.
64486
64487         * modules/vsnprintf-tests: New file.
64488         * tests/test-vsnprintf.c: New file.
64489
64490         * modules/snprintf-tests: New file.
64491         * tests/test-snprintf.c: New file.
64492
64493 2007-03-04  Bruno Haible  <bruno@clisp.org>
64494
64495         Compile relocatable.c only if --enable-relocatable is specified.
64496         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64497         gl_RELOCATABLE_LIBRARY.
64498         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64499         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64500         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64501         gl_RELOCATABLE_LIBRARY.
64502         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64503         (Makefile.am): Remove lib_SOURCES.
64504         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64505         gl_RELOCATABLE_LIBRARY.
64506         (Makefile.am): Remove lib_SOURCES.
64507         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64508         always.
64509         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64510         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64511
64512 2007-03-04  Bruno Haible  <bruno@clisp.org>
64513
64514         * modules/argmatch-tests: New file.
64515         * tests/test-argmatch.c: New file.
64516
64517         * tests/test-allocsa.c (main): Halve the number of loop runs.
64518
64519         * modules/alloca-opt-tests: New file.
64520         * tests/test-alloca-opt.c: New file.
64521
64522 2007-03-04  Jim Meyering  <jim@meyering.net>
64523
64524         Work around difference between Linux ACLs and Solaris 10 ZFS.
64525         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64526         for EINVAL.
64527
64528 2007-03-03  Bruno Haible  <bruno@clisp.org>
64529
64530         * modules/relocatable-prog (Depends-on): Add back progreloc's
64531         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64532
64533 2007-03-03  Bruno Haible  <bruno@clisp.org>
64534
64535         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64536         * modules/relocatable-lib: New file.
64537
64538 2007-03-03  Bruno Haible  <bruno@clisp.org>
64539
64540         * modules/relocatable-prog: Renamed from modules/relocatable.
64541         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64542
64543 2007-03-03  Bruno Haible  <bruno@clisp.org>
64544
64545         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64546         m4/relocatable-lib.m4.
64547         (Depends-on): Remove 'relocatable'.
64548         (configure.ac): Add gl_RELOCATABLE_NOP.
64549
64550 2007-03-03  Bruno Haible  <bruno@clisp.org>
64551
64552         * modules/relocatable-prog-wrapper: New file.
64553         * modules/relocatable (Depends-on): Add it. Remove all other
64554         dependencies except progname.
64555         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64556
64557         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64558         (gl_FUNC_STRERROR): Nop.
64559         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64560
64561         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64562         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64563
64564         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64565         (gl_FUNC_READLINK): Update.
64566
64567         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64568
64569 2007-03-03  Bruno Haible  <bruno@clisp.org>
64570
64571         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64572         * modules/xreadlink (Depends-on): Add unistd.
64573         * modules/xreadlink-with-size (Depends-on): Likewise.
64574
64575 2007-03-03  Bruno Haible  <bruno@clisp.org>
64576
64577         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64578         extracted from gt_FUNC_SETENV.
64579         (gt_FUNC_SETENV): Remove macro.
64580         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64581         remove gt_FUNC_SETENV.
64582
64583 2007-03-03  Bruno Haible  <bruno@clisp.org>
64584
64585         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64586         ENABLE_RELOCATABLE here.
64587         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64588
64589 2007-03-03  Bruno Haible  <bruno@clisp.org>
64590
64591         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64592         * tests/test-rbtreehash_list.c: Include progname.h.
64593         (main): Call set_program_name.
64594
64595         * modules/rbtree-oset-tests (Depends-on): Add progname.
64596         * tests/test-rbtree_oset.c: Include progname.h.
64597         (main): Call set_program_name.
64598
64599         * modules/rbtree-list-tests (Depends-on): Add progname.
64600         * tests/test-rbtree_list.c: Include progname.h.
64601         (main): Call set_program_name.
64602
64603         * modules/linked-list-tests (Depends-on): Add progname.
64604         * tests/test-linked_list.c: Include progname.h.
64605         (main): Call set_program_name.
64606
64607 2007-03-03  Bruno Haible  <bruno@clisp.org>
64608
64609         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64610         All uses of __restrict changed to _Restrict_.
64611         * lib/glob_.h (__restrict): Remove macro.
64612
64613 2007-03-02  Bruno Haible  <bruno@clisp.org>
64614
64615         * modules/gettext (configure.ac): Require gettext infrastructure
64616         from version 0.16.1.
64617
64618 2007-03-02  Bruno Haible  <bruno@clisp.org>
64619
64620         * modules/linkedhash-list-tests (Depends-on): Add progname.
64621         * tests/test-linkedhash_list.c: Include progname.h.
64622         (main): Call set_program_name.
64623
64624         * modules/carray-list-tests (Depends-on): Add progname.
64625         * tests/test-carray_list.c: Include progname.h.
64626         (main): Call set_program_name.
64627
64628         * modules/avltreehash-list-tests (Depends-on): Add progname.
64629         * tests/test-avltreehash_list.c: Include progname.h.
64630         (main): Call set_program_name.
64631
64632         * modules/avltree-oset-tests (Depends-on): Add progname.
64633         * tests/test-avltree_oset.c: Include progname.h.
64634         (main): Call set_program_name.
64635
64636         * modules/avltree-list-tests (Depends-on): Add progname.
64637         * tests/test-avltree_list.c: Include progname.h.
64638         (main): Call set_program_name.
64639
64640         * modules/array-oset-tests (Depends-on): Add progname.
64641         * tests/test-array_oset.c: Include progname.h.
64642         (main): Call set_program_name.
64643
64644         * modules/array-list-tests (Depends-on): Add progname.
64645         * tests/test-array_list.c: Include progname.h.
64646         (main): Call set_program_name.
64647
64648         * modules/argp-tests (Depends-on): Add progname.
64649         * tests/test-argp.c: Include argp.h first. Include progname.h.
64650         (main): Call set_program_name.
64651
64652 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         * doc/gnulib-tool.texi (Initial import): Reword description of
64655         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64656         limited effect even if defined after the first system include.
64657
64658 2007-03-01  Bruno Haible  <bruno@clisp.org>
64659
64660         * build-aux/config.libpath: Update to libtool-1.5.22.
64661         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64662
64663 2007-03-01  Bruno Haible  <bruno@clisp.org>
64664
64665         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64666         foo_CFLAGS.
64667         Reported by Ralf Wildenhues.
64668
64669 2007-03-01  Bruno Haible  <bruno@clisp.org>
64670
64671         * build-aux/install-reloc: Remove object files left over by some
64672         compilers.
64673         Reported by Ralf Wildenhues.
64674
64675 2007-03-01  Bruno Haible  <bruno@clisp.org>
64676
64677         * build-aux/install-reloc: Break long lines.
64678
64679 2007-03-01  Bruno Haible  <bruno@clisp.org>
64680
64681         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64682         Reported by Ralf Wildenhues.
64683
64684 2007-03-01  Bruno Haible  <bruno@clisp.org>
64685
64686         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64687         include ordering constraints.
64688
64689 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64690
64691         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64692         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64693         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64694         as another example.
64695         * lib/time_.h: Fix misspelling.
64696         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64697         Require gl_HEADER_TIME_H_DEFAULTS.
64698         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
64699         * m4/time_r.m4 (gl_TIME_R): Likewise.
64700         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
64701
64702 2007-03-01  Bruno Haible  <bruno@clisp.org>
64703
64704         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
64705         * m4/utimens.m4 (gl_UTIMENS): Likewise.
64706
64707 2007-03-01  Jim Meyering  <jim@meyering.net>
64708
64709         * modules/xreadlink (Maintainer): Add my name.
64710         * modules/xreadlink-with-size (Depends-on): Alphabetize.
64711
64712 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
64713             Bruno Haible  <bruno@clisp.org>
64714
64715         * build-aux/install-reloc: Compile also c-ctype.c.
64716         * build-aux/relocatable.sh.in: New file.
64717         * doc/relocatable.texi: New file.
64718         * doc/relocatable-maint.texi: New file.
64719         * doc/gnulib.texi: Include relocatable-maint.texi.
64720         * lib/progreloc.c: Include unistd.h unconditionally.
64721         * lib/relocwrapper.c: Include unistd.h unconditionally.
64722         Include c-ctype.h.
64723         (add_dotbin): Use c_tolower.
64724         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
64725         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
64726         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
64727         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
64728         to m4/relocatable-lib.m4.
64729         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
64730         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
64731         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
64732         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
64733         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
64734         * modules/relocatable: New file.
64735         * modules/relocatable-lib: New file.
64736         * modules/relocatable-script: New file.
64737
64738 2007-02-28  Bruno Haible  <bruno@clisp.org>
64739
64740         Import --enable-relocatable infrastructure.
64741         * build-aux/config.libpath: New file, from GNU gettext.
64742         * build-aux/install-reloc: New file, from GNU gettext.
64743         * build-aux/reloc-ldflags: New file, from GNU gettext.
64744         * lib/relocatable.h: New file, from GNU gettext.
64745         * lib/relocatable.c: New file, from GNU gettext.
64746         * lib/relocwrapper.c: New file, from GNU gettext.
64747         * m4/relocatable.m4: New file, from GNU gettext.
64748
64749 2007-02-28  Bruno Haible  <bruno@clisp.org>
64750
64751         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
64752
64753         * modules/xreadlink: New file, from GNU gettext with modifications.
64754         * lib/xreadlink.c: New file, from GNU gettext.
64755         * lib/xreadlink.h: Add comments.
64756         (xreadlink): New declaration.
64757
64758         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64759         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64760         lib/xreadlink-with-size.c.
64761         (configure.ac): Remove gl_XREADLINK invocation.
64762         (Makefile.am): Augment lib_SOURCES.
64763         * m4/xreadlink.m4: Remove file.
64764         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64765         (xreadlink_with_size): Renamed from xreadink.
64766         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64767         * modules/canonicalize (Depends-on): Replace xreadlink with
64768         xreadlink-with-size.
64769         * lib/canonicalize.c (canonicalize_filename_mode): Update.
64770
64771 2007-02-25  Jim Meyering  <jim@meyering.net>
64772
64773         * build-aux/announce-gen: When complaining about excess arguments,
64774         list them.
64775
64776 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64777
64778         * README: Document signed integer overflow situation more
64779         accurately.
64780
64781 2007-02-25  Bruno Haible  <bruno@clisp.org>
64782
64783         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64784         'a' or 'A' conversion.
64785
64786 2007-02-25  Bruno Haible  <bruno@clisp.org>
64787
64788         * modules/filename: Renamed from modules/pathname.
64789         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64790         lib/concatpath.c with lib/concat-filename.c.
64791         (Makefile.am): Update.
64792         (Include): Replace pathname.h with filename.h.
64793         * lib/filename.h: Renamed from lib/pathname.h.
64794         (concatenated_filename): Renamed from concatenated_pathname.
64795         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64796         (concatenated_filename): Renamed from concatenated_pathname.
64797         * lib/findprog.c: Include filename.h instead of pathname.h.
64798         (find_in_path): Update.
64799         * lib/javacomp.c: Include filename.h instead of pathname.h.
64800         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64801         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64802         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64803         is_oldgcj_14_13_usable, is_javac_usable): Update.
64804         * lib/javaexec.c: Include filename.h instead of pathname.h.
64805         (execute_java_class): Update.
64806         * modules/findprog: Update.
64807         * modules/javacomp: Update.
64808         * modules/javaexec: Update.
64809         * MODULES.html.sh (File system functions): Add 'filename', remove
64810         'pathname'.
64811
64812 2007-02-25  Bruno Haible  <bruno@clisp.org>
64813
64814         * modules/printf-frexpl-tests: New file.
64815         * tests/test-printf-frexpl.c: New file.
64816
64817         * modules/printf-frexpl: New file.
64818         * lib/printf-frexpl.h: New file.
64819         * lib/printf-frexpl.c: New file.
64820         * m4/printf-frexpl.m4: New file.
64821
64822 2007-02-25  Bruno Haible  <bruno@clisp.org>
64823
64824         * modules/printf-frexp-tests: New file.
64825         * tests/test-printf-frexp.c: New file.
64826
64827         * modules/printf-frexp: New file.
64828         * lib/printf-frexp.h: New file.
64829         * lib/printf-frexp.c: New file.
64830         * m4/printf-frexp.m4: New file.
64831
64832 2007-02-25  Bruno Haible  <bruno@clisp.org>
64833
64834         Assume automake >= 1.10 for the tests.
64835         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64836         * modules/arctwo-tests: Likewise.
64837         * modules/argp-tests: Likewise.
64838         * modules/avltree-list-tests: Likewise.
64839         * modules/avltree-oset-tests: Likewise.
64840         * modules/avltreehash-list-tests: Likewise.
64841         * modules/carray-list-tests: Likewise.
64842         * modules/crc-tests: Likewise.
64843         * modules/des-tests: Likewise.
64844         * modules/gc-arcfour-tests: Likewise.
64845         * modules/gc-arctwo-tests: Likewise.
64846         * modules/gc-des-tests: Likewise.
64847         * modules/gc-hmac-md5-tests: Likewise.
64848         * modules/gc-hmac-sha1-tests: Likewise.
64849         * modules/gc-md2-tests: Likewise.
64850         * modules/gc-md4-tests: Likewise.
64851         * modules/gc-md5-tests: Likewise.
64852         * modules/gc-pbkdf2-sha1-tests: Likewise.
64853         * modules/gc-rijndael-tests: Likewise.
64854         * modules/gc-sha1-tests: Likewise.
64855         * modules/gc-tests: Likewise.
64856         * modules/getaddrinfo-tests: Likewise.
64857         * modules/hmac-md5-tests: Likewise.
64858         * modules/hmac-sha1-tests: Likewise.
64859         * modules/linked-list-tests: Likewise.
64860         * modules/linkedhash-list-tests: Likewise.
64861         * modules/lock-tests: Likewise.
64862         * modules/md2-tests: Likewise.
64863         * modules/md4-tests: Likewise.
64864         * modules/md5-tests: Likewise.
64865         * modules/rbtree-list-tests: Likewise.
64866         * modules/rbtree-oset-tests: Likewise.
64867         * modules/rbtreehash-list-tests: Likewise.
64868         * modules/read-file-tests: Likewise.
64869         * modules/rijndael-tests: Likewise.
64870         * modules/stdint-tests: Likewise.
64871         * modules/tls-tests: Likewise.
64872
64873 2007-02-24  Bruno Haible  <bruno@clisp.org>
64874
64875         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64876         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64877         function; instead check whether isnan with a double argument links.
64878         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64879         function; instead check whether isnan with a 'long double' argument
64880         links.
64881         Reported by Eric Blake <ebb9@byu.net>.
64882
64883 2007-02-24  Bruno Haible  <bruno@clisp.org>
64884
64885         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64886         defined.
64887         * lib/isnanl.c: Remove all code. Just include isnan.c.
64888         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64889
64890 2007-02-25  Jim Meyering  <jim@meyering.net>
64891
64892         Avoid conflicting types for 'unsetenv' on FreeBSD.
64893         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64894         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64895         in stdlib.h.
64896
64897 2007-02-24  Bruno Haible  <bruno@clisp.org>
64898
64899         * modules/isnanl-nolibm-tests: New file.
64900         * tests/test-isnanl.c: New file.
64901
64902         * modules/isnanl-nolibm: New file.
64903         * lib/isnanl.h: New file.
64904         * lib/isnanl.c: New file.
64905         * m4/isnanl.m4: New file.
64906
64907 2007-02-24  Bruno Haible  <bruno@clisp.org>
64908
64909         * modules/isnan-nolibm-tests: New file.
64910         * tests/test-isnan.c: New file.
64911
64912         * modules/isnan-nolibm: New file.
64913         * lib/isnan.h: New file.
64914         * lib/isnan.c: New file.
64915         * m4/isnan.m4: New file.
64916
64917 2007-02-24  Bruno Haible  <bruno@clisp.org>
64918
64919         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64920         assume that an exponent fits in 20 bits.
64921
64922 2007-02-24  Jim Meyering  <jim@meyering.net>
64923
64924         * m4/regex.m4: Update the description of the configure-time option,
64925         --without-included-regex, to state accurately what the defaults are,
64926         and perhaps to give people an idea why using this option is risky.
64927
64928 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64931         loops on small arguments.  This attempts to avoid the problem
64932         Bruno Haible reported for AIX 4.3.2 in
64933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64934
64935 2007-02-23  Bruno Haible  <bruno@clisp.org>
64936
64937         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64938         Needed for help2man.
64939
64940 2007-02-23  Karl Berry  <karl@gnu.org>
64941
64942         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64943         exists, foo.h should be cvs-ignored, not committed.
64944
64945 2007-02-23  Eric Blake  <ebb9@byu.net>
64946
64947         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64948         * lib/stat-time.h (includes): Likewise.
64949         * lib/utimecmp.c (includes): Likewise.
64950         * lib/utimens.h (includes): Likewise.
64951         * lib/getdate.y (includes): Also include "timespec.h" for use
64952         internal to the module.
64953         * modules/utimens (Depends-on): Revert yesterday's patch.
64954         * modules/nanosleep (Depends-on): Add missing dependency.
64955
64956 2007-02-22  Bruno Haible  <bruno@clisp.org>
64957
64958         * lib/glob.c: Don't include getlogin_r.h.
64959
64960 2007-02-22  Jim Meyering  <jim@meyering.net>
64961
64962         * modules/utimens (Depends-on): Add timespec, required for
64963         utimens.h's inclusion of timespec.h.
64964
64965 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64966
64967         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64968         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64969         Schwab in
64970         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64971         I'll try to think of a better way to fix the Solaris problem.
64972
64973         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64974         like glibc; on Solaris 10, it fails with errno == EINVAL.
64975         POSIX says the behavior is unspecified if the first argument is NULL,
64976         so play it safe and never pass NULL to the system getcwd.
64977
64978 2007-02-21  Jim Meyering  <jim@meyering.net>
64979
64980         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64981         of gettimeofday.  It would conflict with the one now always
64982         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64983         an IRIX 6.5 build failure.
64984
64985 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64986
64987         Minor fixups to port to Solaris 10 with Sun C 5.8.
64988         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64989         * modules/getcwd (Depends-on): Add dirfd.
64990         * lib/putenv.c (putenv): #undef it.
64991         (rpl_putenv): New decl.
64992         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64993
64994 2007-02-20  Bruno Haible  <bruno@clisp.org>
64995
64996         * modules/stdio-tests: New file.
64997         * tests/test-stdio.c: New file.
64998
64999         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65000         (Depends-on): Add stdio.
65001         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65002         (Include): Use <stdio.h> instead of vsnprintf.h.
65003         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65004         HAVE_DECL_VSNPRINTF.
65005         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65006
65007         * modules/snprintf (Files): Remove lib/snprintf.h.
65008         (Depends-on): Add stdio.
65009         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65010         (Include): Use <stdio.h> instead of snprintf.h.
65011         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65012         HAVE_DECL_SNPRINTF.
65013         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65014         * lib/getaddrinfo.c: Likewise.
65015
65016         * modules/stdio: New file.
65017         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65018         * lib/snprintf.h: Remove file.
65019         * lib/vsnprintf.h: Remove file.
65020         * lib/.cppi-disable: Remove snprintf.h.
65021         * m4/stdio_h.m4: New file.
65022         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65023
65024 2007-02-20  Jim Meyering  <jim@meyering.net>
65025
65026         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65027         used by e.g., mingw.  From Bruno Haible.
65028
65029 2007-02-19  Bruno Haible  <bruno@clisp.org>
65030
65031         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65032         warnings.
65033         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65034
65035 2007-02-19  Bruno Haible  <bruno@clisp.org>
65036
65037         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65038         from mingw users.
65039
65040 2007-02-19  Bruno Haible  <bruno@clisp.org>
65041
65042         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65043         warnings.
65044         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65045
65046 2007-02-19  Jim Meyering  <jim@meyering.net>
65047
65048         Don't use FD after a successful "fdopendir (fd)".
65049         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65050         Reset it by calling dirfd on the just-obtained DIR*.
65051
65052         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65053         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65054
65055 2007-02-18  Bruno Haible  <bruno@clisp.org>
65056
65057         * lib/readlink.c: Include <unistd.h>.
65058         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65059         HAVE_READLINK.
65060         * modules/readlink (Depends-on): Add unistd.
65061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65062         (Include): Add <unistd.h>.
65063
65064         * lib/getlogin_r.h: Remove file.
65065         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65066         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65067         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65068         HAVE_DECL_GETLOGIN_R.
65069         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65070         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65071         (Include): Use <unistd.h> instead of getlogin_r.h.
65072
65073         * lib/getcwd.h: Remove file.
65074         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65075         * lib/xgetcwd.c: Likewise.
65076         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65077         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65078         * modules/getcwd (Files): Remove lib/getcwd.h.
65079         (Depends-on): Add unistd.
65080         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65081         (Include): Use <unistd.h> instad of getcwd.h.
65082
65083         * lib/ftruncate.c: Include <unistd.h> first.
65084         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65085         Set HAVE_FTRUNCATE.
65086         * modules/ftruncate (Depends-on): Add unistd.
65087         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65088
65089         * lib/fchdir.c: Include <unistd.h> first.
65090         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65091         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65092         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65093         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65094         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65095
65096         * lib/dup2.c: Include <unistd.h> first.
65097         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65098         HAVE_DUP2.
65099         * modules/dup2 (Depends-on): Add unistd.
65100         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65101
65102         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65103         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65104         REPLACE_CHOWN. Don't define chown as a macro here.
65105         * modules/chown (Depends-on): Add unistd.
65106         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65107
65108         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65109         Add definition for GL_LINK_WARNING.
65110         (chown, dup2): New declarations.
65111         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65112         link warning.
65113         (ftruncate): New declaration.
65114         (getcwd): New declaration, taken from old getcwd.h.
65115         (getlogin_r): New declaration, taken from old getlogin_r.h.
65116         (readlink): New declaration.
65117         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65118         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65119         (gl_PREREQ_UNISTD): Remove macro.
65120         (gl_UNISTD_MODULE_INDICATOR): New macro.
65121         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65122         many new variables. Don't set UNISTD_H.
65123         * modules/unistd (Description): Change.
65124         (Depends-on): Add link-warning.
65125         (configure.ac): Update.
65126         (Makefile.am): Create unistd.h always. Substitute many new variables
65127         into it.
65128
65129 2007-02-18  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65132         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65133         HAVE_GETSUBOPT.
65134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65135         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65136         * lib/getsubopt.h: Remove file.
65137         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65138         (Depends-on): Add stdlib.
65139         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65140         (Includes): Use <stdlib.h> instead of getsubopt.h.
65141         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65142         Set HAVE_GETSUBOPT.
65143         * lib/getsubopt.c: Don't include getsubopt.h.
65144
65145 2007-02-18  Bruno Haible  <bruno@clisp.org>
65146
65147         * modules/fchdir (Depends-on): Add dup2.
65148
65149 2007-02-18  Bruno Haible  <bruno@clisp.org>
65150
65151         * lib/stdlib_.h: Handle glibc's special invocation convention
65152         specially.
65153
65154 2007-02-18  Bruno Haible  <bruno@clisp.org>
65155
65156         * modules/stdlib-tests: New file.
65157         * tests/test-stdlib.c: New file.
65158
65159         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65160         (Depends-on): Add stdlib.
65161         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65162         (Includes): Use <stdlib.h> instead of mkstemp.h.
65163         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65164         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65165         * lib/mkstemp.c: Don't include mkstemp.h.
65166         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65167         * lib/stdlib--.h: Don't include mkstemp.h.
65168
65169         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65170         (Depends-on): Add stdlib.
65171         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65172         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65173         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65174         HAVE_MKDTEMP.
65175         * lib/mkdtemp.c: Don't include mkdtemp.h.
65176         * lib/clean-temp.c: Don't include mkdtemp.h.
65177
65178         * modules/exit (Files): Remove lib/exit.h.
65179         (Depends-on): Add stdlib.
65180         (Makefile.am): Remove lib_SOURCES.
65181         (Include): Use <stdlib.h> instead of exit.h.
65182         * lib/argmatch.c: Don't include exit.h.
65183         * lib/execute.c: Likewise.
65184         * lib/pagealign_alloc.c: Likewise.
65185         * lib/pipe.c: Likewise.
65186         * lib/wait-process.c: Likewise.
65187         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65188         * lib/exitfail.c: Likewise.
65189         * lib/savewd.c: Likewise.
65190         * lib/xsetenv.c: Likewise.
65191
65192         * modules/stdlib: New file.
65193         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65194         and extra comments about mkstemp().
65195         * lib/exit.h: Remove file.
65196         * lib/mkdtemp.h: Remove file.
65197         * lib/mkstemp.h: Remove file.
65198         * m4/stdlib_h.m4: New file.
65199         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65200
65201 2007-02-18  Bruno Haible  <bruno@clisp.org>
65202
65203         * modules/math-tests: New file.
65204         * tests/test-math.c: New file.
65205
65206         * modules/math: New file.
65207         * modules/mathl (Files): Remove lib/mathl.h.
65208         (Depends-on): Add math.
65209         (Makefile.am): Don't mention mathl.h.
65210         (Include): Use <math.h> instead of mathl.h.
65211         * lib/math_.h: New file.
65212         * lib/mathl.h: Remove file.
65213         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65214         mathl.h.
65215         * lib/asinl.c: Likewise.
65216         * lib/atanl.c: Likewise.
65217         * lib/ceill.c: Likewise.
65218         * lib/cosl.c: Likewise.
65219         * lib/expl.c: Likewise.
65220         * lib/floorl.c: Likewise.
65221         * lib/frexpl.c: Likewise.
65222         * lib/ldexpl.c: Likewise.
65223         * lib/logl.c: Likewise.
65224         * lib/sincosl.c: Likewise.
65225         * lib/sinl.c: Likewise.
65226         * lib/sqrtl.c: Likewise.
65227         * lib/tanl.c: Likewise.
65228         * lib/trigl.c: Likewise.
65229         * m4/math_h.m4: New file.
65230         * MODULES.html.sh (Mathematics): Add math.
65231
65232 2007-02-17  Bruno Haible  <bruno@clisp.org>
65233
65234         * modules/wctype-tests: New file.
65235         * tests/test-wctype.c: New file.
65236
65237         * modules/wchar-tests: New file.
65238         * tests/test-wchar.c: New file.
65239
65240         * modules/unistd-tests: New file.
65241         * tests/test-unistd.c: New file.
65242
65243         * modules/time-tests: New file.
65244         * tests/test-time.c: New file.
65245
65246         * modules/sysexits-tests: New file.
65247         * tests/test-sysexits.c: New file.
65248
65249         * modules/sys_time-tests: New file.
65250         * tests/test-sys_time.c: New file.
65251
65252         * modules/sys_stat-tests: New file.
65253         * tests/test-sys_stat.c: New file.
65254
65255         * modules/sys_socket-tests: New file.
65256         * tests/test-sys_socket.c: New file.
65257
65258         * modules/sys_select-tests: New file.
65259         * tests/test-sys_select.c: New file.
65260
65261         * modules/string-tests: New file.
65262         * tests/test-string.c: New file.
65263
65264         * modules/stdbool-tests: New file.
65265         * tests/test-stdbool.c: New file.
65266
65267         * modules/netinet_in-tests: New file.
65268         * tests/test-netinet_in.c: New file.
65269
65270         * modules/inttypes-tests: New file.
65271         * tests/test-inttypes.c: New file.
65272
65273         * modules/fcntl-tests: New file.
65274         * tests/test-fcntl.c: New file.
65275
65276         * modules/byteswap-tests: New file.
65277         * tests/test-byteswap.c: New file.
65278
65279         * modules/arpa_inet-tests: New file.
65280         * tests/test-arpa_inet.c: New file.
65281
65282 2007-02-17  Bruno Haible  <bruno@clisp.org>
65283
65284         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65285         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65286         if the corresponding module is not enabled. Emit link warnings if
65287         the function is used nevertheless.
65288         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65289         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65290         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65291         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65292         * modules/inttypes (Depends-on): Add link-warning.
65293         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65294         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65295         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65296         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65297         * modules/imaxdiv (configure.ac): Likewise.
65298         * modules/strtoimax (configure.ac): Likewise.
65299         * modules/strtoumax (configure.ac): Likewise.
65300
65301 2007-02-17  Bruno Haible  <bruno@clisp.org>
65302
65303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65304         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65305         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65306         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65307
65308 2007-02-17  Bruno Haible  <bruno@clisp.org>
65309
65310         * modules/link-warning: New file.
65311         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65312         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65313         * modules/string (Depends-on): Add link-warning.
65314         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65315         string.h.
65316         * MODULES.html.sh (Support for building libraries and executables): Add
65317         link-warning.
65318
65319 2007-02-17  Bruno Haible  <bruno@clisp.org>
65320
65321         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65322         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65323         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65324         long lines.
65325
65326 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65327             Bruno Haible  <bruno@clisp.org>
65328
65329         * modules/tmpfile: New file.
65330         * lib/tmpfile.c: New file.
65331         * m4/tmpfile.m4: New file.
65332         * MODULES.html.sh (func_all_modules): New section "Input/output".
65333
65334 2007-02-15  Bruno Haible  <bruno@clisp.org>
65335
65336         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65337         (supports_delete_on_close): New function.
65338         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65339
65340 2007-02-14  Bruno Haible  <bruno@clisp.org>
65341
65342         * modules/mbspcasecmp-tests: New file.
65343         * tests/test-mbspcasecmp.sh: New file.
65344         * tests/test-mbspcasecmp.c: New file.
65345
65346         New module mbspcasecmp.
65347         * modules/mbspcasecmp: New file.
65348         * lib/mbspcasecmp.c: New file.
65349         * lib/string_.h (strncasecmp): Change warning message.
65350         (mbspcasecmp): New declaration.
65351         * m4/mbspcasecmp.m4: New file.
65352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65353         GNULIB_MBSPCASECMP.
65354         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65355         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65356
65357 2007-02-14  Bruno Haible  <bruno@clisp.org>
65358
65359         * modules/mbsncasecmp-tests: New file.
65360         * tests/test-mbsncasecmp.sh: New file.
65361         * tests/test-mbsncasecmp.c: New file.
65362
65363         New module mbsncasecmp.
65364         * modules/mbsncasecmp: New file.
65365         * lib/mbsncasecmp.c: New file.
65366         * lib/string_.h (mbsncasecmp): New declaration.
65367         * m4/mbsncasecmp.m4: New file.
65368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65369         GNULIB_MBSNCASECMP.
65370         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65371         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65372
65373 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65374
65375         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65376         Verify that it doesn't overlap with our flags.
65377         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65378         do not have the desired effect in multibyte locales; instead, use
65379         mbscasecmp.
65380         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65381         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65382         we don't require GNU fnmatch ourselves (if our users require it, they
65383         should do so explicitly).
65384
65385         Fix regex code so it doesn't rely on strcasecmp.
65386         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65387         Otherwise, include gnulib's langinfo.h.
65388         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65389         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65390         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65391         * modules/regex (FILES): Remove m4/codeset.m4.
65392         (Depends-on): Add localcharset.  Remove strcase.
65393
65394 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65395
65396         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65397         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65398
65399 2007-02-13  Bruno Haible  <bruno@clisp.org>
65400
65401         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65402         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65403
65404 2007-02-12  Bruno Haible  <bruno@clisp.org>
65405
65406         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65407         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65408         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65409         time warning rather than a link error.
65410
65411 2007-02-12  Bruno Haible  <bruno@clisp.org>
65412
65413         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65414         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65415         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65416
65417 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65418
65419         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65420         args, not 2.
65421
65422 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65423
65424         New module 'time', so that apps can include <time.h> as per
65425         POSIX and GNU instead of separate include files like time_r.h
65426         and timegm.h.  This implementation tries out a simpler approach
65427         for replacing decls in standard include files (as compared to
65428         the string module), somewhat as an experiment.
65429
65430         * config/srclist.txt: Comment out mktime.c for now.
65431         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65432         since it doesn't apply any more.  Use generic wording instead.
65433         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65434         'time'.
65435         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65436         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65437         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65438         Don't include <sys/types.h>; no longer needed since we assume C89.
65439         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65440         * lib/strftime.c: Likewise.
65441         * lib/time_r.c: Likewise.
65442         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65443         * lib/nanosleep.c: Include <time.h> first, to check interface.
65444         * lib/strptime.c: Likewise.
65445         * lib/time_r.c: Likewise.
65446         * lib/timegm.c: Likewise.
65447         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65448         needed.
65449         * lib/timegm.c: Don't include timegm.h; no longer needed.
65450         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65451         time.h now handles any problems in that area.
65452         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65453         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65454         that time.h defines struct timespec.
65455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65456         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65457         handles that.
65458         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65459         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65460         needed.  Set REPLACE_LOCALTIME.
65461         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65462         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65463         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65464         nanosleep; time_h.m4 now does that.  Don't require
65465         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65466         module handles this now.
65467         * modules/getdate (Depends-on): Remove timespec.  Add time.
65468         * modules/nanosleep (Depends-on): Likewise.
65469         * modules/stat-time (Depends-on): Likewise.
65470         * modules/nanosleep (Include): Include time.h, not timespec.h.
65471         * modules/strptime (Files): Remove lib/strptime.h.
65472         (Depends-on): Add extensions, time.
65473         (Include): Include time.h, not strptime.h.
65474         * modules/time_r (Files): Remove lib/time_r.h.
65475         (Depends-on): Add time.
65476         (Include): Include time.h, not time_r.h.
65477         * modules/timegm: Likewise.
65478         * modules/timespec (Description): Now does timespec-related decls
65479         of our own, instead of struct timespec itself.
65480         (Depends-on): Add time; remove extensions.
65481         (Maintainer): Add self.
65482         * modules/utimecmp (Depends-on): Add time; remove timespec.
65483         * modules/utimens (Depends-on): Likewise.
65484         * modules/xnanosleep (Depends-on): Likewise.
65485
65486 2007-02-11  Bruno Haible  <bruno@clisp.org>
65487
65488         * lib/c-strstr.c: Include allocsa.h.
65489         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65490         * lib/c-strcasestr.c: Include allocsa.h.
65491         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65492         * lib/strcasestr.c: Include allocsa.h.
65493         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65494         * lib/mbsstr.c: Include allocsa.h.
65495         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65496         allocsa/freesa instead of malloc/free.
65497         * lib/mbscasestr.c: Include allocsa.h.
65498         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65499         allocsa/freesa instead of malloc/free.
65500         * modules/c-strstr (Depends-on): Add allocsa.
65501         * modules/c-strcasestr (Depends-on): Likewise.
65502         * modules/strcasestr (Depends-on): Likewise.
65503         * modules/mbsstr (Depends-on): Likewise.
65504         * modules/mbscasestr (Depends-on): Likewise.
65505
65506 2007-02-11  Bruno Haible  <bruno@clisp.org>
65507
65508         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65509
65510         * modules/mbsspn-tests: New file.
65511         * tests/test-mbsspn.sh: New file.
65512         * tests/test-mbsspn.c: New file.
65513
65514 2007-02-11  Bruno Haible  <bruno@clisp.org>
65515
65516         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65517
65518         * modules/mbspbrk-tests: New file.
65519         * tests/test-mbspbrk.sh: New file.
65520         * tests/test-mbspbrk.c: New file.
65521
65522 2007-02-11  Bruno Haible  <bruno@clisp.org>
65523
65524         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65525         unneeded cast.
65526
65527         * modules/mbscspn-tests: New file.
65528         * tests/test-mbscspn.sh: New file.
65529         * tests/test-mbscspn.c: New file.
65530
65531 2007-02-11  Bruno Haible  <bruno@clisp.org>
65532
65533         * modules/mbscasecmp-tests: New file.
65534         * tests/test-mbscasecmp.sh: New file.
65535         * tests/test-mbscasecmp.c: New file.
65536
65537 2007-02-11  Bruno Haible  <bruno@clisp.org>
65538
65539         Ensure O(n) worst-case complexity of mbscasestr.
65540         * lib/mbscasestr.c: Include stdbool.h.
65541         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65542         functions.
65543         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65544         the bookkeeping indicates that it's worth it.
65545         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65546
65547         * modules/mbscasestr-tests: New file.
65548         * tests/test-mbscasestr1.c: New file.
65549         * tests/test-mbscasestr2.sh: New file.
65550         * tests/test-mbscasestr2.c: New file.
65551         * tests/test-mbscasestr3.sh: New file.
65552         * tests/test-mbscasestr3.c: New file.
65553         * tests/test-mbscasestr4.sh: New file.
65554         * tests/test-mbscasestr4.c: New file.
65555         * m4/locale-tr.m4: New file.
65556
65557 2007-02-11  Bruno Haible  <bruno@clisp.org>
65558
65559         Ensure O(n) worst-case complexity of mbsstr.
65560         * lib/mbsstr.c: Include stdbool.h.
65561         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65562         functions.
65563         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65564         bookkeeping indicates that it's worth it.
65565         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65566
65567         * modules/mbsstr-tests: New file.
65568         * tests/test-mbsstr1.c: New file.
65569         * tests/test-mbsstr2.sh: New file.
65570         * tests/test-mbsstr2.c: New file.
65571         * tests/test-mbsstr3.sh: New file.
65572         * tests/test-mbsstr3.c: New file.
65573         * m4/locale-fr.m4: New file.
65574
65575 2007-02-11  Bruno Haible  <bruno@clisp.org>
65576
65577         * lib/mbsrchr.c (mbsrchr): Fix bug.
65578
65579         * modules/mbsrchr-tests: New file.
65580         * tests/test-mbsrchr.sh: New file.
65581         * tests/test-mbsrchr.c: New file.
65582
65583 2007-02-11  Bruno Haible  <bruno@clisp.org>
65584
65585         * lib/mbschr.c (mbschr): Fix bug.
65586
65587         * modules/mbschr-tests: New file.
65588         * tests/test-mbschr.sh: New file.
65589         * tests/test-mbschr.c: New file.
65590         * m4/locale-zh.m4: New file.
65591
65592 2007-02-11  Bruno Haible  <bruno@clisp.org>
65593
65594         Support for copying multibyte string iterators.
65595         * lib/mbiter.h: Include <string.h>.
65596         (mbiter_multi_copy): New function.
65597         (mbi_copy): New macro.
65598         * lib/mbuiter.h: Include <string.h>.
65599         (mbuiter_multi_copy): New function.
65600         (mbui_copy): New macro.
65601
65602 2007-02-11  Bruno Haible  <bruno@clisp.org>
65603
65604         New module mbslen.
65605         * modules/mbslen: New file.
65606         * lib/mbslen.c: New file.
65607         * lib/string_.h (mbslen): New declaration.
65608         * m4/mbslen.m4: New file.
65609         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65610         GNULIB_MBSLEN.
65611         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65612         * MODULES.html.sh (Internationalization functions): Add mbslen.
65613
65614 2007-02-11  Bruno Haible  <bruno@clisp.org>
65615
65616         Ensure O(n) worst-case complexity of strcasestr substitute.
65617         * lib/strcasestr.c: Include stdbool.h.
65618         (knuth_morris_pratt): New function.
65619         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65620         bookkeeping indicates that it's worth it.
65621         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65622
65623         * modules/strcasestr-tests: New file.
65624         * tests/test-strcasestr.c: New file.
65625
65626 2007-02-11  Bruno Haible  <bruno@clisp.org>
65627
65628         Ensure O(n) worst-case complexity of c_strcasestr.
65629         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65630         (knuth_morris_pratt): New function.
65631         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65632         the bookkeeping indicates that it's worth it.
65633         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65634
65635         * modules/c-strcasestr-tests: New file.
65636         * tests/test-c-strcasestr.c: New file.
65637
65638 2007-02-11  Bruno Haible  <bruno@clisp.org>
65639
65640         Ensure O(n) worst-case complexity of c_strstr.
65641         * lib/c-strstr.c: Include stdbool.h, string.h.
65642         (knuth_morris_pratt): New function.
65643         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65644         bookkeeping indicates that it's worth it.
65645         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65646
65647         * lib/c-strstr.c: Complete rewrite for maintainability.
65648
65649         * modules/c-strstr-tests: New file.
65650         * tests/test-c-strstr.c: New file.
65651
65652 2007-02-11  Bruno Haible  <bruno@clisp.org>
65653
65654         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65655         5.2.1 and earlier, whereby \055 was treated just like the range
65656         delimiter '-'.
65657         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65658
65659 2007-02-08  Bruno Haible  <bruno@clisp.org>
65660
65661         * modules/regex (Depends-on): Add stdbool.
65662         Reported by Dalibor Topic <robilad@kaffe.org>.
65663
65664 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65665
65666         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65667         Prefer returning from main to exiting from it.
65668         Remove unnecessary parens after sizeof.
65669
65670 2007-02-05  Bruno Haible  <bruno@clisp.org>
65671
65672         New module mbssep.
65673         * modules/mbssep: New file.
65674         * lib/mbssep.c: New file.
65675         * lib/string_.h (strsep): Add a conditional link warning.
65676         (mbssep): New declaration.
65677         * m4/mbssep.m4: New file.
65678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65679         GNULIB_MBSSEP.
65680         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65681         * MODULES.html.sh (Internationalization functions): Add mbssep.
65682
65683 2007-02-05  Bruno Haible  <bruno@clisp.org>
65684
65685         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65686         Optimize search in case of 1 delimiter.
65687
65688 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65689
65690         * lib/acl.h: Include sys/types.h before sys/acl.h.
65691
65692 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65693
65694         Merge upstream fix for glibc bugzilla #3957:
65695
65696         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65697
65698         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
65699         bit for RE_HAT_LISTS_NOT_NEWLINE.
65700         (build_charclass_op): Remove bogus comment.
65701
65702 2007-02-05  Simon Josefsson  <simon@josefsson.org>
65703
65704         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
65705
65706 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
65709         * lib/memmem.c [!defined _LIBC]: Include config.h.
65710
65711 2007-02-04  Bruno Haible  <bruno@clisp.org>
65712
65713         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
65714         warning message.
65715
65716 2007-02-04  Bruno Haible  <bruno@clisp.org>
65717
65718         New module mbstok_r.
65719         * modules/mbstok_r: New file.
65720         * lib/mbstok_r.c: New file.
65721         * lib/string_.h (strtok_r): Change argument names to match the
65722         comments. Add a conditional link warning.
65723         (mbstok_r): New declaration.
65724         * m4/mbstok_r.m4: New file.
65725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65726         GNULIB_MBSTOK_R.
65727         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
65728         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
65729
65730 2007-02-04  Bruno Haible  <bruno@clisp.org>
65731
65732         New module mbsspn.
65733         * modules/mbsspn: New file.
65734         * lib/mbsspn.c: New file.
65735         * lib/string_.h (strspn): Add a conditional link warning.
65736         (mbsspn): New declaration.
65737         * m4/mbsspn.m4: New file.
65738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65739         GNULIB_MBSSPN.
65740         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
65741         * MODULES.html.sh (Internationalization functions): Add mbsspn.
65742
65743 2007-02-04  Bruno Haible  <bruno@clisp.org>
65744
65745         New module mbspbrk.
65746         * modules/mbspbrk: New file.
65747         * lib/mbspbrk.c: New file.
65748         * lib/string_.h (strpbrk): Add a conditional link warning.
65749         (mbspbrk): New declaration.
65750         * m4/mbspbrk.m4: New file.
65751         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65752         GNULIB_MBSPBRK.
65753         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65754         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65755
65756 2007-02-04  Bruno Haible  <bruno@clisp.org>
65757
65758         New module mbscspn.
65759         * modules/mbscspn: New file.
65760         * lib/mbscspn.c: New file.
65761         * lib/string_.h (strcspn): Add a conditional link warning.
65762         (mbscspn): New declaration.
65763         * m4/mbscspn.m4: New file.
65764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65765         GNULIB_MBSCSPN.
65766         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65767         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65768
65769 2007-02-04  Bruno Haible  <bruno@clisp.org>
65770
65771         New module mbscasestr, reduced goal of strcasestr.
65772         * modules/mbscasestr: New file.
65773         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
65774         (mbscasestr): Renamed from strcasestr.
65775         * lib/strcasestr.c: Don't include mbuiter.h.
65776         (strcasestr): Remove support for multibyte locales.
65777         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65778         Change the conditional link warning.
65779         (mbscasestr): New declaration.
65780         * m4/mbscasestr.m4: New file.
65781         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65782         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65783         REPLACE_STRCASESTR.
65784         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65785         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65786         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65787         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65788         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65789         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65790         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65791         (Depends-on): Remove mbuiter.
65792         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65793
65794 2007-02-04  Bruno Haible  <bruno@clisp.org>
65795
65796         Simplify handling of strncasecmp.
65797         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65798         the conditional link warning.
65799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65800         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65801         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65802         * modules/strcase (configure.ac): Don't invoke
65803         gl_STRING_MODULE_INDICATOR.
65804         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65805
65806 2007-02-04  Bruno Haible  <bruno@clisp.org>
65807
65808         New module mbscasecmp, reduced goal of strcasecmp.
65809         * modules/mbscasecmp: New file.
65810         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65811         (mbscasecmp): Renamed from strcasecmp.
65812         * lib/strcasecmp.c: Don't include mbuiter.h.
65813         (strcasecmp): Remove support for multibyte locales.
65814         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65815         Change the conditional link warning.
65816         (mbscasecmp): New declaration.
65817         * m4/mbscasecmp.m4: New file.
65818         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65819         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65820         REPLACE_STRCASECMP.
65821         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65823         GNULIB_MBSCASECMP.
65824         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65825         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65826         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65827         (Depends-on): Remove mbuiter.
65828         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65829
65830 2007-02-04  Bruno Haible  <bruno@clisp.org>
65831
65832         New module mbsstr. Remove module strstr.
65833         * modules/mbsstr: New file.
65834         * modules/strstr: Remove file.
65835         * lib/mbsstr.c: Renamed from lib/strstr.c.
65836         (mbsstr): Renamed from strstr.
65837         * lib/string_.h (strstr): Remove declaration. Change the conditional
65838         link warning.
65839         (mbsstr): New declaration.
65840         * m4/mbsstr.m4: New file.
65841         * m4/strstr.m4: Remove file.
65842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65843         REPLACE_STRSTR.
65844         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65845         Don't initialize GNULIB_STRSTR.
65846         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65847         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65848         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65849         (Support for systems lacking ANSI C 89): Remove strstr.
65850
65851 2007-02-04  Bruno Haible  <bruno@clisp.org>
65852
65853         New module mbsrchr.
65854         * modules/mbsrchr: New file.
65855         * lib/mbsrchr.c: New file.
65856         * lib/string_.h (strrchr): Add a conditional link warning.
65857         (mbsrchr): New declaration.
65858         * m4/mbsrchr.m4: New file.
65859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65860         GNULIB_MBSRCHR.
65861         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65862         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65863
65864 2007-02-04  Bruno Haible  <bruno@clisp.org>
65865
65866         New module mbschr.
65867         * modules/mbschr: New file.
65868         * lib/mbschr.c: New file.
65869         * lib/string_.h (strchr): Add a conditional link warning.
65870         (mbschr): New declaration.
65871         * m4/mbschr.m4: New file.
65872         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65873         GNULIB_MBSCHR.
65874         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65875         * MODULES.html.sh (Internationalization functions): Add mbschr.
65876
65877 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65880
65881         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65882
65883 2007-02-04  Bruno Haible  <bruno@clisp.org>
65884
65885         New module description section 'configure.ac-early'.
65886         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65887         (func_get_autoconf_early_snippet): New function.
65888         (func_import, func_create_testdir): Use it. Remove special cases for
65889         modules 'extensions' and 'lock'.
65890         * modules/extensions (configure.ac-early): Require
65891         gl_USE_SYSTEM_EXTENSIONS.
65892         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65893
65894 2007-02-04  Bruno Haible  <bruno@clisp.org>
65895
65896         Make use of gcj-4.3's -fsource and -ftarget option.
65897         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65898         and if so try the options -fsource and -ftarget.
65899         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65900         source_version, ftarget_option, target_version arguments.
65901         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65902         (is_envjavac_oldgcj_14_14_usable): Renamed from
65903         is_envjavac_gcj_14_14_usable.
65904         (is_envjavac_oldgcj_14_13_usable): Renamed from
65905         is_envjavac_gcj_14_13_usable.
65906         (is_gcj_present): Update.
65907         (is_gcj_43, is_gcj43_usable): New functions.
65908         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65909         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65910         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65911         try the options -fsource and -ftarget.
65912
65913 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65914
65915         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65916         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65917         larger value.
65918
65919 2007-02-03  Jim Meyering  <jim@meyering.net>
65920
65921         Give tools a better chance to allocate space for very large buffers.
65922         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65923
65924         Make pwd and readlink work also when run with an unreadable parent dir
65925         on systems with openat support.
65926         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65927         provided getcwd function, even when we have openat support.
65928         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65929
65930 2007-02-02  Bruno Haible  <bruno@clisp.org>
65931
65932         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65933         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65934         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65935         portability problems if one of these functions is only used on specific
65936         platforms.
65937         Reported by Paul Eggert.
65938
65939 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65940
65941         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65942         is causing more trouble than it's curing.
65943         * lib/regex_internal.h (__mempcpy): Remove.
65944         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65945         (and make the code a tad smaller to boot).
65946         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65947
65948 2007-02-02  Jim Meyering  <jim@meyering.net>
65949
65950         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65951         section, not in the Makefile.am: one.
65952
65953 2007-02-02  Eric Blake  <ebb9@byu.net>
65954
65955         * lib/strchrnul.c: Always include config.h first.
65956
65957         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65958         gnulib strstr is not necessary here.
65959
65960 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65961
65962         * m4/socklen.m4: Fix typo.
65963
65964 2007-02-02  Eric Blake  <ebb9@byu.net>
65965
65966         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65967         * modules/netinet_in (Makefile.am): Likewise.
65968
65969 2007-02-01  Bruno Haible  <bruno@clisp.org>
65970
65971         * lib/string_.h (GL_LINK_WARNING): New macro.
65972         (strcasecmp, strstr, strcasestr): If provided by the system,
65973         conditionally define as a macro that leads to a warning instead of to
65974         an error.
65975         (strncasecmp): Conditionally define as a macro that leads to a warning.
65976
65977 2007-02-01  Karl Berry  <karl@gnu.org>
65978
65979         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65980
65981 2007-02-01  Bruno Haible  <bruno@clisp.org>
65982
65983         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65984         renamings.
65985
65986 2007-02-01  Eric Blake  <ebb9@byu.net>
65987
65988         * modules/regex (Depends-on): Revert dependence on mempcpy.
65989         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65990         module's definition of mempcpy.
65991         Reported by Paul Eggert.
65992
65993 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65994
65995         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65996         the symbol XYZ before redefining it.  This fixes a problem with
65997         programs that don't use XYZ, when compiled on systems that define
65998         XYZ to something else.
65999
66000 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66001
66002         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66003         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66004         writeable to group or other and (2) is intended to have a special
66005         mode bit that is set or cleared.  In such a case, the directory
66006         should be neither group- nor other-writeable until the special
66007         mode bits are right.
66008
66009 2007-01-31  Eric Blake  <ebb9@byu.net>
66010
66011         * modules/mountlist (Depends-on): Add strstr.
66012
66013         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66014         bug.
66015         * modules/string (Makefile.am): Remove redundant replacement.
66016         * modules/regex (Depends-on): Add mempcpy.
66017
66018 2007-01-31  Bruno Haible  <bruno@clisp.org>
66019
66020         New module description field 'Link'.
66021         * gnulib-tool (func_usage): Document --extract-link-directive.
66022         (sed_extract_prog): Recognize 'Link' directive.
66023         (func_get_link_directive): New function.
66024         (func_import): Show summary of link directives.
66025         Handle --extract-link-directive option.
66026         * modules/acl (Link): New section.
66027         * modules/clock-time (Link): New section.
66028         * modules/euidaccess (Link): New section.
66029         * modules/gettext (Link): New section.
66030         * modules/iconv (Link): New section.
66031         * modules/lock (Link): New section.
66032         * modules/nanosleep (Link): New section.
66033         * modules/readline (Link): New section.
66034
66035 2007-01-27  Bruno Haible  <bruno@clisp.org>
66036
66037         Enforce the use of gnulib modules for unportable <string.h> functions.
66038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66039         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66040         (gl_HEADER_STRING_H_BODY): Require it.
66041         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66042         the symbol XYZ to one that gives a link error.
66043         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66044         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66045         * modules/mempcpy (configure.ac): Likewise.
66046         * modules/memrchr (configure.ac): Likewise.
66047         * modules/stpcpy (configure.ac): Likewise.
66048         * modules/stpncpy (configure.ac): Likewise.
66049         * modules/strcase (configure.ac): Likewise.
66050         * modules/strcasestr (configure.ac): Likewise.
66051         * modules/strchrnul (configure.ac): Likewise.
66052         * modules/strdup (configure.ac): Likewise.
66053         * modules/strndup (configure.ac): Likewise.
66054         * modules/strnlen (configure.ac): Likewise.
66055         * modules/strpbrk (configure.ac): Likewise.
66056         * modules/strsep (configure.ac): Likewise.
66057         * modules/strstr (configure.ac): Likewise.
66058         * modules/strtok_r (configure.ac): Likewise.
66059
66060 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66061
66062         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66063
66064 2007-01-30  Jim Meyering  <jim@meyering.net>
66065
66066         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66067
66068 2007-01-29  Bruno Haible  <bruno@clisp.org>
66069
66070         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66071         * lib/execute.c: Likewise.
66072         * lib/pipe.c: Likewise.
66073         * lib/printf-args.h: Likewise.
66074         * lib/printf-args.c: Likewise.
66075         * lib/printf-parse.c: Likewise.
66076         * lib/vasnprintf.c: Likewise.
66077
66078 2007-01-29  Eric Blake  <ebb9@byu.net>
66079
66080         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66081         declaration.
66082
66083 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66084
66085         * lib/strptime.h (strptime): Use 'restrict' for args where
66086         POSIX requires this.
66087         * lib/strptime.c (strptime): Likewise.
66088         Change license notice from LGPL to GPL, since gnulib-tool will
66089         change this as needed.
66090         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66091         defined.
66092         Include "strptime.h" first, to check interface.
66093         Do not #undef _LIBC and _NL_CURRENT.
66094         Do not include <stdlib.h>; no longer needed.
66095         Include "time_r.h" and declare ptime_locale_status
66096         only if _LIBC is not defined.
66097         (__P): Remove unused macro.
66098         (match_string): Bring back glibc version, but use it only if _LIBC
66099         is defined.
66100         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66101         Remove unnecessary assertion and abort() call.
66102         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66103         * m4/strptime.m4: Fix serial number comment.
66104         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66105         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66106         (Depends-on): Add time_r.
66107
66108 2007-01-29  Bruno Haible  <bruno@clisp.org>
66109
66110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66111         strptime.
66112         * modules/strptime (Depends-on): Add stdbool.
66113         * lib/strptime.h: Include <time.h> always. Add comments.
66114
66115 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66116
66117         * modules/strptime: New file.
66118         * lib/strptime.h: New file.
66119         * lib/strptime.c: New file.
66120         * m4/strptime.m4: New file.
66121
66122 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66123
66124         * MODULES.html.sh: New module mpsort.
66125         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66126
66127         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66128         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66129         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66130         All uses changed.
66131         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66132         All uses changed.
66133         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66134         to _Restrict_.
66135         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66136         the parameter matches the prototype.
66137
66138 2007-01-28  Jim Meyering  <jim@meyering.net>
66139
66140         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66141         sys/time.h here, reverting that part of the previous patch:
66142         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66143
66144 2007-01-28  Bruno Haible  <bruno@clisp.org>
66145
66146         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66147         value of $(SYS_TIME_H).
66148         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66149         remove it conditionally, too. [added by Jim Meyering]
66150         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66151         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66152         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66153         GETTIMEOFDAY_REPLACEMENT to 1.
66154
66155 2007-01-28  Bruno Haible  <bruno@clisp.org>
66156
66157         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66158         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66160         Set UNISTD_H instead of UNISTD_H2.
66161         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66162
66163 2007-01-28  Bruno Haible  <bruno@clisp.org>
66164
66165         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66166         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66167
66168 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66169
66170         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66171         (func_create_testdir): Ensure C locale for `grep' and `tr'
66172         character ranges.
66173         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66174         ACLOCAL_AMFLAGS parsing state machine.
66175
66176 2007-01-27  Bruno Haible  <bruno@clisp.org>
66177
66178         * modules/unistr/base: Update.
66179
66180 2007-01-27  Bruno Haible  <bruno@clisp.org>
66181
66182         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66183         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66184         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66185         modules/unistr/u32-mbtouc.
66186         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66187         * lib/unistr.h: Update.
66188         * lib/linebreak.c: Update.
66189         * modules/unistr/u32-mbtouc: Renamed from
66190         modules/unistr/u32-mbtouc-safe.
66191         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66192         * lib/unistr.h: Update.
66193         * lib/unistr/u32-to-u8.c: Update.
66194         * lib/unistr/u32-to-u16.c: Update.
66195
66196 2007-01-27  Bruno Haible  <bruno@clisp.org>
66197
66198         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66199         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66200         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66201         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66202         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66203         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66204         modules/unistr/u16-mbtouc.
66205         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66206         * lib/unistr.h: Update.
66207         * lib/linebreak.c: Update.
66208         * modules/linebreak: Update.
66209         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66210         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66211         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66212         * modules/unistr/u16-mbtouc: Renamed from
66213         modules/unistr/u16-mbtouc-safe.
66214         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66215         * lib/unistr.h: Update.
66216         * lib/unistr/u16-to-u8.c: Update.
66217         * modules/unistr/u16-to-u8: Update.
66218         * lib/unistr/u16-to-u32.c: Update.
66219         * modules/unistr/u16-to-u32: Update.
66220
66221 2007-01-27  Bruno Haible  <bruno@clisp.org>
66222
66223         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66224         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66225         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66226         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66227         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66228         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66229         modules/unistr/u8-mbtouc.
66230         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66231         * lib/unistr.h: Update.
66232         * lib/striconveh.c: Update.
66233         * modules/striconveh: Update.
66234         * lib/linebreak.c: Update.
66235         * modules/linebreak: Update.
66236         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66237         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66238         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66239         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66240         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66241         * lib/unistr.h: Update.
66242         * lib/striconveh.c: Update.
66243         * modules/striconveh: Update.
66244         * lib/unistr/u8-to-u16.c: Update.
66245         * modules/unistr/u8-to-u16: Update.
66246         * lib/unistr/u8-to-u32.c: Update.
66247         * modules/unistr/u8-to-u32: Update.
66248
66249 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66250
66251         Sync from Libtool.
66252         * lib/argz.c: Do not include strings.h nor memory.h, include
66253         string.h unconditionally.  Patch by Simon Josefsson.
66254
66255 2007-01-27  Bruno Haible  <bruno@clisp.org>
66256
66257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66258         from gl_HEADER_STRING_H_BODY.
66259         (gl_HEADER_STRING_H_BODY): Require it.
66260         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66261         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66262         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66263         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66264         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66265         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66267         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66268         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66269         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66270         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66271         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66272         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66273         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66274         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66275
66276 2007-01-27  Bruno Haible  <bruno@clisp.org>
66277
66278         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66279         check_PROGRAMS into noinst_PROGRAMS.
66280         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66281         check_PROGRAMS in this case.
66282         (func_import): Set for_test to false.
66283         (func_create_testdir): Set for_test to true.
66284
66285 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66286             Bruno Haible  <bruno@clisp.org>
66287
66288         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66289         (Depends-on): Add string.
66290         (Includes): Use <string.h> instead of strcasestr.h.
66291         * modules/string (Makefile.am): Also substitute the value of
66292         REPLACE_STRCASESTR.
66293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66294         assume strcasestr is declared in <string.h> not <strings.h>. Also
66295         set REPLACE_STRCASESTR.
66296         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66297         REPLACE_STRCASESTR.
66298         * lib/strcasestr.h: Remove file.
66299         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66300         * lib/string_.h (strcasestr): New declaration.
66301
66302 2007-01-27  Bruno Haible  <bruno@clisp.org>
66303
66304         * lib/string_.h: Use 'extern'.
66305
66306 2007-01-27  Jim Meyering  <jim@meyering.net>
66307
66308         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66309         of set-but-not-used local, "q".
66310
66311         * lib/mempcpy.c: Include <config.h> before <string.h>.
66312         This fixes a compilation error on HP-UX, due to the system's
66313         "restrict"-using mempcpy prototype.
66314
66315 2007-01-26  Bruno Haible  <bruno@clisp.org>
66316
66317         Small optimization.
66318         * lib/javacomp.c: Include c-strstr.h.
66319          (is_envjavac_gcj): Use c_strstr instead of strstr.
66320         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66321
66322 2007-01-26  Bruno Haible  <bruno@clisp.org>
66323
66324         * MODULES.html.sh (Unicode string functions): Add the new modules.
66325
66326         * modules/uniconv/u32-strconv-to-locale: New file.
66327         * lib/uniconv/u32-strconv-to-locale.c: New file.
66328
66329         * modules/uniconv/u16-strconv-to-locale: New file.
66330         * lib/uniconv/u16-strconv-to-locale.c: New file.
66331
66332         * modules/uniconv/u8-strconv-to-locale: New file.
66333         * lib/uniconv/u8-strconv-to-locale.c: New file.
66334
66335         * modules/uniconv/u32-strconv-from-locale: New file.
66336         * lib/uniconv/u32-strconv-from-locale.c: New file.
66337
66338         * modules/uniconv/u16-strconv-from-locale: New file.
66339         * lib/uniconv/u16-strconv-from-locale.c: New file.
66340
66341         * modules/uniconv/u8-strconv-from-locale: New file.
66342         * lib/uniconv/u8-strconv-from-locale.c: New file.
66343
66344         * modules/uniconv/u32-strconv-to-enc: New file.
66345         * lib/uniconv/u32-strconv-to-enc.c: New file.
66346         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66347         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66348
66349         * modules/uniconv/u16-strconv-to-enc: New file.
66350         * lib/uniconv/u16-strconv-to-enc.c: New file.
66351         * lib/uniconv/u-strconv-to-enc.h: New file.
66352         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66353         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66354
66355         * modules/uniconv/u8-strconv-to-enc: New file.
66356         * lib/uniconv/u8-strconv-to-enc.c: New file.
66357         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66358         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66359
66360         * modules/uniconv/u32-strconv-from-enc: New file.
66361         * lib/uniconv/u32-strconv-from-enc.c: New file.
66362         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66363         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66364
66365         * modules/uniconv/u16-strconv-from-enc: New file.
66366         * lib/uniconv/u16-strconv-from-enc.c: New file.
66367         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66368         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66369
66370         * modules/uniconv/u8-strconv-from-enc: New file.
66371         * lib/uniconv/u8-strconv-from-enc.c: New file.
66372         * lib/uniconv/u-strconv-from-enc.h: New file.
66373         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66374         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66375
66376         * modules/uniconv/u32-conv-from-enc: New file.
66377         * lib/uniconv/u32-conv-from-enc.c: New file.
66378         * modules/uniconv/u32-conv-from-enc-tests: New file.
66379         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66380
66381         * modules/uniconv/u16-conv-from-enc: New file.
66382         * lib/uniconv/u16-conv-from-enc.c: New file.
66383         * lib/uniconv/u-conv-from-enc.h: New file.
66384         * modules/uniconv/u16-conv-from-enc-tests: New file.
66385         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66386
66387         * modules/uniconv/u8-conv-from-enc: New file.
66388         * lib/uniconv/u8-conv-from-enc.c: New file.
66389         * modules/uniconv/u8-conv-from-enc-tests: New file.
66390         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66391
66392         * modules/uniconv/base: New file.
66393         * lib/uniconv.h: New file.
66394
66395 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         * doc/gnulib-tool.texi (Initial import): Update to match current
66398         behavior with strdup module.
66399         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66400         * lib/memmem.h: Remove; all uses removed.  This is now done
66401         by <string.h>.
66402         * lib/mempcpy.h: Likewise.
66403         * lib/memrchr.h: Likewise.
66404         * lib/stpcpy.h: Likewise.
66405         * lib/stpncpy.h: Likewise.
66406         * lib/strcase.h: Likewise.
66407         * lib/strchrnul.h: Likewise.
66408         * lib/strdup.h: Likewise.
66409         * lib/strndup.h: Likewise.
66410         * lib/strnlen.h: Likewise.
66411         * lib/strpbrk.h: Likewise.
66412         * lib/strsep.h: Likewise.
66413         * lib/strstr.h: Likewise.
66414         * lib/strtok_r.h: Likewise.
66415         * lib/string_.h: New file.
66416         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66417         Rely on <string.h> instead.
66418         * lib/canon-host.c: Likewise.
66419         * lib/chdir-long.c: Likewise.
66420         * lib/concatpath.c: Likewise.
66421         * lib/exclude.c: Likewise.
66422         * lib/fchdir.c: Likewise.
66423         * lib/getaddrinfo.c: Likewise.
66424         * lib/getcwd.c: Likewise.
66425         * lib/getsubopt.c: Likewise.
66426         * lib/glob.c: Likewise.
66427         * lib/hard-locale.c: Likewise.
66428         * lib/iconvme.c: Likewise.
66429         * lib/javacomp.c: Likewise.
66430         * lib/mempcpy.c: Likewise.
66431         * lib/memrchr.c: Likewise.
66432         * lib/regex_internal.h: Likewise.
66433         * lib/stpncpy.c: Likewise.
66434         * lib/strcasecmp.c: Likewise.
66435         * lib/strchrnul.c: Likewise.
66436         * lib/strdup.c: Likewise.
66437         * lib/striconv.c: Likewise.
66438         * lib/striconveh.c: Likewise.
66439         * lib/striconveha.c: Likewise.
66440         * lib/strncasecmp.c: Likewise.
66441         * lib/strndup.c: Likewise.
66442         * lib/strnlen.c: Likewise.
66443         * lib/strsep.c: Likewise.
66444         * lib/strstr.c: Likewise.
66445         * lib/strtok_r.c: Likewise.
66446         * lib/userspec.c: Likewise.
66447         * lib/w32spawn.h: Likewise.
66448         * lib/xstrndup.c: Likewise.
66449         * lib/mountlist.c (strstr): Remove decl.
66450         * m4/string_h.m4: New file.
66451         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66452         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66453         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66454         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66455         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66456         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66457         Set REPLACE_STRCASECMP if necessary.
66458         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66459         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66460         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66461         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66462         HAVE_DECL_STRDUP if necessary.
66463         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66464         since gl_FUNC_STRNDUP does that now.
66465         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66466         Check for decl here...
66467         (gl_PREREQ_STRNLEN): ... not here.
66468         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66469         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66470         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66471         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66472         necessary.
66473         * modules/string: New file.
66474         * modules/memmem (Files): Remove special-purpose include file.
66475         (Depends-on): Add string.
66476         (Include): Include <string.h>, not the removed file.
66477         * modules/mempcpy: Likewise.
66478         * modules/memrchr: Likewise.
66479         * modules/stpcpy: Likewise.
66480         * modules/stpncpy: Likewise.
66481         * modules/strcase: Likewise.
66482         * modules/strchrnul: Likewise.
66483         * modules/strdup: Likewise.
66484         * modules/strndup: Likewise.
66485         * modules/strnlen: Likewise.
66486         * modules/strpbrk: Likewise.
66487         * modules/strsep: Likewise.
66488         * modules/strstr: Likewise.
66489         * modules/strtok_r: Likewise.
66490         * tests/test-dirname.c: Don't include "strdup.h", since
66491         <string.h> now suffices.
66492         * tests/test-memmem.c: Don't include "memmem.h", since
66493         <string.h> now suffices.
66494
66495 2007-01-25  Bruno Haible  <bruno@clisp.org>
66496
66497         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66498         *resultp is 0.
66499
66500         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66501         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66502         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66503         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66504
66505         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66506         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66507         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66508         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66509         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66510         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66511
66512 2007-01-24  Bruno Haible  <bruno@clisp.org>
66513
66514         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66515         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66516         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66517         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66518         gl_FUNC_FTS_CORE.
66519         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66520         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66521         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66522         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66523         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66524         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66525         gl_FUNC_FCHOWNAT.
66526         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66527         gl_FUNC_STRFTIME.
66528         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66529         Reported by Ralf Wildenhues.
66530
66531 2007-01-24  Bruno Haible  <bruno@clisp.org>
66532
66533         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66534         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66535         gl_GETADDRINFO.
66536         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66537         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66538         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66539
66540 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66541
66542         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66543         Don't use 'exit'; just return from 'main'.
66544         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66545
66546         * lib/fnmatch_.h: Readjust white space and comments to match
66547         glibc, to avoid spurious diffs.
66548
66549 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66550
66551         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66552         2004-12-01 change by Jakub Jelinek, since this code won't compile
66553         if !LIBC.  Problem reported by Bob Proulx.
66554
66555 2007-01-23  Bruno Haible  <bruno@clisp.org>
66556
66557         * lib/striconveh.c: Include c-strcaseeq.h.
66558         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66559         * modules/striconveh (Depends-on): Add c-strcaseeq.
66560
66561 2007-01-23  Bruno Haible  <bruno@clisp.org>
66562
66563         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66564
66565         * modules/c-strcaseeq: New file.
66566         * lib/c-strcaseeq.h: New file.
66567
66568         * modules/streq: New file.
66569         * lib/streq.h: New file.
66570
66571 2007-01-23  Bruno Haible  <bruno@clisp.org>
66572
66573         * modules/striconveha-tests: New file.
66574         * tests/test-striconveha.c: New file.
66575
66576         * lib/striconveha.h: Include <stdbool.h>.
66577         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66578         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66579         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66580         (mem_iconveha): New function.
66581         (str_iconveha_notranslit): Renamed from str_iconveha.
66582         (str_iconveha): New function.
66583         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66584         c-strcase.
66585
66586 2007-01-23  Bruno Haible  <bruno@clisp.org>
66587
66588         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66589         encodings without forgiving before trying any encoding with handler.
66590         (str_iconveha): Try all encodings without forgiving before trying any
66591         encoding with handler.
66592
66593 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         Import the following changes from libc.
66596
66597         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66598
66599         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66600
66601         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66602
66603         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66604         normal_bracket label.
66605
66606         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66607
66608         [BZ #361]
66609         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66610         to normal_bracket after fetching the next character.
66611
66612 2007-01-22  Bruno Haible  <bruno@clisp.org>
66613
66614         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66615         argument.
66616         * lib/striconveh.c (iconv_carefully_1): New function.
66617         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66618         argument.
66619         (str_cd_iconveh): Update.
66620         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66621         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66622         * tests/test-striconveh.c (MAGIC): New macro.
66623         (new_offsets): New function.
66624         (main): Test call with and without offsets.
66625
66626 2007-01-22  Bruno Haible  <bruno@clisp.org>
66627
66628         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66629         * modules/sys_select (Makefile.am): Likewise.
66630         * modules/sys_socket (Makefile.am): Likewise.
66631         * modules/sys_time (Makefile.am): Likewise.
66632
66633 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66634
66635         * modules/gettimeofday (License): Change from GPL to LGPL, since
66636         gettimeofday is a library function.
66637
66638 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66639
66640         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66641
66642 2007-01-21  Bruno Haible  <bruno@clisp.org>
66643
66644         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66645
66646 2007-01-21  Bruno Haible  <bruno@clisp.org>
66647
66648         * modules/striconveha: New file.
66649         * lib/striconveha.h: New file.
66650         * lib/striconveha.c: New file.
66651         * MODULES.html.sh (Internationalization functions): Add striconveha.
66652         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66653         string.
66654         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66655
66656 2007-01-21  Bruno Haible  <bruno@clisp.org>
66657
66658         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66659         * lib/striconveh.c (str_iconveh): Likewise.
66660
66661 2007-01-21  Bruno Haible  <bruno@clisp.org>
66662
66663         * lib/striconveh.h (mem_iconveh): New declaration.
66664         * lib/striconveh.c (mem_iconveh): New function.
66665         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66666
66667 2007-01-21  Bruno Haible  <bruno@clisp.org>
66668
66669         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66670
66671         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66672         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66673         original result buffer.
66674         (str_cd_iconveh): Update.
66675         * tests/test-striconveh.c (main): Update.
66676
66677         * lib/striconv.h (mem_cd_iconv): Change specification.
66678         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66679         result buffer.
66680         (str_cd_iconv): Update.
66681         * tests/test-striconv.c (main): Update.
66682
66683 2007-01-21  Bruno Haible  <bruno@clisp.org>
66684
66685         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66686
66687 2007-01-20  Jim Meyering  <jim@meyering.net>
66688
66689         * lib/userspec.c (parse_with_separator): If a user or group string
66690         starts with "+", skip the corresponding name-to-ID look-up, since
66691         such a look-up must fail: user and group names may not include "+".
66692
66693 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66694
66695         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66696         since we now assume the sys_time module.
66697         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
66698         check for sys/time.h; no longer needed.
66699         * modules/poll (Depends-on): Depend on sys_time.
66700
66701 2007-01-18  Bruno Haible  <bruno@clisp.org>
66702
66703         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
66704         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66705
66706         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
66707         gettimeofday.
66708
66709         * tests/test-gettimeofday.c: Include <time.h>.
66710         (dummy): Remove variable.
66711
66712         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
66713         gl_HEADER_SYS_TIME_H.
66714         (gl_HEADER_SYS_TIME_H): New macro.
66715
66716         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
66717         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66718         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
66719         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
66720         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66721         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
66722         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
66723         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66724         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
66725         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
66726         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66727
66728         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
66729         last change; it caused a compilation error when cross-compiling to
66730         Cygwin.
66731
66732 2007-01-18  Jim Meyering  <jim@meyering.net>
66733
66734         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
66735         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
66736         than the race-prone "test -d sys || mkdir sys".
66737         (configure.ac): Use AC_PROG_MKDIR_P.
66738         * modules/sys_select: Likewise.
66739         * modules/sys_socket: Likewise.
66740         * modules/sys_time: Likewise.
66741
66742 2007-01-18  Eric Blake  <ebb9@byu.net>
66743
66744         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
66745         replace gettimeofday.
66746         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
66747         name, to avoid infinite recursion.
66748
66749 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
66750
66751         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
66752         module sys_time.
66753         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66754         assume timespec.h defines struct timeval.
66755         * lib/settime.c: Likewise.
66756         * lib/utimens.c: Likewise.
66757         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66758         since we now assume the gettimeofday module.
66759         * lib/tempname.c (__gen_tempname): Likewise.
66760         * lib/gettimeofday.h: Remove.
66761         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66762         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66763         Include <time.h>, for 'time()'.
66764         (localtime_buffer_addr): Also use this workaround if
66765         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66766         to simplify the uses.  All uses changed.
66767         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66768         that #undef is inside {}, and 'const' follows type name consistently.
66769         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
66770         (gettimeofday): Do not use the maximum possible value for
66771         tv->tv_usec, since that might break usages other than ls.c.
66772         Instead, we'll leave ls.c alone.  This undoes today's patch
66773         by Bruno.  Add a compile-time warning for 1s-clock resolution;
66774         we've never observed the problem but might as well keep the
66775         canary.
66776         * lib/nanosleep.c: Include timespec.h first, for interface check.
66777         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66778         now assume the sys_time module.
66779         * lib/tempname.c: Likewise.
66780         * lib/timespec.h: Likewise.
66781         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66782         needed.
66783         * lib/strftime.c: Likewise.
66784         * lib/timespec.h: Likewise.
66785         * lib/posixtm.c: Include posixtm.h first, for interface check.
66786         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66787         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66788         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66789         * lib/sys_time_.h: New file.
66790         * lib/timespec.h (struct timespec): Use long int, not long.
66791         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66792         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66793         Remove obsolescent call to AC_HEADER_TIME.
66794         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66795         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66796         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66797         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66798         Likewise.
66799         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66800         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66801         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66802         into the sys_time module.  Check for gettimeofday just once.
66803         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66804         for gettimeofday signature to just check the signature.  Merely
66805         compile it, since linking doesn't test signature.  Improve test for
66806         whether gettimeofday.o is actually needed.
66807         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66808         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66809         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66810         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66811         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66812         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66813         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66814         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66815         than worrying about sys/time.h.
66816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66817         Don't bother worrying about TIME_WITH_SYS_TIME.
66818         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66819         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66820         * m4/sys_time_h.m4: New file.
66821         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66822         Don't include sys/time.h.  Return from main rather than exiting.
66823         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66824         all uses changed.
66825         * modules/gethrxtime (Depends-on): Add sys_time.
66826         * modules/gettime (Depends-on): Likewise.
66827         * modules/gettimeofday (Depends-on): Likewise.
66828         * modules/nanosleep (Depends-on): Likewise.
66829         * modules/settime (Depends-on): Likewise.
66830         * modules/tempname (Depends-on): Likewise.
66831         * modules/utimens (Depends-on): Likewise.
66832         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66833         (Include): Change back to <sys/time.h>.
66834         (Maintainer): Add self.
66835         * modules/sys_time: New file.
66836         * modules/tempname (Depends-on): Add gettimeofday.
66837         * tests/test-gettimeofday.c: Include <sys/time.h>
66838         rather than gettimeofday.h.
66839
66840 2007-01-17  Bruno Haible  <bruno@clisp.org>
66841
66842         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66843         the license default to GPL.
66844         (func_create_testdir): Don't complain if a module is LGPL and its
66845         tests module depends on GPLed modules.
66846
66847 2007-01-17  Bruno Haible  <bruno@clisp.org>
66848
66849         * lib/gettimeofday.c (gettimeofday): Add code for the case
66850         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66851         maximum possible value for tv->tv_usec, rather than the minimum one.
66852
66853 2005-10-08  Martin Lambers  <marlam@marlam.de>
66854 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66855 2007-01-16  Bruno Haible  <bruno@clisp.org>
66856
66857         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66858         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66859         gl_FUNC_GETTIMEOFDAY.
66860         (Include): Add gettimeofday.h.
66861         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66862         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66863         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66864         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66865         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66866         * lib/gettimeofday.h: New file.
66867         * lib/gettimeofday.c: Include <sys/timeb.h>.
66868         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66869         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66870         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66871         fall back on time().
66872
66873         * tests/test-gettimeofday.c: New file.
66874         * modules/gettimeofday-tests: New file.
66875
66876 2007-01-16  Eric Blake  <ebb9@byu.net>
66877
66878         * modules/fnmatch (Depends-on): Depend on wchar.
66879         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66880         * m4/fnmatch.m4: Likewise.
66881         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66882         * m4/mbchar.m4: Likewise.
66883         * modules/mbswidth (Depends-on): Depend on wchar.
66884         * lib/mbswidth.c: Assume <wchar.h>.
66885         * m4/mbswidth.m4: Likewise.
66886         * modules/quotearg (Depends-on): Depend on wchar.
66887         * lib/quotearg.c: Assume <wchar.h>.
66888         * m4/quotearg.m4: Likewise.
66889         * modules/regex (Depends-on): Depend on wchar.
66890         * lib/regex_internal.h: Assume <wchar.h>.
66891         * m4/regex.m4: Likewise.
66892         * modules/stdint (Depends-on): Depend on wchar.
66893         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66894         * m4/stdint.m4: Likewise.
66895         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66896         * modules/strftime (Depends-on): Depend on wchar.
66897         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66898         * modules/strtol (Depends-on): Depend on wchar.
66899         * lib/strtol.c: Assume <wchar.h>.
66900         * modules/wcwidth (Depends-on): Depend on wchar.
66901         * lib/wcwidth.h: Assume <wchar.h>.
66902         * m4/wcwidth.m4: Likewise.
66903
66904 2007-01-16  Bruno Haible  <bruno@clisp.org>
66905
66906         * modules/csharpexec-script: New, created from...
66907         * modules/csharpexec: ... this.
66908
66909 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66910
66911         * modules/javaexec-script: New, created from...
66912         * modules/javaexec: ... this.
66913
66914 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66915
66916         * modules/poll (Dependencies): Add sys_select.
66917
66918 2007-01-15  Jim Meyering  <jim@meyering.net>
66919
66920         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66921         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66922         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66923         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66924
66925 2007-01-15  Bruno Haible  <bruno@clisp.org>
66926
66927         * modules/striconveh: New file.
66928         * lib/striconveh.h: New file.
66929         * lib/striconveh.c: New file.
66930         * MODULES.html.sh (Internationalization functions): Add striconveh.
66931
66932         * modules/striconveh-tests: New file.
66933         * tests/test-striconveh.c: New file.
66934
66935 2007-01-15  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66938         not from GNU libiconv or GNU libc.
66939
66940 2007-01-15  Bruno Haible  <bruno@clisp.org>
66941
66942         * doc/gnulib-intro.texi (Copyright): Explain the different license
66943         terms for module descriptions, autoconf macros, tests, documentation.
66944
66945 2007-01-14  Bruno Haible  <bruno@clisp.org>
66946
66947         * modules/striconv-tests: New file.
66948         * tests/test-striconv.c: New file.
66949
66950 2007-01-14  Bruno Haible  <bruno@clisp.org>
66951
66952         * modules/iconv-tests: New file.
66953         * tests/test-iconv.c: New file.
66954
66955 2007-01-14  Bruno Haible  <bruno@clisp.org>
66956
66957         * gnulib-tool (func_get_license): For test modules, use the license of
66958         the main module.
66959
66960 2007-01-14  Bruno Haible  <bruno@clisp.org>
66961
66962         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66963         if iconv is found to exist.
66964
66965 2007-01-14  Bruno Haible  <bruno@clisp.org>
66966
66967         * modules/c-ctype-tests: New file.
66968         * tests/test-c-ctype.c: New file.
66969
66970 2007-01-14  Bruno Haible  <bruno@clisp.org>
66971
66972         * modules/binary-io-tests: New file.
66973         * tests/test-binary-io.sh: New file.
66974         * tests/test-binary-io.c: New file.
66975
66976 2007-01-14  Bruno Haible  <bruno@clisp.org>
66977
66978         * modules/array-oset-tests: New file.
66979         * tests/test-array_oset.c: New file.
66980
66981 2007-01-14  Bruno Haible  <bruno@clisp.org>
66982
66983         * modules/array-list-tests: New file.
66984         * tests/test-array_list.c: New file.
66985
66986 2007-01-14  Bruno Haible  <bruno@clisp.org>
66987
66988         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66989         and make.
66990         Reported by Simon Josefsson in
66991         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66992
66993 2007-01-14  Bruno Haible  <bruno@clisp.org>
66994
66995         * modules/allocsa-tests: New file.
66996         * tests/test-allocsa.c: New file.
66997
66998 2007-01-14  Bruno Haible  <bruno@clisp.org>
66999
67000         * modules/fchdir (Depends-on): Add absolute-header.
67001         * modules/unistd (Depends-on): Likewise.
67002
67003 2006-12-30  Bruno Haible  <bruno@clisp.org>
67004
67005         * modules/fchdir: New file.
67006         * modules/unistd (Files): Add lib/unistd_.h.
67007         (Makefile.am): Generate unistd.h from unistd_.h.
67008         * lib/fchdir.c: New file.
67009         * lib/dirent_.h: New file.
67010         * lib/unistd_.h: New file.
67011         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67012         * m4/fchdir.m4: New file.
67013         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67014         (gl_HEADER_UNISTD): Invoke it.
67015         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67016         function.
67017         * lib/backupfile.c (opendir, closedir): Undefine.
67018         * lib/chown.c (open, close): Undefine.
67019         * lib/clean-temp.c (open, close): Undefine.
67020         * lib/copy-file.c (open, close): Undefine.
67021         * lib/execute.c (open, close): Undefine.
67022         * lib/fsusage.c (open, close): Undefine.
67023         * lib/gc-gnulib.c (open, close): Undefine.
67024         * lib/getcwd.c (opendir, closedir): Undefine.
67025         * lib/glob.c (opendir, closedir): Undefine.
67026         * lib/javacomp.c (open, close): Undefine.
67027         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67028         * lib/openat-proc.c (open, close): Undefine.
67029         * lib/pagealign_alloc.c (open, close): Undefine.
67030         * lib/pipe.c (open, close): Undefine.
67031         * lib/progreloc.c (open, close): Undefine.
67032         * lib/savedir.c (opendir, closedir): Undefine.
67033         * lib/utime.c (open, close): Undefine.
67034         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67035
67036 2007-01-10  Bruno Haible  <bruno@clisp.org>
67037
67038         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67039
67040 2007-01-12  Eric Blake  <ebb9@byu.net>
67041
67042         Provide a robust <wchar.h>.  Further simplifications are now
67043         possible in other modules, but not included here.
67044         * modules/wchar: New module.
67045         * m4/wchar.m4: New file.
67046         * lib/wchar_.h: Likewise.
67047         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67048         of the new module.
67049         * MODULES.html.sh (Extended multibyte and wide character utilities):
67050         New section.
67051
67052 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67053
67054         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67055         to a reasonable default for memory allocation.
67056         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67057         file system that reports garbage st_size values for symlinks.
67058         Problem reported by Liyang Hu.
67059
67060 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67061
67062         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67063         Emacs .#* auto-save files).
67064
67065 2007-01-11  Bruno Haible  <bruno@clisp.org>
67066
67067         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67068         directory.
67069
67070 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67071
67072         Use @...@ consistently in lib/wctype_.h.
67073         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67074         on it being set to 1 or 0.
67075         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67076         go back to AC_SUBSTing it.
67077         * modules/wctype (Makefile.am): Undo previous change.
67078
67079 2007-01-10  Eric Blake  <ebb9@byu.net>
67080
67081         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67082         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67083         * modules/wctype (Makefile.am): Likewise.
67084         Reported by Chris McGuire.
67085
67086 2007-01-10  Jim Meyering  <jim@meyering.net>
67087
67088         fts.c: a small readability/maintainability improvement
67089         * lib/fts.c (fts_read): Make this code slightly more readable and
67090         maintainable by hoisting the "sp->fts_cur = p" assignments to
67091         immediately follow the statements that set P.  Derived from
67092         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67093
67094 2007-01-10  Eric Blake  <ebb9@byu.net>
67095
67096         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67097         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67099         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67100         Reported by Chris McGuire.
67101
67102 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67103
67104         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67105         in sed script.
67106
67107 2007-01-09  Bruno Haible  <bruno@clisp.org>
67108
67109         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67110         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67111         variables.
67112         (func_module): Use them.
67113
67114 2007-01-09  Bruno Haible  <bruno@clisp.org>
67115
67116         * modules/unistr/base: New file.
67117         * lib/unistr.h: New file.
67118
67119         * modules/unistr/u8-to-u16: New file.
67120         * lib/unistr/u8-to-u16.c: New file.
67121
67122         * modules/unistr/u8-to-u32: New file.
67123         * lib/unistr/u8-to-u32.c: New file.
67124
67125         * modules/unistr/u16-to-u8: New file.
67126         * lib/unistr/u16-to-u8.c: New file.
67127
67128         * modules/unistr/u16-to-u32: New file.
67129         * lib/unistr/u16-to-u32.c: New file.
67130
67131         * modules/unistr/u32-to-u8: New file.
67132         * lib/unistr/u32-to-u8.c: New file.
67133
67134         * modules/unistr/u32-to-u16: New file.
67135         * lib/unistr/u32-to-u16.c: New file.
67136
67137         * modules/unistr/u8-check: New file.
67138         * modules/unistr/u16-check: New file.
67139         * modules/unistr/u32-check: New file.
67140         * lib/unistr/u8-check.c: New file.
67141         * lib/unistr/u16-check.c: New file.
67142         * lib/unistr/u32-check.c: New file.
67143
67144         * modules/unistr/u8-chr: New file.
67145         * modules/unistr/u16-chr: New file.
67146         * modules/unistr/u32-chr: New file.
67147         * lib/unistr/u8-chr.c: New file.
67148         * lib/unistr/u16-chr.c: New file.
67149         * lib/unistr/u32-chr.c: New file.
67150
67151         * modules/unistr/u8-cmp: New file.
67152         * modules/unistr/u16-cmp: New file.
67153         * modules/unistr/u32-cmp: New file.
67154         * lib/unistr/u8-cmp.c: New file.
67155         * lib/unistr/u16-cmp.c: New file.
67156         * lib/unistr/u32-cmp.c: New file.
67157
67158         * modules/unistr/u8-cpy: New file.
67159         * modules/unistr/u16-cpy: New file.
67160         * modules/unistr/u32-cpy: New file.
67161         * lib/unistr/u8-cpy.c: New file.
67162         * lib/unistr/u16-cpy.c: New file.
67163         * lib/unistr/u32-cpy.c: New file.
67164         * lib/unistr/u-cpy.h: New file.
67165
67166         * modules/unistr/u8-cpy-alloc: New file.
67167         * modules/unistr/u16-cpy-alloc: New file.
67168         * modules/unistr/u32-cpy-alloc: New file.
67169         * lib/unistr/u8-cpy-alloc.c: New file.
67170         * lib/unistr/u16-cpy-alloc.c: New file.
67171         * lib/unistr/u32-cpy-alloc.c: New file.
67172         * lib/unistr/u-cpy-alloc.h: New file.
67173
67174         * modules/unistr/u8-endswith: New file.
67175         * modules/unistr/u16-endswith: New file.
67176         * modules/unistr/u32-endswith: New file.
67177         * lib/unistr/u8-endswith.c: New file.
67178         * lib/unistr/u16-endswith.c: New file.
67179         * lib/unistr/u32-endswith.c: New file.
67180         * lib/unistr/u-endswith.h: New file.
67181
67182         * modules/unistr/u8-mblen: New file.
67183         * modules/unistr/u16-mblen: New file.
67184         * modules/unistr/u32-mblen: New file.
67185         * lib/unistr/u8-mblen.c: New file.
67186         * lib/unistr/u16-mblen.c: New file.
67187         * lib/unistr/u32-mblen.c: New file.
67188
67189         * modules/unistr/u8-mbtouc: New file.
67190         * modules/unistr/u16-mbtouc: New file.
67191         * modules/unistr/u32-mbtouc: New file.
67192         * lib/unistr/u8-mbtouc.c: New file.
67193         * lib/unistr/u16-mbtouc.c: New file.
67194         * lib/unistr/u32-mbtouc.c: New file.
67195
67196         * modules/unistr/u8-mbtouc-safe: New file.
67197         * modules/unistr/u16-mbtouc-safe: New file.
67198         * modules/unistr/u32-mbtouc-safe: New file.
67199         * lib/unistr/u8-mbtouc-safe.c: New file.
67200         * lib/unistr/u16-mbtouc-safe.c: New file.
67201         * lib/unistr/u32-mbtouc-safe.c: New file.
67202
67203         * modules/unistr/u8-move: New file.
67204         * modules/unistr/u16-move: New file.
67205         * modules/unistr/u32-move: New file.
67206         * lib/unistr/u8-move.c: New file.
67207         * lib/unistr/u16-move.c: New file.
67208         * lib/unistr/u32-move.c: New file.
67209         * lib/unistr/u-move.h: New file.
67210
67211         * modules/unistr/u8-next: New file.
67212         * modules/unistr/u16-next: New file.
67213         * modules/unistr/u32-next: New file.
67214         * lib/unistr/u8-next.c: New file.
67215         * lib/unistr/u16-next.c: New file.
67216         * lib/unistr/u32-next.c: New file.
67217
67218         * modules/unistr/u8-prev: New file.
67219         * modules/unistr/u16-prev: New file.
67220         * modules/unistr/u32-prev: New file.
67221         * lib/unistr/u8-prev.c: New file.
67222         * lib/unistr/u16-prev.c: New file.
67223         * lib/unistr/u32-prev.c: New file.
67224
67225         * modules/unistr/u8-set: New file.
67226         * modules/unistr/u16-set: New file.
67227         * modules/unistr/u32-set: New file.
67228         * lib/unistr/u8-set.c: New file.
67229         * lib/unistr/u16-set.c: New file.
67230         * lib/unistr/u32-set.c: New file.
67231         * lib/unistr/u-set.h: New file.
67232
67233         * modules/unistr/u8-startswith: New file.
67234         * modules/unistr/u16-startswith: New file.
67235         * modules/unistr/u32-startswith: New file.
67236         * lib/unistr/u8-startswith.c: New file.
67237         * lib/unistr/u16-startswith.c: New file.
67238         * lib/unistr/u32-startswith.c: New file.
67239         * lib/unistr/u-startswith.h: New file.
67240
67241         * modules/unistr/u8-stpcpy: New file.
67242         * modules/unistr/u16-stpcpy: New file.
67243         * modules/unistr/u32-stpcpy: New file.
67244         * lib/unistr/u8-stpcpy.c: New file.
67245         * lib/unistr/u16-stpcpy.c: New file.
67246         * lib/unistr/u32-stpcpy.c: New file.
67247         * lib/unistr/u-stpcpy.h: New file.
67248
67249         * modules/unistr/u8-stpncpy: New file.
67250         * modules/unistr/u16-stpncpy: New file.
67251         * modules/unistr/u32-stpncpy: New file.
67252         * lib/unistr/u8-stpncpy.c: New file.
67253         * lib/unistr/u16-stpncpy.c: New file.
67254         * lib/unistr/u32-stpncpy.c: New file.
67255         * lib/unistr/u-stpncpy.h: New file.
67256
67257         * modules/unistr/u8-strcat: New file.
67258         * modules/unistr/u16-strcat: New file.
67259         * modules/unistr/u32-strcat: New file.
67260         * lib/unistr/u8-strcat.c: New file.
67261         * lib/unistr/u16-strcat.c: New file.
67262         * lib/unistr/u32-strcat.c: New file.
67263         * lib/unistr/u-strcat.h: New file.
67264
67265         * modules/unistr/u8-strchr: New file.
67266         * modules/unistr/u16-strchr: New file.
67267         * modules/unistr/u32-strchr: New file.
67268         * lib/unistr/u8-strchr.c: New file.
67269         * lib/unistr/u16-strchr.c: New file.
67270         * lib/unistr/u32-strchr.c: New file.
67271
67272         * modules/unistr/u8-strcmp: New file.
67273         * modules/unistr/u16-strcmp: New file.
67274         * modules/unistr/u32-strcmp: New file.
67275         * lib/unistr/u8-strcmp.c: New file.
67276         * lib/unistr/u16-strcmp.c: New file.
67277         * lib/unistr/u32-strcmp.c: New file.
67278
67279         * modules/unistr/u8-strcpy: New file.
67280         * modules/unistr/u16-strcpy: New file.
67281         * modules/unistr/u32-strcpy: New file.
67282         * lib/unistr/u8-strcpy.c: New file.
67283         * lib/unistr/u16-strcpy.c: New file.
67284         * lib/unistr/u32-strcpy.c: New file.
67285         * lib/unistr/u-strcpy.h: New file.
67286
67287         * modules/unistr/u8-strcspn: New file.
67288         * modules/unistr/u16-strcspn: New file.
67289         * modules/unistr/u32-strcspn: New file.
67290         * lib/unistr/u8-strcspn.c: New file.
67291         * lib/unistr/u16-strcspn.c: New file.
67292         * lib/unistr/u32-strcspn.c: New file.
67293         * lib/unistr/u-strcspn.h: New file.
67294
67295         * modules/unistr/u8-strdup: New file.
67296         * modules/unistr/u16-strdup: New file.
67297         * modules/unistr/u32-strdup: New file.
67298         * lib/unistr/u8-strdup.c: New file.
67299         * lib/unistr/u16-strdup.c: New file.
67300         * lib/unistr/u32-strdup.c: New file.
67301         * lib/unistr/u-strdup.h: New file.
67302
67303         * modules/unistr/u8-strlen: New file.
67304         * modules/unistr/u16-strlen: New file.
67305         * modules/unistr/u32-strlen: New file.
67306         * lib/unistr/u8-strlen.c: New file.
67307         * lib/unistr/u16-strlen.c: New file.
67308         * lib/unistr/u32-strlen.c: New file.
67309         * lib/unistr/u-strlen.h: New file.
67310
67311         * modules/unistr/u8-strmblen: New file.
67312         * modules/unistr/u16-strmblen: New file.
67313         * modules/unistr/u32-strmblen: New file.
67314         * lib/unistr/u8-strmblen.c: New file.
67315         * lib/unistr/u16-strmblen.c: New file.
67316         * lib/unistr/u32-strmblen.c: New file.
67317
67318         * modules/unistr/u8-strmbtouc: New file.
67319         * modules/unistr/u16-strmbtouc: New file.
67320         * modules/unistr/u32-strmbtouc: New file.
67321         * lib/unistr/u8-strmbtouc.c: New file.
67322         * lib/unistr/u16-strmbtouc.c: New file.
67323         * lib/unistr/u32-strmbtouc.c: New file.
67324
67325         * modules/unistr/u8-strncat: New file.
67326         * modules/unistr/u16-strncat: New file.
67327         * modules/unistr/u32-strncat: New file.
67328         * lib/unistr/u8-strncat.c: New file.
67329         * lib/unistr/u16-strncat.c: New file.
67330         * lib/unistr/u32-strncat.c: New file.
67331         * lib/unistr/u-strncat.h: New file.
67332
67333         * modules/unistr/u8-strncmp: New file.
67334         * modules/unistr/u16-strncmp: New file.
67335         * modules/unistr/u32-strncmp: New file.
67336         * lib/unistr/u8-strncmp.c: New file.
67337         * lib/unistr/u16-strncmp.c: New file.
67338         * lib/unistr/u32-strncmp.c: New file.
67339
67340         * modules/unistr/u8-strncpy: New file.
67341         * modules/unistr/u16-strncpy: New file.
67342         * modules/unistr/u32-strncpy: New file.
67343         * lib/unistr/u8-strncpy.c: New file.
67344         * lib/unistr/u16-strncpy.c: New file.
67345         * lib/unistr/u32-strncpy.c: New file.
67346         * lib/unistr/u-strncpy.h: New file.
67347
67348         * modules/unistr/u8-strnlen: New file.
67349         * modules/unistr/u16-strnlen: New file.
67350         * modules/unistr/u32-strnlen: New file.
67351         * lib/unistr/u8-strnlen.c: New file.
67352         * lib/unistr/u16-strnlen.c: New file.
67353         * lib/unistr/u32-strnlen.c: New file.
67354         * lib/unistr/u-strnlen.h: New file.
67355
67356         * modules/unistr/u8-strpbrk: New file.
67357         * modules/unistr/u16-strpbrk: New file.
67358         * modules/unistr/u32-strpbrk: New file.
67359         * lib/unistr/u8-strpbrk.c: New file.
67360         * lib/unistr/u16-strpbrk.c: New file.
67361         * lib/unistr/u32-strpbrk.c: New file.
67362         * lib/unistr/u-strpbrk.h: New file.
67363
67364         * modules/unistr/u8-strrchr: New file.
67365         * modules/unistr/u16-strrchr: New file.
67366         * modules/unistr/u32-strrchr: New file.
67367         * lib/unistr/u8-strrchr.c: New file.
67368         * lib/unistr/u16-strrchr.c: New file.
67369         * lib/unistr/u32-strrchr.c: New file.
67370
67371         * modules/unistr/u8-strspn: New file.
67372         * modules/unistr/u16-strspn: New file.
67373         * modules/unistr/u32-strspn: New file.
67374         * lib/unistr/u8-strspn.c: New file.
67375         * lib/unistr/u16-strspn.c: New file.
67376         * lib/unistr/u32-strspn.c: New file.
67377         * lib/unistr/u-strspn.h: New file.
67378
67379         * modules/unistr/u8-strstr: New file.
67380         * modules/unistr/u16-strstr: New file.
67381         * modules/unistr/u32-strstr: New file.
67382         * lib/unistr/u8-strstr.c: New file.
67383         * lib/unistr/u16-strstr.c: New file.
67384         * lib/unistr/u32-strstr.c: New file.
67385         * lib/unistr/u-strstr.h: New file.
67386
67387         * modules/unistr/u8-strtok: New file.
67388         * modules/unistr/u16-strtok: New file.
67389         * modules/unistr/u32-strtok: New file.
67390         * lib/unistr/u8-strtok.c: New file.
67391         * lib/unistr/u16-strtok.c: New file.
67392         * lib/unistr/u32-strtok.c: New file.
67393         * lib/unistr/u-strtok.h: New file.
67394
67395         * modules/unistr/u8-uctomb: New file.
67396         * modules/unistr/u16-uctomb: New file.
67397         * modules/unistr/u32-uctomb: New file.
67398         * lib/unistr/u8-uctomb.c: New file.
67399         * lib/unistr/u16-uctomb.c: New file.
67400         * lib/unistr/u32-uctomb.c: New file.
67401
67402         * MODULES.html.sh (Unicode string functions): Add the new modules.
67403
67404 2007-01-08  Bruno Haible  <bruno@clisp.org>
67405
67406         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67407         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67408         subdirectories.
67409
67410 2007-01-08  Karl Berry  <karl@gnu.org>
67411
67412         * doc/error.texi: mention that main() fns must set program_name
67413         when progname is used.
67414
67415 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67416
67417         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67418         WCTYPE_H is empty, for the benefit of builds from non-distclean
67419         directories.  Problem reported by Eric Blake in
67420         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67421
67422 2007-01-08  Bruno Haible  <bruno@clisp.org>
67423
67424         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67425         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67426         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67427         PROVIDE_CANONICALIZE_FILENAME_MODE.
67428         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67429
67430 2007-01-08  Bruno Haible  <bruno@clisp.org>
67431
67432         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67433         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67434         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67435         * lib/fts.c: Likewise.
67436         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67437
67438 2006-12-25  Bruno Haible  <bruno@clisp.org>
67439
67440         * modules/utf8-ucs4-safe: New file.
67441         * lib/utf8-ucs4-safe.h: New file.
67442         * lib/unistr/utf8-ucs4-safe.c: New file.
67443
67444         * modules/utf16-ucs4-safe: New file.
67445         * lib/utf16-ucs4-safe.h: New file.
67446         * lib/unistr/utf16-ucs4-safe.c: New file.
67447
67448         * MODULES.html.sh (Unicode string functions): Add the new modules.
67449
67450 2007-01-08  Bruno Haible  <bruno@clisp.org>
67451
67452         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67453         (Depends-on): Add unitypes.
67454         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67455         (u8_mbtouc_aux): Move out to separate file.
67456         (u8_mbtouc): Use ucs4_t, uint8_t types.
67457         * lib/unistr/utf8-ucs4.c: New file.
67458
67459         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67460         (Depends-on): Add unitypes.
67461         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67462         (u16_mbtouc_aux): Move out to separate file.
67463         (u16_mbtouc): Use ucs4_t, uint16_t types.
67464         * lib/unistr/utf16-ucs4.c: New file.
67465
67466         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67467         (Depends-on): Add unitypes.
67468         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67469         (u8_uctomb_aux): Move out to separate file.
67470         (u8_uctomb): Use ucs4_t, uint8_t types.
67471         * lib/unistr/ucs4-utf8.c: New file.
67472
67473         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67474         (Depends-on): Add unitypes.
67475         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67476         (u16_uctomb_aux): Move out to separate file.
67477         (u16_uctomb): Use ucs4_t, uint16_t types.
67478         * lib/unistr/ucs4-utf16.c: New file.
67479
67480 2006-12-25  Bruno Haible  <bruno@clisp.org>
67481
67482         * modules/unitypes: New file.
67483         * lib/unitypes.h: New file.
67484         * MODULES.html.sh (func_all_modules): New section "Unicode string
67485         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67486         this section. Add unitypes.
67487
67488 2007-01-08  Bruno Haible  <bruno@clisp.org>
67489
67490         Avoid variable names that conflict with those from libtool.
67491         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67492         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67493         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67494         library_names_spec to acl_library_names_spec, hardcode_* to
67495         acl_hardcode_*.
67496         Reported by Ralf Wildenhues.
67497
67498 2007-01-08  Bruno Haible  <bruno@clisp.org>
67499
67500         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67501         definition.
67502         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67503         definition.
67504         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67505         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67506         definition.
67507         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67508         definition.
67509         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67510         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67511         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67512         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67513         definition.
67514         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67515         definition.
67516         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67517         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67518         GC_USE_<algorithm>.
67519         * lib/gc-libgcrypt.c: Likewise.
67520         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67521         * modules/gc-arctwo (configure.ac): Likewise.
67522         * modules/gc-des (configure.ac): Likewise.
67523         * modules/gc-hmac-md5 (configure.ac): Likewise.
67524         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67525         * modules/gc-md2 (configure.ac): Likewise.
67526         * modules/gc-md4 (configure.ac): Likewise.
67527         * modules/gc-md5 (configure.ac): Likewise.
67528         * modules/gc-random (configure.ac): Likewise.
67529         * modules/gc-rijndael (configure.ac): Likewise.
67530         * modules/gc-sha1 (configure.ac): Likewise.
67531
67532 2007-01-08  Bruno Haible  <bruno@clisp.org>
67533
67534         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67535         macro definition.
67536         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67537         definition.
67538         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67539         definition.
67540         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67541         * modules/fcntl-safer (configure.ac): Likewise.
67542         * modules/fopen-safer (configure.ac): Likewise.
67543         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67544         GNULIB_FWRITEERROR macro definition.
67545
67546 2007-01-08  Bruno Haible  <bruno@clisp.org>
67547
67548         * m4/gnulib-common.m4: New file.
67549         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67550         (func_get_filelist): Add m4/gnulib-common.m4.
67551
67552 2007-01-08  Bruno Haible  <bruno@clisp.org>
67553
67554         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67555         command.
67556
67557 2007-01-08  Jim Meyering  <jim@meyering.net>
67558
67559         Use a more robust test for a "can't happen" condition.
67560         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67561         narrowed the st_size value.  Presuming the "can't happen" condition
67562         is true, that narrowing could conceivably convert an invalid st_size
67563         value into a valid one.  Instead, use a change based on Matthew
67564         Woehlke's original patch.
67565
67566         Slight readability improvement: use an assert-like macro
67567         in place of literal "abort ()" uses.
67568         * lib/fts.c (fts_assert): Define.
67569         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67570         Use this macro instead of a bare 'abort'.
67571
67572 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67573
67574         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67575         simply work around them.
67576         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67577         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67578         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67579         declaring.
67580         Don't bother to define as macros, since the standard doesn't require it.
67581         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67582         longer worry about IRIX 5.3.
67583         (HAVE_WCTYPE_CTMP_BUG): Remove.
67584
67585 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67586
67587         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67588         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67589         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67590         Problems reported by Georg Schwarz for IRIX 5.3.
67591
67592         * gnulib-tool (autoconf_minversion): Take the maximum version number
67593         found, not the minimum.  Problem reported by James Youngman.
67594
67595 2007-01-03  Karl Berry  <karl@gnu.org>
67596
67597         * doc/error.texi: new file, explaining interaction with progname.
67598         * doc/gnulib.texi: include it.  Update copyright.
67599
67600 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67601
67602         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67603         AC_CANONICAL_HOST, to improve autobuild outputs.
67604
67605 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67606             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67607
67608         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67609         sockets, server sockets, and other file descriptors.  Count errors
67610         to compute the return value.  Reorder the code a bit to be easier
67611         to follow.  Don't set event bits that were not requested (except
67612         POLLERR and POLLHUP).
67613
67614 2007-01-01  Bruno Haible  <bruno@clisp.org>
67615
67616         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67617
67618 2007-01-03  Jim Meyering  <jim@meyering.net>
67619
67620         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67621
67622 2007-01-02  Bruno Haible  <bruno@clisp.org>
67623
67624         * modules/settime (Include): Require timespec.h.
67625         * modules/nanosleep (Include): Likewise.
67626
67627 2007-01-01  Bruno Haible  <bruno@clisp.org>
67628
67629         * gnulib-tool (func_emit_copyright_notice): Bump year.
67630         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67631
67632 2007-01-01  Bruno Haible  <bruno@clisp.org>
67633
67634         Improve support for OpenBSD.
67635         * build-aux/config.rpath (libname_spec): Export.
67636         (library_names_spec): New variable. Export.
67637         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67638         library_names_spec from the config.rpath output. Locate shared library
67639         through the name pattern in library_names_spec.
67640
67641 2007-01-01  Eric Blake  <ebb9@byu.net>
67642
67643         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67644
67645 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67648         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67649         assume the C locale, and avoid an "eval" that could cause trouble.
67650         Problem with SORT reported by Bob Proulx.
67651
67652         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67653         Define.  Trivial patch from Henning Nielsen Lund, originally
67654         sent to bug-grep@gnu.org today.
67655
67656 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67657
67658         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67659         struct stat.  Problem reported by Henning Nielsen Lund.
67660         * lib/acl.c: Include acl.h first, to check interface.  Don't
67661         bother to include sys/types.h and sys/stat.h again.
67662
67663 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67664
67665         Import the following change from libc; problem reported by
67666         Sven Verdoolaege.
67667
67668         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67669
67670         [BZ #1373]
67671         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67672
67673 2006-12-28  Jim Meyering  <jim@meyering.net>
67674
67675         * build-aux/announce-gen: Do not assume that the package
67676         builds any of tar.gz, tar.bz2, and .xdelta files.
67677         Suggestion from Simon Josefsson.
67678
67679 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67680
67681         * modules/announce-gen: New file.
67682
67683 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67684
67685         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67686         handles its gotchas now.
67687         * lib/mbswidth.c: Likewise.
67688         * lib/wcwidth.h: Likewise.
67689         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67690         and iswcntrl; the wctype module does this stuff now.
67691         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67693         * modules/mbchar (Depends-on): Add wctype.
67694         * modules/mbswidth (Depends-on): Likewise.
67695         * modules/wcwidth (Depends-on): Likewise.
67696
67697 2006-12-27  Eric Blake  <ebb9@byu.net>
67698
67699         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
67700         module uses more than what <wctype.h> is required to provide.
67701
67702 2006-12-26  Eric Blake  <ebb9@byu.net>
67703
67704         * gnulib-tool (sed_extract_prog): Avoid space-tab.
67705
67706 2006-12-26  Eric Blake  <ebb9@byu.net>
67707
67708         * modules/absolute-header: New module.
67709         * modules/fcntl (Depends-on): Depend on it.
67710         * modules/inttypes (Depends-on): Likewise.
67711         * modules/stdint (Depends-on): Likewise.
67712         * modules/sys_stat (Depends-on): Likewise.
67713         * modules/wctype (Depends-on): Likewise.
67714         * MODULES.html.sh (Support for building libraries and
67715         executables): Document it.
67716
67717 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * gnulib-tool (SED): Remove, undoing previous change.
67720         The problem was that it broke coreutils on Solaris, because
67721         "sed --posix" leaked into a makefile.
67722         (sed): New alias, if 'alias' and GNU sed.
67723
67724 2006-12-24  Jim Meyering  <jim@meyering.net>
67725
67726         Work around an fchownat bug in glibc-2.4:
67727         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
67728         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
67729         in spite of the -P option.
67730         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
67731         New macros.
67732         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
67733         * modules/openat (Files): Add lib/fchownat.c.
67734         * lib/openat.c (fchownat): Don't define here.  Move to...
67735         * lib/fchownat.c: ...this new file.
67736
67737 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67738
67739         Fix bug reported by Bruno Haible in
67740         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
67741         where quotearg.c didn't compile on Mac OS X 10.2 because it
67742         lacks <wchar.h> and wint_t.
67743         * lib/wctype_.h (__wctype_wint_t): New type.
67744         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
67745         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
67746         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
67747         Arg is now of type __wctype_wint_t, not wint_t.
67748         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
67749         substitute HAVE_WINT_T.
67750         * modules/wctype (Files): Add m4/wint_t.m4.
67751         (wctype.h): Substitute HAVE_WINT_T.
67752
67753 2006-12-23  Bruno Haible  <bruno@clisp.org>
67754
67755         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67756
67757 2006-12-23  Bruno Haible  <bruno@clisp.org>
67758
67759         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67760         S_ISLNK.
67761         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67762         mingw.
67763
67764 2006-12-22  Bruno Haible  <bruno@clisp.org>
67765
67766         * lib/copy-file.c: Include acl.h.
67767         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67768         Close the file descriptors only after being done with copy_acl.
67769         * modules/copy-file (Depends-on): Add acl.
67770
67771 2006-12-22  Bruno Haible  <bruno@clisp.org>
67772
67773         * gnulib-tool (SED): New variable.
67774         Use $SED instead of sed everywhere.
67775
67776 2006-12-22  Bruno Haible  <bruno@clisp.org>
67777
67778         * modules/no-c++: New file.
67779         * m4/no-c++.m4: New file.
67780         * MODULES.html.sh (Support for building libraries and executables):
67781         Add no-c++.
67782
67783 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67784
67785         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67786         Include <limits.h>, and use its INT_MAX to rewrite the
67787         j loop so that it does not overflow 'int'.  Problem reported by
67788         Ralf Wildenhues in
67789         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67790         Play it safe by shifting left by 1 rather than multiplying by 2,
67791         as GCC is less likely to optimize this away when the value
67792         is signed (when it assumes overflow leads to undefined behavior).
67793         Also, don't assume time_t uses two's complement.
67794
67795 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67796
67797         * MODULES.html.sh: New module wctype.
67798         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67799         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67800         <wctype.h>, since the new wctype module should fix this.
67801         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67802         the wctype module should arrange for it.
67803         * lib/regex_internal.h: Likewise.
67804         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67805         since the wctype module should handle this now.
67806         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67807         * modules/fnmatch (Depends-on): Add wctype.
67808         * modules/quotearg (Depends-on): Likewise.
67809         * modules/regex (Depends-on): Likewise.
67810
67811 2006-12-19  Bruno Haible  <bruno@clisp.org>
67812
67813         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67814         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67815
67816 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67817
67818         * modules/savewd (Depends-on): Fix dependency on fcntl.
67819
67820 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67823         conforms to C99, rather than relying on the user's environment
67824         setting of STDINT_H.
67825
67826 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67827         and Eric Blake  <ebb9@byu.net>
67828
67829         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67830         This is more consistent with the other defines here.
67831         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67832         Port to z/OS.  Problem reported by Paul Gilmartin.
67833         Change local vars to use gl_ prefix rather than ac_.
67834         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67835         with other defines.
67836         * modules/double-slash-root: New module.
67837         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67838         (Depends-on): Add double-slash-root.
67839         * MODULES.html.sh (File system functions): Mention new module.
67840
67841 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67842
67843         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67844         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67845         This is for the benefit of gzip, which doesn't do i18n.
67846
67847 2006-12-12  Jim Meyering  <jim@meyering.net>
67848
67849         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67850         Reported by Andreas Schwab <schwab@suse.de>.
67851
67852 2006-12-12  Bruno Haible  <bruno@clisp.org>
67853
67854         Merge these changes.
67855         2006-09-05  Bruno Haible  <bruno@clisp.org>
67856         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67857         iconv_alloc succeeded.
67858         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67859         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67860         test for " && dest " at the end - dest is always != NULL there. Call
67861         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67862         with 2xNULL arguments, also to flush the state storage. Handle the
67863         IRIX iconv behaviour. Realloc the final result, to throw away unused
67864         memory.
67865
67866 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67867
67868         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67869         and fchmodat unconditionally, since glibc 2.4 has them.
67870         Problem reported by Arkadiusz Miskiewicz.
67871
67872 2006-12-10  Bruno Haible  <bruno@clisp.org>
67873
67874         * gnulib-tool (func_import): Show the include files only for those
67875         modules that are copied and specified.
67876         Reported by Karl Berry.
67877
67878 2006-12-08  Jim Meyering  <jim@meyering.net>
67879
67880         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67881         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67882
67883         * build-aux/announce-gen: Add two new options, both optional:
67884         --bootstrap-tools=TOOL_LIST
67885               a comma-separated list of tools, e.g.,
67886               autoconf,automake,bison,gnulib
67887         --gnulib-snapshot-date=DATE
67888               if gnulib is in the bootstrap tool list,
67889               then report this as the snapshot date.
67890               If not specified, use the current date/time.
67891               If you specify a date here, be sure it's UTC.
67892
67893 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67894
67895         * tests/test-argp-2.sh: Fix test to match actual output.
67896         (func_compare): Fix sed script to be portable.
67897
67898 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67901         workaround for this case.  It is not autoconfigured now; offhand
67902         it's hard to see how to autoconfigure it.
67903
67904 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67905
67906         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67907         a directory that is about to be chowned.  Such a directory's
67908         initial file permissions should permit the owner only and this
67909         should not be changed until after the chown, since the group and
67910         other bits would be incorrect if they granted permission before
67911         the chown.
67912
67913         Fix porting problem for iswctype reported by Georg Schwarz in:
67914         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67915         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67916         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67917         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67918         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67919
67920 2006-12-03  Jim Meyering  <jim@meyering.net>
67921
67922         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67923         p->fts_statp may not yet be defined.
67924         (fts_read): Instead, set it in the caller, once p->fts_statp is
67925         sure to be defined, and corresponds to a top-level directory.
67926         This bug made du -x fail.  Here's the coreutils test case:
67927         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67928         Reported by Mike Frysinger.
67929
67930 2006-12-01  Jim Meyering  <jim@meyering.net>
67931
67932         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67933         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67934         Reported by Simon Josefsson.
67935
67936 2006-11-30  Jim Meyering  <jim@meyering.net>
67937
67938         * m4/warning.m4: Use the all-permissive copyright notice
67939         recommended by RMS (rather than LGPL).
67940         * m4/vararrays.m4: Likewise.
67941         * m4/flexmember.m4: Likewise.
67942
67943 2006-11-29  Bruno Haible  <bruno@clisp.org>
67944
67945         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67946         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67947         using +=.
67948         Reported by Simon Josefsson <simon@josefsson.org>.
67949
67950 2006-11-28  James Youngman <jay@gnu.org>
67951
67952         * README: Advise users that they might find the bug-gnulib@gnu.org
67953         and autotools-announce@gnu.org mailing lists useful.
67954
67955 2006-11-28  Bruno Haible  <bruno@clisp.org>
67956
67957         * m4/ptrdiff_max.m4: Remove file.
67958
67959 2006-11-21  Bruno Haible  <bruno@clisp.org>
67960
67961         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67962         _AC_COMPUTE_INT.
67963         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67964         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67965         _AC_COMPUTE_INT.
67966         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67967         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67968         _AC_COMPUTE_INT.
67969         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67970
67971 2006-11-28  Jim Meyering  <jim@meyering.net>
67972
67973         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67974         warning from "gcc -Wshadow" about shadowing the builtin.
67975
67976 2006-11-27  Bruno Haible  <bruno@clisp.org>
67977
67978         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67979         _AC_COMPUTE_INT.
67980         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67981
67982 2006-11-27  Bruno Haible  <bruno@clisp.org>
67983             Paul Eggert  <eggert@cs.ucla.edu>
67984
67985         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67986
67987 2006-11-26  Bruno Haible  <bruno@clisp.org>
67988
67989         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67990         noinst_LTLIBRARIES.
67991
67992 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67993             Bruno Haible  <bruno@clisp.org>
67994
67995         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67996         if compiling with "gcc -ansi".
67997
67998 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         Fix some incompatibilities with gcc -ansi -pedantic.
68001         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68002         if compiling pedantically with GCC, unless it's C99 or later.
68003         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68004         it mishandles gcc -ansi -pedantic as well.
68005         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68006         if gcc -pedantic.
68007         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68008         initializers for struct if -pedantic, unless it's C99 or later.
68009
68010 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68011
68012         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68013         Don't close an fd more than once. Identical atimes indicate
68014         success, not failure.
68015
68016 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68017
68018         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68019
68020 2006-11-23  Jim Meyering  <jim@meyering.net>
68021
68022         * build-aux/announce-gen: New file.  From coreutils.
68023
68024 2006-11-22  Jim Meyering  <jim@meyering.net>
68025
68026         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68027         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68028         (fts_read): Use a temporary to narrow the overused st_size member
68029         before using it in a switch statement.  Reported by Matthew Woehlke.
68030
68031         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68032         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68033
68034 2006-11-20  Bruno Haible  <bruno@clisp.org>
68035
68036         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68037         changequote instead of pairs of brackets.
68038         Reported by Andreas Schwab <schwab@suse.de>.
68039
68040 2006-11-21  Jim Meyering  <jim@meyering.net>
68041
68042         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68043         so as to remain compatible with older compilers.
68044         Patch from Michael Deutschmann.
68045
68046 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68047
68048         * MODULES.html.sh (File system functions): Add openat.
68049
68050         * lib/openat.h (rpl_fstatat): New macro, if
68051         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68052         (fstatat): Define to rpl_fstatat under the same conditions,
68053         unless COMPILING_FSTATAT.
68054         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68055         seems to have the bug.
68056         * lib/fstatat.c: New file.
68057         * modules/openat (Files): Add it.
68058
68059 2006-11-20  Bruno Haible  <bruno@clisp.org>
68060
68061         * Makefile: New file.
68062
68063 2006-11-20  Jim Meyering  <jim@meyering.net>
68064
68065         The beginnings of syntax-related checks for gnulib.
68066         * lib/Makefile: New file.
68067         * lib/t-idcache: New script.  Ensure that the two halves of
68068         idcache.c stay in sync.
68069
68070         * lib/idcache.c: Adjust comments in user- and group- portions to
68071         be more accurate, and to be consistent with one another.
68072
68073 2006-11-20  Jim Meyering  <jim@meyering.net>
68074
68075         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68076         continue using the flexible array member (thus, this module performs
68077         half as many malloc calls), with the addition that...
68078         (getgroup, getuser): Consistently record a non-match via an empty
68079         "name" string, and map an empty string match to a NULL return value.
68080         * modules/idcache (Depends-on): Re-add flexmember.
68081
68082         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68083         (getuidbyname, getgroup, getgidbyname): Likewise.
68084
68085         Use cleaner syntax: NULL rather than 0.
68086         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68087
68088 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68089
68090         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68091         It mishandled the case where the group was missing.
68092         Problem reported by Greg Schafer.
68093         * modules/idcache: Likewise.
68094
68095 2006-11-18  Jim Meyering  <jim@meyering.net>
68096
68097         * check-module (%exempt_header): Add exception for some
68098         conditionally-included headers.
68099
68100         * modules/i-ring (Depends-on): Add verify.
68101         (License): Change to LGPL.
68102
68103 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68106         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68107         and inttostr.h.  Use snprintf rather than uinttostr, so that
68108         LGPLed code doesn't depend on GPLed.
68109
68110 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * modules/inline (License): Change from GPL to LGPL.
68113
68114 2006-11-17  Jim Meyering  <jim@meyering.net>
68115
68116         * modules/d-type (License): Switch to LGPL.
68117
68118 2006-11-15  Bruno Haible  <bruno@clisp.org>
68119
68120         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68121
68122 2006-11-15  Eric Blake  <ebb9@byu.net>
68123
68124         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68125         the module dependency.
68126
68127 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68128             Bruno Haible  <bruno@clisp.org>
68129
68130         * gnulib-tool (func_create_testdir): Add license consistency check.
68131
68132 2006-11-15  Eric Blake  <ebb9@byu.net>
68133
68134         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68135         random "(cached)" in configure output.
68136
68137 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68138
68139         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68140         test for conforming inttypes.h is both announced and cached.
68141
68142         * MODULES.html.sh (seen_modules, seen_files): New variables.
68143         (func_module): Rewrite to use a few less gnulib-tool and sed
68144         invocations.  Avoid a couple of quadratic algorithms for ...
68145         (missed_modules, missed_files): ... these, with ...
68146         (func_append, func_tmpdir): ... these new functions, from
68147         gnulib-tool.  Analogously, install traps for cleanup.
68148
68149         * tests/test-gc.c (main): Remove unused variables.
68150         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68151
68152 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         * modules/inttostr (License): Change to LGPL.
68155
68156 2006-11-14  Eric Blake  <ebb9@byu.net>
68157
68158         * modules/tempname (License): Change to LGPL.
68159
68160 2006-11-14  Eric Blake  <ebb9@byu.net>
68161
68162         * doc/functions.texi (Function Portability): *printf functions on
68163         Cygwin now understand all POSIX size specifiers.
68164
68165 2006-11-14  Bruno Haible  <bruno@clisp.org>
68166
68167         * modules/c-ctype (License): Change to LGPL.
68168
68169 2006-11-12  Bruno Haible  <bruno@clisp.org>
68170
68171         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68172         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68173         for GNOME libraries, for which the include files are installed in
68174         subdirectories of $prefix/include.
68175
68176 2006-11-12  Bruno Haible  <bruno@clisp.org>
68177
68178         * m4/lib-link.m4: Require at least autoconf-2.54.
68179         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68180         name to underscores for the --with option.
68181
68182 2006-11-13  Bruno Haible  <bruno@clisp.org>
68183
68184         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68185         the tests directory.
68186         Reported by Ralf Wildenhues.
68187
68188 2006-11-13  Bruno Haible  <bruno@clisp.org>
68189
68190         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68191         (func_emit_initmacro_end): Undo the override here.
68192         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68193         Works around the famous automake error in coreutils.
68194
68195 2006-11-13  Eric Blake  <ebb9@byu.net>
68196
68197         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68198         element, not its node.
68199
68200 2006-11-12  Bruno Haible  <bruno@clisp.org>
68201
68202         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68203         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68204
68205 2006-11-12  Bruno Haible  <bruno@clisp.org>
68206
68207         * gnulib-tool: New option --local-symlink.
68208         (func_usage): Document it.
68209         (lsymbolic): New variable.
68210         (func_import, func_create_testdir): If --symlink was not specified,
68211         test whether --local-symlink was specified and the file comes from
68212         the local_gnulib_dir.
68213
68214 2006-11-12  Bruno Haible  <bruno@clisp.org>
68215
68216         * gnulib-tool (func_ln): New function.
68217         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68218
68219 2006-11-12  Bruno Haible  <bruno@clisp.org>
68220
68221         Finish support for source files in subdirectories.
68222         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68223         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68224         AUTOMAKE_OPTIONS.
68225         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68226
68227 2006-11-12  Bruno Haible  <bruno@clisp.org>
68228
68229         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68230         EXTRA_lib_SOURCES augmentation.
68231         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68232
68233 2006-11-12  Jim Meyering  <jim@meyering.net>
68234
68235         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68236         file descriptors.  This also averts a failure on systems with
68237         native openat support when a traversed directory lacks "x" access.
68238         * lib/fts_.h: Include "i-ring.h"
68239         (struct FTS) [fts_fd_ring]: New member.
68240         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68241         (FCHDIR): Add parentheses.
68242         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68243         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68244         When descending, rather than simply closing the previous
68245         fts_cwd_fd value, push that file descriptor onto the ring.
68246         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68247         (fts_open): Initialize the new fd_ring member.
68248         (fts_close): Clear the ring.
68249         (fts_safe_changedir): When possible, use our new fd_ring to skip
68250         the diropen and fstat and dev/ino comparison that would normally
68251         accompany a virtual `chdir ("..")'.
68252
68253         * modules/fts (Depends-on): Add i-ring.
68254         * modules/i-ring: New module.
68255         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68256         * m4/i-ring.m4: New file.
68257
68258 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68259
68260         * gnulib-tool (func_create_testdir): Fix replacement of
68261         `build-aux' in configure.ac.  Run autotools in gltests
68262         subdirectory.
68263         (func_create_testdir, func_create_megatestdir, test): There is
68264         no need for '--force' in most autotool invocations in a new
68265         tree.  Actually fail the whole test if any of the tools, or the
68266         configure or make stages fail.
68267
68268         Sync from Automake.
68269         * build-aux/gnupload: Revert last change.  Add pointer to upload
68270         instructions of the GNU Maintenance Instructions.
68271         Suggestion by Karl Berry.
68272
68273 2006-11-10  Jim Meyering  <jim@meyering.net>
68274
68275         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68276
68277 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68280         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68281         (bind_textdomain_codeset) [! ENABLE_NLS]:
68282         Evaluate all the arguments.  That way, callers get compatible behavior
68283         if the arguments have side effects.  Also, it avoids some GCC
68284         diagnostics in some cases; Joel E. Denny reported problems when Bison
68285         was configured with --enable-gcc-warnigs.
68286
68287 2006-11-10  Jim Meyering  <jim@meyering.net>
68288
68289         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68290         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68291         account.
68292
68293 2006-11-10  Jim Meyering  <jim@meyering.net>
68294
68295         * modules/inline: New file/module.
68296         * modules/xalloc (Files): Remove m4/inline.m4.
68297         (Depends-on): Add inline, instead.
68298         * modules/oset: Likewise.
68299         * modules/list: Likewise.
68300
68301 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68304         Problem reported by Matthew Woehlke.
68305
68306 2006-11-09  Bruno Haible  <bruno@clisp.org>
68307
68308         * lib/tempname.c (gen_tempname): Remove variant that invokes
68309         __gen_tempname.
68310         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68311         __gen_tempname.
68312
68313 2006-11-08  Bruno Haible  <bruno@clisp.org>
68314
68315         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68316         to 'yes' instead of 'cross-compiling'.
68317
68318 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68319
68320         * lib/quotearg.h (quotearg_free): New decl.
68321         * lib/quotearg.c (quotearg_free): New function.
68322         (slot0, nslots, slotvec0, slotvec):
68323         Now file-scope so that quotearg_free can get at them.
68324
68325 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68326
68327         Sync from Automake.
68328         * build-aux/gnupload: Add missing 'gnu' to example URL.
68329         Report by Karl Berry.
68330
68331 2006-11-08  Bruno Haible  <bruno@clisp.org>
68332
68333         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68334         Suggested by Paul Eggert.
68335
68336 2006-11-08  Jim Meyering  <jim@meyering.net>
68337
68338         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68339         It's already included if !_LIBC.
68340         (fts_safe_changedir): Add a comment.
68341
68342 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68345         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68346         Matthew Woehlke.
68347
68348         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68349         definitions up, to avoid colliding with change below.
68350         (static_inline) [HAVE_INLINE]: New macro.
68351         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68352         Provide extern decls when !HAVE_INLINE.  Do not define unless
68353         static_inline is defined, either by us or by xmalloc.c.  Use
68354         static_inline rather than static inline.
68355         (XCALLOC): Optimize sizeof(T) = 1 case.
68356         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68357
68358 2006-11-07  Bruno Haible  <bruno@clisp.org>
68359
68360         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68361         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68362         AC_C_INLINE.
68363         * modules/xalloc (Files): Add m4/inline.m4.
68364
68365 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68366
68367         * README: Fix typo.
68368         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68369         (Miscellanous Notes): ...from this.
68370
68371 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68372
68373         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68374         Mention that offsetof should be used instead of sizeof.
68375         From Bruno Haible.
68376
68377 2006-11-07  Bruno Haible  <bruno@clisp.org>
68378
68379         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68380
68381 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68382
68383         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68384         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68385         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68386         (gl_tree_add_before, gl_tree_add_after):
68387         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68388         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68389         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68390         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68391         (gl_linked_add_after, gl_linked_add_at): Likewise.
68392         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68393         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68394         (gl_tree_add_before, gl_tree_add_after): Likewise.
68395         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68396         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68397         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68398
68399 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68400
68401         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68402
68403 2006-11-06  Bruno Haible  <bruno@clisp.org>
68404
68405         * m4/inline.m4: New file.
68406         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68407         * modules/list (Files): Add m4/inline.m4.
68408         * modules/oset (Files): Likewise.
68409
68410 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68411
68412         * lib/idcache.c: Include <stddef.h>, for offsetof.
68413         (struct userid.name): Change from char * to a flexible array member.
68414         All uses changed.
68415         * modules/idcache (Depends-on): Add flexmember.
68416
68417         * MODULES.html.sh (Core language properties): New module flexmember.
68418         * modules/flexmember, m4/flexmember.m4: New files.
68419
68420         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68421         inline functions that are identical with the old xnmalloc_inline,
68422         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68423         that we can avoid some unnecessary integer multiplications and
68424         divisions in the common case where the element size is known at
68425         compile time.
68426         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68427         needed.
68428         (xnboundedmalloc): Remove.
68429         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68430         arguments, for consistency with rest of this header.
68431         (xcharalloc): Rewrite using XNMALLOC.
68432         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68433         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68434         versions have been moved to lib/xalloc.h and renamed to be the
68435         non-*_inline versions.
68436         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68437         and xnrealloc functions, since those functions are now inline and
68438         now call us.
68439         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68440         renaming described above.
68441         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68442         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68443         captures the dependency in AC_C_INLINE.
68444
68445         New module canonicalize-lgpl, proposed by Charles Wilson in
68446         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68447         with a few small changes afterwards.
68448         * MODULES.html.sh (File system functions): New module
68449         canonicalize-lgpl.
68450         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68451         and canonicalize_file_name.
68452         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68453         * modules/canonicalize-lgpl: New files.
68454
68455 2006-11-05  Bruno Haible  <bruno@clisp.org>
68456
68457         * gnulib-tool (func_import, func_create_testdir): Create directories
68458         also for files in subdirectories of lib/.
68459
68460 2006-11-05  Bruno Haible  <bruno@clisp.org>
68461
68462         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68463         ANSI C compliant.
68464
68465 2006-11-03  Bruno Haible  <bruno@clisp.org>
68466
68467         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68468         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68469         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68470         (xnboundedmalloc): New inline function.
68471         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68472         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68473         xmalloc.
68474         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68475         xmalloc.
68476         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68477         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68478         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68479         xmalloc.
68480         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68481         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68482         xmalloc.
68483         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68484         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68485         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68486         xmalloc.
68487         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68488         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68489         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68490         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68491         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68492         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68493         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68494
68495 2006-11-03  Bruno Haible  <bruno@clisp.org>
68496
68497         * lib/c-ctype.h [C++]: Define functions without name mangling.
68498         * lib/fwriteerror.h [C++]: Likewise.
68499         * lib/gcd.h [C++]: Likewise.
68500         * lib/linebreak.h [C++]: Likewise.
68501
68502 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68503
68504         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68505         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68506         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68507         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68508         Check for functions and headers just once.
68509         Check for declaration of canonicalize_file_name.
68510         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68511
68512 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68513
68514         * gnulib-tool (func_import): Fix typo in actioncmd.
68515
68516 2006-11-02  Bruno Haible  <bruno@clisp.org>
68517
68518         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68519         newline sequence in the Makefile.am snippet as a space, like "make"
68520         does.
68521         Reported by Roger Persson <perrog@gmail.com>.
68522
68523 2006-11-01  Bruno Haible  <bruno@clisp.org>
68524
68525         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68526         already declared in <string.h>.
68527         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68528
68529 2006-11-01  Bruno Haible  <bruno@clisp.org>
68530
68531         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68532         * lib/strcase.h: Include <string.h>.
68533         (strcasecmp): Define to rpl_strcasecmp here.
68534
68535 2006-11-01  Bruno Haible  <bruno@clisp.org>
68536
68537         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68538
68539 2006-11-01  Eric Blake  <ebb9@byu.net>
68540
68541         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68542
68543         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68544
68545 2006-10-29  Bruno Haible  <bruno@clisp.org>
68546
68547         Make it compile in C++ mode.
68548         * lib/full-write.c (full_rw): Add a cast.
68549
68550 2006-11-01  Bruno Haible  <bruno@clisp.org>
68551
68552         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68553         be POSIX compliant.
68554         Reported by Roger Persson <perrog@gmail.com>.
68555
68556 2006-11-01  Eric Blake  <ebb9@byu.net>
68557
68558         * lib/getopt_.h: Fix comments.
68559
68560 2006-10-31  Eric Blake  <ebb9@byu.net>
68561
68562         * modules/tmpdir (Depends-on): Add sys_stat.
68563         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68564         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68565         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68566         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68567         tempname.
68568
68569 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68570
68571         Avoid some C++ diagnostics reported by Bruno Haible.
68572         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68573         xmalloc.
68574         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68575         (struct slotvec): Move to top level.
68576         (quotearg_n_options): Rewrite to avoid xmalloc.
68577         * lib/xalloc.h (xcharalloc): New function.
68578         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68579         [defined __cplusplus]: Add function template that provides result
68580         type propagation.  This part of the change is from Bruno Haible.
68581
68582 2006-10-29  Bruno Haible  <bruno@clisp.org>
68583
68584         Make it compile in C++ mode.
68585         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68586         * lib/strnlen1.c (strnlen1): Cast memchr result.
68587         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68588         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68589         (create_temp_dir): Rename local variable 'template'.
68590         (compile_csharp_using_sscli): Add cast.
68591         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68592         * lib/findprog.c (find_in_path): Likewise.
68593         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68594         * lib/wait-process.c (register_slave_subprocess): Likewise.
68595
68596 2006-10-22  Bruno Haible  <bruno@clisp.org>
68597
68598         * modules/tsearch: New file.
68599         * lib/tsearch.h: New file.
68600         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68601         * m4/tsearch.m4: New file.
68602         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68603
68604 2006-10-29  Eric Blake  <ebb9@byu.net>
68605
68606         * lib/arcfour.c: Assume config.h.
68607         * lib/arctwo.c: Likewise.
68608         * lib/base64.c: Likewise.
68609         * lib/check-version.c: Likewise.
68610         * lib/crc.c: Likewise.
68611         * lib/des.c: Likewise.
68612         * lib/gc-gnulib.c: Likewise.
68613         * lib/gc-libgcrypt.c: Likewise.
68614         * lib/gc-pbkdf2-sha1.c: Likewise.
68615         * lib/getaddrinfo.c: Likewise.
68616         * lib/getdelim.c: Likewise.
68617         * lib/getline.c: Likewise.
68618         * lib/hmac-md5.c: Likewise.
68619         * lib/hmac-sha1.c: Likewise.
68620         * lib/iconvme.c: Likewise.
68621         * lib/md2.c: Likewise.
68622         * lib/md4.c: Likewise.
68623         * lib/memxor.c: Likewise.
68624         * lib/read-file.c: Likewise.
68625         * lib/readline.c: Likewise.
68626         * lib/rijndael-alg-fst.c: Likewise.
68627         * lib/rijndael-api-fst.c: Likewise.
68628         * lib/xgetdomainname.c: Likewise.
68629
68630 2006-10-28  Eric Blake  <ebb9@byu.net>
68631
68632         * lib/xstrndup.c: Assume config.h.
68633
68634 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68635
68636         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68637         stat-macros.h is now for our own macros, whereas stat_h is for
68638         macros in the <sys/stat.h> name space.
68639         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68640         (STAT_MACROS_H): Remove.
68641         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68642         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68643         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68644         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68645         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68646         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68647         Move these macros to ...
68648         * lib/stat_.h: here.  Don't include stat-macros.h.
68649         * lib/canonicalize.c: Don't include stat-macros.h.
68650         * lib/chown.c: Likewise.
68651         * lib/euidaccess.c: Likewise.
68652         * lib/file-type.c: Likewise.
68653         * lib/filemode.c: Likewise.
68654         * lib/glob.c: Likewise.
68655         * lib/isapipe.c: Likewise.
68656         * lib/lchown.c: Likewise.
68657         * lib/lstat.c: Likewise.
68658         * lib/mkdir-p.c: Likewise.
68659         * lib/rmdir.c: Likewise.
68660         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68661         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68662         unless mkdir isn't declared, to speed up 'configure'.
68663         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68664         would define all the S_* symbols.
68665         * modules/canonicalize (Depends-on):
68666         Depend on sys_stat, not stat-macros.
68667         * modules/chown: Likewise.
68668         * modules/euidaccess: Likewise.
68669         * modules/filemode: Likewise.
68670         * modules/file-type: Likewise.
68671         * modules/glob: Likewise.
68672         * modules/isapipe: Likewise.
68673         * modules/lchown: Likewise.
68674         * modules/lstat: Likewise.
68675         * modules/mkancesdirs: Likewise.
68676         * modules/rmdir: Likewise.
68677         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68678         * modules/modechange: Likewise.
68679         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68680         (configure.ac): Remove gl_STAT_MACROS.
68681         * modules/sys_stat (Depends-on): Remove stat-macros.
68682
68683 2006-10-27  Bruno Haible  <bruno@clisp.org>
68684
68685         * m4/signed.m4: Remove file.
68686         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68687         invocation.
68688         * modules/vasnprintf (Files): Remove m4/signed.m4.
68689
68690 2006-10-27  Bruno Haible  <bruno@clisp.org>
68691
68692         Update to GNU gettext 0.16.
68693         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68694         m4/inttypes-h.m4, m4/signed.m4.
68695         * m4/gettext.m4: Update to GNU gettext 0.16.
68696         * m4/intl.m4: New file, from GNU gettext.
68697         * m4/intldir.m4: New file, from GNU gettext.
68698         * config/srclist.txt: Update
68699
68700 2006-10-27  Eric Blake  <ebb9@byu.net>
68701
68702         * MODULES.html.sh: Document tempname.
68703         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
68704         dependencies.
68705         (Files): Move lib/tempname.c...
68706         * modules/tempname: ...to this new module.
68707         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
68708         (gl_PREREQ_TEMPNAME): Move...
68709         * m4/tempname.m4: ...to this new file.
68710         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
68711         * modules/sys_stat (Depends-on): Add stat-macros.
68712         * lib/stat_.h (includes): Pick up stat macros.
68713         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
68714         if stat macros are broken.
68715         * lib/tempname.c (includes): No need to include "stat-macros.h".
68716         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
68717         (direxists, __path_search) [!_LIBC]: Don't compile these in
68718         gnulib; the tmpdir module covers that.
68719         * lib/tempname.h: New file.
68720
68721 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         * COPYING: Explain how gnulib-tool converts licence headers.
68724         Almost all wording by Eric Blake.
68725
68726 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
68727
68728         * lib/mbchar.h (is_basic_table): Make read-only.
68729         * lib/mbchar.c (is_basic_table): Likewise.
68730         Reported by John Darrington.
68731
68732 2006-10-25  Bruno Haible  <bruno@clisp.org>
68733
68734         * lib/progname.h (set_program_name): Undefine before defining.
68735
68736 2006-10-25  Bruno Haible  <bruno@clisp.org>
68737
68738         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
68739         false for non-gcc C++ compilers.
68740         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68741
68742 2006-10-24  Bruno Haible  <bruno@clisp.org>
68743
68744         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
68745         iconv implementations like Irix iconv.
68746
68747 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68748
68749         * modules/vararrays: New file.
68750         * m4/vararrays.m4: New file, taken from diffutils.
68751         * MODULES.html.sh: New module vararrays.
68752
68753 2006-10-24  Karl Berry  <karl@gnu.org>
68754
68755         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68756         Don't call GNU Unix.
68757
68758 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68759
68760         * users.txt: Add Libtool.
68761
68762         Sync from Libtool:
68763
68764         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68767         to gnulib's policy of including config.h unconditionally.
68768
68769 2006-10-24  Bruno Haible  <bruno@clisp.org>
68770
68771         * modules/wcwidth (Files): Add m4/wint_t.m4.
68772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
68773         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
68774
68775 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68778         to pacify GCC with some -W flags enabled.  Problem reported by
68779         Bruno Haible.
68780
68781 2006-10-24  Jim Meyering  <jim@meyering.net>
68782
68783         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68784         Reported by Karl Berry.
68785
68786 2006-10-23  Bruno Haible  <bruno@clisp.org>
68787
68788         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68789
68790 2006-10-24  Bruno Haible  <bruno@clisp.org>
68791
68792         * lib/gl_list.h: Use C comment style, not C++ comment style.
68793
68794 2006-10-23  Eric Blake  <ebb9@byu.net>
68795
68796         * lib/getaddrinfo.c (includes): Add missing include.
68797
68798 2006-10-23  Bruno Haible  <bruno@clisp.org>
68799             Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         Ability to rename obstack_free.
68802         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68803         obstack_free.
68804         (obstack_free): Invoke the __obstack_free macro.
68805         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68806
68807 2006-10-23  Bruno Haible  <bruno@clisp.org>
68808             Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68811         __argc, __argv from the declaration. (They are defined as macros on
68812         mingw.)
68813
68814 2006-10-22  Bruno Haible  <bruno@clisp.org>
68815
68816         * doc/gnulib-intro.texi: New file.
68817         * doc/gnulib.texi: Include it.
68818
68819 2006-10-21  Bruno Haible  <bruno@clisp.org>
68820
68821         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68822         "Introduction", "Miscellanous Notes", "Particular Modules".
68823
68824 2006-10-21  Bruno Haible  <bruno@clisp.org>
68825
68826         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68827         Change mostlyclean-local rule to avoid sh syntax error from bash
68828         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68829
68830 2006-10-23  Jim Meyering  <jim@meyering.net>
68831
68832         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68833         in place of snprintf.
68834
68835         * modules/inttostr (Files): Add lib/uinttostr.c.
68836         * lib/uinttostr.c (inttostr): New file/function.
68837         * lib/inttostr.h (uinttostr): Declare.
68838         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68839         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68840         Add uinttostr.
68841         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68842
68843 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68844
68845         * lib/canonicalize.c (ELOOP): Define if not already defined.
68846         Problem reported by Bruno Haible in
68847         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68848
68849 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68850
68851         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68852         Problem reported by Perry Smith and Ville Laurikari.
68853
68854         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68855         uses.
68856
68857 2006-10-19  Bruno Haible  <bruno@clisp.org>
68858
68859         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68860         for mingw.
68861
68862 2006-10-19  Bruno Haible  <bruno@clisp.org>
68863
68864         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68865         Needed for mingw.
68866
68867 2006-10-19  Bruno Haible  <bruno@clisp.org>
68868
68869         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68870
68871 2006-10-19  Bruno Haible  <bruno@clisp.org>
68872
68873         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68874         it.
68875
68876 2006-10-19  Bruno Haible  <bruno@clisp.org>
68877
68878         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68879         invocation.
68880
68881 2006-10-19  Bruno Haible  <bruno@clisp.org>
68882
68883         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68884         mountlist by default.
68885
68886 2006-10-16  Bruno Haible  <bruno@clisp.org>
68887
68888         * lib/c-strstr.c: Include c-strstr.h.
68889
68890 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68891
68892         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68893         in a slash.
68894
68895 2006-10-18  Bruno Haible  <bruno@clisp.org>
68896
68897         * lib/lock.h [C++]: Wrap definitions in extern "C".
68898
68899 2006-10-18  Bruno Haible  <bruno@clisp.org>
68900
68901         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68902         gl_LIBOBJS list.
68903
68904 2006-10-18  Bruno Haible  <bruno@clisp.org>
68905
68906         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68907
68908 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68909
68910         * lib/xstrtol.h: Include gettext.h.
68911         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68912         Problem reported by Eric Blake.
68913         * modules/xstrtol (Depends-on): Add gettext-h.
68914
68915 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68916
68917         * lib/strftime.c (advance): New macro.
68918         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68919         incomplete type, so you can't add 0 to it.  Problem and patch
68920         reported by Eelco Dolstra for dietlibc.
68921
68922 2006-10-18  Jim Meyering  <jim@meyering.net>
68923
68924         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68925         type for a local, and rename it: s/up/user_proc/.
68926
68927 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68928
68929         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68930         READ_UTMP_USER_PROCESS.
68931         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68932
68933 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68934
68935         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68936         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68937
68938 2006-10-17  Eric Blake  <ebb9@byu.net>
68939
68940         * lib/sigprocmask.c (sigprocmask): Fix typo.
68941
68942         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68943
68944         * modules/clean-temp (Makefile.am): Don't add to make output...
68945         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68946         config.h.
68947
68948 2006-10-17  Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68951         differently if DEFAULT_TEXT_DOMAIN is set.
68952
68953 2006-10-16  Bruno Haible  <bruno@clisp.org>
68954
68955         * lib/clean-temp.c: Include fwriteerror.h.
68956
68957 2006-10-16  Bruno Haible  <bruno@clisp.org>
68958
68959         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68960
68961 2006-10-16  Bruno Haible  <bruno@clisp.org>
68962
68963         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68964         * lib/sigprocmask.h: Include <sys/types.h>.
68965         (sigset_t): Use the system's definition if present.
68966
68967 2006-10-17  Eric Blake  <ebb9@byu.net>
68968
68969         * lib/xvasprintf.c (includes): Assume config.h.
68970         * lib/xasprintf.c (includes): Likewise.
68971
68972 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68975         at least as wide as intmax_t.
68976
68977 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68978
68979         (Imported from Automake.)
68980         * build-aux/gnupload: Update to version 1.1 of directive file.
68981
68982 2006-10-16  Eric Blake  <ebb9@byu.net>
68983
68984         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68985         match Automake 1.10a.
68986
68987 2006-10-14  Bruno Haible  <bruno@clisp.org>
68988
68989         * modules/sigprocmask: New file.
68990         * lib/sigprocmask.h: New file.
68991         * lib/sigprocmask.c: New file.
68992         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68993         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68994         request sigprocmask.o.
68995         (gl_PREREQ_SIGPROCMASK): New macro.
68996         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68997         (Depends-on): Add sigprocmask.
68998         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68999         gt_SIGNALBLOCKING. Test for 'raise' only once.
69000         * lib/fatal-signal.c: Include sigprocmask.h.
69001         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69002         unblock_fatal_signals): Define always.
69003         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69004         sigprocmask.
69005
69006 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         Sync from Automake.
69009         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69010         which incorrectly sets the mode of an existing destination
69011         directory.  In some cases the unpatched install-sh could do the
69012         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69013         system.  We hope this is rare in practice, but it's clearly worth
69014         fixing.  Problem reported by Alex Unleashed in
69015         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69016         Also, don't bother to check for -m bugs unless we're using -m;
69017         suggested by Stepan Kasal.
69018
69019 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69020
69021         Sync from Automake.
69022         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69023         `-c' flag, so they appear at the same position as in %FASTDEP%
69024         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69025         which ignores unknown options only after the first non-option.
69026         Bug report against M4 by Nelson H. F. Beebe.
69027
69028 2006-10-13  Jim Meyering  <jim@meyering.net>
69029
69030         Fix a bug in yesterday's change.
69031         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69032         p->fts_statp->st_dev would be used uninitialized.
69033         Ensures that we always call fts_stat on the very first entry.
69034         Miklos Szeredi reported that find -xdev stopped working.
69035
69036 2006-10-12  Bruno Haible  <bruno@clisp.org>
69037
69038         * gnulib-tool (func_get_automake_snippet): Append an automatically
69039         computed EXTRA_DIST augmentation.
69040         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69041         * modules/alloca-opt (Makefile.am): Likewise.
69042         * modules/allocsa (Makefile.am): Likewise.
69043         * modules/arcfour (Makefile.am): Likewise.
69044         * modules/arctwo (Makefile.am): Likewise.
69045         * modules/argmatch (Makefile.am): Likewise.
69046         * modules/argz (Makefile.am): Likewise.
69047         * modules/atexit (Makefile.am): Likewise.
69048         * modules/backupfile (Makefile.am): Likewise.
69049         * modules/byteswap (Makefile.am): Likewise.
69050         * modules/c-strtod (Makefile.am): Likewise.
69051         * modules/c-strtold (Makefile.am): Likewise.
69052         * modules/calloc (Makefile.am): Likewise.
69053         * modules/canon-host (Makefile.am): Likewise.
69054         * modules/canonicalize (Makefile.am): Likewise.
69055         * modules/chdir-long (Makefile.am): Likewise.
69056         * modules/chdir-safer (Makefile.am): Likewise.
69057         * modules/check-version (Makefile.am): Likewise.
69058         * modules/chown (Makefile.am): Likewise.
69059         * modules/cloexec (Makefile.am): Likewise.
69060         * modules/close-stream (Makefile.am): Likewise.
69061         * modules/closeout (Makefile.am): Likewise.
69062         * modules/crc (Makefile.am): Likewise.
69063         * modules/csharpexec (Makefile.am): Likewise.
69064         * modules/cycle-check (Makefile.am): Likewise.
69065         * modules/des (Makefile.am): Likewise.
69066         * modules/dev-ino (Makefile.am): Likewise.
69067         * modules/dirfd (Makefile.am): Likewise.
69068         * modules/dirname (Makefile.am): Likewise.
69069         * modules/dup2 (Makefile.am): Likewise.
69070         * modules/eealloc (Makefile.am): Likewise.
69071         * modules/error (Makefile.am): Likewise.
69072         * modules/euidaccess (Makefile.am): Likewise.
69073         * modules/exclude (Makefile.am): Likewise.
69074         * modules/exitfail (Makefile.am): Likewise.
69075         * modules/fcntl-safer (Makefile.am): Likewise.
69076         * modules/fcntl (Makefile.am): Likewise.
69077         * modules/file-type (Makefile.am): Likewise.
69078         * modules/fileblocks (Makefile.am): Likewise.
69079         * modules/filemode (Makefile.am): Likewise.
69080         * modules/filenamecat (Makefile.am): Likewise.
69081         * modules/fnmatch (Makefile.am): Likewise.
69082         * modules/fopen-safer (Makefile.am): Likewise.
69083         * modules/fpending (Makefile.am): Likewise.
69084         * modules/fprintftime (Makefile.am): Likewise.
69085         * modules/free (Makefile.am): Likewise.
69086         * modules/fsusage (Makefile.am): Likewise.
69087         * modules/ftruncate (Makefile.am): Likewise.
69088         * modules/fts (Makefile.am): Likewise.
69089         * modules/gc-arcfour (Makefile.am): Likewise.
69090         * modules/gc-des (Makefile.am): Likewise.
69091         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69092         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69093         * modules/gc-md4 (Makefile.am): Likewise.
69094         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69095         * modules/gc-sha1 (Makefile.am): Likewise.
69096         * modules/gc (Makefile.am): Likewise.
69097         * modules/getaddrinfo (Makefile.am): Likewise.
69098         * modules/getcwd (Makefile.am): Likewise.
69099         * modules/getdelim (Makefile.am): Likewise.
69100         * modules/getdomainname (Makefile.am): Likewise.
69101         * modules/getgroups (Makefile.am): Likewise.
69102         * modules/gethostname (Makefile.am): Likewise.
69103         * modules/gethrxtime (Makefile.am): Likewise.
69104         * modules/getline (Makefile.am): Likewise.
69105         * modules/getloadavg (Makefile.am): Likewise.
69106         * modules/getlogin_r (Makefile.am): Likewise.
69107         * modules/getndelim2 (Makefile.am): Likewise.
69108         * modules/getopt (Makefile.am): Likewise.
69109         * modules/getpagesize (Makefile.am): Likewise.
69110         * modules/getpass-gnu (Makefile.am): Likewise.
69111         * modules/getpass (Makefile.am): Likewise.
69112         * modules/getsubopt (Makefile.am): Likewise.
69113         * modules/gettime (Makefile.am): Likewise.
69114         * modules/gettimeofday (Makefile.am): Likewise.
69115         * modules/getugroups (Makefile.am): Likewise.
69116         * modules/getusershell (Makefile.am): Likewise.
69117         * modules/glob (Makefile.am): Likewise.
69118         * modules/group-member (Makefile.am): Likewise.
69119         * modules/hard-locale (Makefile.am): Likewise.
69120         * modules/hash (Makefile.am): Likewise.
69121         * modules/hmac-md5 (Makefile.am): Likewise.
69122         * modules/hmac-sha1 (Makefile.am): Likewise.
69123         * modules/human (Makefile.am): Likewise.
69124         * modules/idcache (Makefile.am): Likewise.
69125         * modules/imaxabs (Makefile.am): Likewise.
69126         * modules/imaxdiv (Makefile.am): Likewise.
69127         * modules/inet_ntop (Makefile.am): Likewise.
69128         * modules/inet_pton (Makefile.am): Likewise.
69129         * modules/intprops (Makefile.am): Likewise.
69130         * modules/inttostr (Makefile.am): Likewise.
69131         * modules/inttypes (Makefile.am): Likewise.
69132         * modules/isapipe (Makefile.am): Likewise.
69133         * modules/javaversion (Makefile.am): Likewise.
69134         * modules/lchmod (Makefile.am): Likewise.
69135         * modules/lchown (Makefile.am): Likewise.
69136         * modules/localcharset (Makefile.am): Likewise.
69137         * modules/long-options (Makefile.am): Likewise.
69138         * modules/lstat (Makefile.am): Likewise.
69139         * modules/malloc (Makefile.am): Likewise.
69140         * modules/mathl (Makefile.am): Likewise.
69141         * modules/mbchar (Makefile.am): Likewise.
69142         * modules/md2 (Makefile.am): Likewise.
69143         * modules/md4 (Makefile.am): Likewise.
69144         * modules/md5 (Makefile.am): Likewise.
69145         * modules/memcasecmp (Makefile.am): Likewise.
69146         * modules/memchr (Makefile.am): Likewise.
69147         * modules/memcmp (Makefile.am): Likewise.
69148         * modules/memcoll (Makefile.am): Likewise.
69149         * modules/memcpy (Makefile.am): Likewise.
69150         * modules/memmem (Makefile.am): Likewise.
69151         * modules/memmove (Makefile.am): Likewise.
69152         * modules/mempcpy (Makefile.am): Likewise.
69153         * modules/memrchr (Makefile.am): Likewise.
69154         * modules/memset (Makefile.am): Likewise.
69155         * modules/memxor (Makefile.am): Likewise.
69156         * modules/mkancesdirs (Makefile.am): Likewise.
69157         * modules/mkdir-p (Makefile.am): Likewise.
69158         * modules/mkdir (Makefile.am): Likewise.
69159         * modules/mkdtemp (Makefile.am): Likewise.
69160         * modules/mkstemp (Makefile.am): Likewise.
69161         * modules/mktime (Makefile.am): Likewise.
69162         * modules/modechange (Makefile.am): Likewise.
69163         * modules/mountlist (Makefile.am): Likewise.
69164         * modules/nanosleep (Makefile.am): Likewise.
69165         * modules/obstack (Makefile.am): Likewise.
69166         * modules/openat (Makefile.am): Likewise.
69167         * modules/pagealign_alloc (Makefile.am): Likewise.
69168         * modules/pathmax (Makefile.am): Likewise.
69169         * modules/physmem (Makefile.am): Likewise.
69170         * modules/poll (Makefile.am): Likewise.
69171         * modules/posixtm (Makefile.am): Likewise.
69172         * modules/posixver (Makefile.am): Likewise.
69173         * modules/putenv (Makefile.am): Likewise.
69174         * modules/quote (Makefile.am): Likewise.
69175         * modules/quotearg (Makefile.am): Likewise.
69176         * modules/raise (Makefile.am): Likewise.
69177         * modules/read-file (Makefile.am): Likewise.
69178         * modules/readline (Makefile.am): Likewise.
69179         * modules/readlink (Makefile.am): Likewise.
69180         * modules/readtokens (Makefile.am): Likewise.
69181         * modules/readutmp (Makefile.am): Likewise.
69182         * modules/realloc (Makefile.am): Likewise.
69183         * modules/regex (Makefile.am): Likewise.
69184         * modules/rename-dest-slash (Makefile.am): Likewise.
69185         * modules/rename (Makefile.am): Likewise.
69186         * modules/rijndael (Makefile.am): Likewise.
69187         * modules/rmdir (Makefile.am): Likewise.
69188         * modules/rpmatch (Makefile.am): Likewise.
69189         * modules/safe-read (Makefile.am): Likewise.
69190         * modules/safe-write (Makefile.am): Likewise.
69191         * modules/same-inode (Makefile.am): Likewise.
69192         * modules/same (Makefile.am): Likewise.
69193         * modules/save-cwd (Makefile.am): Likewise.
69194         * modules/savedir (Makefile.am): Likewise.
69195         * modules/setenv (Makefile.am): Likewise.
69196         * modules/settime (Makefile.am): Likewise.
69197         * modules/sha1 (Makefile.am): Likewise.
69198         * modules/sig2str (Makefile.am): Likewise.
69199         * modules/snprintf (Makefile.am): Likewise.
69200         * modules/stat-macros (Makefile.am): Likewise.
69201         * modules/stat-time (Makefile.am): Likewise.
69202         * modules/stdbool (Makefile.am): Likewise.
69203         * modules/stdint (Makefile.am): Likewise.
69204         * modules/stdlib-safer (Makefile.am): Likewise.
69205         * modules/stpcpy (Makefile.am): Likewise.
69206         * modules/stpncpy (Makefile.am): Likewise.
69207         * modules/strcase (Makefile.am): Likewise.
69208         * modules/strcasestr (Makefile.am): Likewise.
69209         * modules/strchrnul (Makefile.am): Likewise.
69210         * modules/strcspn (Makefile.am): Likewise.
69211         * modules/strdup (Makefile.am): Likewise.
69212         * modules/strerror (Makefile.am): Likewise.
69213         * modules/strftime (Makefile.am): Likewise.
69214         * modules/strndup (Makefile.am): Likewise.
69215         * modules/strnlen (Makefile.am): Likewise.
69216         * modules/strpbrk (Makefile.am): Likewise.
69217         * modules/strsep (Makefile.am): Likewise.
69218         * modules/strstr (Makefile.am): Likewise.
69219         * modules/strtod (Makefile.am): Likewise.
69220         * modules/strtoimax (Makefile.am): Likewise.
69221         * modules/strtok_r (Makefile.am): Likewise.
69222         * modules/strtol (Makefile.am): Likewise.
69223         * modules/strtoll (Makefile.am): Likewise.
69224         * modules/strtoul (Makefile.am): Likewise.
69225         * modules/strtoull (Makefile.am): Likewise.
69226         * modules/strtoumax (Makefile.am): Likewise.
69227         * modules/strverscmp (Makefile.am): Likewise.
69228         * modules/sys_socket (Makefile.am): Likewise.
69229         * modules/sys_stat (Makefile.am): Likewise.
69230         * modules/sysexits (Makefile.am): Likewise.
69231         * modules/time_r (Makefile.am): Likewise.
69232         * modules/timegm (Makefile.am): Likewise.
69233         * modules/timespec (Makefile.am): Likewise.
69234         * modules/tmpfile-safer (Makefile.am): Likewise.
69235         * modules/trim (Makefile.am): Likewise.
69236         * modules/unistd-safer (Makefile.am): Likewise.
69237         * modules/unlinkdir (Makefile.am): Likewise.
69238         * modules/unlocked-io (Makefile.am): Likewise.
69239         * modules/userspec (Makefile.am): Likewise.
69240         * modules/utime (Makefile.am): Likewise.
69241         * modules/utimecmp (Makefile.am): Likewise.
69242         * modules/utimens (Makefile.am): Likewise.
69243         * modules/vasnprintf (Makefile.am): Likewise.
69244         * modules/vasprintf (Makefile.am): Likewise.
69245         * modules/vsnprintf (Makefile.am): Likewise.
69246         * modules/xalloc (Makefile.am): Likewise.
69247         * modules/xgetcwd (Makefile.am): Likewise.
69248         * modules/xnanosleep (Makefile.am): Likewise.
69249         * modules/xreadlink (Makefile.am): Likewise.
69250         * modules/xstrtod (Makefile.am): Likewise.
69251         * modules/xstrtol (Makefile.am): Likewise.
69252         * modules/xstrtold (Makefile.am): Likewise.
69253         * modules/yesno (Makefile.am): Likewise.
69254         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69255
69256 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69257
69258         * modules/error (Makefile.am): Distribute files through
69259         EXTRA_DIST, not lib_SOURCES.
69260
69261 2006-10-12  Eric Blake  <ebb9@byu.net>
69262
69263         * modules/error (Makefile.am): Distribute files in /lib.
69264         * modules/obstack (Makefile.am): Likewise.
69265
69266 2006-10-12  Bruno Haible  <bruno@clisp.org>
69267
69268         * modules/acl (Makefile.am): Distribute all files in lib/ through
69269         EXTRA_DIST.
69270         * modules/arcfour (Makefile.am): Likewise.
69271         * modules/arctwo (Makefile.am): Likewise.
69272         * modules/argmatch (Makefile.am): Likewise.
69273         * modules/argz (Makefile.am): Likewise.
69274         * modules/atexit (Makefile.am): Likewise.
69275         * modules/backupfile (Makefile.am): Likewise.
69276         * modules/c-strtod (Makefile.am): Likewise.
69277         * modules/c-strtold (Makefile.am): Likewise.
69278         * modules/calloc (Makefile.am): Likewise.
69279         * modules/canon-host (Makefile.am): Likewise.
69280         * modules/canonicalize (Makefile.am): Likewise.
69281         * modules/chdir-long (Makefile.am): Likewise.
69282         * modules/chdir-safer (Makefile.am): Likewise.
69283         * modules/check-version (Makefile.am): Likewise.
69284         * modules/chown (Makefile.am): Likewise.
69285         * modules/cloexec (Makefile.am): Likewise.
69286         * modules/close-stream (Makefile.am): Likewise.
69287         * modules/closeout (Makefile.am): Likewise.
69288         * modules/crc (Makefile.am): Likewise.
69289         * modules/cycle-check (Makefile.am): Likewise.
69290         * modules/des (Makefile.am): Likewise.
69291         * modules/dirfd (Makefile.am): Likewise.
69292         * modules/dirname (Makefile.am): Likewise.
69293         * modules/dup2 (Makefile.am): Likewise.
69294         * modules/euidaccess (Makefile.am): Likewise.
69295         * modules/exclude (Makefile.am): Likewise.
69296         * modules/exitfail (Makefile.am): Likewise.
69297         * modules/fcntl-safer (Makefile.am): Likewise.
69298         * modules/file-type (Makefile.am): Likewise.
69299         * modules/fileblocks (Makefile.am): Likewise.
69300         * modules/filemode (Makefile.am): Likewise.
69301         * modules/filenamecat (Makefile.am): Likewise.
69302         * modules/fnmatch (Makefile.am): Likewise.
69303         * modules/fopen-safer (Makefile.am): Likewise.
69304         * modules/fpending (Makefile.am): Likewise.
69305         * modules/fprintftime (Makefile.am): Likewise.
69306         * modules/free (Makefile.am): Likewise.
69307         * modules/fsusage (Makefile.am): Likewise.
69308         * modules/ftruncate (Makefile.am): Likewise.
69309         * modules/fts (Makefile.am): Likewise.
69310         * modules/gc (Makefile.am): Likewise.
69311         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69312         * modules/getaddrinfo (Makefile.am): Likewise.
69313         * modules/getcwd (Makefile.am): Likewise.
69314         * modules/getdelim (Makefile.am): Likewise.
69315         * modules/getdomainname (Makefile.am): Likewise.
69316         * modules/getgroups (Makefile.am): Likewise.
69317         * modules/gethostname (Makefile.am): Likewise.
69318         * modules/gethrxtime (Makefile.am): Likewise.
69319         * modules/getline (Makefile.am): Likewise.
69320         * modules/getloadavg (Makefile.am): Likewise.
69321         * modules/getlogin_r (Makefile.am): Likewise.
69322         * modules/getopt (Makefile.am): Likewise.
69323         * modules/getpass (Makefile.am): Likewise.
69324         * modules/getpass-gnu (Makefile.am): Likewise.
69325         * modules/getsubopt (Makefile.am): Likewise.
69326         * modules/gettime (Makefile.am): Likewise.
69327         * modules/gettimeofday (Makefile.am): Likewise.
69328         * modules/getugroups (Makefile.am): Likewise.
69329         * modules/getusershell (Makefile.am): Likewise.
69330         * modules/glob (Makefile.am): Likewise.
69331         * modules/group-member (Makefile.am): Likewise.
69332         * modules/hard-locale (Makefile.am): Likewise.
69333         * modules/hash (Makefile.am): Likewise.
69334         * modules/hmac-md5 (Makefile.am): Likewise.
69335         * modules/hmac-sha1 (Makefile.am): Likewise.
69336         * modules/human (Makefile.am): Likewise.
69337         * modules/idcache (Makefile.am): Likewise.
69338         * modules/imaxabs (Makefile.am): Likewise.
69339         * modules/imaxdiv (Makefile.am): Likewise.
69340         * modules/inet_ntop (Makefile.am): Likewise.
69341         * modules/inet_pton (Makefile.am): Likewise.
69342         * modules/inttostr (Makefile.am): Likewise.
69343         * modules/isapipe (Makefile.am): Likewise.
69344         * modules/lchown (Makefile.am): Likewise.
69345         * modules/long-options (Makefile.am): Likewise.
69346         * modules/lstat (Makefile.am): Likewise.
69347         * modules/malloc (Makefile.am): Likewise.
69348         * modules/mathl (Makefile.am): Likewise.
69349         * modules/mbchar (Makefile.am): Likewise.
69350         * modules/md2 (Makefile.am): Likewise.
69351         * modules/md4 (Makefile.am): Likewise.
69352         * modules/md5 (Makefile.am): Likewise.
69353         * modules/memcasecmp (Makefile.am): Likewise.
69354         * modules/memchr (Makefile.am): Likewise.
69355         * modules/memcmp (Makefile.am): Likewise.
69356         * modules/memcoll (Makefile.am): Likewise.
69357         * modules/memcpy (Makefile.am): Likewise.
69358         * modules/memmem (Makefile.am): Likewise.
69359         * modules/memmove (Makefile.am): Likewise.
69360         * modules/mempcpy (Makefile.am): Likewise.
69361         * modules/memrchr (Makefile.am): Likewise.
69362         * modules/memset (Makefile.am): Likewise.
69363         * modules/memxor (Makefile.am): Likewise.
69364         * modules/mkancesdirs (Makefile.am): Likewise.
69365         * modules/mkdir (Makefile.am): Likewise.
69366         * modules/mkdir-p (Makefile.am): Likewise.
69367         * modules/mkdtemp (Makefile.am): Likewise.
69368         * modules/mkstemp (Makefile.am): Likewise.
69369         * modules/mktime (Makefile.am): Likewise.
69370         * modules/modechange (Makefile.am): Likewise.
69371         * modules/mountlist (Makefile.am): Likewise.
69372         * modules/nanosleep (Makefile.am): Likewise.
69373         * modules/openat (Makefile.am): Likewise.
69374         * modules/pagealign_alloc (Makefile.am): Likewise.
69375         * modules/physmem (Makefile.am): Likewise.
69376         * modules/poll (Makefile.am): Likewise.
69377         * modules/posixtm (Makefile.am): Likewise.
69378         * modules/posixver (Makefile.am): Likewise.
69379         * modules/putenv (Makefile.am): Likewise.
69380         * modules/quote (Makefile.am): Likewise.
69381         * modules/quotearg (Makefile.am): Likewise.
69382         * modules/raise (Makefile.am): Likewise.
69383         * modules/read-file (Makefile.am): Likewise.
69384         * modules/readline (Makefile.am): Likewise.
69385         * modules/readlink (Makefile.am): Likewise.
69386         * modules/readtokens (Makefile.am): Likewise.
69387         * modules/readutmp (Makefile.am): Likewise.
69388         * modules/realloc (Makefile.am): Likewise.
69389         * modules/regex (Makefile.am): Likewise.
69390         * modules/rename (Makefile.am): Likewise.
69391         * modules/rename-dest-slash (Makefile.am): Likewise.
69392         * modules/rijndael (Makefile.am): Likewise.
69393         * modules/rmdir (Makefile.am): Likewise.
69394         * modules/rpmatch (Makefile.am): Likewise.
69395         * modules/safe-read (Makefile.am): Likewise.
69396         * modules/safe-write (Makefile.am): Likewise.
69397         * modules/same (Makefile.am): Likewise.
69398         * modules/save-cwd (Makefile.am): Likewise.
69399         * modules/savedir (Makefile.am): Likewise.
69400         * modules/setenv (Makefile.am): Likewise.
69401         * modules/settime (Makefile.am): Likewise.
69402         * modules/sha1 (Makefile.am): Likewise.
69403         * modules/sig2str (Makefile.am): Likewise.
69404         * modules/snprintf (Makefile.am): Likewise.
69405         * modules/stdlib-safer (Makefile.am): Likewise.
69406         * modules/stpcpy (Makefile.am): Likewise.
69407         * modules/stpncpy (Makefile.am): Likewise.
69408         * modules/strcase (Makefile.am): Likewise.
69409         * modules/strcasestr (Makefile.am): Likewise.
69410         * modules/strchrnul (Makefile.am): Likewise.
69411         * modules/strcspn (Makefile.am): Likewise.
69412         * modules/strdup (Makefile.am): Likewise.
69413         * modules/strerror (Makefile.am): Likewise.
69414         * modules/strftime (Makefile.am): Likewise.
69415         * modules/strndup (Makefile.am): Likewise.
69416         * modules/strnlen (Makefile.am): Likewise.
69417         * modules/strpbrk (Makefile.am): Likewise.
69418         * modules/strsep (Makefile.am): Likewise.
69419         * modules/strstr (Makefile.am): Likewise.
69420         * modules/strtod (Makefile.am): Likewise.
69421         * modules/strtoimax (Makefile.am): Likewise.
69422         * modules/strtok_r (Makefile.am): Likewise.
69423         * modules/strtol (Makefile.am): Likewise.
69424         * modules/strtoll (Makefile.am): Likewise.
69425         * modules/strtoul (Makefile.am): Likewise.
69426         * modules/strtoull (Makefile.am): Likewise.
69427         * modules/strtoumax (Makefile.am): Likewise.
69428         * modules/strverscmp (Makefile.am): Likewise.
69429         * modules/time_r (Makefile.am): Likewise.
69430         * modules/timegm (Makefile.am): Likewise.
69431         * modules/tmpfile-safer (Makefile.am): Likewise.
69432         * modules/unistd-safer (Makefile.am): Likewise.
69433         * modules/unlinkdir (Makefile.am): Likewise.
69434         * modules/userspec (Makefile.am): Likewise.
69435         * modules/utime (Makefile.am): Likewise.
69436         * modules/utimecmp (Makefile.am): Likewise.
69437         * modules/utimens (Makefile.am): Likewise.
69438         * modules/vasnprintf (Makefile.am): Likewise.
69439         * modules/vasprintf (Makefile.am): Likewise.
69440         * modules/vsnprintf (Makefile.am): Likewise.
69441         * modules/xalloc (Makefile.am): Likewise.
69442         * modules/xgetcwd (Makefile.am): Likewise.
69443         * modules/xnanosleep (Makefile.am): Likewise.
69444         * modules/xreadlink (Makefile.am): Likewise.
69445         * modules/xstrtod (Makefile.am): Likewise.
69446         * modules/xstrtol (Makefile.am): Likewise.
69447         * modules/xstrtold (Makefile.am): Likewise.
69448         * modules/yesno (Makefile.am): Likewise.
69449
69450 2006-10-12  Jim Meyering  <jim@meyering.net>
69451
69452         * m4/getloadavg.m4: Revert the change below.
69453
69454         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69455         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69456         fail with a symlink, which is what coreutils' ./bootstrap now
69457         creates by default.
69458
69459 2006-10-12  Bruno Haible  <bruno@clisp.org>
69460
69461         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69462         mingw.
69463         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69464         MSVC and mingw explicitly.
69465
69466 2006-10-11  Simon Josefsson  <jas@extundo.com>
69467             Bruno Haible  <bruno@clisp.org>
69468
69469         Add support for multiple gnulib-tool invocations in the scope of a
69470         single configure.ac file.
69471         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69472         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69473         with the same contents as the _LIBADD variable.
69474         (func_emit_initmacro_start, func_emit_initmacro_end,
69475         func_emit_initmacro_done): New functions.
69476         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69477         gl_LIBOBJS and gl_LTLIBOBJS.
69478
69479 2006-10-11  Bruno Haible  <bruno@clisp.org>
69480
69481         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69482         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69483         autoreconf. Instead, invoke autopoint explicitly but move back the
69484         *.m4 files from gnulib.
69485
69486 2006-10-11  Bruno Haible  <bruno@clisp.org>
69487
69488         * gnulib-tool (func_usage): Make module names after --create-testdir
69489         optional.
69490         (func_create_testdir): If no module was specified, use nearly all
69491         modules.
69492
69493 2006-10-12  Jim Meyering  <jim@meyering.net>
69494
69495         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69496         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69497         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69498         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69499         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69500         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69501         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69502         (fts_set_stat_required): New function.
69503         (fts_open): Defer the calls to fts_stat, if possible or requested.
69504         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69505         into fts_stat itself.
69506         (fts_read): Perform any required (deferred) fts_stat call.
69507         (fts_build): Likewise, for the directory we're about to open and read.
69508         In the readdir loop, carefully decide whether each entry will require
69509         an eventual call to fts_stat, using dirent.d_type info if available.
69510         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69511         a command line argument into this function.  Update all callers.
69512         Map a return value of FTS_DOT to FTS_D for a command line argument.
69513         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69514         Thanks to Miklos Szeredi for his tenacity and for the initial
69515         bug report about "find" failing on a FUSE-based file system.
69516
69517         * lib/fts.c (fts_open): Use consistent indentation.
69518
69519 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69520
69521         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69522         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69523         reported by Jim Meyering.  All uses of cache variables renamed
69524         to match Autoconf's.
69525         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69526         the other one.
69527
69528         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69529         Fix misspelling in diagnostic.
69530
69531 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69534         defined.  Problem reported by Matthew Woehlke.
69535
69536         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69537         Add support for Tandem NonStop R series.
69538         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69539         Use new macro.
69540
69541         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69542         (has_trailing_slash): Omit size arg; all callers changed.
69543         Omit 'inline', since it doesn't help performance and we'd
69544         need to configure it.
69545         Don't count //, ///, etc. as having a trailing slash.
69546         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69547         (rpl_rename_dest_slash): On failure, use rename's errno rather
69548         than (in some cases) an incorrect or junk errno.
69549         Simplify code by removing need to compute length; this does
69550         cause it to make two passes instead of one over the file name,
69551         but it's worth it.
69552
69553         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69554         change, since Autoconf's version may no longer be appropriate now
69555         that we are using CVS Autoconf's version.  Add support for Tandem.
69556
69557 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69558             Bruno Haible  <bruno@clisp.org>
69559
69560         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69561         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69562         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69563         gl_AC_TYPE_LONG_LONG.
69564
69565         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69566         instead of HAVE_LONG_LONG.
69567         * lib/printf-args.c (printf_fetchargs): Likewise.
69568         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69569         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69570         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69571         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69572         gl_AC_TYPE_LONG_LONG.
69573
69574 2006-10-11  Bruno Haible  <bruno@clisp.org>
69575
69576         * m4/longlong.m4: Add comments.
69577         * m4/ulonglong.m4: Likewise.
69578
69579 2006-10-10  Bruno Haible  <bruno@clisp.org>
69580
69581         Make it possible to #define stpcpy, strdup to aliases.
69582         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69583         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69584
69585 2006-10-10  Bruno Haible  <bruno@clisp.org>
69586
69587         Make it possible to #define gcd to an alias.
69588         * lib/gcd.c: Include config.h.
69589
69590 2006-10-10  Bruno Haible  <bruno@clisp.org>
69591
69592         Make it possible to #define c_isascii to an alias.
69593         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69594         defined. Undefine the macros before defining them, to avoid gcc
69595         warnings.
69596         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69597         define NO_C_CTYPE_MACROS early.
69598
69599 2006-10-10  Bruno Haible  <bruno@clisp.org>
69600
69601         Make it possible to #define set_program_name to an alias.
69602         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69603         ENABLE_RELOCATABLE early.
69604
69605 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69608         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69609         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69610         More generally, don't assume that 64-bit signed int is available
69611         if unsigned int is, and vice versa.
69612         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69613         unsigned symbols, not on their signed counterparts.
69614         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69615         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69616         (UINT64_C, UINTMAX_C):
69617         Likewise.
69618         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69619         unsigned counterparts.
69620         (Have_long_long, Unsigned): New macros.
69621         (Int): Renamed from INT.
69622         (strtoimax): Use the new macros.
69623         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69624         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69625         * modules/inttypes (inttypes.h): Substitute
69626         HAVE_UNSIGNED_LONG_LONG_INT.
69627         * modules/stdint (stdint.h): Likewise.
69628         (Files): Add m4/ulonglong.m4.
69629
69630 2006-10-10  Bruno Haible  <bruno@clisp.org>
69631
69632         Fix a gcc -Wshadow warning.
69633         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69634         to 'bucket'.
69635         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69636         gl_linked_indexof_from_to): Likewise.
69637         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69638         Likewise.
69639         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69640         Likewise.
69641         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69642         Reported by Eric Blake.
69643
69644 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69645
69646         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69647         for NetBSD.  Problem reported by Bruno Haible.
69648
69649 2006-10-09  Jim Meyering  <jim@meyering.net>
69650
69651         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69652         Patch from Bruno Haible.
69653
69654 2006-10-09  Jim Meyering  <jim@meyering.net>
69655
69656         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69657         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69658         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69659
69660 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         Don't include <config.h> twice; this doesn't work in some cases,
69663         e.g., when config.h has "#define intmax_t long long int" and
69664         we include <config.h>, <inttypes.h>, <config.h> in that order.
69665         Problem reported by Matthew Woehlke in:
69666         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69667         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69668         * lib/fts-cycle.c: Don't include config.h.
69669         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69670         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69671         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69672         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69673         inttypes.h.
69674         * lib/xstrtoumax.c: Likewise.
69675         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69676         __strtol and the like, so that this module is more like its siblings.
69677         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69678         Remove; no longer needed now that we assume gnulib inttypes.h.
69679
69680 2006-10-08  Bruno Haible  <bruno@clisp.org>
69681
69682         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69683         option.
69684
69685 2006-10-07  Jim Meyering  <jim@meyering.net>
69686
69687         * modules/inttypes (inttypes.h): Revert what seems to have been
69688         an inadvertent part of today's change: use "|", not "/" in the
69689         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69690
69691 2006-10-07  Bruno Haible  <bruno@clisp.org>
69692
69693         * modules/sublist: New file.
69694
69695 2006-10-07  Bruno Haible  <bruno@clisp.org>
69696
69697         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69698         * modules/argz (argz.h): Likewise.
69699         * modules/arpa_inet (arpa/inet.h): Likewise.
69700         * modules/byteswap (byteswap.h): Likewise.
69701         * modules/configmake (configmake.h): Likewise.
69702         * modules/fcntl (fcntl.h): Likewise.
69703         * modules/fnmatch (fnmatch.h): Likewise.
69704         * modules/getopt (getopt.h): Likewise.
69705         * modules/glob (glob.h): Likewise.
69706         * modules/inttypes (inttypes.h): Likewise.
69707         * modules/netinet_in (netinet/in.h): Likewise.
69708         * modules/poll (poll.h): Likewise.
69709         * modules/stdbool (stdbool.h): Likewise.
69710         * modules/stdint (stdint.h): Likewise.
69711         * modules/sys_select (sys/select.h): Likewise.
69712         * modules/sys_socket (sys/socket.h): Likewise.
69713         * modules/sys_stat (sys/stat.h): Likewise.
69714         * modules/sysexits (sysexits.h): Likewise.
69715         * modules/unistd (unistd.h): Likewise.
69716         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69717         Add a "DO NOT EDIT" comment to the generated file.
69718         (func_import): Likewise for gnulib-comp.m4.
69719
69720 2006-10-07  Bruno Haible  <bruno@clisp.org>
69721
69722         * lib/gl_sublist.h: New file.
69723         * lib/gl_sublist.c: New file.
69724
69725 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
69728         name (relative to the original working directory) and the file
69729         name component (relative to the temporary working directory).  All
69730         callers changed.
69731         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
69732         * lib/mkdir-p.c (make_dir_parents): Likewise.
69733         * lib/mkdir-p.h (make_dir_parents): Likewise.
69734
69735 2006-10-06  Eric Blake  <ebb9@byu.net>
69736
69737         Define several macros for use by the clean-temp module.
69738         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
69739         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
69740         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
69741
69742         * lib/clean-temp.h (close_stream_temp): New declaration.
69743         * lib/clean-temp.c (includes): Pull in headers according to what
69744         other modules are in use.
69745         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
69746
69747 2006-10-06  Bruno Haible  <bruno@clisp.org>
69748
69749         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
69750         instead of fopen, fwriteerror.
69751
69752 2006-10-06  Bruno Haible  <bruno@clisp.org>
69753
69754         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69755         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69756         int.
69757         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69758         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69759         Return an error indicator.
69760         Suggested by Eric Blake.
69761
69762 2006-10-06  Bruno Haible  <bruno@clisp.org>
69763
69764         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69765         Reported by Eric Blake.
69766
69767 2006-10-06  Bruno Haible  <bruno@clisp.org>
69768
69769         * modules/closeout (Description): Mention stderr too.
69770
69771 2006-10-06  Bruno Haible  <bruno@clisp.org>
69772         and Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         * lib/closeout.c (close_stdout): Also close stderr.
69775         * lib/closeout.h: Update comment.
69776
69777 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69780         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69781         * lib/dirchownmod.c: Include lchown.h.
69782         * lib/lchown.c: Don't include files that lchown.h now includes.
69783         Don't declare chown, since lchown.h now does that.
69784         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69785         (lchown): Define to rpl_chown if lchown is declared but
69786         does not exist.  Declare using a prototype if lchown is not
69787         declared.  Add a copyright notice.
69788         * lib/mkstemp.h: Include <unistd.h>.
69789         * lib/openat.c: Include lchown.h.
69790
69791         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69792         we now test for that separately.
69793         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69794         rather than O_NOFOLLOW, when testing whether it's possible to
69795         avoid a race condition reliably.
69796         * lib/savewd.c (savewd_chdir): Likewise.
69797
69798         Remove macros that are no longer needed now that stdint.h is
69799         reliable.
69800         * lib/fsusage.c (UINTMAX_MAX): Remove.
69801         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69802         * lib/utimecmp.c (SIZE_MAX): Remove.
69803
69804         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69805
69806         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69807         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69808         O_NOATIME works.
69809
69810 2006-10-05  Bruno Haible  <bruno@clisp.org>
69811
69812         * lib/gl_list.h (gl_sortedlist_search_from_to,
69813         gl_sortedlist_indexof_from_to): New declarations.
69814         (gl_list_implementation): New fields sortedlist_search_from_to,
69815         sortedlist_indexof_from_to.
69816         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69817         inline functions.
69818         * lib/gl_list.c (gl_sortedlist_search_from_to,
69819         gl_sortedlist_indexof_from_to): New functions.
69820         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69821         function.
69822         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69823         (gl_array_sortedlist_search_from_to): New function.
69824         (gl_array_list_implementation): Update.
69825         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69826         function.
69827         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69828         (gl_carray_sortedlist_search_from_to): New function.
69829         (gl_carray_list_implementation): Update.
69830         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69831         gl_linked_sortedlist_indexof_from_to): New functions.
69832         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69833         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69834         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69835         gl_tree_sortedlist_indexof_from_to): New functions.
69836         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69837         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69838         Update.
69839         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69840         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69841         Update.
69842
69843 2006-10-05  Bruno Haible  <bruno@clisp.org>
69844
69845         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69846         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69847         (struct gl_list_implementation): Add fields search_from_to,
69848         indexof_from_to. Remove fields search, indexof.
69849         (gl_list_search): Use the search_from_to method.
69850         (gl_list_search_from, gl_list_search_from_to): New functions.
69851         (gl_list_indexof): Use the indexof_from_to method.
69852         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69853         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69854         (gl_list_search_from, gl_list_search_from_to): New functions.
69855         (gl_list_indexof): Use the indexof_from_to method.
69856         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69857         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69858         gl_array_indexof. Add start_index, end_index arguments.
69859         (gl_array_search_from_to): Renamed from gl_array_search. Add
69860         start_index, end_index arguments.
69861         (gl_array_remove, gl_array_list_implementation): Update.
69862         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69863         gl_carray_indexof. Add start_index, end_index arguments.
69864         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69865         start_index, end_index arguments.
69866         (gl_carray_remove, gl_carray_list_implementation): Update.
69867         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69868         gl_linked_search. Add start_index, end_index arguments.
69869         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69870         start_index, end_index arguments.
69871         (gl_linked_remove): Update.
69872         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69873         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69874         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69875         field to 'size_t'.
69876         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69877         gl_tree_search. Add start_index, end_index arguments.
69878         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69879         start_index, end_index arguments.
69880         (gl_tree_remove): Update.
69881         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69882         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69883         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69884         function.
69885         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69886         gl_tree_search. Add start_index, end_index arguments.
69887         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69888         start_index, end_index arguments.
69889         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69890         Update.
69891         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69892
69893 2006-10-05  Bruno Haible  <bruno@clisp.org>
69894
69895         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69896
69897         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69898         fwriteerror_temp): New declarations.
69899         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69900         (descriptors): New variable.
69901         (cleanup): First, close the descriptors.
69902         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69903         fclose_temp, fwriteerror_temp): New functions.
69904
69905 2006-10-04  Jim Meyering  <jim@meyering.net>
69906
69907         * lib/fts.c (fts_open): Tiny comment change.
69908
69909 2006-10-04  Bruno Haible  <bruno@clisp.org>
69910
69911         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69912         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69913         gl_LOCK_BODY.
69914         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69915         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69916         gl_LOCK_EARLY_BODY.
69917         (gl_LOCK): Require gl_LOCK_BODY.
69918
69919 2006-10-04  Bruno Haible  <bruno@clisp.org>
69920
69921         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69922         (gl_oset_search_atleast): New declaration.
69923         (struct gl_oset_implementation): Add field 'search_atleast'.
69924         (gl_oset_search_atleast): New inline function.
69925         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69926         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69927         (gl_array_oset_implementation): Update.
69928         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69929         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69930         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69931
69932 2006-10-04  Bruno Haible  <bruno@clisp.org>
69933
69934         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69935
69936 2006-10-03  Bruno Haible  <bruno@clisp.org>
69937
69938         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69939         from gl_avltreehash_list_implementation.
69940
69941 2006-10-03  Bruno Haible  <bruno@clisp.org>
69942
69943         * lib/gl_oset.c (gl_oset_add): Fix return type.
69944
69945 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69946
69947         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69948
69949 2006-10-02  Eric Blake  <ebb9@byu.net>
69950
69951         * modules/strnlen (Depends-on): Add extensions.
69952
69953 2006-10-02  Eric Blake  <ebb9@byu.net>
69954
69955         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69956         definition in 2.60+.
69957
69958 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69959
69960         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69961         checks.
69962
69963 2006-10-02  Bruno Haible  <bruno@clisp.org>
69964
69965         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69966         to the AUTOMAKE_OPTIONS.
69967         Reported by Jim Meyering.
69968
69969 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         Work around bug in Solaris 10 /proc file system:
69972         /proc/self/fd/NNN/.. isn't the parent directory of
69973         the directory whose file descriptor is NNN.  This needs to
69974         be worked around at run time, not compile time, since a
69975         program might be built on Solaris 8, where things work, and
69976         run on Solaris 10.
69977         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69978         to use the following interface instead:
69979         (OPENAT_BUFFER_SIZE): New macro.
69980         (openat_proc_name): New function.
69981         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69982         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69983         Likewise.
69984         * lib/openat-proc.c: New file.
69985         * modules/openat (Files): Add lib/openat-proc.c.
69986         (Depends-on): Add same-inode, stdbool.
69987         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69988
69989 2006-09-29  Bruno Haible  <bruno@clisp.org>
69990
69991         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69992         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69993         argument. Set stdout_closed before testing for ferror, not after.
69994         (fwriteerror, fwriteerror_no_ebadf): New functions.
69995
69996 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69997
69998         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69999
70000 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70001
70002         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70003         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70004
70005 2006-09-28  Jim Meyering  <jim@meyering.net>
70006
70007         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70008         Include <unistd.h>.
70009
70010 2006-09-28  Bruno Haible  <bruno@clisp.org>
70011
70012         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70013         * modules/linkedhash-list (Depends-on): Likewise.
70014         * modules/rbtreehash-list (Depends-on): Likewise.
70015
70016 2006-09-28  Bruno Haible  <bruno@clisp.org>
70017
70018         * lib/strndup.h: Simplify the redefinition of strndup.
70019         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70020         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70021
70022 2006-09-28  Bruno Haible  <bruno@clisp.org>
70023
70024         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70025         * lib/gl_linkedhash_list.c: Likewise.
70026         * lib/gl_rbtreehash_list.c: Likewise.
70027
70028 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70029
70030         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70031         getaddrinfo.
70032
70033         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70034         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70035         it causes <stdio_ext.h> to cause a compile-time error.
70036         Problem reported by Nelson H. F. Beebe.
70037         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70038         of HAVE_DECL___PENDING.
70039
70040         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70041         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70042         declaration.
70043
70044 2006-09-27  Jim Meyering  <jim@meyering.net>
70045
70046         This file could end up with a definition for a function
70047         named __strndup, rather than rpl_strndup on a system with
70048         incomplete weak_alias support.
70049         * lib/strndup.c (strndup): Rename from __strndup.
70050         Remove #defines that used to map __strndup to strndup.
70051         Don't use K&R prototypes.
70052         Remove LIBC-related code, since this file is not sync'd with glibc.
70053         * lib/strndup.h: Revamp, accordingly.
70054         * m4/strndup.m4: Modernize.
70055
70056 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * modules/savewd (Depends-on): Add 'raise'.
70059         * lib/savewd.c: Include <signal.h>, for 'raise'.
70060
70061 2006-09-26  Jim Meyering  <jim@meyering.net>
70062
70063         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70064         when we detect Darwin 8.7.0's acl_get_file bug.
70065         Rearrange to perform the new (below) run-test while $LIBS
70066         contains any acl-related library.  Set USE_ACL at the end.
70067         (gl_ACL_GET_FILE): New function.
70068
70069 2006-09-26  Eric Blake  <ebb9@byu.net>
70070
70071         * lib/verror.c: Include <config.h> unconditionally.
70072
70073 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70074
70075         * modules/clock-time (Maintainer): Add self.
70076         * modules/getlogin_r (Depends-on): Add extensions.
70077
70078 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70079
70080         * modules/clock-time: New module.
70081         * modules/nanosleep (Depends-on): Add clock-time.
70082         * modules/gethrxtime (Depends-on): Likewise.
70083         * modules/gettime (Depends-on): Likewise.
70084         * modules/settime (Depends-on): Likewise.
70085
70086         * modules/fts-lgpl: Depend on openat.
70087         * modules/mkancesdirs: Depend on savewd.
70088         * modules/mkdir-p: Likewise.
70089
70090 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70091
70092         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70093
70094         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70095         `gl_have_arbitrary_file_name_length_limit' to
70096         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70097         actually works between configure runs.
70098
70099 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70100             Bruno Haible  <bruno@clisp.org>
70101
70102         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70103
70104 2006-09-25  Jim Meyering  <jim@meyering.net>
70105
70106         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70107         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70108
70109 2006-09-25  Eric Blake  <ebb9@byu.net>
70110
70111         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70112         exec's in 2006-09-18 patch when shuffling fds.
70113
70114 2006-09-25  Bruno Haible  <bruno@clisp.org>
70115
70116         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70117         Reported by Jim Meyering.
70118
70119 2006-09-24  Jim Meyering  <jim@meyering.net>
70120
70121         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70122         compare a pointer against a literal "0".  That caused failures with
70123         at least HP-UX's hpcc.
70124
70125 2006-09-22  Simon Josefsson  <jas@extundo.com>
70126
70127         * modules/gc-sha1:
70128         * modules/gc-md4:
70129         * modules/gc-hmac-sha1:
70130         * modules/gc-hmac-md5:
70131         * modules/gc-des:
70132         * modules/gc-arcfour: Distribute more files.
70133
70134 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70135
70136         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70137         (gl_linked_iterator_from_to): Initialize struct completely.
70138         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70139         (gl_tree_iterator_from_to): Likewise
70140         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70141         * lib/gl_array_list.c [lint] (gl_array_iterator)
70142         (gl_array_iterator_from_to): Likewise.
70143         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70144         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70145         (gl_carray_iterator_from_to): Likewise.
70146
70147         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70148         * lib/md4.c (md4_process_block): Remove unused variable.
70149         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70150         parentheses for clarity.
70151
70152 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70153
70154         * modules/bison-i18n (Depends-on): Add gettext.
70155
70156 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70157
70158         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70159         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70160         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70161         also add missing comma that caused broken test.
70162         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70163         stdlib.h, for `abort'.
70164         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70165         variables.
70166         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70167         include unistd.h if present, for `rmdir'.
70168         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70169         variables.
70170         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70171         in the process include standard headers for prototypes.
70172         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70173         gets declared on GNU/Linux.
70174         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70175         unistd.h, for `rmdir'.
70176         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70177
70178         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70179         always true.
70180         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70181
70182         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70183
70184 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70185
70186         * gnulib-tool (func_version): Create output all at once.  This
70187         may help avoid triggering unnecessary SIGPIPEs, and at any
70188         rate it doesn't hurt.
70189
70190 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70191             Bruno Haible  <bruno@clisp.org>
70192
70193         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70194         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70195         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70196
70197         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70198         (gl_FUNC_VASPRINTF): Invoke it.
70199
70200 2006-09-22  Bruno Haible  <bruno@clisp.org>
70201
70202         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70203         getloadavg.c as first argument.
70204
70205 2006-09-22  Bruno Haible  <bruno@clisp.org>
70206
70207         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70208         at the beginning of the gl_INIT macro.
70209         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70210         gl_GETLOADAVG.
70211
70212 2006-09-22  Bruno Haible  <bruno@clisp.org>
70213
70214         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70215         module.
70216         Suggested by Ralf Wildenhues.
70217
70218 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70219
70220         Import this patch from libc:
70221
70222         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70223
70224         * lib/regex_internal.c (re_string_reconstruct): Handle
70225         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70226         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70227         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70228         re_string_context_at.
70229
70230         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70231         now requires it.
70232         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70233         gl_REGEX now does it for us.
70234         (gl_REGEX): Add test taken from
70235         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70236
70237         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70238         Check that large offsets work.  Modernize Autoconf usages.
70239         Prefer "yes" to mean a good thing rather than a bad.
70240         Don't put "#define mkstemp" in config.h, as this might interfere
70241         with standard system headers that "#define mkstemp mkstemp64".
70242
70243         * modules/mkstemp (Depends-on): Add extensions, so that
70244         mkstemp is visible on some platforms.
70245         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70246         (Include): Change to "mkstemp.h" from <stdlib.h>.
70247         (Files): Add mkstemp.h.
70248
70249         * lib/mkstemp.h: New file, since some standard headers
70250         #define mkstemp.
70251         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70252         Include "mkstemp.h".
70253         Make the _LIBC code resemble glibc original more,
70254         e.g., use K&R style.
70255         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70256         (mkstemp): Remove, since mkstemp.h does this for us.
70257         * lib/stdlib--.h: Include mkstemp.h.
70258
70259         Import this patch from libc:
70260
70261         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70262
70263         * lib/tempname.c (__gen_tempname): Change attempts_min
70264         into a macro.  Use preprocessor to decide how to initialize
70265         attempts [Coverity CID 67].
70266
70267 2006-09-20  Bruno Haible  <bruno@clisp.org>
70268
70269         * lib/mkdtemp.c: Import from libc.
70270         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70271                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70272                 attempts_min into a macro.  Use preprocessor to decide how to
70273                 initialize attempts [Coverity CID 67].
70274         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70275                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70276                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70277
70278 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70279
70280         * gnulib-tool (func_exit): New function, to allow to pass the
70281         exit status portably through the trap.  Use everywhere.
70282         (--help, --version): Signal a write error.
70283         (trap): catch SIGPIPE, for write errors.
70284         Exit at the end of the trap, with the correct exit status.
70285
70286 2006-09-19  Karl Berry  <karl@gnu.org>
70287
70288         * doc/gnulib.texi: note about the license texinfo files.
70289
70290 2006-09-19  Eric Blake  <ebb9@byu.net>
70291
70292         * gnulib-tool: Avoid space-tab.
70293
70294 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70297         that prevented coreutils 6.1 from building.  Problem reported
70298         by Petter Reinholdtsen.
70299
70300 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70301
70302         * gnulib-tool (avoidlist): Fix typo that broke options like
70303         --avoid=lock that are used by coreutils bootstrap.
70304
70305 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70306
70307         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70308         more systematically.
70309
70310 2006-09-18  Jim Meyering  <jim@meyering.net>
70311
70312         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70313
70314 2006-09-18  Bruno Haible  <bruno@clisp.org>
70315
70316         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70317
70318 2006-09-18  Bruno Haible  <bruno@clisp.org>
70319
70320         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70321         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70322         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70323         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70324         * m4/gettext.m4: Require autoconf >= 2.52.
70325         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70326         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70327         of gl_cv_header_inttypes_h.
70328
70329 2006-09-18  Bruno Haible  <bruno@clisp.org>
70330
70331         * lib/javaversion.c: Include configmake.h.
70332
70333 2006-09-18  Bruno Haible  <bruno@clisp.org>
70334
70335         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70336         avoid that the while loops be executed in a subshell.
70337
70338 2006-09-18  Bruno Haible  <bruno@clisp.org>
70339
70340         * MODULES.html.sh (func_module): Break long lines.
70341         Suggested by Bruce Korb <bkorb@gnu.org>.
70342
70343 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70344
70345         Speed up by a factor of 1.12.
70346         * gnulib-tool (nl): New variable.
70347         (func_import): Rewrite include directive extraction to only read each
70348         directive once.
70349
70350 2006-09-17  Bruno Haible  <bruno@clisp.org>
70351
70352         * modules/javaversion (Makefile.am): Remove DEFS setting.
70353         (Depends-on): Add configmake, for PKGDATADIR definition.
70354
70355 2006-09-17  Bruno Haible  <bruno@clisp.org>
70356
70357         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70358
70359 2006-09-17  Bruno Haible  <bruno@clisp.org>
70360
70361         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70362         (func_modules_transitive_closure, func_modules_add_dummy,
70363         func_modules_to_filelist, func_import, func_create_testdir,
70364         func_create_megatestdir, ...): Use it wherever possible.
70365         Suggested by Ralf Wildenhues.
70366
70367 2006-09-16  Karl Berry  <karl@gnu.org>
70368
70369         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70370         to avoid sectioning errors.
70371         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70372         [ifinfo]: blank line after @center-ed titles.
70373         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70374         Spell FSF address consistently with others.
70375         (These changes approved by rms.)
70376
70377 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70378
70379         Speed up by a factor of 1.61.
70380         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70381         already checked module names again.
70382
70383 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70384
70385         Speed up by a factor of 1.13.
70386         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70387         for new_files, and the input to func_add_or_update.
70388
70389 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70390
70391         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70392         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70393
70394 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70395
70396         * modules/mkancesdirs (Depends-on): Add fcntl.
70397         * modules/savewd: New file.
70398         * MODULES.html.sh (File system functions): Add savewd.
70399
70400         * modules/configmake (Makefile.am): Add support for the
70401         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70402
70403 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70404
70405         * m4/savewd.m4: New file.
70406
70407 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70408
70409         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70410         (dirchownmod): New arg FD.  All callers changed.
70411         Use FD rather than opening the directory ourself, as opening is
70412         now the caller's responsibility.
70413         * lib/dirchownmod.h: Likewise.
70414         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70415         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70416         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70417         (test_dir): Remove.
70418         (mkancesdirs): Return length of prefix of FILE that has already
70419         been made, or -2 if there is a child doing the work.  Redo
70420         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70421         ".", and treat ".." specially since it might stray back into
70422         already-created areas.  Use a subprocess if necessary.  New arg
70423         WD; all users changed.  MAKE_DIR function should now return 1
70424         if it creates a directory that is not readable.  Return -2 if
70425         a child process is spun off.
70426         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70427         Adjust signature to match code.
70428         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70429         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70430         all users changed.
70431         * lib/savewd.c, lib/savewd.h: New files.
70432
70433 2006-09-15  Jim Meyering  <jim@meyering.net>
70434
70435         * modules/rename-dest-slash: New module.
70436         * MODULES.html.sh (posix_compat): Add it here.
70437
70438         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70439
70440 2006-09-15  Jim Meyering  <jim@meyering.net>
70441
70442         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70443         file.
70444
70445         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70446
70447 2006-09-15  Jim Meyering  <jim@meyering.net>
70448
70449         * lib/rename-dest-slash.c (has_trailing_slash): Use
70450         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70451         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70452         test before testing whether SRC is a directory.
70453         Suggestions from Bruno Haible.
70454
70455         Avoid a warning about an unused variable.
70456         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70457         into the #ifdef block where it's used.
70458
70459         * lib/rename-dest-slash.c: New file.
70460
70461 2006-09-14  Bruno Haible  <bruno@clisp.org>
70462
70463         * lib/allocsa.c: Include <config.h> unconditionally.
70464         * lib/asnprintf.c: Likewise.
70465         * lib/asprintf.c: Likewise.
70466         * lib/c-strcasecmp.c: Likewise.
70467         * lib/c-strcasestr.c: Likewise.
70468         * lib/c-strncasecmp.c: Likewise.
70469         * lib/c-strstr.c: Likewise.
70470         * lib/classpath.c: Likewise.
70471         * lib/clean-temp.c: Likewise.
70472         * lib/concatpath.c: Likewise.
70473         * lib/copy-file.c: Likewise.
70474         * lib/csharpcomp.c: Likewise.
70475         * lib/csharpexec.c: Likewise.
70476         * lib/execute.c: Likewise.
70477         * lib/fatal-signal.c: Likewise.
70478         * lib/findprog.c: Likewise.
70479         * lib/fwriteerror.c: Likewise.
70480         * lib/gl_array_list.c: Likewise.
70481         * lib/gl_array_oset.c: Likewise.
70482         * lib/gl_avltree_list.c: Likewise.
70483         * lib/gl_avltree_oset.c: Likewise.
70484         * lib/gl_avltreehash_list.c: Likewise.
70485         * lib/gl_carray_list.c: Likewise.
70486         * lib/gl_linked_list.c: Likewise.
70487         * lib/gl_linkedhash_list.c: Likewise.
70488         * lib/gl_list.c: Likewise.
70489         * lib/gl_oset.c: Likewise.
70490         * lib/gl_rbtree_list.c: Likewise.
70491         * lib/gl_rbtree_oset.c: Likewise.
70492         * lib/gl_rbtreehash_list.c: Likewise.
70493         * lib/imaxabs.c: Likewise.
70494         * lib/imaxdiv.c: Likewise.
70495         * lib/javacomp.c: Likewise.
70496         * lib/javaexec.c: Likewise.
70497         * lib/javaversion.c: Likewise.
70498         * lib/linebreak.c: Likewise.
70499         * lib/localcharset.c: Likewise.
70500         * lib/lock.c: Likewise.
70501         * lib/mbchar.c: Likewise.
70502         * lib/mbswidth.c: Likewise.
70503         * lib/mkdtemp.c: Likewise.
70504         * lib/pipe.c: Likewise.
70505         * lib/printf-args.c: Likewise.
70506         * lib/printf-parse.c: Likewise.
70507         * lib/progname.c: Likewise.
70508         * lib/progreloc.c: Likewise.
70509         * lib/readlink.c: Likewise.
70510         * lib/sh-quote.c: Likewise.
70511         * lib/stpcpy.c: Likewise.
70512         * lib/stpncpy.c: Likewise.
70513         * lib/strcasecmp.c: Likewise.
70514         * lib/strcasestr.c: Likewise.
70515         * lib/strcspn.c: Likewise.
70516         * lib/striconv.c: Likewise.
70517         * lib/strncasecmp.c: Likewise.
70518         * lib/strnlen1.c: Likewise.
70519         * lib/strstr.c: Likewise.
70520         * lib/strtok_r.c: Likewise.
70521         * lib/tls.c: Likewise.
70522         * lib/tmpdir.c: Likewise.
70523         * lib/unicodeio.c: Likewise.
70524         * lib/unsetenv.c: Likewise.
70525         * lib/vasnprintf.c: Likewise.
70526         * lib/vasprintf.c: Likewise.
70527         * lib/wait-process.c: Likewise.
70528         * lib/xallocsa.c: Likewise.
70529         * lib/xsetenv.c: Likewise.
70530         * lib/xstriconv.c: Likewise.
70531
70532 2006-09-13  Simon Josefsson  <jas@extundo.com>
70533
70534         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70535         that internally, suggested by Ralf Wildenhues
70536         <Ralf.Wildenhues@gmx.de>.
70537
70538 2006-09-13  Simon Josefsson  <jas@extundo.com>
70539
70540         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70541         @LIBOBJS@.
70542         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70543
70544 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70545
70546         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70547         longer worry about uses that don't define HAVE_CONFIG_H.
70548         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70549         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70550         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70551         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70552         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70553         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70554         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70555         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70556         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70557         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70558         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70559         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70560         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70561         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70562         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70563         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70564         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70565         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70566         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70567         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70568         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70569         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70570         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70571         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70572         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70573         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70574         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70575         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70576         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70577         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70578         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70579         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70580         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70581         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70582         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70583         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70584         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70585         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70586         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70587         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70588         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70589         Likewise.
70590
70591 2006-09-13  Eric Blake  <ebb9@byu.net>
70592
70593         * lib/getopt.c: Fix typo in last commit.
70594
70595 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70596
70597         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70598         dgettext.
70599
70600 2006-09-12  Jim Meyering  <jim@meyering.net>
70601
70602         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70603         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70604         Reported by Nelson H. F. Beebe.
70605
70606 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70607
70608         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70609         program_invocation_name and program_invocation_short_name are
70610         initialized.
70611         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70612         and program_invocation_short_name to argp.h, so they are visible
70613         to user programs.
70614         * lib/argp.h: Likewise
70615
70616 2006-09-10  Bruno Haible  <bruno@clisp.org>
70617
70618         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70619         m4/inttypes_h.m4, m4/uintmax_t.m4.
70620
70621 2006-09-10  Bruno Haible  <bruno@clisp.org>
70622
70623         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70624         gl_AC_TYPE_UINTMAX_T.
70625
70626 2006-09-10  Bruno Haible  <bruno@clisp.org>
70627
70628         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70629
70630 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70631
70632         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70633         convention.  Text proposed by Bruno Haible.
70634         (struct argp_option): Document the use of N_() wrappers.
70635
70636         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70637         '\v', and translate the two parts separately, instead of feeding
70638         the whole string to gettext.  This allows to exclude
70639         '\v' from the strings visible to the translator by writing doc
70640         strings as N_("..") "\v" N_("..").
70641
70642 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70643
70644         * config/srclist.txt: Undo latest change; the bug was fixed.
70645
70646 2006-09-09  Bruno Haible  <bruno@clisp.org>
70647
70648         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70649         assignments if building a library without libtool.
70650         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70651         in func_emit_lib_Makefile_am.
70652         (func_import): When building a static library libfoo.a, arrange to
70653         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70654         (func_create_testdir): Likewise.
70655         * modules/gc (configure.ac, Makefile.am): If building statically,
70656         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70657         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70658         * modules/striconv (configure.ac, Makefile.am): Likewise.
70659         Based on a suggestion by Ralf Wildenhues.
70660
70661 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70662
70663         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70664         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70665         Also:
70666
70667         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70668         Add year_2050_test to catch glibc bug 2821
70669         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70670
70671         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70672         Prefer #ifdef to #if.
70673
70674         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70675         Return from 'main' instead of calling 'exit'.
70676
70677 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70678
70679         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70680         returned the maximum time_t value rather than (time_t) -1.
70681         Problem originally reported by William Bardwell
70682         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70683
70684         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70685         Moved to here ...
70686         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70687         ... from here.
70688
70689 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70690
70691         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70692         2821 is fixed.
70693
70694 2006-09-08  Jim Meyering  <jim@meyering.net>
70695
70696         Don't make generated files read-only.  That would bother too many
70697         people.  However, do retain the ability to work when targets are
70698         read-only: remove the destination and temporary files before writing
70699         them (when generated via sed or echo), or by using the -f option for
70700         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
70701         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70702         * modules/byteswap, modules/configmake, modules/fcntl:
70703         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70704         * modules/localcharset, modules/netinet_in, modules/poll:
70705         * modules/stdbool, modules/stdint, modules/sys_select:
70706         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70707
70708 2006-09-08  Jim Meyering  <jim@meyering.net>
70709
70710         Avoid new build failure on FreeBSD 6.0.
70711         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
70712         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
70713         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
70714
70715 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70716
70717         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
70718
70719 2006-09-07  Jim Meyering  <jim@meyering.net>
70720
70721         Fix global typo in last change: use chmod u-w, not chmod u-x.
70722         Spotted by Paul Eggert and Bruce Korb.
70723         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70724         * modules/byteswap, modules/configmake, modules/fcntl:
70725         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70726         * modules/localcharset, modules/netinet_in, modules/poll:
70727         * modules/stdbool, modules/stdint, modules/sys_select:
70728         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70729
70730 2006-09-06  Jim Meyering  <jim@meyering.net>
70731
70732         Make generated files be read-only.
70733         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
70734         Ensure that each generated file is now read-only.
70735         * modules/argz: Likewise.
70736         * modules/arpa_inet: Likewise.
70737         * modules/byteswap: Likewise.
70738         * modules/configmake: Likewise.
70739         * modules/fcntl: Likewise.
70740         * modules/fnmatch: Likewise.
70741         * modules/getopt: Likewise.
70742         * modules/glob: Likewise.
70743         * modules/inttypes: Likewise.
70744         * modules/netinet_in: Likewise.
70745         * modules/poll: Likewise.
70746         * modules/stdbool: Likewise.
70747         * modules/stdint: Likewise.
70748         * modules/sys_select: Likewise.
70749         * modules/sys_socket: Likewise.
70750         * modules/sys_stat: Likewise.
70751         * modules/sysexits: Likewise.
70752         * modules/localcharset: Same as above, but continue using temporary
70753         file named "t-$@" (why different?) rather than the "$@-t" used
70754         everywhere else.
70755
70756         * modules/sysexits (Makefile.am): Replace literal occurrences
70757         of "sysexit.h" more readable, and more consistent, "$@".
70758
70759 2006-09-06  Bruno Haible  <bruno@clisp.org>
70760
70761         * modules/striconv: New file.
70762         * modules/xstriconv: New file.
70763         * MODULES.html.sh (Internationalization functions): Add striconv,
70764         xstriconv.
70765
70766 2006-09-06  Bruno Haible  <bruno@clisp.org>
70767
70768         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70769         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
70770         not using libtool correctly.
70771
70772 2006-09-06  Bruno Haible  <bruno@clisp.org>
70773
70774         * lib/striconv.h: New file.
70775         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
70776         iconvstring.c.
70777         * lib/xstriconv.h: New file.
70778         * lib/xstriconv.c: New file.
70779
70780 2006-09-06  Bruno Haible  <bruno@clisp.org>
70781
70782         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70783         lib_..._LDFLAGS.
70784
70785 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70786
70787         * lib/argz_.h: Sync from Libtool.
70788
70789         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70790                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70791
70792         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70793
70794 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70795
70796         * modules/trim: New file.
70797
70798 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70799
70800         * lib/trim.h: New file.
70801         * lib/trim.c: New file.
70802
70803 2006-09-05  Bruno Haible  <bruno@clisp.org>
70804
70805         * MODULES.html.sh (String handling): Add trim.
70806
70807 2006-09-04  Karl Berry  <karl@gnu.org>
70808
70809         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70810         until next release.
70811
70812 2006-09-03  Bruno Haible  <bruno@clisp.org>
70813
70814         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70815         correctly.
70816
70817 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70820         not gl_GETLOADAVG.  Omit unneeded semicolons.
70821         Problems reported by Ralf Wildenhues in
70822         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70823         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70824         at the end, which is the usual gnulib style.
70825
70826         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70827         of doing all the work ourselves.
70828         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70829         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70830
70831 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70834         Problem reported by Ralf Wildenhues in
70835         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70836
70837         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70838         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70839
70840 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70841
70842         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70843         yesterday's patch by changing test -n to test -z.
70844
70845 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70846
70847         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70848         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70849         the former is now obsolescent.
70850
70851         * modules/chdir-long (Depends-on): Add fcntl.
70852
70853 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70854
70855         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70856         obsolescent, and programs should use gnulib instead.
70857         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70858         but with prefixes changed.
70859
70860 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70861
70862         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70863         or stdbool.h, because they might not exist while configuring.
70864
70865         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70866         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70867         does that for us.
70868         (O_DIRECTORY): Remove.
70869
70870 2006-08-31  Eric Blake  <ebb9@byu.net>
70871
70872         * gnulib-tool: Don't let emacs change spaces to TAB.
70873
70874 2006-08-31  Bruno Haible  <bruno@clisp.org>
70875
70876         * gnulib-tool: When calling func_import more than once, do it in a
70877         subshell.
70878         Reported by Eric Blake <ebb9@byu.net>.
70879
70880 2006-08-31  Bruno Haible  <bruno@clisp.org>
70881
70882         * gnulib-tool (nl): Remove variable.
70883         (sed_transform_lib_file): Use more robust test for config-h module.
70884         (func_import): Fix typo in 2006-08-25 patch.
70885
70886 2006-08-31  Bruno Haible  <bruno@clisp.org>
70887
70888         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70889         specified, augment Makefile.am variables instead of assigning them.
70890
70891 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         Work around a bug in both the Linux and SunOS 64-bit kernels:
70894         nanosleep mishandles sleeps for longer than 2**31 seconds.
70895         Problem reported by Frank v Waveren in
70896         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70897         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70898         Check for nanosleep bug.
70899         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70900
70901 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70902
70903         Work around a bug in both the Linux and SunOS 64-bit kernels:
70904         nanosleep mishandles sleeps for longer than 2**31 seconds.
70905         Problem reported by Frank v Waveren in
70906         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70907         * lib/nanosleep.c (BILLION): New constant.
70908         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70909         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70910         implementation.
70911
70912 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70913
70914         * modules/nanosleep (Depends-on): Add gettime.
70915
70916 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70917         and Simon Josefsson  <jas@extundo.com>
70918         and Oskar Liljeblad  <oskar@osk.mine.nu>
70919
70920         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70921         * gnulib-tool (func_import): New license type 'unmodifiable license
70922         text'.
70923         * modules/fdl: Use it.  Longer description.
70924         * module/gpl, module/lgpl: New files.
70925
70926 2006-08-30  Jim Meyering  <jim@meyering.net>
70927
70928         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70929         shadowing the parameter.
70930
70931 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70932
70933         Sync from Libtool:
70934
70935         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70936
70937         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70938         sharing with gnulib.  Report by Eric Blake.
70939
70940 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70941
70942         * modules/isapipe: New file.
70943         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70944
70945 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * modules/configmake (Makefile.am): Add a comment, and omit
70948         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70949         by Bruno Haible.
70950
70951 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70952
70953         * m4/isapipe.m4: New file.
70954
70955 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * lib/isapipe.c, lib/isapipe.h: New files.
70958
70959 2006-08-29  Jim Meyering  <jim@meyering.net>
70960
70961         * modules/configmake (Makefile.am): Make configmake.h depend on
70962         Makefile.  Otherwise, a stale configmake.h could hang around.
70963
70964 2006-08-29  Eric Blake  <ebb9@byu.net>
70965
70966         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70967         resolution of upstream bug 3044.
70968
70969 2006-08-29  Bruno Haible  <bruno@clisp.org>
70970
70971         * modules/localcharset (Depends-on): Add configmake.
70972         (Makefile.am): Remove setting of LIBDIR through DEFS.
70973
70974 2006-08-29  Bruno Haible  <bruno@clisp.org>
70975
70976         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70977         defined.
70978
70979 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         * modules/fcntl: New file.
70982         * modules/chdir-safer (Depends-on): Add fcntl.
70983         * modules/fts: Likewise.
70984         * modules/mkdir-p: Likewise.
70985
70986         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70987         This undoes the most recent change, since we're now addressing the
70988         problem in a different way.
70989
70990         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70991         into output, since the output might be called Makefile.am even
70992         if $makefile_name is something different.
70993         (func_import): Use $makefile_am rather than
70994         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70995         empty.
70996
70997         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70998
70999 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71002         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71003         recent change to stdint.m4, since we're now addressing the problem in a
71004         different way.
71005
71006 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71007
71008         * m4/fcntl_h.m4: New file.
71009
71010 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71011
71012         * lib/fcntl_.h: New file.
71013         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71014         the fcntl module.
71015         * lib/dirchownmod.c: Likewise.
71016         * lib/fts.c: Likewise.
71017
71018         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71019         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71020         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71021         just before including <inttypes.h>, to avoid circular inclusion.
71022
71023 2006-08-28  Jim Meyering  <jim@meyering.net>
71024
71025         * doc/visibility.texi: Actually read and correct the grammar of the
71026         sentence affected by yesterday's change.
71027
71028 2006-08-28  Eric Blake  <ebb9@byu.net>
71029
71030         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71031         needs wrapper.
71032
71033 2006-08-28  Eric Blake  <ebb9@byu.net>
71034
71035         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71036
71037 2006-08-28  Eric Blake  <ebb9@byu.net>
71038
71039         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71040
71041 2006-08-28  Bruno Haible  <bruno@clisp.org>
71042
71043         * modules/c-strstr: New file, from GNU gettext.
71044         * MODULES.html.sh (String handling): Add c-strstr.
71045
71046 2006-08-28  Bruno Haible  <bruno@clisp.org>
71047
71048         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71049         macros.
71050         Reported by Eric Blake.
71051
71052 2006-08-28  Bruno Haible  <bruno@clisp.org>
71053
71054         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71055         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71056         * lib/vasprintf.c: Include errno.h, limits.h.
71057         (EOVERFLOW): New fallback definition.
71058         (vasprintf): Test here whether the string length is > INT_MAX.
71059         * lib/vsnprintf.c: Include errno.h, limits.h.
71060         (EOVERFLOW): New fallback definition.
71061         (vsnprintf): Fix bug when generated string was too long for the buffer.
71062         Test here whether the string length is > INT_MAX.
71063
71064 2006-08-28  Bruno Haible  <bruno@clisp.org>
71065
71066         * lib/inttypes_.h (SCNX*): Remove definitions.
71067         Reported by Eric Blake.
71068
71069 2006-08-28  Bruno Haible  <bruno@clisp.org>
71070
71071         * lib/c-strstr.h: New file, from GNU gettext.
71072         * lib/c-strstr.c: New file, from GNU gettext.
71073
71074 2006-08-28  Bruno Haible  <bruno@clisp.org>
71075
71076         * gnulib-tool: Reorder some statements.
71077
71078 2006-08-28  Bruno Haible  <bruno@clisp.org>
71079
71080         * gnulib-tool: New option --makefile-name.
71081         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71082         $makefile_name.
71083         (func_import): Write $makefile_name to the cache file, and read it from
71084         there unless explicitly specified. Use $makefile_name as file name
71085         instead of Makefile.am. Adjust the recommendations accordingly.
71086
71087 2006-08-28  Bruno Haible  <bruno@clisp.org>
71088
71089         * gnulib-tool (func_verify_module): Check against misapplying patch.
71090
71091 2006-08-28  Bruno Haible  <bruno@clisp.org>
71092
71093         * gnulib-tool (func_relativize, func_relconcat): New functions.
71094         Give an error if --local-dir is given with --update.
71095         Remove trailing slashes from $local_gnulib_dir.
71096         (func_import): Store the relativized $local_gnulib_dir in
71097         gnulib-cache.m4, and read it from there if not specified explicitly.
71098
71099 2006-08-28  Bruno Haible  <bruno@clisp.org>
71100
71101         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71102         is the current directory. Respect also $local_gnulib_dir.
71103
71104 2006-08-28  Bruno Haible  <bruno@clisp.org>
71105             Simon Josefsson  <jas@extundo.com>
71106
71107         BeOS portability.
71108         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71109
71110 2006-08-27  Jim Meyering  <jim@meyering.net>
71111
71112         * doc/visibility.texi: Remove duplicate word: "pointer".
71113
71114 2006-08-26  Bruno Haible  <bruno@clisp.org>
71115
71116         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71117         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71118         (Makefile.am): Create inttypes.h from inttypes_.h.
71119         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71120
71121         * modules/imaxabs: New file.
71122
71123         * modules/imaxdiv: New file.
71124
71125 2006-08-26  Bruno Haible  <bruno@clisp.org>
71126
71127         * m4/inttypes.m4: New file.
71128         * m4/_inttypes_h.m4: Remove file.
71129         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71130         PRI_MACROS_BROKEN.
71131         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71132
71133         * m4/imaxabs.m4: New file.
71134
71135         * m4/imaxdiv.m4: New file.
71136
71137 2006-08-26  Bruno Haible  <bruno@clisp.org>
71138
71139         * lib/inttypes_.h: New file.
71140         * lib/inttypes.h: Remove file.
71141         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71142
71143         * lib/imaxabs.c: New file.
71144
71145         * lib/imaxdiv.c: New file.
71146
71147 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         New config-h module, so that "make" output needn't be cluttered
71150         by -DHAVE_CONFIG_H.
71151         * MODULES.html.sh (Support for building libraries and executables):
71152         Add config-h.
71153         * modules/config-h: New file.
71154         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71155         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71156         the config-h module is used.
71157
71158         New configmake module, so that "make" output needn't be cluttered
71159         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71160         * MODULES.html.sh (Support for building libraries and executables):
71161         Add configmake.
71162         * modules/configmake: New file.
71163
71164 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71165
71166         * m4/config-h.m4: New file.
71167
71168 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71169
71170         * config/srclist.txt: Add elisp-comp.
71171
71172 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71173
71174         * MODULES.html.sh (Support for building libraries and executables):
71175         Add elisp-comp.
71176         * build-aux/elisp-comp: New file.
71177         * modules/elisp-comp: New file.
71178
71179 2006-08-24  Bruno Haible  <bruno@clisp.org>
71180
71181         * gnulib-tool (func_create_testdir): Use non-default values of
71182         sourcebase and m4base.
71183
71184 2006-08-24  Bruno Haible  <bruno@clisp.org>
71185
71186         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71187         HTML structure.
71188
71189 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         * modules/openat (Depends-on): Add lchown.
71192
71193 2006-08-23  Bruno Haible  <bruno@clisp.org>
71194
71195         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71196         of gl_LOCK_EARLY instead of gl_LOCK.
71197
71198 2006-08-23  Bruno Haible  <bruno@clisp.org>
71199
71200         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71201         on OSF/1 to no.
71202         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71203
71204 2006-08-23  Bruno Haible  <bruno@clisp.org>
71205
71206         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71207         as unusable.
71208
71209         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71210         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71211         (gl_LOCK): New macro.
71212
71213 2006-08-22  Simon Josefsson  <jas@extundo.com>
71214
71215         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71216         to md5 module.
71217
71218 2006-08-22  Simon Josefsson  <jas@extundo.com>
71219
71220         * MODULES.html.sh: Add "Support for maintaining and release
71221         projects".
71222
71223         * build-aux/gnupload: New file, from coreutils.
71224
71225 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         Avoid the need for AC_LIBSOURCES in m4 macros.
71228         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71229         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71230         * modules/check-version (EXTRA_DIST): Add check-version.h.
71231         * modules/crc (EXTRA_DIST): Add crc.h.
71232         * modules/des (EXTRA_DIST): Add des.h.
71233         * modules/gc (EXTRA_DIST): Add gc.h.
71234         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71235         * modules/getline (EXTRA_DIST): Add getline.h.
71236         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71237         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71238         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71239         * modules/md2 (EXTRA_DIST): Add md2.h.
71240         * modules/md4 (EXTRA_DIST): Add md4.h.
71241         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71242         * modules/read-file (EXTRA_DIST): Add read-file.h.
71243         * modules/readline (EXTRA_DIST): Add readline.h.
71244         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71245         rijndael-api-fst.h.
71246
71247 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71248
71249         * m4/rijndael.m4 (gl_ARCFOUR):
71250         * m4/arctwo.m4 (gl_ARCTWO):
71251         * m4/check-version.m4 (gl_CHECK_VERSION):
71252         * m4/crc.m4 (gl_CRC):
71253         * m4/des.m4 (gl_DES):
71254         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71255         * m4/gc.m4 (gl_GC):
71256         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71257         * m4/getline.m4 (gl_FUNC_GETLINE):
71258         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71259         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71260         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71261         * m4/md2.m4 (gl_MD2):
71262         * m4/md4.m4 (gl_MD4):
71263         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71264         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71265         * m4/readline.m4 (gl_FUNC_READLINE):
71266         * m4/rijndael.m4 (gl_RIJNDAEL):
71267         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71268         to get the necessary .h files and whatnot.
71269
71270 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71271
71272         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71273         gnulib rather than the other way around.
71274         * config/srclistvars.sh (COREUTILS): Remove.
71275
71276 2006-08-22  Jim Meyering  <jim@meyering.net>
71277
71278         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71279
71280         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71281
71282 2006-08-22  Eric Blake  <ebb9@byu.net>
71283
71284         * modules/regexprops-generic: New file.
71285         * MODULES.html.sh (Support for building documentation): List it.
71286
71287 2006-08-22  Eric Blake  <ebb9@byu.net>
71288
71289         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71290         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71291         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71292         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71293
71294 2006-08-22  Bruno Haible  <bruno@clisp.org>
71295
71296         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71297         and lib_LTLIBRARIES like the other lib_* variables.
71298
71299 2006-08-22  Bruno Haible  <bruno@clisp.org>
71300
71301         * build-aux/x-to-1.in: New file, from GNU gettext.
71302
71303 2006-08-22  Bruno Haible  <bruno@clisp.org>
71304
71305         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71306         <utmpx.h> exists.
71307
71308 2006-08-22  Bruno Haible  <bruno@clisp.org>
71309
71310         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71311         <utmpx.h> exists.
71312
71313 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         BeOS portability.
71316         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71317         exist.
71318         Problem reported by Bruno Haible.
71319
71320 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71321
71322         Avoid the need for AC_LIBSOURCES in m4 macros.
71323         * modules/acl (EXTRA_DIST): Add acl.h.
71324         * modules/argmatch (Files): Add m4/argmatch.m4.
71325         (configure.ac): Add gl_ARGMATCH.
71326         (EXTRA_DIST): Renamed from lib_SOURCES, for
71327         consistency with the other modules.  Remove argmatch.c.
71328         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71329         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71330         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71331         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71332         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71333         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71334         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71335         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71336         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71337         * modules/closeout (EXTRA_DIST): Add closeout.h.
71338         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71339         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71340         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71341         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71342         dirname.h; remove basename.c and stripslash.c.
71343         * modules/exclude (EXTRA_DIST): Add exclude.h.
71344         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71345         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71346         * modules/file-type (EXTRA_DIST): Add file-type.h.
71347         * modules/filemode (EXTRA_DIST): Add filemode.h.
71348         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71349         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71350         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71351         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71352         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71353         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71354         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71355         * modules/getdate (EXTRA_DIST): Add getdate.c.
71356         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71357         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71358         * modules/getpass (EXTRA_DIST): Add getpass.h.
71359         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71360         * modules/group-member (EXTRA_DIST): Add group-member.h.
71361         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71362         * modules/hash (EXTRA_DIST): Add hash.h.
71363         * modules/human (EXTRA_DIST): Add human.h.
71364         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71365         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71366         * modules/lchown (EXTRA_DIST): Add lchown.h.
71367         * modules/long-options (EXTRA_DIST): Add long-options.h.
71368         * modules/lstat (EXTRA_DIST): Add lstat.h.
71369         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71370         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71371         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71372         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71373         * modules/memxor (EXTRA_DIST): Add memxor.h.
71374         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71375         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71376         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71377         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71378         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71379         * modules/physmem (EXTRA_DIST): Add physmem.h.
71380         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71381         * modules/posixver (EXTRA_DIST): Add posixver.h.
71382         * modules/quote (EXTRA_DIST): Add quote.h.
71383         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71384         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71385         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71386         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71387         regex_internal.h regexec.c.
71388         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71389         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71390         * modules/same (EXTRA_DIST): Add same.h.
71391         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71392         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71393         * modules/savedir (EXTRA_DIST): Add savedir.h.
71394         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71395         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71396         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71397         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71398         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71399         * modules/strdup (EXTRA_DIST): Add strdup.h.
71400         * modules/strftime (EXTRA_DIST): Add strftime.h.
71401         * modules/strndup (EXTRA_DIST): Add strndup.h.
71402         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71403         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71404         * modules/time_r (EXTRA_DIST): Add time_r.h.
71405         * modules/timespec (EXTRA_DIST): Add timespec.h.
71406         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71407         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71408         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71409         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71410         * modules/userspec (EXTRA_DIST): Add userspec.h.
71411         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71412         * modules/utimens (EXTRA_DIST): Add utimens.h.
71413         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71414         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71415         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71416         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71417         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71418         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71419         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71420         * modules/yesno (EXTRA_DIST): Add yesno.h.
71421
71422 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71425
71426         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71427         * m4/dev-ino.m4, same-inode.m4: Remove.
71428
71429         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71430         * m4/acl.m4 (AC_FUNC_ACL):
71431         * m4/backupfile.m4 (gl_BACKUPFILE):
71432         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71433         * m4/canon-host.m4 (gl_CANON_HOST):
71434         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71435         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71436         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71437         * m4/cloexec.m4 (gl_CLOEXEC):
71438         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71439         * m4/closeout.m4 (gl_CLOSEOUT):
71440         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71441         * m4/dirname.m4 (gl_DIRNAME):
71442         * m4/exclude.m4 (gl_EXCLUDE):
71443         * m4/exitfail.m4 (gl_EXITFAIL):
71444         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71445         * m4/file-type.m4 (gl_FILE_TYPE):
71446         * m4/filemode.m4 (gl_FILEMODE):
71447         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71448         * m4/fpending.m4 (gl_FUNC_FPENDING):
71449         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71450         * m4/fts.m4 (gl_FUNC_FTS):
71451         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71452         * m4/getdate.m4 (gl_GETDATE):
71453         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71454         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71455         * m4/getpass.m4 (gl_FUNC_GETPASS):
71456         * m4/gettime.m4 (gl_GETTIME):
71457         * m4/getugroups.m4 (gl_GETUGROUPS):
71458         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71459         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71460         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71461         * m4/hash.m4 (gl_HASH):
71462         * m4/idcache.m4 (gl_IDCACHE):
71463         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71464         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71465         * m4/long-options.m4 (gl_LONG_OPTIONS):
71466         * m4/lstat.m4 (gl_FUNC_LSTAT):
71467         * m4/md5.m4 (gl_MD5):
71468         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71469         * m4/memcoll.m4 (gl_MEMCOLL):
71470         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71471         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71472         * m4/memxor.m4 (gl_MEMXOR):
71473         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71474         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71475         * m4/modechange.m4 (gl_MODECHANGE):
71476         * m4/mountlist.m4 (gl_MOUNTLIST):
71477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71478         * m4/openat.m4 (gl_FUNC_OPENAT):
71479         * m4/pathmax.m4 (gl_PATHMAX):
71480         * m4/physmem.m4 (gl_PHYSMEM):
71481         * m4/posixtm.m4 (gl_POSIXTM):
71482         * m4/posixver.m4 (gl_POSIXVER):
71483         * m4/quote.m4 (gl_QUOTE):
71484         * m4/quotearg.m4 (gl_QUOTEARG):
71485         * m4/readtokens.m4 (gl_READTOKENS):
71486         * m4/readutmp.m4 (gl_READUTMP):
71487         * m4/regex.m4 (gl_REGEX):
71488         * m4/safe-read.m4 (gl_SAFE_READ):
71489         * m4/safe-write.m4 (gl_SAFE_WRITE):
71490         * m4/same.m4 (gl_SAME):
71491         * m4/save-cwd.m4 (gl_SAVE_CWD):
71492         * m4/savedir.m4 (gl_SAVEDIR):
71493         * m4/settime.m4 (gl_SETTIME):
71494         * m4/sha1.m4 (gl_SHA1):
71495         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71496         * m4/stat-macros.m4 (gl_STAT_MACROS):
71497         * m4/stat-time.m4 (gl_STAT_TIME):
71498         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71499         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71500         * m4/strdup.m4 (gl_FUNC_STRDUP):
71501         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71502         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71503         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71504         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71505         * m4/time_r.m4 (gl_TIME_R):
71506         * m4/timespec.m4 (gl_TIMESPEC):
71507         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71508         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71509         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71510         * m4/userspec.m4 (gl_USERSPEC):
71511         * m4/utimecmp.m4 (gl_UTIMECMP):
71512         * m4/utimens.m4 (gl_UTIMENS):
71513         * m4/xalloc.m4 (gl_XALLOC):
71514         * m4/xgetcwd.m4 (gl_XGETCWD):
71515         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71516         * m4/xreadlink.m4 (gl_XREADLINK):
71517         * m4/xstrtod.m4 (gl_XSTRTOD):
71518         * m4/yesno.m4 (gl_YESNO):
71519         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71520         to get the necessary .h files and whatnot.
71521
71522 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71523             Bruno Haible  <bruno@clisp.org>
71524
71525         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71526         /bin/sh understanding of '!' conditional negation.
71527
71528 2006-08-21  Jim Meyering  <jim@meyering.net>
71529
71530         * modules/openat (Depends-on): Really alphabetize.
71531
71532         * modules/acl (Depends-on): Add error and quote.
71533
71534         * check-module (find_included_lib_files): Add at-func.c to the
71535         ok-to-include-more-than-once white list.
71536
71537         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71538
71539 2006-08-21  Bruno Haible  <bruno@clisp.org>
71540
71541         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71542         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71543         Reported by Martin Lambers <marlam@marlam.de>.
71544
71545 2006-08-21  Bruno Haible  <bruno@clisp.org>
71546
71547         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71548         specify an installation location, don't emit a noinst_LIBRARIES or
71549         noinst_LTLIBRARIES assignment.
71550
71551 2006-08-21  Bruno Haible  <bruno@clisp.org>
71552
71553         BeOS portability.
71554         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71555         BeOS has mbrtowc() but no <wctype.h>.
71556
71557 2006-08-21  Bruno Haible  <bruno@clisp.org>
71558
71559         BeOS portability.
71560         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71561         exist.
71562
71563 2006-08-21  Bruno Haible  <bruno@clisp.org>
71564
71565         BeOS portability.
71566         * lib/mbchar.h: Include <wctype.h> only if it exists.
71567
71568 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         Remove files that are no longer needed by their respective modules.
71571         * m4/obstack.m4: Remove.
71572         * m4/strerror_r.m4: Remove.
71573         * m4/uint32_t.m4: Remove.
71574         * m4/uintptr_t.m4: Remove.
71575         * m4/ullong_max.m4: Remove.
71576         * m4/xstrtoimax.m4: Remove.
71577         * m4/xstrtoumax.m4: Remove.
71578
71579         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71580         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71581         dependencies now capture this.
71582
71583         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71584         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71585         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71586         * m4/human.m4 (gl_HUMAN): Likewise.
71587         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71588         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71589
71590         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71591
71592         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71593         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71594         stdint.
71595         * m4/human.m4 (gl_HUMAN): Likewise.
71596         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71597         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71598         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71599         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71600         * m4/xstrtol (gl_XSTRTOL): Likewise.
71601
71602         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71603         AC_TYPE_LONG_LONG_INT.
71604         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71605         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71606         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71607         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71608
71609         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71610         on stdbool.
71611
71612         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71613         (gl_PREREQ_XSTRTOUL): Remove.
71614
71615         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71616
71617         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71618         mode.
71619
71620 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         Add and change modules to make it easier for coreutils to use
71623         gnulib-tool.
71624         * modules/backupfile (Files): Remove m4/d-ino.m4.
71625         (Depends-on): Add d-ino.
71626         * modules/cycle-check (Depends-on): Add stdint.
71627         (lib_SOURCES): Add cycle-check.h.
71628         * modules/d-ino: New module.
71629         * modules/d-type: New module.
71630         * modules/error (Files): Remove m4/strerror_r.m4.
71631         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71632         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71633         m4/inttypes_h.m4, m4/uintmax_t.m4.
71634         (Depends-on): Add stdint.
71635         (lib_SOURCES): Add fsusage.h.
71636         * modules/getcwd (Files): Remove d-ino.m4.
71637         (Depends-on): Add d-ino.
71638         * modules/getndelim2 (Depends-on): Add stdint.
71639         * modules/glob (Files): Remove m4/d-type.m4.
71640         (Depends-on): Add d-type.
71641         * modules/host-os: New module.
71642         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71643         m4/inttypes_h.m4, m4/uintmax_t.m4.
71644         * Depends-on: Add stdint.
71645         (lib_SOURCES): Add human.h.
71646         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71647         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71648         m4/uintmax_t.m4, m4/ulonglong.m4.
71649         (Depends-on): Add stdint.
71650         (EXTRA_DIST): Add inttostr.h.
71651         * modules/lchmod: New module.
71652         * modules/link-follow: New module.
71653         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71654         (Depends-on): Add lchmod.
71655         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71656         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71657         (Depends-on): Add stdint.
71658         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71659         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71660         (Depends-on): Add stdint.
71661         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71662         * modules/perl: New module.
71663         * modules/regex (Depends-on): Add stdint.
71664         * modules/rmdir-errno: New module.
71665         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71666         m4/intmax_t.m4.
71667         (Depends-on): Add stdint.
71668         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71669         m4/uintmax_t.m4.
71670         (Depends-on): Add stdint.
71671         * modules/unlink-busy: New module.
71672         * modules/utimecmp (Depends-on): Add stdint.
71673         * modules/uptime: New module.
71674         * modules/winsz-ioctl: New module.
71675         * modules/winsz-termios: New module.
71676         * modules/xnanosleep (Depends-on): Add nanosleep.
71677         * modules/ullong_max: Remove.
71678         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71679         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71680         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71681         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71682         (Depends-on): Add inttypes.
71683         (lib_SOURCES): Add xstrtol.h.
71684         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71685         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71686         * MODULES.html.sh: Move 'assert' into the assert section.
71687         Move 'dummy' into the linking section.
71688         Remove ullong_max.
71689         Add section for compatibility checks for POSIX:2001 functions,
71690         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71691         winsz-ioctl, and winsz-termios into it.
71692         Add lchmod.
71693         Add top-level Misc section and put host-os, perl, and uptime
71694         into it.
71695
71696 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71697
71698         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
71699         now assume the stdint module.  Do not include inttypes.h.
71700         * lib/fsusage.h: Likewise.
71701         * lib/getndelim2.c: Likewise.
71702         * lib/human.h: Likewise.
71703         * lib/inttostr.h: Likewise.
71704         * lib/obstack.c: Likewise.
71705         * lib/regex_internal.h: Likewise.
71706         * lib/tempname.c: Likewise.
71707         * lib/utimecmp.c: Likewise.
71708         * lib/xstrtol.h: Likewise.
71709
71710         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
71711
71712         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
71713         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
71714         * lib/xtime.h: Likewise.
71715
71716 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71717
71718         * modules/openat (Files): Add lib/fchmodat.c.
71719         Fixes problem reported by Jay Youngman.
71720
71721 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
71724         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
71725
71726 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
71727             Bruno Haible  <bruno@clisp.org>
71728
71729         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
71730         and is a script that invokes bison. Tighten the code. Add comments.
71731
71732 2006-08-18  Jim Meyering  <jim@meyering.net>
71733
71734         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
71735         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
71736         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
71737         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
71738
71739 2006-08-18  Bruno Haible  <bruno@clisp.org>
71740
71741         * modules/bison-i18n: New file.
71742         * MODULES.html.sh (Internationalization functions): Add it.
71743
71744 2006-08-18  Bruno Haible  <bruno@clisp.org>
71745
71746         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
71747         sys/statvfs.h. When getmntinfo was found, check its declaration and
71748         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
71749
71750 2006-08-18  Bruno Haible  <bruno@clisp.org>
71751
71752         * m4/bison-i18n.m4: New file, from bison.
71753
71754 2006-08-18  Bruno Haible  <bruno@clisp.org>
71755
71756         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71757         (ME_DUMMY): Treat "kernfs" as a dummy.
71758         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71759
71760 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         Update from coreutils.
71763
71764         2006-08-15  Jim Meyering  <jim@meyering.net>
71765
71766         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71767
71768         2006-01-17  Jim Meyering  <jim@meyering.net>
71769
71770         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
71771
71772         2006-01-11  Jim Meyering  <jim@meyering.net>
71773
71774         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
71775         Check for the lchmod function.
71776
71777 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71778
71779         Update from coreutils.
71780
71781         * lib/__fpending.h: Add copyright notice.
71782         * lib/fprintftime.h: Likewise.
71783         * lib/savedir.c: Use (C) in copyright notice.
71784         * lib/savedir.h: Likewise.
71785
71786         2006-08-15  Jim Meyering  <jim@meyering.net>
71787
71788         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71789         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71790         in support of the EXPECTED_ERRNO macro.
71791         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71792         definitions.  Instead, define the appropriate symbols and include
71793         "at-func.c".
71794         * lib/mkdirat.c (mkdirat): Likewise.
71795         * lib/fchmodat.c (fchmodat): Likewise.
71796         (ENOSYS): Remove definition.
71797         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71798         it.  Don't include "unistd--.h" -- it wasn't ever used.
71799
71800         2006-01-17  Jim Meyering  <jim@meyering.net>
71801
71802         Rewrite fts.c not to change the current working directory,
71803         by using openat, fstatat, fdopendir, etc..
71804
71805         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71806         (HAVE_OPENAT_SUPPORT): Define.
71807         [_LIBC] (fchdir): Don't undef or define; no longer used.
71808         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71809         Now, this `function' always succeeds, and consumes its file descriptor
71810         parameter -- so callers must not close such FDs.  Update callers.
71811         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71812         (diropen): Add parameter, SP.  Adjust all callers.
71813         Implement using diropen_fd, rather than open.
71814         (fts_open): Initialize new member, fts_cwd_fd.
71815         Remove fts_rft-setting code.
71816         (fts_close): Close fts_cwd_fd, if necessary.
71817         (__opendir2): Define in terms of opendir or opendirat,
71818         depending on whether the FST_NOCHDIR flag is set.
71819         (fts_build): Since fts_safe_changedir consumes its FD, and since
71820         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71821         and close the dup'd file descriptor upon failure.
71822         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71823         (fts_safe_changedir): Tweak semantics to reflect that this function
71824         now calls cwd_advance_fd and hence consumes its FD argument.
71825         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71826         [struct FTS] (fts_rft): Remove now-unused member.
71827         [struct FTS] (fts_cycle.state): Improve comment.
71828
71829         * lib/openat.c (openat_needs_fchdir): New function.
71830         * lib/openat.h (openat_needs_fchdir): Declare it.
71831
71832 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71833
71834         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71835         Problem and fix reported by Pádraig Brady in
71836         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71837
71838 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71839
71840         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71841
71842 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71843
71844         * lib/memcoll.c (memcoll): Optimize for the common case where the
71845         arguments are bytewise equal.
71846
71847 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71848
71849         * doc/regexprops-generic.texi: Add a copyright notice.
71850
71851 2006-08-15  Bruno Haible  <bruno@clisp.org>
71852
71853         * modules/tmpdir (License): Change to LGPL.
71854
71855 2006-08-15  Bruno Haible  <bruno@clisp.org>
71856
71857         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71858         module.
71859
71860 2006-08-14  Simon Josefsson  <jas@extundo.com>
71861
71862         * config/srclist.txt: Add gnupload.
71863
71864 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71865
71866         Change copyright notice from LGPL 2 to GPL 2, since that's the
71867         standard form used in the gnulib repository.
71868         * tests/test-lock.c: Likewise.
71869         * tests/test-stdint.c: Likewise.
71870         * tests/test-tls.c: Likewise.
71871
71872         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71873         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71874         Add copyright notice.
71875
71876         * check-module: Add copyright notice.  Output a copyright
71877         notice if "--version" is specified.
71878         * modules/COPYING: New file.
71879         * tests/test-getaddrinfo.c: Add copyright notice.
71880         * tests/test-verify.c: Likewise.
71881
71882 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71883
71884         Change copyright notice from LGPL 2 to GPL 2, since that's the
71885         standard form used in the gnulib repository.
71886         * lib/lock.c: LGPL -> GPL.
71887         * lib/lock.h: Likewise.
71888         * lib/strnlen1.c: Likewise.
71889         * lib/strnlen1.h: Likewise.
71890         * lib/tls.c: Likewise.
71891         * lib/tls.h: Likewise.
71892         * lib/tmpdir.c: Likewise.
71893
71894         * lib/TODO: Remove; this belongs only in coreutils.
71895
71896 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71897
71898         Add copyright notices to long-enough files that lack them, since
71899         otherwise the files aren't clearly free.  Use the same notice that
71900         getdate.texi already uses.
71901         * doc/alloca-opt.texi: Add copyright notice.
71902         * doc/alloca.texi: Likewise.
71903         * doc/ctime.texi: Likewise.
71904         * doc/functions.texi: Likewise.
71905         * doc/gcd.texi: Likewise.
71906         * doc/gnulib-tool.texi: Likewise.
71907         * doc/inet_ntoa.texi: Likewise.
71908         * doc/visibility.texi: Likewise.
71909
71910         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71911         * doc/quote.texi: Add copyright notice.
71912
71913         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71914         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71915         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71916         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71917         is now obsolete, and give a pointer to the Sun list.
71918         Add copyright notice.
71919
71920 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71921
71922         * config/srclistvars.sh: Add copyright notice.
71923
71924 2006-08-14  Eric Blake  <ebb9@byu.net>
71925
71926         Import the following change from libc:
71927
71928         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71929
71930         Upstream bug 2997.
71931         * lib/misc/error.c: Add space between program name and message if file
71932         name is missing.
71933
71934 2006-08-12  Karl Berry  <karl@gnu.org>
71935
71936         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71937         remove, these originate in gnulib now.
71938
71939 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71940
71941         * doc/Makefile (standards.info standards.html standards.dvi):
71942         Also depend on make-stds.texi.
71943
71944 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71945
71946         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71947         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71948
71949         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71950         in wchar_t.  Problem reported by Eric Blake.
71951
71952         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71953         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71954         Also, help the compiler to keep LEN in a register.
71955
71956 2006-08-11  Eric Blake  <ebb9@byu.net>
71957
71958         * users.txt: Sort.  Add tar.
71959
71960 2006-08-11  Bruno Haible  <bruno@clisp.org>
71961
71962         * users.txt: New file.
71963
71964 2006-08-11  Bruno Haible  <bruno@clisp.org>
71965
71966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71967         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71968
71969 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * modules/snprintf (Depends-on): Remove minmax.
71972         (Maintainer): Add self and Bruno.
71973
71974 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71975
71976         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71977         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71978         (EOVERFLOW): Define if the system does not.
71979         Do not include "minmax.h"; it wasn't used.
71980         (snprintf): Don't assume size_t promotes to an unsigned type.
71981         Fix bug when generated string was too long for the buffer: the
71982         buffer's contents are supposed to be the initial prefix of the
71983         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71984         exceeds INT_MAX; do the check ourselves.
71985
71986         Import the following changes from libc:
71987
71988         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71989
71990         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71991         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71992         set wc to the byte which couldn't be converted.
71993         (re_string_reconstruct): Don't clear valid_raw_len before calling
71994         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71995         tip_context using re_string_context_at.
71996
71997         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71998
71999         * lib/posix/regex.h: g++ still cannot handled [restrict].
72000
72001         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72002
72003         * lib/posix/regex.h: Remove special handling for VMS.
72004
72005 2006-08-10  Jim Meyering  <jim@meyering.net>
72006
72007         * modules/same-inode: New module.
72008         * modules/dev-ino: New module.
72009         * modules/cycle-check: Depend on these modules, rather than simply
72010         including their .h files.
72011         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72012         required via m4/cycle-check.m4.
72013         * modules/same: Depend on new same-inode module, rather than
72014         including same-inode.h.
72015         * modules/chdir-safer: New file.
72016
72017         * modules/chown (Depends-on): Add stat-macros.
72018
72019 2006-08-10  Jim Meyering  <jim@meyering.net>
72020
72021         * m4/cycle-check.m4: New file.
72022         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72023         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72024
72025 2006-08-10  Eric Blake  <ebb9@byu.net>
72026
72027         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72028         in from original proposal.
72029
72030 2006-08-10  Eric Blake  <ebb9@byu.net>
72031         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72032
72033         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72034         namespace.
72035
72036 2006-08-10  Bruno Haible  <bruno@clisp.org>
72037
72038         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72039         as well.
72040
72041 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72042
72043         Sync from coreutils.
72044
72045         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72046
72047         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72048         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72049
72050 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * modules/restrict: Remove; no longer needed now that we assume
72053         Autoconf 2.59 or later.
72054         * MODULES.html.sh: Remove 'restrict'.
72055         * modules/argp (Depends-on): Remove 'restrict'.
72056         * modules/base64 (Depends-on): Likewise.
72057         * modules/gc (Depends-on): Likewise.
72058         * modules/getaddrinfo (Depends-on): Likewise.
72059         * modules/glob (Depends-on): Likewise.
72060         * modules/inet_ntop (Depends-on): Likewise.
72061         * modules/inet_pton (Depends-on): Likewise.
72062         * modules/memxor (Depends-on): Likewise.
72063         * modules/regex (Depends-on): Likewise.
72064         * modules/strtok_r (Depends-on): Likewise.
72065         * modules/time_r (Depends-on): Likewise.
72066
72067 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72068
72069         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72070         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72071         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72072         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72073         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72074         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72075         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72076         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72077
72078         Merge from coreutils.
72079         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72080         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72081         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72082         * m4/time_r.m4 (gl_TIME_R): Likewise.
72083
72084 2006-08-09  Karl Berry  <karl@gnu.org>
72085
72086         * config/srclist.txt: no more gettext-tools, per Bruno.
72087
72088 2006-08-08  Eric Blake  <ebb9@byu.net>
72089
72090         * modules/verror: New module.
72091         * MODULES.html.sh: Document it.
72092
72093 2006-08-08  Eric Blake  <ebb9@byu.net>
72094
72095         * lib/verror.h, lib/verror.c: New files.
72096
72097 2006-08-08  Eric Blake  <ebb9@byu.net>
72098
72099         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72100         verror_at_line output complies with GNU Coding Standards even when
72101         file is NULL.
72102
72103 2006-08-07  Bruno Haible  <bruno@clisp.org>
72104
72105         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72106         versions of AIX.
72107         Reported by Ralf Wildenhues.
72108
72109 2006-08-07  Bruno Haible  <bruno@clisp.org>
72110
72111         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72112         in an AC_DEFUN. Needed so that the autoconf snippets can use
72113         AC_REQUIRE.
72114
72115 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72116
72117         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72118         Initialize pkgdata_DATA.
72119         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72120         overriding it.
72121
72122 2006-08-06  Eric Blake  <ebb9@byu.net>
72123
72124         * lib/error.h: Fold in some upstream changes from glibc.
72125         * lib/error.c: Likewise.
72126
72127 2006-08-04  Bruno Haible  <bruno@clisp.org>
72128
72129         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72130         Make the mostlyclean-local rule depend on mostlyclean-generic.
72131         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72132
72133 2006-07-31  Bruno Haible  <bruno@clisp.org>
72134
72135         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72136         <stdlib.h>, <string.h>.
72137
72138 2006-07-30  Bruno Haible  <bruno@clisp.org>
72139
72140         * modules/readlink (License): Change to LGPL.
72141
72142 2006-07-30  Bruno Haible  <bruno@clisp.org>
72143
72144         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72145         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72146         set PKGDATADIR to point to it.
72147
72148 2006-07-30  Bruno Haible  <bruno@clisp.org>
72149
72150         * modules/csharpexec (configure.ac): Comment out macro invocation.
72151         * modules/javaexec (configure.ac): Likewise.
72152         * modules/javacomp-script (configure.ac): Likewise.
72153
72154         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72155
72156 2006-07-30  Bruno Haible  <bruno@clisp.org>
72157
72158         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72159         linked-list.
72160
72161 2006-07-30  Bruno Haible  <bruno@clisp.org>
72162
72163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72164
72165 2006-07-30  Bruno Haible  <bruno@clisp.org>
72166
72167         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72168         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72169         get removed.
72170
72171 2006-07-29  Bruno Haible  <bruno@clisp.org>
72172
72173         Make it possible for gnulib-tool to work with locally modified or
72174         augmented gnulib repositories.
72175         * gnulib-tool (func_usage): Document --local-dir option.
72176         (local_gnulib_dir): New variable.
72177         Handle --local-dir option.
72178         (func_lookup_file): New function.
72179         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72180         (func_get_description, func_get_filelist, func_get_description,
72181         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72182         func_get_automake_snippet, func_get_include_directive,
72183         func_get_license, func_get_maintainer): Use func_lookup_file.
72184         (func_import, func_create_testdir): Use func_lookup_file.
72185
72186 2006-07-29  Bruno Haible  <bruno@clisp.org>
72187
72188         * modules/setenv (Depends-on): Add unistd.
72189
72190 2006-07-29  Bruno Haible  <bruno@clisp.org>
72191
72192         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72193
72194 2006-07-29  Bruno Haible  <bruno@clisp.org>
72195
72196         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72197
72198 2006-07-29  Bruno Haible  <bruno@clisp.org>
72199
72200         * gnulib-tool (import, update): If there is no Makefile.am, look at
72201         aclocal.m4, instead of bailing out.
72202
72203 2006-07-29  Bruno Haible  <bruno@clisp.org>
72204
72205         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72206         Categorize the options by when they are useful.
72207
72208 2006-07-29  Bruno Haible  <bruno@clisp.org>
72209
72210         * gnulib-tool (func_usage): Document option --no-libtool.
72211         Handle option --no-libtool.
72212         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72213         for changed semantics of $libtool variable.
72214         (func_import): Likewise. If libtool is not used, show this through
72215         an option --no-libtool.
72216         (func_create_testdir): Update.
72217
72218 2006-07-29  Bruno Haible  <bruno@clisp.org>
72219
72220         * gnulib-tool (func_import): Extend error message about missing
72221         --doc-base.
72222
72223 2006-07-29  Bruno Haible  <bruno@clisp.org>
72224
72225         * gnulib-tool (func_import): Don't create the $docbase directory if
72226         there is no file to store there.
72227
72228 2006-07-29  Bruno Haible  <bruno@clisp.org>
72229
72230         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72231         relevant, look for configure.ac there, not in the current directory.
72232         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72233
72234 2006-07-29  Bruno Haible  <bruno@clisp.org>
72235
72236         * gnulib-tool (SORT): New variable.
72237         (func_usage): Undocument --assume-autoconf option.
72238         Remove --assume-autoconf option handling.
72239         (autoconf_minversion): Determine from the contents of configure.ac.
72240         (func_import): Remove autoconf_minversion handling.
72241         Suggested by Eric Blake.
72242
72243 2006-07-29  Bruno Haible  <bruno@clisp.org>
72244
72245         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72246
72247 2006-07-29  Bruno Haible  <bruno@clisp.org>
72248
72249         * config/srclist.txt (*setenv.[ch]): Remove rules.
72250
72251 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72252
72253         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72254
72255 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72256
72257         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72258         arpa/inet.h.
72259
72260 2006-07-28  Simon Josefsson  <jas@extundo.com>
72261
72262         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72263         * modules/inet_pton (Depends-on): Likewise.
72264
72265 2006-07-28  Simon Josefsson  <jas@extundo.com>
72266
72267         * m4/netinet_in_h.m4: New file.
72268
72269 2006-07-28  Simon Josefsson  <jas@extundo.com>
72270
72271         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72272         #include's.
72273
72274 2006-07-28  Simon Josefsson  <jas@extundo.com>
72275
72276         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72277         #include's.
72278
72279 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72282         setgid on directories only if they set these bits.
72283         * lib/modechange.h: Remove obsolete comment about masks.
72284
72285 2006-07-28  Eric Blake  <ebb9@byu.net>
72286
72287         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72288         macro expansion.
72289
72290 2006-07-28  Bruno Haible  <bruno@clisp.org>
72291
72292         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72293
72294 2006-07-28  Bruno Haible  <bruno@clisp.org>
72295
72296         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72297
72298 2006-07-28  Bruno Haible  <bruno@clisp.org>
72299
72300         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72301         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72302         Define fallbacks.
72303         Avoids link error on FreeBSD 4.x.
72304         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72305
72306         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72307         encoding.
72308         * lib/mbswidth.c (iswcntrl): Likewise.
72309
72310 2006-07-27  Bruno Haible  <bruno@clisp.org>
72311
72312         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72313         test.
72314
72315 2006-07-27  Bruno Haible  <bruno@clisp.org>
72316
72317         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72318         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72319         defined.
72320
72321 2006-07-26  Eric Blake  <ebb9@byu.net>
72322
72323         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72324
72325 2006-07-26  Eric Blake  <ebb9@byu.net>
72326
72327         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72328         like mingw that lack mkstemp.
72329         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72330         avoid compilation warning on mingw.
72331
72332 2006-07-26  Bruno Haible  <bruno@clisp.org>
72333
72334         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72335         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72336         INT_FAST*_MIN, INTPTR_MIN.
72337
72338 2006-07-25  Bruno Haible  <bruno@clisp.org>
72339
72340         * modules/version-etc (Depends-on): Add stdarg.
72341
72342 2006-07-25  Bruno Haible  <bruno@clisp.org>
72343
72344         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72345         complex commands.
72346
72347 2006-07-25  Bruno Haible  <bruno@clisp.org>
72348
72349         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72350         defined in <stdarg.h> or config.h.
72351
72352 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72353
72354         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72355         (gl_STDIO_SAFER): Remove.
72356
72357 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72358
72359         * MODULES.html.sh (File stream based Input/Output):
72360         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72361         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72362         * modules/fopen-safer, modules/tmpfile-safer: New files.
72363         * modules/stdio-safer: Remove.
72364
72365 2006-07-24  Bruno Haible  <bruno@clisp.org>
72366
72367         * modules/tmpdir: New file.
72368         * MODULES.html.sh (File system functions): Add it.
72369
72370 2006-07-24  Bruno Haible  <bruno@clisp.org>
72371
72372         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72373         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72374
72375 2006-07-24  Bruno Haible  <bruno@clisp.org>
72376
72377         * modules/clean-temp: New file.
72378
72379 2006-07-24  Bruno Haible  <bruno@clisp.org>
72380
72381         * m4/tmpdir.m4: New file, from GNU gettext.
72382
72383 2006-07-24  Bruno Haible  <bruno@clisp.org>
72384
72385         * lib/tmpdir.h: New file, from GNU gettext.
72386         * lib/tmpdir.c: New file, from GNU gettext.
72387
72388 2006-07-24  Bruno Haible  <bruno@clisp.org>
72389
72390         * lib/clean-temp.h: New file, from GNU gettext.
72391         * lib/clean-temp.c: New file, from GNU gettext.
72392
72393 2006-07-23  Eric Blake  <ebb9@byu.net>
72394
72395         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72396         (Depends-on): Add binary-io.
72397
72398 2006-07-23  Eric Blake  <ebb9@byu.net>
72399
72400         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72401
72402 2006-07-23  Eric Blake  <ebb9@byu.net>
72403
72404         * lib/tmpfile-safer.c: New file.
72405         * lib/stdio-safer.h (fopen_safer): Add prototype.
72406         * lib/stdio--.h (tmpfile): Make safer.
72407
72408 2006-07-23  Bruno Haible  <bruno@clisp.org>
72409
72410         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72411         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72412         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72413         gl_linked_remove_at): Use it.
72414
72415 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72416         and Simon Josefsson <jas@extundo.com>
72417
72418         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72419
72420         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72421
72422 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * modules/close-stream: New file.
72425         * modules/closeout (Description): Make it clear that it exits
72426         with a diagnostic on error.
72427         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72428         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72429
72430 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72431
72432         * m4/close-stream.m4: New file.
72433
72434 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72435
72436         * lib/close-stream.c, lib/close-stream.h: New files.
72437
72438 2006-07-22  Bruno Haible  <bruno@clisp.org>
72439
72440         Merge from GNU gettext 0.15.
72441
72442         2006-05-01  Bruno Haible  <bruno@clisp.org>
72443
72444                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72445
72446         2006-07-22  Bruno Haible  <bruno@clisp.org>
72447
72448                 * modules/javaversion: New file.
72449                 * MODULES.html.sh (Java): Add javaversion.
72450
72451         2006-03-12  Bruno Haible  <bruno@clisp.org>
72452
72453                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72454
72455         2005-12-04  Bruno Haible  <bruno@clisp.org>
72456
72457                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72458                 (untested).
72459
72460         2006-06-21  Bruno Haible  <bruno@clisp.org>
72461
72462                 Avoid warnings from recent versions of mcs.
72463                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72464                 -o, -L, -r any more. Use options documented since mcs-1.0
72465                 instead. Similarly for -g.
72466
72467         2005-12-04  Bruno Haible  <bruno@clisp.org>
72468
72469                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72470                 .resources, not .resource.
72471
72472         2005-07-09  Bruno Haible  <bruno@clisp.org>
72473
72474                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72475                 add a .dll suffix.
72476                 Reported by Mark Junker <mjscod@gmx.de>.
72477
72478         2006-07-22  Bruno Haible  <bruno@clisp.org>
72479
72480                 * modules/gettext: Upgrade to gettext-0.15.
72481                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72482                 m4/visibility.m4.
72483                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72484
72485 2006-07-22  Bruno Haible  <bruno@clisp.org>
72486
72487         Merge from GNU gettext 0.15.
72488
72489         2006-03-25  Bruno Haible  <bruno@clisp.org>
72490
72491                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72492
72493         2006-07-21  Bruno Haible  <bruno@clisp.org>
72494
72495                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72496                 "1.1".
72497
72498         2006-05-09  Bruno Haible  <bruno@clisp.org>
72499
72500                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72501                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72502                 for the conftestver execution.
72503
72504         2006-05-01  Bruno Haible  <bruno@clisp.org>
72505
72506                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72507                 optional target-version argument. Verify that the compiler
72508                 groks source of the specified source-version, or add -source
72509                 option as necessary. Verify that the compiler produces
72510                 bytecode in the specified target-version, or add -target and
72511                 -source options as necessary. Make the result of the test
72512                 available as variable CONF_JAVAC. Also log error output in
72513                 config.log.
72514
72515         2006-03-11  Bruno Haible  <bruno@clisp.org>
72516
72517                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72518
72519         2006-05-09  Bruno Haible  <bruno@clisp.org>
72520
72521                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72522                 CLASSPATH_SEPARATOR to a semicolon.
72523
72524         2006-03-12  Bruno Haible  <bruno@clisp.org>
72525
72526                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72527                 available as variable CONF_JAVA, for subsequent autoconf
72528                 tests. Also log error output in config.log.
72529
72530         2006-07-19  Bruno Haible  <bruno@clisp.org>
72531
72532                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72533                 that getline works on glibc2 systems. Needed to avoid trouble
72534                 in relocatable.c.
72535                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72536
72537         2005-12-04  Bruno Haible  <bruno@clisp.org>
72538
72539                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72540                 launcher (untested).
72541
72542         2005-12-04  Bruno Haible  <bruno@clisp.org>
72543
72544                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72545
72546         2006-07-22  Bruno Haible  <bruno@clisp.org>
72547
72548                 * gettext.m4: Update from GNU gettext-0.15.
72549                 * nls.m4: Likewise.
72550                 * po.m4: Likewise.
72551                 * inttypes-pri.m4: Likewise.
72552                 * inttypes-h.m4: Renamed from inttypes.m4.
72553                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72554
72555 2006-07-22  Bruno Haible  <bruno@clisp.org>
72556
72557         Merge from GNU gettext 0.15.
72558
72559         2005-07-05  Bruno Haible  <bruno@clisp.org>
72560
72561                 * printf-args.c (printf_fetchargs): Work around broken
72562                 definition of wint_t on mingw.
72563
72564         2005-02-12  Bruno Haible  <bruno@clisp.org>
72565
72566                 * xallocsa.h: Add extern "C" for C++.
72567
72568         2006-05-17  Bruno Haible  <bruno@clisp.org>
72569
72570                 Cygwin portability.
72571                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72572
72573         2006-04-30  Bruno Haible  <bruno@clisp.org>
72574
72575                 * progreloc.c: Include <mach-o/dyld.h> if available.
72576                 (find_executable): Use _NSGetExecutablePath when possible.
72577
72578         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72579
72580                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72581                 function.
72582
72583         2005-12-29  Bruno Haible  <bruno@clisp.org>
72584
72585                 * progreloc.c (set_program_name_and_installdir): Fix
72586                 compilation error.
72587
72588         2005-12-04  Bruno Haible  <bruno@clisp.org>
72589
72590                 Cygwin portability.
72591                 * progreloc.c: Include <windows.h> also on Cygwin.
72592                 (find_executable): Add support for Cygwin.
72593                 (set_program_name_and_installdir): Handle also platforms with
72594                 nonempty EXEEXT.
72595
72596         2006-07-11  Bruno Haible  <bruno@clisp.org>
72597
72598                 * javacomp.c: Fix a comment.
72599                 Reported by Jim Meyering.
72600
72601         2006-04-30  Bruno Haible  <bruno@clisp.org>
72602
72603                 * javacomp.h (compile_java_class): Add source_version,
72604                 target_version arguments.
72605                 * javacomp.c: Rewritten to choose only a compiler that
72606                 respects the specified source_version and target_version.
72607
72608         2006-06-27  Bruno Haible  <bruno@clisp.org>
72609
72610                 Assume correct S_ISDIR macro.
72611                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72612
72613         2006-07-22  Bruno Haible  <bruno@clisp.org>
72614
72615                 * javaversion.h: New file, from GNU gettext.
72616                 * javaversion.c: New file, from GNU gettext.
72617                 * javaversion.java: New file, from GNU gettext.
72618                 * javaversion.class: New file, from GNU gettext.
72619
72620         2006-05-17  Bruno Haible  <bruno@clisp.org>
72621
72622                 Cygwin portability.
72623                 * javaexec.c (execute_java_class): Test for jview program
72624                 also on Cygwin.
72625
72626         2006-04-09  Bruno Haible  <bruno@clisp.org>
72627
72628                 * fatal-signal.c: Don't include string.h.
72629                 (at_fatal_signal): Use a copying loop instead of memcpy.
72630
72631         2005-12-04  Bruno Haible  <bruno@clisp.org>
72632
72633                 * csharpexec.c: Add support for 'clix' launcher (untested).
72634                 (execute_csharp_using_sscli): New function.
72635                 (execute_csharp_program): Call it.
72636
72637         2006-06-21  Bruno Haible  <bruno@clisp.org>
72638
72639                 Avoid warnings from recent versions of mcs.
72640                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72641                 -o, -L, -r any more. Use options documented since mcs-1.0
72642                 instead. Similarly for -g.
72643
72644         2005-07-09  Bruno Haible  <bruno@clisp.org>
72645
72646                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72647                 add a .dll suffix.
72648                 Reported by Mark Junker <mjscod@gmx.de>.
72649
72650         2006-06-17  Bruno Haible  <bruno@clisp.org>
72651
72652                 * config.charset: Update for NetBSD 3.0.
72653
72654         2006-05-17  Bruno Haible  <bruno@clisp.org>
72655
72656                 Cygwin portability.
72657                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72658
72659         2006-05-16  Bruno Haible  <bruno@clisp.org>
72660
72661                 * localcharset.c [CYGWIN]: Include <windows.h>.
72662                 (get_charset_aliases): For Cygwin, return the same CPxxx
72663                 aliases list as under WIN32.
72664                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72665                 the environment variables. Fall back to GetACP().
72666
72667         2006-04-05  Bruno Haible  <bruno@clisp.org>
72668
72669                 * config.charset: Update Juan Manuel Guerrero's address.
72670
72671         2005-02-12  Bruno Haible  <bruno@clisp.org>
72672
72673                 * allocsa.h: Add extern "C" for C++.
72674
72675         2005-02-10  Bruno Haible  <bruno@clisp.org>
72676
72677                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72678                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72679
72680         2006-07-22  Bruno Haible  <bruno@clisp.org>
72681
72682                 * gettext.h: Update to GNU gettext-0.15.
72683
72684 2006-07-22  Bruno Haible  <bruno@clisp.org>
72685
72686         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72687         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72688         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72689
72690 2006-07-21  Eric Blake  <ebb9@byu.net>
72691
72692         * modules/stdlib-safer: New file.
72693         * MODULES.html.sh (File stream based Input/Output): Add
72694         stdlib-safer.
72695
72696 2006-07-21  Eric Blake  <ebb9@byu.net>
72697
72698         * lib/stdlib-safer.h: New file from coreutils, required by
72699         stdlib--.h.
72700
72701 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
72704
72705 2006-07-20  Bruno Haible  <bruno@clisp.org>
72706
72707         * gnulib-tool: Recognize new option --assume-autoconf.
72708         (autoconf_minversion): New variable.
72709         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
72710
72711 2006-07-20  Bruno Haible  <bruno@clisp.org>
72712
72713         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
72714
72715 2006-07-19  Derek R. Price  <derek@ximbiot.com>
72716
72717         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
72718         Reindent and repaginate.
72719
72720 2006-07-19  Derek Price  <derek@ximbiot.com>
72721
72722         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
72723         Correct grammar.
72724
72725 2006-07-17  Bruno Haible  <bruno@clisp.org>
72726
72727         * modules/list: New file.
72728         * modules/array-list: New file.
72729         * modules/carray-list, modules/carray-list-tests: New files.
72730         * modules/linked-list, modules/linked-list-tests: New files.
72731         * modules/avltree-list, modules/avltree-list-tests: New files.
72732         * modules/rbtree-list, modules/rbtree-list-tests: New files.
72733         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
72734         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
72735         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
72736         * modules/oset: New file.
72737         * modules/array-oset: New file.
72738         * modules/avltree-oset, modules/avltree-oset-tests: New files.
72739         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
72740         * tests/test-carray_list.c: New file.
72741         * tests/test-linked_list.c: New file.
72742         * tests/test-avltree_list.c: New file.
72743         * tests/test-rbtree_list.c: New file.
72744         * tests/test-linkedhash_list.c: New file.
72745         * tests/test-avltreehash_list.c: New file.
72746         * tests/test-rbtreehash_list.c: New file.
72747         * tests/test-avltree_oset.c: New file.
72748         * tests/test-rbtree_oset.c: New file.
72749         * MODULES.html.sh (Container data structures): New section.
72750
72751 2006-07-17  Bruno Haible  <bruno@clisp.org>
72752
72753         * m4/gl_list.m4: New file.
72754
72755 2006-07-17  Bruno Haible  <bruno@clisp.org>
72756
72757         * lib/gl_list.h: New file.
72758         * lib/gl_list.c: New file.
72759         * lib/gl_array_list.h: New file.
72760         * lib/gl_array_list.c: New file.
72761         * lib/gl_carray_list.h: New file.
72762         * lib/gl_carray_list.c: New file.
72763         * lib/gl_linked_list.h: New file.
72764         * lib/gl_linked_list.c: New file.
72765         * lib/gl_anylinked_list1.h: New file.
72766         * lib/gl_anylinked_list2.h: New file.
72767         * lib/gl_avltree_list.h: New file.
72768         * lib/gl_avltree_list.c: New file.
72769         * lib/gl_anyavltree_list1.h: New file.
72770         * lib/gl_anyavltree_list2.h: New file.
72771         * lib/gl_rbtree_list.h: New file.
72772         * lib/gl_rbtree_list.c: New file.
72773         * lib/gl_anyrbtree_list1.h: New file.
72774         * lib/gl_anyrbtree_list2.h: New file.
72775         * lib/gl_anytree_list1.h: New file.
72776         * lib/gl_anytree_list2.h: New file.
72777         * lib/gl_linkedhash_list.h: New file.
72778         * lib/gl_linkedhash_list.c: New file.
72779         * lib/gl_anyhash_list1.h: New file.
72780         * lib/gl_anyhash_list2.h: New file.
72781         * lib/gl_avltreehash_list.h: New file.
72782         * lib/gl_avltreehash_list.c: New file.
72783         * lib/gl_rbtreehash_list.h: New file.
72784         * lib/gl_rbtreehash_list.c: New file.
72785         * lib/gl_anytreehash_list1.h: New file.
72786         * lib/gl_anytreehash_list2.h: New file.
72787
72788         * lib/gl_oset.h: New file.
72789         * lib/gl_oset.c: New file.
72790         * lib/gl_array_oset.h: New file.
72791         * lib/gl_array_oset.c: New file.
72792         * lib/gl_avltree_oset.h: New file.
72793         * lib/gl_avltree_oset.c: New file.
72794         * lib/gl_rbtree_oset.h: New file.
72795         * lib/gl_rbtree_oset.c: New file.
72796         * lib/gl_anytree_oset.h: New file.
72797
72798 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72799
72800         * m4/mkancesdirs.m4: New file.
72801         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72802         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72803         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72804         it.
72805
72806 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72807
72808         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72809         * lib/mkancesdirs.h: New files.
72810         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72811         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72812         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72813         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72814         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72815         callers changed.  Revamp internals significantly, by not
72816         attempting to create directories that are temporarily more
72817         permissive than the final results.  Do not attempt to use
72818         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72819         This removes some race conditions, fixes some bugs, and simplifies
72820         things.  Use new dirchownmod function to do owner and mode changes.
72821         * lib/mkdir-p.h: Likewise.
72822         * lib/modechange.c (octal_to_mode): New function.
72823         (struct mode_change): New member mentioned.
72824         (make_node_op_equals): New arg mentioned.  All callers changed.
72825         (mode_compile): Keep track of which mode bits the user has explicitly
72826         mentioned.
72827         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72828         New arg PMODE_BITS, to keep track of which mode bits the user
72829         mentioned; it treats S_ISUID and S_ISGID speciall.
72830         All callers changed.
72831         * lib/modechange.h: Likewise.
72832
72833 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72834
72835         * MODULES.html.sh: Add mkancestors.
72836         * modules/mkancesdirs: New module.
72837         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72838         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72839         The chdir-safer and afs files are now orphans; I'll remove them
72840         unless someone speaks up.
72841         Add lib/dirchownmod.c, lib/dirchownmod.h.
72842         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72843         Add lchown, mkancesdirs.
72844         (Maintainer): Add self.
72845
72846 2006-07-15  Karl Berry  <karl@gnu.org>
72847
72848         * gnulib-tool: help message wording/arrangement.
72849
72850 2006-07-14  Simon Josefsson  <jas@extundo.com>
72851
72852         * doc/gnulib.texi (Libtool and Windows): New section.
72853
72854 2006-07-12  Simon Josefsson  <jas@extundo.com>
72855
72856         * modules/gendocs (License): Fix license, approved by Karl.
72857
72858 2006-07-12  Eric Blake  <ebb9@byu.net>
72859
72860         * MODULES.html.sh: Add gendocs.
72861
72862 2006-07-11  Eric Blake  <ebb9@byu.net>
72863
72864         * modules/fdl: New module, to install doc/fdl.texi.
72865         * MODULES.html.sh: Add new section for documentation modules.
72866         * gnulib-tool: Avoid space-tab.
72867         (--doc-base): New option, to manage files from doc.
72868
72869 2006-07-11  Eric Blake  <ebb9@byu.net>
72870
72871         * m4/absolute-header.m4: Fix comments to match recent change.
72872
72873 2006-07-11  Eric Blake  <ebb9@byu.net>
72874
72875         * gnulib-tool: List --doc-base before --tests-base.
72876
72877 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72878
72879         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72880
72881 2006-07-11  Bruno Haible  <bruno@clisp.org>
72882
72883         * README: Mention where to put documentation.
72884
72885 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72886
72887         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72888
72889 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72890
72891         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72892         to stdint.m4.
72893
72894 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72897         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72898         "no/such/file/stdint.h" when there is no such file, so that
72899         the resulting C code can be parsed by dodgy compilers.
72900         Problems reported by Bob Proulx.
72901
72902 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72903
72904         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72905         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72906         macros into the GNU _D_EXACT_NAMLEN.
72907         * lib/savedir.c:  Likewise.
72908         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72909
72910 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72911         and Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72914         * m4/savedir.m4:
72915         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72916         macros into the GNU _D_EXACT_NAMLEN.
72917
72918 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72919
72920         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72921         around the absolute name, to work around a problem with the HP-UX
72922         11.23 native C compiler, reported by Bob Proulx.
72923
72924 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72925
72926         * doc/maintain.texi, make-stds.texi: Sync from
72927         <http://savannah.gnu.org/projects/gnustandards>.
72928
72929 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72930
72931         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72932
72933 2006-07-09  Jim Meyering  <jim@meyering.net>
72934
72935         * m4/glob.m4: Remove a doubled word in a comment.
72936
72937 2006-07-09  Jim Meyering  <jim@meyering.net>
72938
72939         * lib/argp-pv.c: Remove a doubled word in a comment.
72940         * lib/check-version.c (check_version): Likewise.
72941         * lib/javacomp.c (compile_java_class): Likewise.
72942
72943 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72944
72945         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72946         for the benefit of people using Autoconf 2.60.  If you want to
72947         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72948         (or m4/onceonly.m4, if pre-2.57) manually.
72949
72950 2006-07-08  Jim Meyering  <jim@meyering.net>
72951
72952         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72953         comment.
72954         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72955         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72956         comment.
72957
72958 2006-07-08  Jim Meyering  <jim@meyering.net>
72959
72960         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72961
72962 2006-07-07  Simon Josefsson  <jas@extundo.com>
72963
72964         * tests/test-crc.c: Change expected crc value, the test vector
72965         were probably computed using the old broken crc.c?
72966
72967 2006-07-06  Simon Josefsson  <jas@extundo.com>
72968
72969         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72970         now the canonical place for the M4 file).
72971
72972         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72973         from the sys_socket dependency now.
72974
72975         * modules/inet_pton (Files): Ditto.
72976
72977         * modules/inet_ntop (Files): Ditto.
72978
72979 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72980
72981         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72982         not gl_PREREQ_GETUSERSHELL.
72983
72984 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72985
72986         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72987         with only one argument, for Autoconf 2.60.
72988         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72989         expand to nothing, so add a shell command to avoid syntax error.
72990         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72991
72992 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72993
72994         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72995
72996 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72997
72998         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72999         no longer needed.  Check for isblank decl.
73000         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73001         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73002         of existence.
73003
73004 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73005
73006         * lib/getloadavg.c: Use __VMS, not VMS.
73007         * lib/getopt.c: Likewise.
73008         * lib/getpagesize.h: Likewise.
73009         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73010         and probably does not work.
73011
73012 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73013
73014         * lib/.cppi-disable: Add wcwidth.
73015         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73016         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73017         (ISGRAPH): Remove.  All uses changed to isgraph.
73018         (FOLD) [!defined _LIBC]: Remove special case.
73019         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73020         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73021         HAVE_ISBLANK.
73022         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73023         case.
73024
73025 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73026
73027         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73028         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73029         brackets.  Other minor changes to suppress some compiler
73030         warnings.
73031
73032 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73033         and Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73036         of invoking obsolescent AC_HEADER_DIRENT macro.
73037         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73038         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73039         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73040         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73041         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73042         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73043         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73044         * m4/readdir.m4: Remove; no longer needed.
73045
73046 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73047         and Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73050         Don't worry about this obsolete case any more.
73051         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73052         directories.
73053         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73054         worry about this obsolete case any more.
73055         * lib/fts.c: Likewise.
73056         * lib/getcwd.c: Likewise.
73057         * lib/glob.h: Likewise.
73058         * lib/savedir.c: Likewise.
73059
73060 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73061
73062         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73063         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73064         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73065         needed.
73066         All uses removed.
73067         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73068         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73069         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73070         needed.
73071         * m4/getdate.m4 (gl_GETDATE): Likewise.
73072         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73073         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73074         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73075         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73076         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73077         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73078         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73079         needed.
73080
73081 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * lib/memcasecmp.c: Include <limits.h>.
73084         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73085         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73086         Don't assume isdigit succeeds only on '0' through '9'.
73087
73088 2006-07-05  Eric Blake  <ebb9@byu.net>
73089
73090         * modules/getaddrinfo (Depends-on): Add snprintf.
73091
73092 2006-07-05  Eric Blake  <ebb9@byu.net>
73093
73094         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73095         to avoid 'header present but could not be compiled' on cygwin.
73096
73097 2006-07-05  Eric Blake  <ebb9@byu.net>
73098
73099         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73100         missing from netdb.h.
73101         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73102
73103 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73104
73105         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73106         no longer needed.
73107         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73108         * m4/getdate.m4 (gl_GETDATE): Likewise.
73109         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73110         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73111         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73112         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73113         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73114
73115 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73116
73117         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73118         All uses of is_space replaced by isspace.
73119         * lib/exit.h: Don't talk about STDC_HEADERS.
73120         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73121         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73122         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73123         replaced by isprint etc.
73124         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73125         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73126         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73127         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73128         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73129         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73130
73131 2006-07-05  Bruno Haible  <bruno@clisp.org>
73132
73133         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73134         the function exists, before testing against AIX.
73135         Reported by Martin Lambers <marlam@marlam.de>.
73136
73137 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73138
73139         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73140         From Mark D. Baushke.
73141
73142 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73143
73144         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73145         to the absolute name, not just one, to bypass Sun C 5.8's
73146         "warning: #include of /usr/include/... may be non-portable".
73147
73148 2006-07-04  Eric Blake  <ebb9@byu.net>
73149
73150         * modules/dirname-tests: New test module.
73151         * tests/test-dirname.c: New file, replacing dirname.c
73152         TEST_DIRNAME section that was recently deleted.
73153
73154 2006-07-04  Bruno Haible  <bruno@clisp.org>
73155
73156         Assume ANSI C header files and <ctype.h> functions.
73157         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73158         (mbsnwidth): Use isprint, iscntrl instead.
73159
73160 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         Merge from coreutils.
73163         * MODULES.html.sh: Add xstrtold.
73164         * modules/xstrtold: New file.
73165         * modules/cycle-check (Files): Add lib/same-inode.h.
73166         * modules/dirname (Files): Add m4/double-slash-root.m4.
73167         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73168         * modules/mkdir-p (Files): Add lib/same-inode.h.
73169         * modules/same (Files): Add lib/same-inode.h.
73170
73171 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73174         This is to keep the terminology clean; POSIX talks about
73175         "absolute pathnames", not "full pathnames", but the GNU
73176         Coding Standards say to use "path" for something else;
73177         so use "absolute" to keep both sides happy.
73178         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73179         Set gl_absolute_header, not gl_full_header_path.
73180         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73181         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73182         All uses changed.
73183
73184         Merge from coreutils.
73185
73186         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73187
73188         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73189         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73190         want to require the building of c-strtod.o.
73191         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73192         needs -lm directly.
73193         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73194
73195         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73196
73197         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73198         --as-needed option if available.  Problem reported by Albert Chin in
73199         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73200         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73201         cc merely issues a bunch of annoying warnings for --as-needed
73202         (this problem was reported by Bob Proulx).  Also, try linking with
73203         -lm to detect a bug in binutils 2.16 (this problem was reported
73204         by Ralf Wildenhues).
73205
73206         2006-06-18  Jim Meyering  <jim@meyering.net>
73207
73208         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73209         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73210         macro.
73211         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73212         also check for glibc-2.4's abort-inducing bug.
73213
73214         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73215         Low-probability clean-up should be to use rmdir to get rid of
73216         the just-created directory, not unlink.
73217
73218         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73219         configure fail, and request a bug report to inform us about it.
73220         Add a comment that, barring reports to the contrary, in 2007 we'll
73221         assume ftruncate is universally available.
73222
73223         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73224
73225         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73226
73227         2006-03-12  Jim Meyering  <jim@meyering.net>
73228
73229         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73230         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73231         * m4/same.m4 (gl_SAME): Likewise.
73232         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73233
73234         2006-03-11  Eric Blake  <ebb9@byu.net>
73235
73236         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73237         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73238         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73239         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73240
73241 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73242
73243         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73244         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73245         reported by Mark D. Baushke, one in
73246         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73247
73248         Merge from coreutils.
73249
73250         * lib/.cppi-disable: Add stdint_.h.
73251         * lib/.cvsignore: Add stdint.h.
73252
73253         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73254
73255         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73256         both double and long double versions.
73257         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73258         * lib/xstrtold.c: New file.
73259         * lib/xstrtod.h (xstrtold): New decl.
73260
73261         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * lib/filemode.c (setst): Remove.
73264         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73265         (arguably) clearer, and the generated code is a bit smaller on my
73266         Debian GNU/Linux stable x86 host.
73267
73268         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73269
73270         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73271         Assume that filemode.h includes sys/types.h and sys/stat.h.
73272         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73273         (ftypelet): Reorder to put common cases first, for efficiency.
73274         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73275         to do 'M'.
73276         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73277         of 10, for compatibility with FreeBSD.  All callers changed.
73278         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73279         types that can't be deduced solely from st_mode.  First arg is now a
73280         const pointer.
73281         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73282         (strmode): Renamed from mode_string.
73283         (filemodestring): New decl.
73284         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73285         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73286         needed.
73287         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73288
73289         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73290
73291         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73292         fsusage.h now does that.  Include fsusage.h first, to test interface.
73293         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73294         at most one method (the old code could have generated decls that
73295         didn't conform to C89, not that this was ever exercised).
73296         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73297
73298         2006-03-19  Jim Meyering  <jim@meyering.net>
73299
73300         Work even in a chroot where d_ino values for entries in "/"
73301         don't match the stat.st_ino values for the same names.
73302         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73303         number, iterate through all entries again, using lstat instead.
73304         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73305         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73306
73307         * lib/getcwd.c (__getcwd): Clarify a comment.
73308         Use memcpy in place of a call to strcpy.
73309
73310         2006-03-12  Jim Meyering  <jim@meyering.net>
73311
73312         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73313         matches that of the current directory (which we're about to chdir ".."
73314         out of), then save the dev-ino of the parent, instead.
73315
73316         * lib/same-inode.h (SAME_INODE): New file/macro.
73317         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73318         Include "same-inode.h", instead.
73319         * lib/same.c: Likewise.
73320         * lib/cycle-check.h: Include "same-inode.h".
73321         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73322         * lib/cycle-check.c (SAME_INODE): Remove definition.
73323         * lib/root-dev-ino.h: Include "same-inode.h".
73324
73325         2006-03-11  Eric Blake  <ebb9@byu.net>
73326
73327         * lib/same.c (same_name): s/base_name/last_component/
73328         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73329         * lib/filenamecat.c (file_name_concat): Likewise.
73330
73331         2006-03-11  Eric Blake  <ebb9@byu.net>,
73332                     Paul Eggert  <eggert@cs.ucla.edu>
73333
73334         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73335         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73336         drive prefix.
73337         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73338         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73339         (last_component): New method.
73340         * lib/dirname.c (dir_len): Determine when drive letters need a
73341         subsequent slash.  Preserve // when it is special.
73342         (dir_name): Don't append dot when drive letter is absolute.
73343         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73344         * lib/basename.c (base_name): New semantics - malloc the result.
73345         Preserve // when it is special.  Preserve relative files that look
73346         like drive letters.
73347         (base_len): Preserve // when it is special.
73348         (last_component): New method, similar to old base_name semantics.
73349         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73350         base_name.  Strip redundant slashes from ///.
73351
73352 2006-07-03  Jim Meyering  <jim@meyering.net>
73353
73354         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73355         macro is used before the first cycle_check call.
73356
73357 2006-07-03  Eric Blake  <ebb9@byu.net>
73358
73359         * modules/dirname (Depends-on): Add xstrndup.
73360
73361 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73362
73363         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73364         test cases, so that config.log is a bit easier to follow.
73365
73366 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73367
73368         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73369         both are 64 bits, since this seems to be the tradition, and this
73370         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73371         we ever run into a host that prefers long long to long in this
73372         case, we'll need another configure-time test.  Problem reported by
73373         Jim Meyering.
73374
73375 2006-07-02  Eric Blake  <ebb9@byu.net>
73376
73377         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73378
73379 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * modules/inttypes (Depends-on): No longer depends on stdint.
73382         * modules/stdint (Description): Say more about assumptions.
73383         Say that the fast types might differ.  Say macros are used.
73384         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73385         (Makefile.am): Revise list of substituted symbols to match
73386         new stdint.m4.
73387         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73388         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73389         * tests/test-stdint.c (verify_same_types)
73390         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73391         the code conforms to C99/C89.
73392         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73393         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73394
73395 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73396
73397         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73398         but fix a bug, by requiring at least 64 bits.
73399         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73400         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73401         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73402         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73403
73404         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73405         changes.  Make 2.59 a prerequisite.  Check and substitute for
73406         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73407         inttypes.h.  Do not use special include files; just use the
73408         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73409         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73410         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73411         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73412         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73413         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73414         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73415         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73416         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73417         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73418         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73419         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73420         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73421         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73422         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73423         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73424         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73425         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73426         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73427         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73428         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73429         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73430         not check for things that C99 does not require, e.g., int8_t.  If
73431         a test isn't needed unless <stdint.h> isn't working, and is
73432         unlikely to be needed for any other reason, then don't do it
73433         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73434         size_t, since we assume C89 freestanding at least.  Do not check
73435         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73436         the right thing even if the types are not defined.  Instead use:
73437         (gl_STDINT_TYPE_PROPERTIES): New macro.
73438         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73439         testing whether <sys/types.h> clashes, as Autoconf does this for
73440         us now.  All uses removed.
73441         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73442         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73443         (gl_CHECK_TYPE_SAME):
73444         Remove; no longer needed.
73445         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73446         exists, since we'll return 0 anyway in that case.
73447         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73448
73449 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73450
73451         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73452         possible collision with system files.
73453         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73454         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73455         WCHAR_MIN and WCHAR_MAX in this case.
73456         (<stddef.h>): Do not include; no longer needed.
73457         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73458         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73459         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73460         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73461         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73462         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73463         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73464         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73465         !defined(__c99))]: Include in this case too, since it's harmless
73466         now.
73467         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73468         dangerous to do so.
73469         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73470         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73471         (_STDINT_MIN, _STDINT_MAX): New macros.
73472         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73473         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73474         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73475         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73476         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73477         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73478         macros, not typedefs; this simplifies things quite a bit.
73479         Use long int for all types narrower than int64_t.
73480         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73481         Define in terms of long long int or int64_t or long int,
73482         not int64_t or int32_t.  This saves some compile-time testing.
73483         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73484         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73485         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73486         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73487         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73488         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73489         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73490         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73491         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73492         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73493         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73494         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73495         undef any previous version and define our own version, for
73496         simplicity and consistency with the new macros for types.
73497         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73498         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73499         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73500         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73501         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73502         @WINT_T_SUFFIX@ to keep things simple here.
73503         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73504         Simplify by assuming typical 8/16/32/64 host, since we're
73505         already doing that elsewhere anyway.
73506         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73507         and assume long long int is 64 bits if available.  This
73508         speeds up 'configure'.
73509
73510 2006-07-01  Eric Blake  <ebb9@byu.net>
73511
73512         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73513         Reported by Andreas Buening.
73514
73515 2006-07-01  Eric Blake  <ebb9@byu.net>
73516
73517         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73518
73519 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73520
73521         * lib/getaddrinfo.c: fixed typo
73522
73523 2006-06-29  Jim Meyering  <jim@meyering.net>
73524
73525         * modules/strftime (Maintainer): Add my name, since with the
73526         FPRINTFTIME changes strftime.c has forked from glibc.
73527
73528 2006-06-29  Eric Blake  <ebb9@byu.net>
73529
73530         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73531
73532 2006-06-29  Eric Blake  <ebb9@byu.net>
73533
73534         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73535
73536 2006-06-29  Eric Blake  <ebb9@byu.net>
73537
73538         * lib/stat_.h: New file.
73539
73540 2006-06-29  Eric Blake  <ebb9@byu.net>
73541
73542         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73543         unused static function.
73544
73545 2006-06-29  Eric Blake  <ebb9@byu.net>
73546
73547         * doc/functions.texi (Function Portability): Document missing lstat
73548         on mingw.
73549
73550 2006-06-29  Eric Blake  <ebb9@byu.net>
73551
73552         * MODULES.html.sh: Add sys_stat.
73553         * modules/sys_stat: New module.
73554         * modules/mkstemp (Depends-on): Add sys_stat.
73555
73556 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73557
73558         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73559
73560 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73561
73562         * m4/c-bs-a.m4: Removed.
73563
73564 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73565
73566         * lib/strftime.c: Assume strftime() exists.
73567
73568 2006-06-29  Derek Price  <derek@ximbiot.com>
73569
73570         * modules/c-bs-a: Removed - \a is C89.
73571         * MODULES.html.sh: Remove c-bs-a.
73572
73573 2006-06-29  Bruno Haible  <bruno@clisp.org>
73574
73575         * modules/wcwidth (License): Change to LGPL.
73576
73577 2006-06-28  Simon Josefsson  <jas@extundo.com>
73578
73579         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73580         on _WIN32.
73581
73582         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73583         getnameinfo.
73584
73585 2006-06-28  Simon Josefsson  <jas@extundo.com>
73586
73587         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73588
73589 2006-06-28  Simon Josefsson  <jas@extundo.com>
73590
73591         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73592         functions there.  It will succeed on Windows XP, but on Windows
73593         2000 and (presumably) earlier, it will fail, and use the internal
73594         re-implementation.
73595         (use_win32_p): New function.
73596         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73597         Support AI_NUMERICSERV to disable getservbyname.
73598         (getnameinfo): New function, only supports
73599         NI_NUMERICHOST|NI_NUMERICSERV for now.
73600
73601         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73602         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73603         getnameinfo.
73604
73605 2006-06-28  Eric Blake  <ebb9@byu.net>
73606
73607         * modules/wcwidth: New file.
73608         * modules/mbchar (Depends-on): Add wcwidth.
73609         * modules/mbswidth (Depends-on): Add wcwidth.
73610         * MODULES.html.sh: Add wcwidth.
73611
73612 2006-06-28  Eric Blake  <ebb9@byu.net>
73613
73614         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73616
73617 2006-06-28  Eric Blake  <ebb9@byu.net>
73618
73619         * lib/xvasprintf.h: Fix comments.
73620
73621 2006-06-28  Eric Blake  <ebb9@byu.net>
73622
73623         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73624         * lib/mbswidth.c (wcwidth): Move from here...
73625         * lib/wcwidth.h: ...to this new file.
73626
73627 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73628
73629         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73630
73631         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73632         it's obsolete.
73633         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73634
73635 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73636
73637         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73638         Autoconf 2.60 says this stuff was obsolete.
73639
73640 2006-06-28  Bruno Haible  <bruno@clisp.org>
73641
73642         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73643
73644 2006-06-28  Bruno Haible  <bruno@clisp.org>
73645
73646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73647         gt_TYPE_WCHAR_T.
73648
73649 2006-06-28  Bruno Haible  <bruno@clisp.org>
73650
73651         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73652         declaration for wcwidth.
73653         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73654
73655 2006-06-28  Bruno Haible  <bruno@clisp.org>
73656
73657         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73658         (mkdir): Define using _mkdir.
73659
73660 2006-06-28  Bruno Haible  <bruno@clisp.org>
73661
73662         * lib/getaddrinfo.h: Fix POSIX URL.
73663         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73664         _WIN32.
73665         (use_win32_p): Make static.
73666         (getaddrinfo): Reject service name if it is empty or does not consist
73667         solely of decimal digits, or if its value is > 65535.
73668         (getnameinfo): Remove useless casts.
73669
73670 2006-06-27  Simon Josefsson  <jas@extundo.com>
73671
73672         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73673         Eggert and Martin Lambers.
73674
73675 2006-06-27  Simon Josefsson  <jas@extundo.com>
73676
73677         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73678         Eggert and Martin Lambers.
73679
73680 2006-06-27  Bruno Haible  <bruno@clisp.org>
73681
73682         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73683         result to 0, not to empty.
73684         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73685
73686 2006-06-27  Bruno Haible  <bruno@clisp.org>
73687
73688         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73689
73690 2006-06-26  Simon Josefsson  <jas@extundo.com>
73691
73692         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73693         present.
73694
73695 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73696
73697         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
73698         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
73699         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
73700
73701 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
73702
73703         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
73704
73705 2006-06-26  Bruno Haible  <bruno@clisp.org>
73706
73707         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
73708
73709 2006-06-26  Bruno Haible  <bruno@clisp.org>
73710
73711         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
73712
73713 2006-06-26  Bruno Haible  <bruno@clisp.org>
73714
73715         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
73716         SGI C compiler in pre-C99 mode.
73717         Suggested by Mark D. Baushke and Larry Jones.
73718
73719 2006-06-26  Bruno Haible  <bruno@clisp.org>
73720
73721         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
73722         WCHAR_MAX.
73723         Reported by Mark D. Baushke and Larry Jones.
73724
73725 2006-06-26  Bruno Haible  <bruno@clisp.org>
73726
73727         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
73728         in pre-C99 mode.
73729         Suggested by Mark D. Baushke and Larry Jones.
73730
73731 2006-06-23  Simon Josefsson  <jas@extundo.com>
73732             Bruno Haible  <bruno@clisp.org>
73733
73734         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
73735         Emit mostlyclean-local rule.
73736         (func_emit_tests_Makefile_am): Likewise.
73737         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
73738
73739 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
73740
73741         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
73742
73743 2006-06-23  Bruno Haible  <bruno@clisp.org>
73744
73745         * tests/test-stdint.c: Update to match ISO C 99 Technical
73746         Corrigendum 1.
73747
73748 2006-06-23  Bruno Haible  <bruno@clisp.org>
73749
73750         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
73751
73752 2006-06-23  Bruno Haible  <bruno@clisp.org>
73753
73754         * lib/stdint_.h: Treat IRIX like OpenBSD.
73755
73756 2006-06-23  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73759         ISO C 99 Technical Corrigendum 1.
73760
73761 2006-06-22  Simon Josefsson  <jas@extundo.com>
73762
73763         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73764         MinGW.
73765
73766 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73767
73768         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73769         needed.  Some compiler complained about some of them.  Problem reported
73770         by Larry Jones in
73771         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
73772
73773 2006-06-21  Simon Josefsson  <jas@extundo.com>
73774
73775         * tests/test-getaddrinfo.c: New file.
73776
73777         * modules/getaddrinfo-tests: New file.
73778
73779         * MODULES.html.sh: Add inet_pton.
73780
73781         * modules/inet_pton: New file.
73782
73783 2006-06-21  Simon Josefsson  <jas@extundo.com>
73784
73785         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73786         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73787         of using the (limited) gnulib implementation on Windows XP.
73788
73789         * m4/inet_pton.m4: New file.
73790
73791 2006-06-21  Simon Josefsson  <jas@extundo.com>
73792
73793         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73794         variable.
73795
73796         * lib/socket_.h: Don't define WINVER.
73797
73798         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73799         slightly modified to work in gnulib.
73800
73801 2006-06-21  Simon Josefsson  <jas@extundo.com>
73802
73803         * doc/gnulib.texi (Windows sockets): Add.
73804
73805 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73806
73807         * lib/read-file.c (fread_file): Start with buffer allocation of
73808         0 bytes rather than 1 byte; this simplifies the code.
73809         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73810         code to free buffer and save/restore errno.
73811         (internal_read_file): Remove unused local.
73812
73813 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73814
73815         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73816         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73817         Problem reported by Denis Excoffier in
73818         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73819
73820 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73821
73822         * modules/sys_socket, modules/socklen: Include sys/types since
73823         FreeBSD 4.x's sys/socket.h needs it.
73824
73825 2006-06-19  Simon Josefsson  <jas@extundo.com>
73826
73827         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73828
73829 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73830
73831         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73832
73833 2006-06-19  Bruno Haible  <bruno@clisp.org>
73834
73835         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73836         and FULL_PATH_INTTYPES_H in angle brackets.
73837         Reported by Mark D. Baushke <mdb@gnu.org>.
73838
73839 2006-06-17  Eric Blake  <ebb9@byu.net>
73840
73841         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73842         errno.
73843
73844 2006-06-17  Bruno Haible  <bruno@clisp.org>
73845
73846         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73847         <sys/inttypes.h>.
73848
73849 2006-06-17  Bruno Haible  <bruno@clisp.org>
73850
73851         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73852         whether errno is declared. Assume <errno.h> declares errno.
73853
73854 2006-06-17  Bruno Haible  <bruno@clisp.org>
73855
73856         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73857
73858 2006-06-17  Bruno Haible  <bruno@clisp.org>
73859
73860         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73861         problem on Solaris 2.5.1.
73862
73863 2006-06-16  Eric Blake  <ebb9@byu.net>
73864
73865         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73866         * lib/unicodeio.c [!defined errno]: Likewise.
73867         * lib/strtol.c [!defined errno]: Likewise.
73868         * lib/strtod.c [!defined errno]: Likewise.
73869
73870 2006-06-15  Eric Blake  <ebb9@byu.net>
73871
73872         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73873
73874 2006-06-15  Eric Blake  <ebb9@byu.net>
73875
73876         * config/srclist.txt (ssize_t.m4): Lose sync.
73877
73878 2006-06-15  Bruno Haible  <bruno@clisp.org>
73879
73880         * modules/stdint (Files): Include m4/full-header-path.m4,
73881         m4/size_max.m4, m4/wchar_t.m4.
73882         (Makefile.am): Many more substitutions.
73883         * modules/stdint-tests: New file.
73884         * tests/test-stdint.c: New file.
73885
73886 2006-06-15  Bruno Haible  <bruno@clisp.org>
73887
73888         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73889         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73890         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73891         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73892         gl_CHECK_TYPE_SAME): New macros.
73893
73894 2006-06-15  Bruno Haible  <bruno@clisp.org>
73895
73896         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73897
73898 2006-06-15  Bruno Haible  <bruno@clisp.org>
73899
73900         * lib/stdint_.h: Rewritten to be fully auto-configured.
73901         Fixes bug on HP-UX/IA64.
73902
73903 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73904
73905         * lib/getdate.y (__attribute__): Don't define if already defined.
73906         Problem reported by Larry Jones.
73907         * lib/utimens.c (__attribute__): Likewise.
73908
73909 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73910
73911         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73912         reported by Andreas Schwab.
73913
73914 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73915             Bruno Haible  <bruno@clisp.org>
73916
73917         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73918         check for the declaration of strnlen and a run test that exposes the
73919         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73920         rpl_strndup.
73921
73922 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73923             Bruno Haible  <bruno@clisp.org>
73924
73925         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73926
73927 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73928
73929         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73930         compile test, for Tru64 4.0D.
73931
73932 2006-05-28  Karl Berry  <karl@gnu.org>
73933
73934         * config/srclist.txt (printf-args.c): lose sync.
73935
73936 2006-05-26  Martin Lambers  <marlam@marlam.de>
73937
73938         * lib/getpass.c: Updates the test for the native W32 API, and adds
73939         missing includes, thus fixing compilation warnings.
73940
73941 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73942
73943         * lib/exclude.c (exclude_fnmatch): New function.
73944         (excluded_file_name): Call exclude_fnmatch.
73945         * lib/exclude.h (excluded_file_name): New prototype
73946
73947 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73948
73949         * lib/tempname.c (small_open, large_open): New macros.
73950         (__open, __open64) [!_LIBC]: Remove.
73951         (__gen_tempname): Use small_open and large_open instead of __open
73952         and __open64.  This fixes a portability bug on HP-UX 11.11i
73953         reported by Simon Wing-Tang in
73954         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73955
73956 2006-05-24  Bruno Haible  <bruno@clisp.org>
73957
73958         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73959         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73960         Reported by Thorsten Maerz <torte@netztorte.de> via
73961         Aaron Stone <aaron@serendipity.cx>.
73962
73963 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73964
73965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73966         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73967         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73968         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73969         not really conditional on the cache.
73970         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73971
73972 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73975         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73976         (my_usleep): Don't mishandle maximum value.
73977
73978 2006-05-19  Jim Meyering  <jim@meyering.net>
73979
73980         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73981
73982 2006-05-17  Bruno Haible  <bruno@clisp.org>
73983
73984         Cygwin portability.
73985         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73986
73987 2006-05-17  Bruno Haible  <bruno@clisp.org>
73988
73989         * lib/stdint_.h: Fix recognition of Cygwin.
73990
73991 2006-05-15  Bruno Haible  <bruno@clisp.org>
73992
73993         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73994         on libtool patch by Ralf Wildenhues.
73995
73996 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73997
73998         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73999         test for C99 conformance; (bool) 0.5 is an integer constant
74000         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74001         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74002
74003 2006-05-11  Simon Josefsson  <jas@extundo.com>
74004
74005         * m4/xvasprintf.m4: Fix obvious typo.
74006
74007 2006-05-11  Jim Meyering  <jim@meyering.net>
74008
74009         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74010         James Lemley.
74011
74012 2006-05-10  Simon Josefsson  <jas@extundo.com>
74013
74014         * lib/md4.c: Typo fix, update copyright years.
74015         (K1, K2): Don't use L because it turn computations into 64-bit on
74016         64-bit platforms.
74017
74018 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74019
74020         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74021         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74022         unwanted sign propagation, e.g., on hosts with 64-bit int.
74023         There still are some problems with reeelly weird theoretical hosts
74024         (e.g., 33-bit int) but it's not worth worrying about now.
74025         * lib/sha1.c (rol): Likewise.
74026         (K1, K2, K3, K4): Remove unnecessary L suffix.
74027
74028 2006-05-10  Bruno Haible  <bruno@clisp.org>
74029
74030         * lib/des.c: Cast to avoid warnings.
74031
74032 2006-05-09  Bruno Haible  <bruno@clisp.org>
74033
74034         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74035         (Depends-on): Depend also on xsize, stdarg.
74036         (configure.ac): Add gl_XVASPRINTF.
74037
74038 2006-05-09  Bruno Haible  <bruno@clisp.org>
74039
74040         * m4/xvasprintf.m4: New file.
74041
74042 2006-05-09  Bruno Haible  <bruno@clisp.org>
74043
74044         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74045         (EOVERFLOW): Define fallback value.
74046         (xstrcat): New function.
74047         (xvasprintf): Recognize the special case of a string concatenation.
74048
74049 2006-05-08  Eric Blake  <ebb9@byu.net>
74050
74051         * gnulib-tool (func_version): Base copyright year on CVS date.
74052         (func_emit_copyright_notice): New function.
74053         (func_emit_lib_Makefile_am): Use it.
74054         (func_emit_tests_Makefile_am): Likewise.
74055         (func_import): Likewise.
74056
74057 2006-05-08  Bruno Haible  <bruno@clisp.org>
74058
74059         * modules/stdarg: New file.
74060         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74061
74062 2006-05-08  Bruno Haible  <bruno@clisp.org>
74063
74064         * m4/stdarg.m4: New file, from GNU gettext.
74065
74066 2006-05-08  Bruno Haible  <bruno@clisp.org>
74067
74068         * config/srclist.txt (build-aux/config.rpath): different from latest
74069         release.
74070
74071 2006-05-08  Bruno Haible  <bruno@clisp.org>
74072
74073         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74074
74075 2006-05-05  Jim Meyering  <jim@meyering.net>
74076
74077         * m4/warning.m4: New file, derived from bison's file by the same name.
74078
74079 2006-05-03  Bruno Haible  <bruno@clisp.org>
74080
74081         * lib/stdint_.h: Shorter URL.
74082         * lib/inttypes.h: Likewise.
74083
74084 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74085
74086         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74087
74088 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         * lib/verify.h: Document the internals better.  Most of this change
74091         was written by Bruno Haible.
74092
74093 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74094
74095         * doc/verify.texi: New file, partly based on a proposal by
74096         Bruno Haible.
74097
74098 2006-05-02  Bruno Haible  <bruno@clisp.org>
74099
74100         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74101         test from here...
74102         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74103
74104 2006-04-29  Bruno Haible  <bruno@clisp.org>
74105
74106         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74107         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74108
74109 2006-04-29  Bruno Haible  <bruno@clisp.org>
74110
74111         * gnulib-tool: Make --update option actually work.
74112
74113 2006-04-29  Bruno Haible  <bruno@clisp.org>
74114
74115         * doc/gcd.texi: New file.
74116         * doc/gnulib.texi: Include it.
74117
74118 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74119
74120         * lib/getdate.y (get_date): When adding relative date, start with the
74121         initial time, not with the result of the first mktime call.
74122
74123 2006-04-25  Bruno Haible  <bruno@clisp.org>
74124
74125         * gnulib-tool (func_import): Output the include directives in three
74126         blocks, sorted separately.
74127         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74128
74129 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74130
74131         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74132         to define main with arguments, for C++.  Reported by Eric Blake.
74133         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74134         Prefer 'int main ()' to 'int main (void)', for C++.
74135         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74136         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74137         for 'main', for C99 and C++.
74138
74139 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74142         Don't assume that exit status -1 is valid.
74143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74144         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74145         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74146         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74147         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74148         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74149         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74150         functions can be used without declaring them, or that you can
74151         exit with status -1.
74152         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74153
74154 2006-04-24  Karl Berry  <karl@gnu.org>
74155
74156         * config/srclist.txt (longdouble.m4): sync lost.
74157
74158 2006-04-24  Eric Blake  <ebb9@byu.net>
74159
74160         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74161
74162 2006-04-24  Bruno Haible  <bruno@clisp.org>
74163
74164         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74165         poll() implementation in AIX.
74166         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74167
74168 2006-04-24  Bruno Haible  <bruno@clisp.org>
74169
74170         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74171         assigned exactly once.
74172
74173 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74174             Bruno Haible  <bruno@clisp.org>
74175
74176         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74177         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74178         for AM_CPPFLAGS.
74179
74180 2006-04-23  Bruno Haible  <bruno@clisp.org>
74181
74182         * modules/copy-file: Depend on unistd.
74183         * modules/execute: Likewise.
74184         * modules/fatal-signal: Likewise.
74185         * modules/findprog: Likewise.
74186         * modules/mkdtemp : Likewise.
74187         * modules/pipe: Likewise.
74188         * modules/wait-process: Likewise.
74189
74190 2006-04-23  Bruno Haible  <bruno@clisp.org>
74191
74192         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74193         condition was already detected.
74194         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74195
74196 2006-04-23  Bruno Haible  <bruno@clisp.org>
74197
74198         * lib/copy-file.c: Include <unistd.h> unconditionally.
74199         * lib/execute.c: Likewise.
74200         * lib/fatal-signal.c: Likewise.
74201         * lib/findprog.c: Likewise.
74202         * lib/mkdtemp.c: Likewise.
74203         * lib/pipe.h: Likewise.
74204         * lib/pipe.c: Likewise.
74205         * lib/wait-process.h: Likewise.
74206
74207 2006-04-23  Bruno Haible  <bruno@clisp.org>
74208
74209         * gnulib-tool (func_usage): Fix --import description. Document
74210         --update.
74211         (func_import): Create temporary file in a temporary directory, if
74212         --dry-run is specified. Silence errors from 'grep' when there are no
74213         m4 files in $m4dir.
74214         (func_create_testdir): Silence errors from 'grep' when there are no
74215         m4 files in $m4dir.
74216         Reported by Karl Berry <karl@freefriends.org>.
74217
74218 2006-04-20  Bruno Haible  <bruno@clisp.org>
74219
74220         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74221         one argument, so that the code will be portable to Autoconf 2.60.
74222         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74223         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74224         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74225
74226 2006-04-19  Derek Price  <derek@ximbiot.com>
74227             Eric Blake  <ebb9@byu.net>
74228
74229         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74230         rather than "/full/path.h".  Update comment to match.  Shorten &
74231         generalize m4_translit call via AS_TR_CPP.
74232
74233 2006-04-19  Derek Price  <derek@ximbiot.com>
74234             Eric Blake  <ebb9@byu.net>
74235
74236         * lib/inttypes.h: Correct grammar in comment.
74237
74238 2006-04-18  Derek Price  <derek@ximbiot.com>
74239             Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         * modules/inttypes: New file.
74242         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74243
74244 2006-04-18  Derek Price  <derek@ximbiot.com>
74245             Paul Eggert  <eggert@cs.ucla.edu>
74246
74247         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74248         New files.
74249
74250 2006-04-18  Derek Price  <derek@ximbiot.com>
74251             Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         * lib/inttypes.h: New file.
74254         * lib/strtoimax.c: Assume <inttypes.h>.
74255
74256 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74257
74258         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74259         isn't mounted.  Problem reported by Kir Kolyshkin.
74260
74261 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74262
74263         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74264         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74265         Derek R. Price.
74266         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74267         implementation.
74268
74269 2006-04-12  Eric Blake  <ebb9@byu.net>
74270
74271         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74272         is now done automatically by the corresponding Autoconf macro.
74273
74274 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74275
74276         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74277         time_r.h.
74278
74279 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74280
74281         Merge regex changes from libc, removing some of our
74282         POSIX-conformance changes that were rejected and redoing them in a
74283         less-intrusive way.
74284
74285         * lib/regcomp.c (re_compile_internal, init_dfa):
74286         Length arg is now size_t, not Idx.  All uses changed.
74287         (peek_token): Forward decl now says internal_function.
74288         (__re_error_msgid, __re_error_msgid_idx):
74289         Now static rather than extern with attribute_hidden.
74290         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74291         For some reason libc prefers K&R style defns for external functions.
74292         (regerror) [!defined _LIBC]: Likewise.
74293         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74294         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74295         (build_range_exp, build_collating_symbol):
74296         Use K&R-style defn.
74297         (re_compile_fastmap): Use '\0' to memset, not 0.
74298         (utf8_sb_map): Make the calculations more obvious.
74299         (init_dfa, parse_bracket_exp, build_charclass_op):
74300         Call calloc and cast result, as glibc does.
74301         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74302         (build_range_exp, build_collating_symbol):
74303         Now internal functions.
74304
74305         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74306
74307         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74308         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74309         Don't depend on VMS; depend on __VMS instead, for POSIX
74310         namespace cleanness.
74311         (regoff_t): Define to ssize_t, not long int.
74312
74313         Remove the REG_ macros named below.  Instead, make the old names
74314         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74315         __USE_GNU_REGEX.
74316         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74317         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74318         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74319         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74320         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74321         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74322         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74323         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74324         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74325         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74326         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74327         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74328         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74329         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74330         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74331         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74332         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74333         (REG_NREGS):
74334         Remove.  All uses replaced by the old RE_* names.
74335         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74336         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74337         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74338         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74339         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74340         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74341         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74342         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74343         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74344         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74345         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74346         Don't bother having these macros be independent of each others'
74347         values, since they no longer exist in the POSIX name space.
74348
74349         Rename the following member names back to their old names,
74350         unless !__USE_GNU_REGEX.  All uses changed back.
74351         (buffer): Renamed from re_buffer.
74352         (allocated): Renamed from re_allocated.
74353         (used): Renamed from re_used.
74354         (syntax): Renamed from re_syntax.
74355         (fastmap): Renamed from re_fastmap.
74356         (translate): Renamed from re_translate.
74357         (can_be_null): Renamed from re_can_be_null.
74358         (regs_allocated): Renamed from re_regs_allocated.
74359         (fastmap_accurate): Renamed from re_fastmap_accurate.
74360         (no_sub): Renamed from re_no_sub.
74361         (not_bol): Renamed from re_not_bol.
74362         (not_eol): Renamed from re_not_eol.
74363         (newline_anchor): Renamed from re_newline_anchor.
74364         (num_regs): Renamed from rm_num_regs.
74365         (start): Renamed from rm_start.
74366         (end): Renamed from rm_end.
74367
74368         (free_state): Move up a bit.
74369
74370         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74371         #define to be empty.
74372         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74373         when that is what is intended.
74374         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74375         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74376         (MAX): New macro.
74377         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74378         All uses changed back to re_malloc, etc.  It's now the caller's
74379         responsibility to check for overflow; all callers changed.
74380         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74381         (re_x2nrealloc): Remove.
74382         (free_state): Remove decl.
74383
74384         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74385         (re_set_registers, re_exec):
74386         Use K&R-style defn.
74387
74388         2006-01-31  Roland McGrath  <roland@redhat.com>
74389
74390         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74391         Reported by Mike Frysinger <vapier@gentoo.org>.
74392
74393         2006-01-15  Andreas Jaeger  <aj@suse.de>
74394
74395         [BZ #1950]
74396         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74397         build_wcs_upper_buffer change.
74398         (build_wcs_upper_buffer): Change return type.
74399
74400         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74401
74402         * lib/regex_internal.h: Include <stdint.h> if available.
74403
74404         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74405
74406         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74407
74408         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74409
74410         * lib/regcomp.c: Adjust for changed secondary hash function.
74411
74412         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74413
74414         * lib/regex.h: Pretty printing.
74415         Clean up namespace a bit.
74416
74417         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74418
74419         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74420         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74421
74422         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74423                     Ulrich Drepper  <drepper@redhat.com>
74424
74425         [BZ #1302]
74426         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74427         changed.
74428         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74429
74430         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74431
74432         [BZ #281]
74433         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74434         * lib/regcomp.c: Remove unnecessary uses of
74435         unsigned RE_TRANSLATE_TYPE.
74436         * lib/regex_internal.h: Likewise.
74437         * lib/regex_internal.c: Likewise.
74438         * lib/regexec.c: Likewise.
74439         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74440
74441         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74442
74443         * lib/regexec.c (find_recover_state): Remove unnecessary
74444         initialization.
74445         (transit_state_bkref): Make DFA a const pointer.
74446         (get_subexp): Likewise.
74447         (check_arrival): Likewise.
74448         (update_cur_sifted_state): Likewise.
74449         (re_search_internal): Likewise.
74450         (prune_impossible_nodes): Likewise.
74451         (acquire_init_state_context): Likewise.
74452         (proceed_next_node): Likewise.
74453         (set_regs): Likewise.
74454         (free_fail_stack_return): Likewise.
74455         (check_arrival_expand_ecl): Mark DFA parameter as const.
74456         (check_arrival_expand_ecl_sub): Likewise.
74457         (check_subexp_limits): Likewise.
74458         (sub_epsilon_src_nodes):  Likewise.
74459         (add_epsilon_src_nodes):  Likewise.
74460         (merge_state_array): Likewise.
74461         (update_regs): Likewise.
74462         (build_trtable): Likewise.
74463         (sift_states_backward): Mark MCTX parameter as const.
74464         (build_sifted_states): Likewise.
74465         (update_cur_sifted_state): Likewise.
74466         (sift_states_mkref): Likewise.
74467         (check_arrival_expand_ecl): Mark eclosure as const.
74468         (check_dst_limits_calc_pos_1): Likewise.
74469         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74470         pointer.
74471
74472         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74473
74474         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74475         (transit_state_sb): Likewise.
74476         (transit_state_mb): Likewise.
74477         (sift_states_iter_mb): Likewise.
74478         (check_arrival_add_next_nodes): Likewise.
74479         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74480         [_LIBC] (re_search_2_stub): Use mempcpy.
74481
74482         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74483         mbrtowc for very simple UTF-8 case.
74484
74485         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74486         a pointer-to-const.
74487         (re_acquire_state_context): Likewise.
74488         * lib/regex_internal.h: Adjust prototypes.
74489
74490         * lib/regex.c: Prevent using C++ compilers.
74491
74492         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74493         (re_acquire_state_context): Likewise.
74494
74495 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74496
74497         * modules/regex (Depends-on): Add ssize_t.
74498
74499 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74502         translation table.
74503
74504 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74507
74508 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74509             Bruno Haible  <bruno@clisp.org>
74510
74511         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74512         <sys/types.h> and <inttypes.h>.
74513
74514 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74515
74516         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74517         `__error_t_defined', so argp.h will not typedef the former.
74518
74519 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74522         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74523         glibc names.  Even if glibc is changed to conform to POSIX, the
74524         traditional names will be available anyway, since regex depends on
74525         the extensions module.  Also, fix a longstanding typo in the
74526         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74527         reported by Emanuele Giaquinta.  Also, change sense of cached
74528         variable, so that the message makes sense.
74529
74530 2006-03-24  Simon Josefsson  <jas@extundo.com>
74531
74532         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74533         including some doc fixes.
74534         (base64_encode_alloc): Fix +1 bug on allocation failures.
74535
74536 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74537
74538         * lib/base64.c (base64_encode): Do not read past end of array with
74539         unsanitized input on systems with CHAR_BIT > 8.
74540
74541 2006-03-24  Eric Blake  <ebb9@byu.net>
74542
74543         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74544
74545 2006-03-22  Karl Berry  <karl@gnu.org>
74546
74547         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74548         * config/srclistvars.sh (COREUTILS): new var.
74549
74550 2006-03-17  Jim Meyering  <jim@meyering.net>
74551
74552         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74553         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74554
74555 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74556
74557         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74558         no longer needs it.  Instead, check that regoff_t is as least
74559         as wide as ptrdiff_t.
74560
74561         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74562         so that our regex.h stays compatible with the installed regex.
74563         This is helpful for installers who configure --without-included-regex.
74564         Problem reported by Emanuele Giaquinta.
74565
74566 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74569         Typedef to long int, not to off_, as POSIX will likely change
74570         in that direction.
74571
74572 2006-03-15  Eric Blake  <ebb9@byu.net>
74573
74574         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74575
74576 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74577
74578         * lib/argp-help.c (validate_uparams): Fix typo
74579         * lib/argp-parse.c (argp_default_options): Consistently begin help
74580         messages with a lowercase letter.
74581
74582 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74585         overrun buffers and shouldn't be used (much as gets shouldn't be
74586         used).
74587         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74588
74589 2006-03-08  Simon Josefsson  <jas@extundo.com>
74590
74591         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74592         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74593
74594 2006-03-08  Simon Josefsson  <jas@extundo.com>
74595
74596         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74597         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74598
74599 2006-03-08  Simon Josefsson  <jas@extundo.com>
74600
74601         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74602         signal that configure disabled the device.
74603
74604 2006-03-08  Simon Josefsson  <jas@extundo.com>
74605
74606         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74607         languages.
74608
74609 2006-03-07  Simon Josefsson  <jas@extundo.com>
74610
74611         * modules/getopt (Depends-on): Add unistd.
74612
74613         * modules/unistd: New file.
74614
74615 2006-03-07  Simon Josefsson  <jas@extundo.com>
74616
74617         * modules/gc-random: New file.
74618
74619 2006-03-07  Simon Josefsson  <jas@extundo.com>
74620
74621         * m4/unistd_h.m4: New file.
74622
74623 2006-03-07  Simon Josefsson  <jas@extundo.com>
74624
74625         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74626         test to be side-effect free by storing the result in the cache
74627         variable gl_cv_lib_readline, and moving the assignment of
74628         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74629         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74630
74631 2006-03-07  Simon Josefsson  <jas@extundo.com>
74632
74633         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74634         error on missing devices (the functions will return an error).
74635
74636         * m4/gc.m4: Move random stuff to gc-random.m4
74637
74638 2006-03-07  Simon Josefsson  <jas@extundo.com>
74639
74640         * lib/unistd_.h: New file.
74641
74642 2006-03-07  Simon Josefsson  <jas@extundo.com>
74643
74644         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74645
74646 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74647
74648         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74649         Problem reported by Juan Manuel Guerrero.
74650
74651 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74652
74653         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74654         the unistd module.
74655         * lib/getlogin_r.c: Likewise.
74656         * lib/getlogin_r.h: Likewise.
74657         * lib/glob.c: Likewise.
74658         * lib/pagealign_alloc.c: Likewise.
74659         * lib/unistd_.h: Remove; no longer needed.
74660
74661 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74664         Add unistd.
74665         * modules/c-stack (Depends-on): Add unistd.
74666         * modules/getlogin_r: Likewise.
74667         * modules/glob: Likewise.
74668         * modules/pagealign_alloc: Likewise.
74669         * modules/unistd (Files): Remove lib/unistd_.h.
74670         (EXTRA_DIST): Remove.
74671         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74672         need unistd_.h.
74673         (MOSTLYCLEANFILES): Remove unistd.h-t.
74674
74675 2006-03-03  Simon Josefsson  <jas@extundo.com>
74676
74677         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74678
74679 2006-03-03  Simon Josefsson  <jas@extundo.com>
74680
74681         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74682         libidn and bison.
74683
74684 2006-03-03  Simon Josefsson  <jas@extundo.com>
74685
74686         * build-aux/maint.mk: Add indent target.
74687
74688 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74689
74690         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74691         our replacement poll.h in any case, to avoid a differing
74692         declaration from a system header.  Seen on AIX.
74693
74694 2006-03-01  Simon Josefsson  <jas@extundo.com>
74695
74696         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74697         <kasal@ucw.cz>.
74698
74699 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         * modules/gettime (Depends-on): Add extensions module.
74702         * modules/nanosleep (Depends-on): Likewise.
74703         * modules/settime (Depends-on): Likewise.
74704
74705 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74706
74707         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
74708         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
74709         pedantically.
74710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74711         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
74712
74713         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
74714         not "==".  Reported by Ralf Wildenhues.
74715
74716 2006-03-01  Karl Berry  <karl@gnu.org>
74717
74718         * doc/Copyright/request-*: new files, synced from gnuorg.
74719
74720 2006-03-01  Karl Berry  <karl@gnu.org>
74721
74722         * config/srclist.txt (Copyright/*): new entries.
74723
74724 2006-02-28  Simon Josefsson  <jas@extundo.com>
74725
74726         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
74727
74728 2006-02-27  Simon Josefsson  <jas@extundo.com>
74729
74730         * lib/base64.h: Indent #define's.  From Jim Meyering
74731         <jim@meyering.net>.
74732
74733 2006-02-27  Jim Meyering  <jim@meyering.net>
74734
74735         Revert the change of 2006-02-24, so these files can continue
74736         to be sync'd from gettext.
74737         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
74738         of `config.h'.
74739
74740 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74741
74742         * modules/intprops: New file.
74743         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74744         Add intprops.
74745         * modules/getloadavg (Files): Remove lib/intprops.h.
74746         (Depends-on): Add intprops.
74747         * modules/human: Likewise.
74748         * modules/inttostr: Likewise.
74749         * modules/openat: Likewise.
74750         * modules/sig2str: Likewise.
74751         * modules/userspec: Likewise.
74752         * modules/utimecmp: Likewise.
74753         * modules/xnanosleep: Likewise.
74754         * modules/xstrtol: Likewise.
74755
74756 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74757
74758         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74759         * modules/lock-tests (TESTS): Use $(EXEEXT).
74760         * modules/tls-tests: Likewise.
74761         * modules/argp-tests: Likewise.
74762         (check_PROGRAMS): New var, replacing...
74763         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74764
74765 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74766
74767         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74768         `config.h'.
74769
74770 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
74771
74772         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
74773
74774 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74775
74776         Sync from coreutils.
74777         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74778         gl_CHDIR_SAFER.
74779
74780 2006-02-22  Jim Meyering  <jim@meyering.net>
74781
74782         Sync from coreutils.
74783         * m4/chdir-safer.m4: New file.
74784
74785 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74786
74787         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74788         AT_FDCWD exceeds INT_MAX.
74789         * lib/openat.h (AT_FDCWD): Likewise.
74790
74791 2006-02-17  Eric Blake  <address@hidden>
74792
74793         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74794
74795 2006-02-16  Simon Josefsson  <jas@extundo.com>
74796
74797         * modules/getaddrinfo (Depends-on): Add sys_socket.
74798
74799 2006-02-15  Simon Josefsson  <jas@extundo.com>
74800
74801         * build-aux/maint.mk: Add dsyntax-check rule.
74802
74803 2006-02-15  Eric Blake  <ebb9@byu.net>
74804
74805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74806         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74807         'present but cannot compile' warnings on cygwin.
74808         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74809         use ws2tcpip.h if sys/socket.h works.
74810         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74811         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74812
74813 2006-02-14  Simon Josefsson  <jas@extundo.com>
74814
74815         * modules/maintainer-makefile (Files): Rename.
74816
74817         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74818         and (the local) Makefile.cfg to maint-cfg.mk.
74819
74820         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74821         to the latter.
74822
74823         * modules/maintainer-makefile: New module.
74824
74825         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74826         severaly stripped to make it possible to build it up from scratch
74827         with reliable tests.
74828
74829         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74830         fixes to permit overriding the default actions when configure and
74831         makefile are not available.
74832
74833 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         Sync from coreutils.
74836         * modules/lstat (Depends-on): Don't depend on xalloc.
74837         (License): Change from GPL to LGPL, since this is now simply a
74838         replacement for a libc function.
74839
74840 2006-02-14  Jim Meyering  <jim@meyering.net>
74841
74842         Sync from coreutils.
74843
74844         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74845         failure on deficient systems, and simplify gnulib lgpl dependencies.
74846         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74847         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74848
74849         * lib/xalloc-die.c: Remove unused definition of N_.
74850
74851 2006-02-14  Jim Meyering  <jim@meyering.net>
74852
74853         Sync from coreutils.
74854         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74855         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74856         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74857         double-quote uses of that variable, to accommodate the rare case in
74858         which getmntent is available in none of the libraries checked.  This
74859         happens at least on FreeBSD 5.0.
74860
74861 2006-02-13  Simon Josefsson  <jas@extundo.com>
74862
74863         * gnulib-tool (Usage): Fix --import, from
74864         karl@freefriends.org (Karl Berry).
74865
74866 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74867
74868         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74869
74870 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74871
74872         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74873         "autoupdate" on 2005-12-12.
74874
74875 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         * modules/closeout (Depends-on): Remove atexit.
74878
74879 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74882         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74883
74884 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74885
74886         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74887         __EXTENSIONS__ if this causes compilation to fail.  Problem
74888         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74889         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74890
74891 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74894         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74895         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74896         All uses changed.
74897
74898 2006-01-26  Simon Josefsson  <jas@extundo.com>
74899
74900         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74901         prototype is visible on mingw32.
74902
74903         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74904         for mingw32.
74905
74906         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74907         mingw32).
74908
74909 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74910
74911         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74912         attempt to open for write; this always fails, at least on POSIX
74913         hosts.  This reinstates the 2006-01-09 change, which was
74914         inadvertently removed.
74915
74916 2006-01-26  Bruno Haible  <bruno@clisp.org>
74917
74918         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74919         Reported by Paul Eggert.
74920
74921 2006-01-26  Bruno Haible  <bruno@clisp.org>
74922             Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         * lib/stdbool_.h (_Bool)
74925         [(! (defined __cplusplus || defined __BEOS__)
74926           && !defined __GNUC__
74927           && !(defined __HP_cc || defined __xlc__
74928                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74929                || defined __sgi))]:
74930         #define to signed char in these cases too; this simplifies
74931         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74932         etc., separately) and makes it more conservative.
74933
74934 2006-01-25  Simon Josefsson  <jas@extundo.com>
74935
74936         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74937         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74938         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74939
74940 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74941
74942         * lib/argp-namefrob.h: Bugfix. Remove stray #
74943
74944 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74947         so that we test the test.
74948         Check for yet another HP-UX cc bug involving *bool |= bool.
74949
74950 2006-01-25  Karl Berry  <karl@gnu.org>
74951
74952         * config/srclist.txt (vasnprintf.c): sync lost.
74953
74954 2006-01-25  Jim Meyering  <jim@meyering.net>
74955
74956         Sync from the stable (b5) branch of coreutils:
74957
74958         * lib/fts.c (fts_children): Don't let close() clobber errno from
74959         failed fchdir().
74960
74961         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74962         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74963         a dangling symlink.  That can also happen at least for ELOOP.
74964         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74965         FYI, this bug predates the inclusion of fts.c in coreutils.
74966
74967         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74968         in their own block, so pre-c99 compilers don't object.
74969
74970         Avoid the double-free (first in fts_read, second in fts_close) that
74971         would occur when an `active' directory is made inaccessible (e.g.,
74972         via chmod a-x) during a traversal.
74973         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74974         before returning.  Reproduce this failure by
74975         mkdir -p a/b; cd a; chmod a-x . b
74976         Reported by Stavros Passas.
74977
74978 2006-01-25  Jim Meyering  <jim@meyering.net>
74979
74980         * lib/fileblocks.c: Remove more useless parentheses.
74981         * lib/readutmp.h: Likewise.
74982
74983 2006-01-25  Bruno Haible  <bruno@clisp.org>
74984
74985         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74986         warnings.
74987         Reported by Paul Eggert.
74988
74989 2006-01-25  Bruno Haible  <bruno@clisp.org>
74990
74991         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74992         rid of a trap command. For Solaris sh.
74993         Reported by Mark D. Baushke <mdb@gnu.org>.
74994
74995 2006-01-24  Simon Josefsson  <jas@extundo.com>
74996
74997         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74998         Bruno.
74999
75000 2006-01-24  Karl Berry  <karl@gnu.org>
75001
75002         * config/srclist.txt (argp-namefrob.h): sync lost.
75003
75004 2006-01-24  Jim Meyering  <jim@meyering.net>
75005
75006         * modules/openat (Files): Add lib/intprops.h.
75007         From Mark D. Baushke.
75008
75009 2006-01-24  Jim Meyering  <jim@meyering.net>
75010
75011         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75012         Reported by Mark D. Baushke.
75013
75014 2006-01-24  Jim Meyering  <jim@meyering.net>
75015
75016         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75017
75018 2006-01-24  Bruno Haible  <bruno@clisp.org>
75019
75020         * modules/strnlen (Maintainer): Change from glibc to all.
75021
75022 2006-01-24  Bruno Haible  <bruno@clisp.org>
75023
75024         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75025         Patch by Paul Eggert.
75026
75027 2006-01-24  Bruno Haible  <bruno@clisp.org>
75028
75029         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75030         already has it.
75031         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75032         2005-11-26.
75033
75034         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75035         'signed char' to avoid problems with the built-in _Bool type.
75036         Reported by Paul Eggert on 2005-11-26.
75037
75038 2006-01-24  Bruno Haible  <bruno@clisp.org>
75039
75040         * gnulib-tool (func_import): Avoid constructing complicated sed
75041         expressions inside backquote.
75042         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75043
75044 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75045
75046         These changes imported from libc.
75047         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75048         test and two separate function calls.
75049         * lib/strndup.c (__strndup): Add libc_hidden_def.
75050
75051 2006-01-23  Simon Josefsson  <jas@extundo.com>
75052
75053         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75054         Remove the test_*_SOURCES variable: automake infers it by default.
75055         * modules/tls-tests: Likewise.
75056
75057 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         Work around porting bugs reported by Dieter in
75060         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75061         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75062         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75063         Include "getopt.h" first, to check interface.
75064         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75065         !HAVE_DECL_GETENV.
75066         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75067         (__strndup): Revert to K&R-style function dfns, the glibc style.
75068         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75069         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75070         Include strnlen.h first, to get prototype properly.
75071         (strnlen): Renamed from __strnlen.
75072         Remove weak alias.
75073
75074 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75075
75076         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75077
75078 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75079
75080         * config/srclist.txt: Adjust to reflect glibc reorganization.
75081         This affects only comments.
75082
75083 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75084
75085          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75086          Reported by Bruce Korb <bkorb@gnu.org>.
75087
75088 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75089
75090         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75091         to pacify gcc -Wswitch-default.
75092
75093 2006-01-22  Bruno Haible  <bruno@clisp.org>
75094
75095         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75096         temporary buffer for sprintf, take into account the precision also
75097         for 'd', 'i', 'u', 'o', 'x', 'X'.
75098
75099 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75100
75101         * modules/argp-tests: New module
75102         * tests/test-argp.c: New file
75103         * tests/test-argp-2.sh: New file
75104
75105 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75106
75107         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75108         (__argp_base_name): Removed
75109         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75110         typo.
75111         (__argp_base_name): Provide macro definition or extern declaration
75112         depending on the configuration
75113
75114 2006-01-20  Simon Josefsson  <jas@extundo.com>
75115
75116         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75117
75118 2006-01-20  Simon Josefsson  <jas@extundo.com>
75119
75120         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75121
75122 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75123
75124         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75125         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75126         Suggested by Bruno Haible.
75127
75128 2006-01-20  Karl Berry  <karl@gnu.org>
75129
75130         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75131         until changes propagate, I guess.
75132
75133 2006-01-19  Simon Josefsson  <jas@extundo.com>
75134
75135         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75136
75137 2006-01-19  Simon Josefsson  <jas@extundo.com>
75138
75139         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75140
75141 2006-01-19  Simon Josefsson  <jas@extundo.com>
75142
75143         * gnulib-tool: Set check_PROGRAMS.
75144
75145         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75146         modules/des-tests, modules/gc-arcfour-tests,
75147         modules/gc-arctwo-tests, modules/gc-des-tests,
75148         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75149         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75150         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75151         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75152         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75153         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75154         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75155         test_*_SOURCES.
75156
75157 2006-01-18  Simon Josefsson  <jas@extundo.com>
75158
75159         * modules/socklen (Depends-on): Depend on sys_socket.
75160
75161 2006-01-18  Simon Josefsson  <jas@extundo.com>
75162
75163         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75164         modules/des-tests, modules/gc-arcfour-tests,
75165         modules/gc-arctwo-tests, modules/gc-des-tests,
75166         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75167         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75168         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75169         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75170         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75171         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75172         $(EXEEXT) to automake TESTS variable, for mingw32.
75173
75174 2006-01-17  Simon Josefsson  <jas@extundo.com>
75175
75176         * modules/socklen (Include): Need sys/socket.h.
75177
75178 2006-01-17  Bruno Haible  <bruno@clisp.org>
75179
75180         * modules/ssize_t (Include): Add <sys/types.h>.
75181
75182 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75183
75184         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75185         it's not portable and it doesn't work with cross-compiles.
75186         Problem reported by Bruno Haible.  Fix missing-$ typo in
75187         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75188         -zignore from being used with Sun's C compiler.
75189
75190 2006-01-12  Simon Josefsson  <jas@extundo.com>
75191
75192         * lib/base64.c: Fix warning, reported by Bruno Haible
75193         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75194
75195 2006-01-12  Bruno Haible  <bruno@clisp.org>
75196
75197         * modules/ldd: New file.
75198         * build-aux/ldd.sh.in: New file.
75199         * MODULES.html.sh (Support for building libraries and executables): Add
75200         ldd.
75201
75202 2006-01-12  Bruno Haible  <bruno@clisp.org>
75203
75204         * m4/ldd.m4: New file.
75205
75206 2006-01-12  Bruno Haible  <bruno@clisp.org>
75207
75208         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75209         endless loop while replacing $auxdir with build-aux.
75210
75211 2006-01-11  Simon Josefsson  <jas@extundo.com>
75212
75213         * lib/stdint_.h (SIZE_MAX): Add missing (.
75214
75215 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         Sync from coreutils.
75218         * lib/md5.c: Fix commentary typos.
75219         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75220         * lib/md5.h (__attribute__): Remove; unused.
75221         * lib/sha1.c: Fix commentary to match md5 better.
75222         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75223         so that we don't need to worry about alignment.  All uses changed.
75224         This merges the 2005-10-28 md5 change into sha1.
75225
75226 2006-01-11  Jim Meyering  <jim@meyering.net>
75227
75228         Sync from coreutils.
75229         * lib/md5.c (OP): Fix spacing.
75230
75231 2006-01-11  Bruno Haible  <bruno@clisp.org>
75232
75233         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75234         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75235         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75236
75237 2006-01-11  Bruno Haible  <bruno@clisp.org>
75238
75239         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75240         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75241         the "early" section as well.
75242
75243 2006-01-11  Bruno Haible  <bruno@clisp.org>
75244
75245         Avoid "ar: no archive members specified" error on MacOS X.
75246         * gnulib-tool (func_modules_add_dummy): New function.
75247         (func_import, func_create_testdir): Invoke it.
75248
75249 2006-01-11  Bruno Haible  <bruno@clisp.org>
75250
75251         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75252         with $auxdir in AC_CONFIG_FILES statements.
75253
75254 2006-01-11  Bruno Haible  <bruno@clisp.org>
75255
75256         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75257         Initialize also noinst_HEADERS to empty.
75258
75259 2006-01-11  Bruno Haible  <bruno@clisp.org>
75260
75261         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75262         variables.
75263         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75264         autoreconf.
75265
75266 2006-01-11  Bruno Haible  <bruno@clisp.org>
75267
75268         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75269         overridable by the user.
75270         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75271
75272 2006-01-10  Simon Josefsson  <jas@extundo.com>
75273
75274         * modules/sys_socket: New file.
75275
75276 2006-01-10  Simon Josefsson  <jas@extundo.com>
75277
75278         * m4/sys_socket_h.m4: New file.
75279
75280 2006-01-10  Simon Josefsson  <jas@extundo.com>
75281
75282         * lib/socket_.h: New file.
75283
75284 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         * modules/readutmp (Maintainer): Add myself.
75287
75288 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75289
75290         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75291         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75292         People who are still concerned with buggy memcmp implementations
75293         can invoke gl_FUNC_MEMCMP themselves.
75294
75295 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75296
75297         * lib/regex_internal.h (BITSET_WORD_BITS):
75298         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75299         preprocessor mishandles large unsigned values as if they were signed.
75300         Problem reported by Claudio Fontana in
75301         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75302
75303 2006-01-10  Jim Meyering  <jim@meyering.net>
75304
75305         Avoid the double-free (first in fts_read, second in fts_close) that
75306         would occur when an `active' directory is made inaccessible (e.g.,
75307         via chmod a-x) during a traversal.
75308         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75309         before returning.  Reproduce this failure by
75310         mkdir -p a/b; cd a; chmod a-x . b
75311         Reported by Stavros Passas.
75312
75313         Sync from coreutils.
75314         * lib/sha1.c: Tweak grammar in a comment.
75315
75316 2006-01-10  Jim Meyering  <jim@meyering.net>
75317
75318         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75319         Patch by Joerg Sonnenberger.
75320
75321 2006-01-10  Bruno Haible  <bruno@clisp.org>
75322
75323         * modules/readutmp: Depend on module free.
75324         * modules/strtok_r: Depend on module restrict.
75325
75326 2006-01-10  Bruno Haible  <bruno@clisp.org>
75327
75328         * modules/gettext (configure.ac): Add an invocation of
75329         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75330
75331 2006-01-10  Bruno Haible  <bruno@clisp.org>
75332
75333         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75334         Reported by Werner Lemberg <wl@gnu.org>.
75335
75336 2006-01-10  Bruno Haible  <bruno@clisp.org>
75337
75338         * lib/localcharset.c: Update from GNU gettext.
75339
75340 2006-01-10  Bruno Haible  <bruno@clisp.org>
75341
75342         * lib/argp.h (__const): Remove macro. Use const instead.
75343         * lib/argp-fmtstream.h (__const): Likewise.
75344         * lib/glob_.h (__const): Remove macro.
75345         * lib/glob-libc.h: Use const instead of __const.
75346
75347 2006-01-10  Bruno Haible  <bruno@clisp.org>
75348
75349         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75350         variable.
75351         Needed to avoid an automake error regarding the 'gettext' module.
75352
75353 2006-01-09  Simon Josefsson  <jas@extundo.com>
75354
75355         * modules/inet_ntop (Depends-on): Add restrict.
75356
75357 2006-01-09  Simon Josefsson  <jas@extundo.com>
75358
75359         * modules/gc-rijndael-tests (License): Put under LGPL.
75360
75361         * modules/gc-des-tests (License): Likewise.
75362
75363         * modules/gc-arcfour-tests (License): Likewise.
75364
75365         * modules/gc-arctwo-tests (License): Likewise.
75366
75367         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75368
75369         * modules/gc-hmac-sha1-tests (Files): Likewise.
75370
75371         * modules/gc-hmac-md5-tests (License): Likewise.
75372
75373         * modules/gc-sha1-tests (License): Likewise.
75374
75375         * modules/gc-md5-tests (License): Likewise.
75376
75377         * modules/gc-md4-tests (License): Likewise.
75378
75379         * modules/gc-md2-tests (License): Likewise.
75380
75381         * modules/gc-tests (License): Likewise.
75382
75383         * modules/des-tests (License): Likewise.
75384
75385         * modules/md4-tests (License): Likewise.
75386
75387         * modules/md2-tests (License): Likewise.
75388
75389 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75390
75391         Sync from coreutils:
75392
75393         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75394         * modules/lib-ignore: New file.
75395         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75396         chdir-safer.m4, lchmod.m4.
75397         * modules/openat: Add mkdirat.c, openat-priv.h.
75398
75399 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75400
75401         Sync from coreutils.
75402         * m4/lib-ignore.m4: New file.
75403         * m4/lchmod.m4: New file.
75404
75405 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75406
75407         Sync from coreutils.
75408         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75409         for write access: POSIX says that must fail.
75410         * lib/fts.c (diropen): Likewise.
75411         * lib/save-cwd.c (save_cwd): Likewise.
75412         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75413         well, for minor improvements on hosts that lack O_DIRECTORY.
75414         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75415         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75416         Fall back on chown if open failed with EACCES.
75417
75418         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75419         Report an error at compile-time if only a 1-second nominal clock
75420         resolution is found.
75421
75422         * lib/lchmod.h: New file.
75423         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75424         (make_dir_parents): Use lchown rather than chown, and
75425         lchmod rather than chmod.
75426
75427         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75428         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75429         "proc" reported by n0dalus.
75430
75431         * lib/mountlist.c: Include <limits.h>.
75432         (dev_from_mount_options)
75433         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75434         New function.  It no longer assumes "dev=" has the System V meaning
75435         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75436         (read_file_system_list)
75437         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75438         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75439         dev= in that case.
75440
75441         * lib/posixtm.h (PDS_PRE_2000): New macro.
75442         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75443         allow_century.  All usages changed.  Reject dates outside the range
75444         1969-1999 if PDS_PRE_2000 is used.
75445
75446 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75447
75448         Sync from coreutils.
75449         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75450         (Time of day items): Mention the possibility of leap seconds.
75451         Problem reported by Dr. David Alan Gilbert.
75452
75453 2006-01-09  Jim Meyering  <jim@meyering.net>
75454
75455         Sync from coreutils.
75456
75457         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75458
75459         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75460
75461         * lib/modechange.c (mode_compile): Reject an invalid mode string
75462         that starts with an octal digit.  From Andreas Gruenbacher.
75463
75464         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75465         and dup to open_safer and dup_safer, respectively.
75466         (openat_permissive): Fix typo in comment.
75467
75468         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75469         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75470         (_): Remove; no longer needed.
75471         (openat): Renamed from rpl_openat; no need for rpl_openat
75472         since openat.h renames openat for us.
75473         Replace most of the body with a call to openat_permissive,
75474         to avoid duplicate code.
75475         Port to (probably hypothetical) environments were mode_t is
75476         wider than int.
75477         (openat_permissive): Require mode arg, so that we can check
75478         types better.  Put it just after flags.  Change cwd failure
75479         indicator from pointer-to-bool to pointer-to-errno-value.
75480         All callers changed.
75481         Invoke openat_save_fail and/or openat_restore_fail if
75482         cwd_errno is null, so that openat can call us.
75483         (openat_permissive, fdopendir, fstatat, unlinkat):
75484         Simplify errno handling to avoid some duplicate code,
75485         as it's OK to set errno on success.
75486         * lib/openat.h: Revamp code so that function macros depend on
75487         __OPENAT_PREFIX only, not also on AT_FDCWD.
75488         (openat_ro): Remove.  Caller changed to use openat_permissive.
75489         (openat_permissive): Now a macro, if not a function.
75490         (openat_restore_fail, openat_save_fail): Now always functions,
75491         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75492
75493         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75494         and openat.c.
75495         * lib/mkdirat.c: Include openat-priv.h.
75496         Remove definitions of macros defined therein.
75497         * lib/openat.c: Likewise.
75498
75499         * lib/mkdirat.c (mkdirat): New file and function.
75500         * lib/openat.h (mkdirat): Declare.
75501
75502         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75503
75504         * lib/openat.h (openat_permissive): Declare.
75505         (openat_ro): Define.
75506
75507         * lib/openat.c (EXPECTED_ERRNO): New macro.
75508         (openat_permissive): New function -- used in remove.c rewrite.
75509         (all functions): Set errno just before returning, only if there
75510         was an actual failure.
75511         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75512
75513         Emulate openat-family functions using Linux's procfs, if possible.
75514         Idea and some code based on Ulrich Drepper's glibc changes.
75515
75516         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75517         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75518         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75519         before falling back on save_cwd and restore_cwd.
75520         (fdopendir, fstatat, unlinkat): Likewise.
75521
75522         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75523         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75524
75525         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75526         as second argument to va_arg.  Otherwise, some versions of gcc
75527         warn that `if this code is reached, the program will abort'.
75528
75529 2006-01-09  Jim Meyering  <jim@meyering.net>
75530
75531         Sync from coreutils.
75532         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75533         Require openat-priv.h.
75534
75535 2006-01-09  Bruno Haible  <bruno@clisp.org>
75536
75537         * modules/strnlen (Include): Use strnlen.h.
75538
75539 2006-01-09  Bruno Haible  <bruno@clisp.org>
75540
75541         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75542
75543 2006-01-09  Bruno Haible  <bruno@clisp.org>
75544
75545         * lib/sysexit_.h (EX_OK): New macro.
75546         Suggested by Martin Lambers <marlam@marlam.de>.
75547
75548 2006-01-09  Bruno Haible  <bruno@clisp.org>
75549
75550         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75551         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75552
75553 2006-01-09  Bruno Haible  <bruno@clisp.org>
75554
75555         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75556         numbers.
75557
75558 2006-01-09  Bruno Haible  <bruno@clisp.org>
75559
75560         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75561         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75562         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75563         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75564
75565 2006-01-09  Bruno Haible  <bruno@clisp.org>
75566
75567         * build-aux/javacomp.sh.in: New file, moved from lib/.
75568         * modules/javacomp-script (Files): Update.
75569         (configure.ac): Add AC_CONFIG_FILES invocation.
75570         (EXTRA_DIST): Remove variable.
75571
75572         * build-aux/javaexec.sh.in: New file, moved from lib/.
75573         * modules/javaexec (Files): Update.
75574         (configure.ac): Add AC_CONFIG_FILES invocation.
75575         (EXTRA_DIST): Remove javaexec.sh.in.
75576
75577         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75578         * modules/csharpcomp-script (Files): Update.
75579         (configure.ac): Add AC_CONFIG_FILES invocation.
75580         (EXTRA_DIST): Remove variable.
75581
75582         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75583         * modules/csharpexec (Files): Update.
75584         (configure.ac): Add AC_CONFIG_FILES invocation.
75585         (EXTRA_DIST): Remove csharpexec.sh.in.
75586
75587 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75588
75589         Sync from coreutils.
75590
75591         Add POSIX ACL support
75592         * lib/acl.h (copy_acl, set_acl): Add declarations.
75593         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75594         systems other than Linux.
75595         (chmod_or_fchmod): New function: use fchmod when possible,
75596         and chmod otherwise.
75597         (file_has_acl): Add a POSIX ACL implementation, with a
75598         Linux-specific subcase.
75599         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75600         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75601         acls are unsupported.
75602         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75603         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75604         are unsupported.
75605
75606 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75607
75608         Sync from coreutils.
75609         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75610
75611 2006-01-07  Bruno Haible  <bruno@clisp.org>
75612
75613         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75614         gl_EARLY.
75615
75616 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75617
75618         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75619         Problem reported for Mingw by Mark Junker.
75620
75621 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75622
75623         * README: Gnulib normally doesn't generate a tarball.
75624
75625 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75626
75627         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75628         long int, not int, for nanosecond counts, so that people who are
75629         used to POSIX struct timespec won't be surprised.  Reported by Jim
75630         Meyering.
75631
75632 2005-12-28  Bruno Haible  <bruno@clisp.org>
75633
75634         * build-aux/config.rpath: Update from GNU gettext.
75635
75636 2005-12-16  Jim Meyering  <jim@meyering.net>
75637
75638         * modules/fprintftime: New module.
75639         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75640
75641 2005-12-16  Jim Meyering  <jim@meyering.net>
75642
75643         * m4/fprintftime.m4: New file.
75644
75645 2005-12-16  Jim Meyering  <jim@meyering.net>
75646
75647         * lib/fprintftime.c, lib/fprintftime.h: New files.
75648
75649 2005-12-15  Simon Josefsson  <jas@extundo.com>
75650
75651         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75652         new m4/socklen.m4.
75653
75654 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75655
75656         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75657         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75658
75659 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75660
75661         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75662         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75663         struct uparams is valid. Fall back to the default values if it is
75664         not.
75665
75666 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75667
75668         * modules/argp (Files): Add argp-pin.c
75669         (Depends-on): dirname
75670         (lib_SOURCES): Add argp-pin.c
75671
75672 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75673
75674         * m4/argp.m4:  Check if program_invocation_name and
75675         program_invocation_short_name are declared and define appropriate
75676         macros if they are not.
75677
75678 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75679
75680         * lib/argp-help.c (__argp_base_name): New function
75681         (__argp_short_program_name): Rewrite using __argp_base_name
75682         * lib/argp-namefrob.h: Define program_invocation_name and
75683         program_invocation_short_name if requested
75684         (__argp_base_name): Add prototype
75685         * lib/argp-parse.c (argp_def): Use gettext wrappers
75686         (argp_default_parser): Use __argp_base_name
75687         * lib/argp-pin.c: New file. Defines program_invocation_name and
75688         program_invocation_short_name on systems that lack them.
75689
75690 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75691
75692         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75693         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75694         porting problem reported by Georg Schwarz in
75695         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75696
75697 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75698
75699         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
75700         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75701         porting problem reported by Georg Schwarz in
75702         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75703
75704 2005-12-05  Bruno Haible  <bruno@clisp.org>
75705
75706         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
75707         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
75708         Reported by Mark Junker <mjscod@gmx.de>.
75709
75710 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
75713         Use implementation from Albert Chin, with some
75714         comments/corrections by Stepan Kasal and myself.
75715
75716 2005-12-02  Bruno Haible  <bruno@clisp.org>
75717
75718         * gnulib-tool (func_import): Accept GPLed build tool modules when
75719         --lgpl is given.
75720         * modules/csharpcomp-script: New file.
75721         * modules/csharpcomp: Depend on it.
75722         * modules/javacomp-script: New file.
75723         * modules/javacomp: Depend on it.
75724         Suggested by Simon Josefsson.
75725
75726 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
75729         statement, to work around an HP-UX 10.20 compiler bug reported by
75730         Peter O'Gorman.
75731
75732 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75733
75734         * modules/savedir (Depends-on): Add openat.
75735
75736 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75737
75738         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
75739         (uintmax_t) [defined uintmax_t]: Do not declare.
75740         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
75741         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
75742         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
75743         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
75744         sake of portability to weird hosts that C allows (though we don't
75745         know of any practical examples).
75746
75747         * lib/savedir.h (fdsavedir): New decl.
75748         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
75749         contains most of the former guts of savedir.
75750         (savedir): Use savedirstream.
75751         Include "openat.h".
75752
75753 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75754
75755         * modules/obstack (Files): Add m4/ulonglong.m4.
75756         Problem reported by Davide Angelocola.
75757
75758 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75759
75760         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75761         coreutils no longer futzes with rounding modes.
75762
75763 2005-11-14  Jim Meyering  <jim@meyering.net>
75764
75765         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75766         replacement of mkstemp.
75767
75768 2005-11-10  Simon Josefsson  <jas@extundo.com>
75769
75770         * lib/readline.c: Remove EOL.
75771
75772 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75773
75774         * modules/gethrxtime (Depends-on): Add gettime.
75775
75776 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75777
75778         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75779         or gettimeofday; no longer needed.
75780
75781 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75782
75783         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75784         time business.
75785         (gethrxtime) [! (HAVE_NANOUPTIME
75786         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75787         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75788         our own approximation.
75789
75790 2005-11-08  Eric Blake  <ebb9@byu.net>
75791
75792         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75793
75794 2005-11-08  Eric Blake  <ebb9@byu.net>
75795
75796         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75797
75798 2005-11-04  Bruno Haible  <bruno@clisp.org>
75799
75800         * gnulib-tool: Implement --update mode.
75801
75802 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75803
75804         Fix porting problem reported by Theodoros V. Kalamatianos.
75805         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75806         Don't assume that futimes failing means we must fail.
75807
75808 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75811         variables to suggest the intended function of the PATH_MAX check.
75812
75813 2005-10-30  Kean Johnston  <jkj@sco.com>
75814
75815         Trivial changes to support SCO systems.
75816         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75817         as PATH_MAX.
75818         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75819         where __ptr is null when no I/O is pending.
75820
75821 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75824         leave errno alone.  Problem reported by Dmitry V. Levin.
75825
75826 2005-10-28  Simon Josefsson  <jas@extundo.com>
75827
75828         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75829         Test more.
75830
75831         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75832
75833         * modules/md2, modules/md2-tests: New files.
75834
75835 2005-10-28  Simon Josefsson  <jas@extundo.com>
75836
75837         * m4/inet_ntop.m4: More tests.
75838
75839         * m4/gc-md2.m4, md2.m4: New file.
75840
75841 2005-10-28  Simon Josefsson  <jas@extundo.com>
75842
75843         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75844         "restrict" keywords, as per POSIX.  Protect the function
75845         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75846         Don't use K&R prototypes.  Check the sprintf return values.
75847         Re-define EAFNOSUPPORT if not present.  Indent.
75848
75849         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75850         suggested by Bruno Haible <bruno@clisp.org>.
75851
75852         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75853
75854         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75855
75856         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75857         libgcrypt).
75858
75859         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75860
75861         * lib/md2.h, lib/md2.c: New files.
75862
75863 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75864
75865         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75866         errno alone.  Problem reported by Frederic Jolliton.
75867
75868 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75869
75870         * modules/verify (License): Change from GPL to LGPL.  This is a
75871         tiny module and there are apparently near-equivalents that are
75872         under the BSD license.
75873
75874 2005-10-24  Simon Josefsson  <jas@extundo.com>
75875
75876         * modules/sha1: Relicense to LGPL.
75877
75878 2005-10-24  Simon Josefsson  <jas@extundo.com>
75879
75880         * lib/md4.h: Shrink buffer size, now that we changed the type.
75881
75882 2005-10-23  Simon Josefsson  <jas@extundo.com>
75883
75884         * gnulib-tool (func_import): Fix --tests-base.
75885
75886 2005-10-22  Simon Josefsson  <jas@extundo.com>
75887
75888         * modules/arcfour (Depends-on): Need stdint.
75889
75890 2005-10-22  Simon Josefsson  <jas@extundo.com>
75891
75892         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75893         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75894
75895 2005-10-22  Simon Josefsson  <jas@extundo.com>
75896
75897         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75898         suggested by Bruno Haible <bruno@clisp.org>.
75899
75900 2005-10-22  Simon Josefsson  <jas@extundo.com>
75901
75902         * lib/crc.h: Include stddef.h, for size_t.
75903
75904 2005-10-22  Simon Josefsson  <jas@extundo.com>
75905
75906         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75907         arcfour_context struct (simplify test vector testing in GNU
75908         Shishi).
75909
75910 2005-10-21  Simon Josefsson  <jas@extundo.com>
75911
75912         * modules/des, modules/des-tests: New files.
75913
75914         * modules/gc-des, modules/gc-des-tests: New files.
75915
75916         * tests/test-des.c, tests/test-gc-des.c: New file.
75917
75918 2005-10-21  Simon Josefsson  <jas@extundo.com>
75919
75920         * modules/arctwo, modules/arctwo-tests: New files.
75921
75922         * tests/test-arctwo.c: New file.
75923
75924         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75925
75926         * tests/test-gc-arctwo.c: New file.
75927
75928 2005-10-21  Simon Josefsson  <jas@extundo.com>
75929
75930         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75931         Bruno Haible <bruno@clisp.org>.
75932
75933         * m4/gc-des.m4: New file.
75934
75935 2005-10-21  Simon Josefsson  <jas@extundo.com>
75936
75937         * m4/arctwo.m4: New file.
75938
75939         * m4/gc-arctwo.m4: New file.
75940
75941 2005-10-21  Simon Josefsson  <jas@extundo.com>
75942
75943         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75944         block.
75945
75946 2005-10-21  Simon Josefsson  <jas@extundo.com>
75947
75948         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75949         <bruno@clisp.org>.
75950
75951         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75952
75953         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75954         Bruno Haible <bruno@clisp.org>.
75955
75956         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75957         <bruno@clisp.org>.
75958
75959 2005-10-21  Simon Josefsson  <jas@extundo.com>
75960
75961         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75962
75963 2005-10-21  Simon Josefsson  <jas@extundo.com>
75964
75965         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75966
75967 2005-10-21  Simon Josefsson  <jas@extundo.com>
75968
75969         * lib/des.h, lib/des.c: New files.
75970
75971         * lib/gc-gnulib.c: Support DES.c
75972
75973 2005-10-21  Simon Josefsson  <jas@extundo.com>
75974
75975         * lib/arctwo.h, lib/arctwo.c: New files.
75976
75977         * lib/gc-gnulib.c: Support ARCTWO.
75978
75979 2005-10-21  Simon Josefsson  <jas@extundo.com>
75980
75981         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75982         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75983
75984 2005-10-21  Simon Josefsson  <jas@extundo.com>
75985
75986         * gnulib-tool (func_import, func_create_testdir): Define automake
75987         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75988         Makefile.am snippet),
75989         suggested by Bruno Haible <bruno@clisp.org>.
75990
75991         * modules/gc (Makefile.am): Use it.
75992
75993 2005-10-21  Bruno Haible  <bruno@clisp.org>
75994
75995         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75996         patch.
75997
75998 2005-10-19  Simon Josefsson  <jas@extundo.com>
75999
76000         * tests/test-gc-rijndael.c: New file.
76001
76002         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76003
76004 2005-10-19  Simon Josefsson  <jas@extundo.com>
76005
76006         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76007         interface too.
76008
76009 2005-10-19  Simon Josefsson  <jas@extundo.com>
76010
76011         * tests/test-gc-arcfour.c: New file.
76012
76013         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76014
76015 2005-10-19  Simon Josefsson  <jas@extundo.com>
76016
76017         * modules/gc-md4, modules/gc-md4-tests: New file.
76018
76019         * tests/test-gc-md4.c: New file.
76020
76021 2005-10-19  Simon Josefsson  <jas@extundo.com>
76022
76023         * m4/gc-md4.m4: New file.
76024
76025 2005-10-19  Simon Josefsson  <jas@extundo.com>
76026
76027         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76028         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76029         <kasal@ucw.cz>.
76030
76031 2005-10-19  Simon Josefsson  <jas@extundo.com>
76032
76033         * m4/gc-arcfour.m4: New file.
76034
76035         * m4/gc-rijndael.m4: New file.
76036
76037 2005-10-19  Simon Josefsson  <jas@extundo.com>
76038
76039         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76040
76041 2005-10-19  Simon Josefsson  <jas@extundo.com>
76042
76043         * lib/gc-gnulib.c: Support ARCFOUR.
76044
76045 2005-10-19  Simon Josefsson  <jas@extundo.com>
76046
76047         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76048         support.
76049
76050         * lib/gc.h: Add ECB enum type.
76051
76052         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76053
76054 2005-10-18  Simon Josefsson  <jas@extundo.com>
76055
76056         * tests/test-md5.c: New file.
76057
76058         * modules/md5-tests: New file.
76059
76060 2005-10-18  Simon Josefsson  <jas@extundo.com>
76061
76062         * tests/test-md4.c: New file.
76063
76064         * modules/md4, modules/md4-tests: New files.
76065
76066 2005-10-18  Simon Josefsson  <jas@extundo.com>
76067
76068         * m4/md4.m4: New file.
76069
76070 2005-10-18  Simon Josefsson  <jas@extundo.com>
76071
76072         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76073
76074 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76075
76076         * gnulib-tool (func_create_testdir): Omit the second check whether
76077         BUILT_SOURCES in nonempty.
76078
76079 2005-10-17  Simon Josefsson  <jas@extundo.com>
76080
76081         * tests/test-rijndael.c: New file.
76082
76083 2005-10-17  Simon Josefsson  <jas@extundo.com>
76084
76085         * modules/sha1: Depend on stdint instead of md5.
76086
76087         * modules/md5: Depend on stdint, remove uint32_t.
76088
76089 2005-10-17  Simon Josefsson  <jas@extundo.com>
76090
76091         * modules/gc-sha1-tests: New file.
76092
76093         * tests/test-gc-sha1.c: New file.
76094
76095 2005-10-17  Simon Josefsson  <jas@extundo.com>
76096
76097         * m4/md5.m4: Remove call to uint32_t.m4.
76098
76099 2005-10-17  Simon Josefsson  <jas@extundo.com>
76100
76101         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76102
76103         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76104         md5.h.
76105
76106         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76107
76108         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76109
76110 2005-10-17  Simon Josefsson  <jas@extundo.com>
76111
76112         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76113
76114 2005-10-17  Simon Josefsson  <jas@extundo.com>
76115
76116         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76117
76118 2005-10-17  Simon Josefsson  <jas@extundo.com>
76119
76120         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76121
76122         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76123
76124 2005-10-17  Bruno Haible  <bruno@clisp.org>
76125
76126         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76127         that it can also be used in a test.
76128
76129 2005-10-16  Bruno Haible  <bruno@clisp.org>
76130
76131         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76132         TESTS_ENVIRONMENT, so that individual tests can augment it.
76133
76134         * gnulib-tool (func_create_testdir): Use an intermediate target for
76135         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76136         macros, like $(ALLOCA_H), which cannot be passed through the command
76137         line.
76138
76139 2005-10-15  Simon Josefsson  <jas@extundo.com>
76140
76141         * modules/rijndael-tests: New file.
76142
76143         * modules/rijndael: New file.
76144
76145 2005-10-15  Simon Josefsson  <jas@extundo.com>
76146
76147         * m4/rijndael.m4: New file.
76148
76149 2005-10-15  Simon Josefsson  <jas@extundo.com>
76150
76151         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76152
76153         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76154
76155 2005-10-14  Simon Josefsson  <jas@extundo.com>
76156
76157         * tests/test-arcfour.c: New file.
76158
76159         * modules/arcfour, modules/arcfour-tests: New files.
76160
76161 2005-10-14  Simon Josefsson  <jas@extundo.com>
76162
76163         * m4/arcfour.m4: New file.
76164
76165 2005-10-14  Simon Josefsson  <jas@extundo.com>
76166
76167         * lib/arcfour.h, lib/arcfour.c: New files.
76168
76169 2005-10-14  Roland McGrath  <roland@redhat.com>
76170
76171         Import from libc.  [BZ #1331]
76172         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76173         macro argument.
76174         Reported by Matej Vela <vela@debian.org>.
76175
76176 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76177
76178         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76179         include <wchar.h>; no longer needed.
76180
76181 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76182
76183         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76184
76185 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76186         and  Ulrich Drepper  <drepper@redhat.com>
76187
76188         Import from libc.
76189         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76190         instead of inline stream orientation test and two separate
76191         function calls.  Pay no attention to USE_IN_LIBIO.
76192
76193 2005-10-13  Simon Josefsson  <jas@extundo.com>
76194
76195         * modules/gc-hmac-md5-tests: New file.
76196
76197         * tests/test-gc-hmac-sha1.c: New file.
76198
76199         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76200
76201         * modules/gc-hmac-md5-tests: New file.
76202
76203         * tests/test-gc-md5.c: New file.
76204
76205         * modules/gc-md5-tests: New file.
76206
76207 2005-10-13  Simon Josefsson  <jas@extundo.com>
76208
76209         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76210         Move memory allocation outside of loop.
76211
76212 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76213
76214         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76215         intermediate directory is in a read-only file system.  Problem
76216         reported by Eric Blake.
76217
76218 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76219
76220         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76221
76222 2005-10-12  Simon Josefsson  <jas@extundo.com>
76223
76224         * tests/test-hmac-sha1.c: New file.
76225
76226         * modules/hmac-sha1-tests: New file.
76227
76228         * modules/hmac-sha1: New file.
76229
76230 2005-10-12  Simon Josefsson  <jas@extundo.com>
76231
76232         * modules/gc-sha1: New file.
76233
76234 2005-10-12  Simon Josefsson  <jas@extundo.com>
76235
76236         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76237
76238         * tests/test-gc-pbkdf2-sha1.c: New file.
76239
76240 2005-10-12  Simon Josefsson  <jas@extundo.com>
76241
76242         * modules/gc-md5, modules/gc-hmac-md5: New files.
76243
76244         * modules/gc (Files): Remove md5, memxor and hmac files.
76245
76246 2005-10-12  Simon Josefsson  <jas@extundo.com>
76247
76248         * m4/gc-pbkdf2-sha1.m4: New file.
76249
76250         * m4/gc-hmac-sha1.m4: New file.
76251
76252         * m4/gc-sha1: New file.
76253
76254         * m4/hmac-sha1.m4: New file.
76255
76256 2005-10-12  Simon Josefsson  <jas@extundo.com>
76257
76258         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76259
76260         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76261
76262 2005-10-12  Simon Josefsson  <jas@extundo.com>
76263
76264         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76265         suggested by Bruno Haible <bruno@clisp.org>.
76266
76267 2005-10-12  Simon Josefsson  <jas@extundo.com>
76268
76269         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76270
76271 2005-10-12  Simon Josefsson  <jas@extundo.com>
76272
76273         * lib/gc-pbkdf2-sha1.c: New file.
76274
76275         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76276
76277 2005-10-12  Simon Josefsson  <jas@extundo.com>
76278
76279         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76280
76281         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76282
76283 2005-10-12  Simon Josefsson  <jas@extundo.com>
76284
76285         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76286         GC_USE_HMAC_MD5, respectively.
76287
76288         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76289         (gc_md5): Fix typo.
76290
76291         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76292
76293         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76294
76295         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76296
76297 2005-10-12  Bruno Haible  <bruno@clisp.org>
76298
76299         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76300         Reported by Stepan Kasal <kasal@ucw.cz>.
76301
76302 2005-10-11  Simon Josefsson  <jas@extundo.com>
76303
76304         * tests/test-crc.c: New file.
76305
76306         * modules/crc, modules/crc-tests: New files.
76307
76308 2005-10-11  Simon Josefsson  <jas@extundo.com>
76309
76310         * m4/crc.m4: New file.
76311
76312 2005-10-11  Simon Josefsson  <jas@extundo.com>
76313
76314         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76315
76316         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76317
76318         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76319
76320 2005-10-11  Simon Josefsson  <jas@extundo.com>
76321
76322         * lib/crc.h, lib/crc.c: New files.
76323
76324         * lib/gc.h (gc_hash_buffer): Add doc.
76325
76326 2005-10-11  Bruno Haible  <bruno@clisp.org>
76327
76328         * modules/c-strcasestr: New file.
76329         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76330
76331 2005-10-11  Bruno Haible  <bruno@clisp.org>
76332
76333         * modules/c-strcase: New file.
76334         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76335
76336 2005-10-11  Bruno Haible  <bruno@clisp.org>
76337
76338         * lib/strcasecmp.c: Include limits.h.
76339         (strcasecmp): Avoid integer overflow on exotic platforms.
76340         * lib/strncasecmp.c: Include limits.h.
76341         (strncasecmp): Avoid integer overflow on exotic platforms.
76342         Reported by Paul Eggert.
76343
76344 2005-10-11  Bruno Haible  <bruno@clisp.org>
76345
76346         * lib/c-strcasestr.h: New file, from GNU gettext.
76347         * lib/c-strcasestr.c: New file, from GNU gettext.
76348
76349 2005-10-11  Bruno Haible  <bruno@clisp.org>
76350
76351         * lib/c-strcase.h: New file, from GNU gettext.
76352         * lib/c-strcasecmp.c: New file, from GNU gettext.
76353         * lib/c-strncasecmp.c: New file, from GNU gettext.
76354
76355 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76356
76357         * modules/mempcpy (License): GPL -> LGPL.
76358         * modules/strchrnul (License): Likewise.
76359         * modules/sysexits (License): Likewise.
76360
76361 2005-10-08  Simon Josefsson  <jas@extundo.com>
76362
76363         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76364
76365 2005-10-07  Simon Josefsson  <jas@extundo.com>
76366
76367         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76368
76369 2005-10-06  Simon Josefsson  <jas@extundo.com>
76370
76371         * tests/test-hmac-md5.c: New file.
76372
76373         * modules/hmac-md5-tests: New file.
76374
76375         * modules/hmac-md5: New file.
76376
76377 2005-10-06  Simon Josefsson  <jas@extundo.com>
76378
76379         * m4/hmac-md5.m4: New file.
76380
76381         * m4/memxor.m4: Require gl_C_RESTRICT.
76382
76383 2005-10-06  Simon Josefsson  <jas@extundo.com>
76384
76385         * lib/memxor.c (memxor): Avoid casts and warnings.
76386
76387 2005-10-06  Simon Josefsson  <jas@extundo.com>
76388
76389         * lib/hmac-md5.c: New file.
76390
76391         * lib/hmac.h: New file.
76392
76393 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76394
76395         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76396         promotes to int, not unsigned int, to catch the AIX 5.3
76397         compiler bug.
76398
76399 2005-10-05  Simon Josefsson  <jas@extundo.com>
76400
76401         * modules/memxor: New file.
76402
76403         * modules/iconv (Files): Move config.rpath to havelib, it is used
76404         there.
76405
76406         * modules/havelib (Files): Add config.rpath.
76407
76408 2005-10-05  Simon Josefsson  <jas@extundo.com>
76409
76410         * m4/memxor.m4: New file.
76411
76412 2005-10-05  Simon Josefsson  <jas@extundo.com>
76413
76414         * lib/memxor.c (memxor): Fix compiler error.
76415
76416         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76417         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76418
76419         * lib/memxor.h, lib/memxor.c: New files.
76420
76421         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76422         we assume all systems have it, suggested by Jim Meyering
76423         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76424         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76425         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76426         same reasons.
76427
76428 2005-10-05  Simon Josefsson  <jas@extundo.com>
76429
76430         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76431
76432 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76433
76434         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76435         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76436         needed, since the source code now assumes these .h files.
76437
76438 2005-10-05  Derek Price  <derek@ximbiot.com>
76439
76440         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76441
76442 2005-10-05  Bruno Haible  <bruno@clisp.org>
76443
76444         * modules/stdint (License): Change to LGPL.
76445
76446 2005-10-04  Simon Josefsson  <jas@extundo.com>
76447
76448         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76449         D. Baushke" <mdb@gnu.org>.
76450
76451 2005-10-04  Bruno Haible  <bruno@clisp.org>
76452
76453         * lib/verify.h (verify_true): Provide alternative definition for C++.
76454
76455 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76458         (SSIZE_MAX): New macro, if not already defined.
76459         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76460         than 2 GiB.
76461
76462 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76463
76464         Sync from coreutils.
76465         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76466         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76467         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76468         ULLONG_MAX doesn't work with 2.7.2.1.
76469
76470 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76471
76472         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76473         From Ben Pfaff.
76474
76475         * modules/exclude (Depends-on): Depend on verify.
76476         * modules/strtoimax (Depends-on): Likewise.
76477         * modules/utimecmp (Depends-on): Likewise.
76478
76479 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76480
76481         * lib/exclude.c: Include verify.h.
76482         (verify): Remove.  All callers changed to use verify.h's version.
76483         * lib/strtoimax.c: Likewise.
76484         * lib/utimecmp.c: Likewis.e
76485
76486         Sync from coreutils.
76487         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76488         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76489         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76490         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76491         bother returning ENOSYS if settimeofday or stime fails; just let
76492         them return whatever errno they want to return.
76493         * lib/utimens.c: Include unistd.h, for dup2.
76494         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76495         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76496
76497 2005-10-02  Jim Meyering  <jim@meyering.net>
76498
76499         Sync from coreutils.
76500         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76501         from glibc-2.2.5 that fails for read-only files.
76502
76503 2005-10-02  Jim Meyering  <jim@meyering.net>
76504
76505         Sync from coreutils.
76506         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76507         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76508         `#if HAVE_CONFIG_H'.
76509         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76510         Remove AT_FDCWD test.
76511         Do not consume the fd unless successful.
76512         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76513         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76514         block, so that we don't even try to compile it if settimeofday is
76515         available.  This works around a compilation failure on OSF1 V5.1,
76516         due to stime requiring a `long int*' while tv_sec is `int'.
76517
76518 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76519
76520         Sync from coreutils.
76521         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76522         against `yes', rather than just testing for nonempty.
76523
76524 2005-10-01  Simon Josefsson  <jas@extundo.com>
76525
76526         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76527         and Darwin.
76528
76529         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76530         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76531         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76532         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76533         Check if struct addrinfo is declared.
76534
76535 2005-10-01  Simon Josefsson  <jas@extundo.com>
76536
76537         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76538         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76539         AI_* and EAI_* definitions.  Protect function declarations.
76540
76541 2005-10-01  Jim Meyering  <jim@meyering.net>
76542
76543         Sync from coreutils.
76544
76545         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76546         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76547         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76548         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76549         in the inet and nsl libraries.  Required on Solaris 5.7.
76550
76551 2005-10-01  Jim Meyering  <jim@meyering.net>
76552
76553         Sync from coreutils.
76554         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76555         in the inet and nsl libraries.  Required on Solaris 5.7.
76556
76557 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76558
76559         * lib/getdelim.c (getdelim): Remove unused variables.
76560
76561 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76562
76563         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76564         so that the code works even with ancient cpp.  Portability problem
76565         with GCC 2.7.2.1 reported by Thomas M.Ott.
76566
76567 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76568
76569         * modules/regex (Depends-on): Add strcase.
76570
76571         * modules/gethostname (Licence): Change from GPL to LGPL, since
76572         gethostname.c is a trivial implementation of a standard library
76573         function.
76574         * modules/poll (License): Change from GPL to LGPL, since it's
76575         derived from LGPL code.
76576
76577 2005-09-27  Jim Meyering  <jim@meyering.net>
76578
76579         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76580         HAVE_CONFIG_H.
76581
76582         * lib/intprops.h (signed_type_or_expr__): Define.
76583         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76584         for unsigned types.
76585
76586 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76587
76588         * lib/verify.h (verify_expr): Remove, replacing with:
76589         (verify_true): New macro that returns true instead of void.
76590         (verify_type__): Remove.
76591         (verify): Use verify_true rather than verify_type__.
76592
76593 2005-09-26  Bruno Haible  <bruno@clisp.org>
76594
76595         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76596         is necessary.
76597         (lib_SOURCES): Remove mbchar.c.
76598         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76599         (Files): Add m4/mbrtowc.m4.
76600         * modules/mbiter: Likewise.
76601         * modules/mbuiter: Likewise.
76602
76603 2005-09-26  Bruno Haible  <bruno@clisp.org>
76604
76605         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76606         compile mbchar.c if they are not both present.
76607         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76608         * m4/mbiter.m4 (gl_MBITER): Likewise.
76609         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76610         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76611         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76612
76613 2005-09-25  Jim Meyering  <jim@meyering.net>
76614
76615         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76616         also uses socklen_t.
76617
76618 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76619
76620         * lib/utimens.c (ENOSYS): Define if not already defined.
76621         (futimens): Support having a null PATH if the file descriptor
76622         is nonnegative.
76623
76624         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76625         Remove.
76626         (__attribute): Define to empty unless GCC 3.1 or later.
76627         This works around a core dump on OpenBSD 3.4, which has GCC
76628         2.95.3, which dumps core when given __attribute__(()).  It also
76629         simplifies other tests, since we really don't want to bother with
76630         worrying about which ancient version of GCC supported what.
76631         Original problem reported by Yoann Vandoorselaere, with part of
76632         the fix suggested by Derek Price.
76633
76634 2005-09-24  Jim Meyering  <jim@meyering.net>
76635
76636         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76637         so we can once again use a positive bitfield width of 1 -- now we
76638         don't have to explain why we were using a bitfield width of 2.
76639
76640 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76643         and similarly for the other external symbols.  Problem reported
76644         by James Gallager.
76645
76646         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76647         bug reported by Jim Meyering.
76648
76649         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76650         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76651         not needed, since socklen is a prerequisite module.
76652
76653 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76654
76655         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76656         Problem reported by Eric Blake.
76657         (getaddrinfo): Initialize se so that it's not garbage.
76658         Redo internal storage allocation so that it doesn't make unportable
76659         assumptions about alignment.
76660         Fix a memory leak.
76661
76662         * lib/utimens.c (futimens): Use futimesat if available.
76663         Prefer it to futimes since it doesn't have the futimes bug.
76664
76665         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76666         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76667         Instead, declare a function that returns a pointer to an array,
76668         and use verify_type__ to declare the size of the array.
76669         Problem and germ of a solution reported by Bruno Haible.
76670         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76671         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76672
76673 2005-09-23  Jim Meyering  <jim@meyering.net>
76674
76675         Sync from coreutils.
76676         Correct build failure (socklen_t not defined) on at least
76677         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76678         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76679
76680 2005-09-23  Jim Meyering  <jim@meyering.net>
76681
76682         * modules/getaddrinfo (Depends-on): Add socklen.
76683
76684 2005-09-23  Bruno Haible  <bruno@clisp.org>
76685
76686         * tests/test-verify.c: New file.
76687
76688 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76689
76690         Sync from coreutils.
76691
76692         * modules/argmatch (Depends-on): Add verify.
76693         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76694         unistd-safer.
76695         * modules/save-cwd (Depends-on): Likewise.
76696
76697         * modules/openat (Files): Add lib/openat-die.c.
76698         (Depends-on): Remove error, exitfail.
76699         Add dirname.
76700
76701         * modules/verify: New file.
76702         * MODULES.html.sh (Diagnostics <assert.h>): New section,
76703         with "verify" module.
76704
76705 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76706
76707         Sync from coreutils.
76708
76709         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
76710         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
76711         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
76712         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
76713         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
76714         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
76715         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
76716         Don't bother checking for string.h, stdlib.h, unistd.h.
76717         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
76718         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
76719         module's job.
76720         * m4/jm-macros.m4 (gl_MACROS): Likewise.
76721         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
76722
76723         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
76724         (gl_GETDATE): Use it.
76725
76726         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
76727
76728 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76729
76730         Sync from coreutils.
76731
76732         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
76733         stat-time.h.
76734         * lib/argmatch.h: Include verify.h
76735         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
76736         (ARGMATCH_ASSERT): Remove; unused.
76737         * lib/canonicalize.c: Assume STDC_HEADERS.
76738         * lib/exclude.c: Include "strcase.h".
76739         * lib/regex_internal.h [!defined _LIBC]: Likewise.
76740         * lib/getusershell.c: Include stdio--.h rather than stdio.h
76741         and stdio-safer.h.
76742         (getusershell): Call fopen, not fopen_safer.
76743         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
76744         Do not include unistd-safer.h.
76745         (save_cwd): Don't call fd_safer; no longer needed
76746         now that we include fcntl--.h.
76747
76748         * lib/getdate.y (relative_time): New type.
76749         (RELATIVE_TIME_0): New constant.
76750         (parser_control): Use relative_time instead of doing it ourselves.
76751         (%union): Add new relative_time rel member.
76752         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
76753         Now typeless.
76754         (relunit, relunit_snumber): Now of type rel.
76755         (zone, rel, relunit, get_date): Adjust to above changes.
76756
76757         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76758         Do not include unistd-safer.h.
76759         (getloadavg): Don't call fd_safer; no longer needed
76760         now that we include fcntl--.h.
76761
76762         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76763         (make_dir_parents): Treat ENOSYS like EEXIST.
76764
76765         Improve quality of diagnostics on restore_cwd failure.
76766         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76767         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76768         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76769         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
76770         each time through the loop.  Do not diagnose restore_cwd failure;
76771         that is the caller's job (and perhaps the caller does not care).
76772
76773         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
76774         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
76775         If the file already exists but is not a directory, don't bother
76776         to try to make its parents.
76777         Close potential file descriptor leak if we can't chdir("/") (!).
76778         Don't always return true if chdir($PWD) fails; return true only
76779         if the requested action was done successfully (except for the
76780         chdir($PWD)).
76781         Don't log final directory unless we actually made it.
76782         Refactor to avoid duplicate code to fix up permissions.
76783         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76784
76785         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76786         to make it a bit faster and (I hope) clearer.
76787         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76788         Fix bug in formats like %2N.
76789
76790         * lib/verify.h: New file.
76791
76792 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76793
76794         Sync from coreutils.
76795         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76796
76797 2005-09-22  Jim Meyering  <jim@meyering.net>
76798
76799         Sync from coreutils.
76800
76801         * m4/lstat.m4 (gl_FUNC_LSTAT):
76802         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76803         Remove obsolete comment.
76804         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76805         * m4/xstrtod.m4: Likewise.
76806
76807         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76808
76809 2005-09-22  Jim Meyering  <jim@meyering.net>
76810
76811         Sync from coreutils.
76812
76813         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76814
76815         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76816         the .tm_year member, since otherwise gcc-4.0 would now warn about
76817         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76818
76819         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76820         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76821
76822         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76823         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76824         when run in a time zone for which daylight savings time is in effect
76825         for the starting date.
76826
76827         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76828         stop us from restricting permissions of just-created absolute-named
76829         directories.
76830         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76831         to restore initial working directory.
76832         * lib/mkdir-p.c (make_dir_parents): New parameter:
76833         different_working_dir, to tell caller if/when we change the working
76834         directory and are unable to return to the initial one.
76835         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76836         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76837         `return false'.  This fixes a bug introduced on 2004-07-30.
76838
76839         * lib/openat.c (fdopendir): Be sure to close the supplied
76840         file descriptor before returning.  This makes our replacement
76841         implementation a little closer to Solaris's, where fdopendir
76842         ties the file descriptor to the returned DIR* pointer.
76843         * lib/openat.c (unlinkat): New function.
76844         * lib/openat.h (unlinkat): Add prototype.
76845         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76846         (openat_restore_fail): Rename from openat_restore_die.
76847         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76848
76849         Provide an alternative to exiting immediately upon save_cwd or
76850         restore_cwd failure.  Now, an application can arrange e.g.,
76851         to perform a longjump in that case.
76852         * lib/openat.c: Include dirname.h.
76853         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76854         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76855         and openat_restore_die rather than calling error directly.
76856         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76857
76858         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76859         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76860         define.
76861
76862         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76863         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76864                             int utc, int nanoseconds);
76865         Background:
76866         date should not have to allocate a megabyte of virtual memory to
76867         handle a format argument like +%1048575T.  When implemented with
76868         strftime, it must allocate such a buffer, use strftime to fill it
76869         in, print it, then free it.
76870         With fprintftime, it simply prints everything and exits.
76871         With no need for memory allocation, that's one fewer way to fail.
76872         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76873         optional field width, not before, so we accept %9:z, not %:9z.
76874         (my_strftime): Be sure to use L_('x') for literals.
76875
76876         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76877         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76878         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76879         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76880         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76881         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76882         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76883         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76884         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76885         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76886         * lib/xgethostname.c, lib/xreadlink.c:
76887         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76888
76889         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76890         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76891         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76892         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76893         and don't include <sys/file.h>).
76894
76895 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76896
76897         Sync from coreutils.
76898
76899         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76900         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76901         [!LDAV_DONE]: Avoid unused variable warning.
76902
76903 2005-09-21  Bruno Haible  <bruno@clisp.org>
76904
76905         * lib/unicodeio.h (unicode_to_mb): New declaration.
76906
76907 2005-09-20  Derek Price  <derek@ximbiot.com>
76908
76909         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76910         getaddrinfo.h.
76911
76912 2005-09-20  Bruno Haible  <bruno@clisp.org>
76913
76914         * gnulib-tool: Remove trailing slashes from the values specified for
76915         --source-base, --m4-base, --tests-base, --aux-dir.
76916         Suggested by Simon Josefsson <jas@extundo.com>.
76917
76918 2005-09-20  Bruno Haible  <bruno@clisp.org>
76919
76920         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76921         func_modules_to_filelist, func_import, func_create_testdir): Make all
76922         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76923         change when gnulib-tool is invoked in a different locale.
76924
76925 2005-09-19  Simon Josefsson  <jas@extundo.com>
76926
76927         * m4/socklen.m4: Fix typo.
76928
76929 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76930
76931         Use a consistent style for including <config.h>.
76932         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76933         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76934         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76935         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76936         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76937         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76938         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76939         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76940         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76941         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76942         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76943         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76944         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76945         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76946         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76947         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76948         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76949         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76950         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76951         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76952         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76953         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76954         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76955         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76956         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76957         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76958         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76959         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76960         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76961         lib/xstrtoumax.c, lib/yesno.c:
76962         Standardize inclusion of config.h.
76963         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76964         lib/inttostr.h:  Removed inclusion of config.h from header files.
76965         * lib/inttostr.c:  Adjusted in-tree users.
76966         * lib/timespec.h: Remove superfluous warning to include config.h.
76967         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76968         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76969         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76970         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76971         config.h with HAVE_CONFIG_H.
76972
76973 2005-09-19  Jim Meyering  <jim@meyering.net>
76974
76975         * modules/pathmax (License): Change to LGPL.
76976
76977 2005-09-19  Derek Price  <derek@ximbiot.com>
76978
76979         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76980
76981 2005-09-19  Bruno Haible  <bruno@clisp.org>
76982
76983         * gnulib-tool (import): Provide default for --tests-base.
76984
76985 2005-09-19  Bruno Haible  <bruno@clisp.org>
76986
76987         * doc/quote.texi: New file, extracted from gnulib.texi.
76988         * doc/ctime.texi: New file, extracted from gnulib.texi.
76989         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76990         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76991         * doc/gnulib.texi: Include them.
76992
76993 2005-09-18  Bruno Haible  <bruno@clisp.org>
76994
76995         Portability fix.
76996         * gnulib-tool (func_readlink): New function.
76997         (func_ln_if_changed): Use it.
76998
76999 2005-09-18  Bruno Haible  <bruno@clisp.org>
77000
77001         * gnulib-tool: Support --with-tests also with --import.
77002         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77003         (func_import): Use variables $testsbase and $inctests. Emit a
77004         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77005         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77006         SUBDIRS += $testsdir.
77007         (func_create_testdir): Update.
77008
77009 2005-09-18  Bruno Haible  <bruno@clisp.org>
77010
77011         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77012         instead of $dry_run.
77013         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77014         (func_ln_if_changed): Don't handle dry-run here.
77015         (func_import): In dry-run mode, detect more precisely which actions
77016         would be performed, and don't use "...ing" verbs.
77017
77018 2005-09-18  Bruno Haible  <bruno@clisp.org>
77019
77020         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77021         (func_import): Use join on two temporary files instead of three nested
77022         loops, in order to determine which files are new or old.
77023
77024 2005-09-18  Bruno Haible  <bruno@clisp.org>
77025
77026         * gnulib-tool (func_import): Comment out code that spits out the
77027         new files with --dry-run.
77028
77029 2005-09-18  Bruno Haible  <bruno@clisp.org>
77030
77031         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77032
77033 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77034
77035         * lib/stat-time.h: New file.
77036         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77037         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77038         in a different way.
77039         (timespec_cmp): New function.
77040         * lib/utimecmp.c: Include stat-time.h.
77041         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77042         members exist, not on the obsolescent ST_MTIM_NSEC.
77043         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77044
77045 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77048
77049 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         * MODULES.html.sh (File system functions): Add stat-time.
77052         * modules/stat-time: New file.
77053         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77054         is now done in a different way, by the stat-time module.
77055         * modules/utimecmp (Depends-on): Add stat-time.
77056
77057 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77058
77059         * m4/st_mtim.m4: Remove.  Superseded by...
77060         * m4/stat-time.m4: New file.
77061         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77062         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77063
77064 2005-09-15  Derek Price  <derek@ximbiot.com>
77065
77066         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77067
77068 2005-09-15  Derek Price  <derek@ximbiot.com>
77069
77070         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77071         * lib/regex_internal.c: Ditto, using this...
77072         (__GNUC_PREREQ): ...new macro.
77073         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77074         using...
77075         (__GNUC_PREREQ): ...this new macro.
77076
77077         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77078
77079 2005-09-15  Derek Price  <derek@ximbiot.com>
77080             Paul Eggert  <eggert@cs.ucla.edu>
77081
77082         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77083         changes, consolidating in...
77084         * lib/regex_internal.h: ...this file.
77085
77086 2005-09-13  Jim Meyering  <jim@meyering.net>
77087
77088         * lib/canon-host.c: Filter through gnu indent and reword comments
77089         slightly.
77090         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77091
77092 2005-09-13  Derek Price  <derek@ximbiot.com>
77093
77094         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77095         failure.
77096         Reported by Jim Meyering  <jim@meyering.net>.
77097
77098 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77099
77100         * lib/base64.c: Typo.
77101         (base64_encode): Put b64str in initialized data section.
77102
77103 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77104
77105         Merge glibc and coreutils changes into gnulib, plus a few
77106         extra fixes.
77107         * lib/md5.c: Use #error rather than a string.
77108         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77109         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77110         (__attribute__): Define to empty for non recent-GCC.
77111         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77112         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77113         Renamed from their non-__ counterparts, with new macros replacing
77114         them if not _LIBC.  Add __THROW attribute.
77115         (rol): Remove.
77116         (struct md5_ctx): Align buffer if using GCC.
77117         * lib/sha1.h (struct sha1_ctx): Likewise.
77118         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77119         The old name was backwards.
77120         (NOTSWAP): Remove; not used.
77121         (rol): New macro, moved here from md5.h.
77122         (sha1_process_block): Remove a FIXME that doesn't make sense.
77123
77124 2005-09-12  Derek Price  <derek@ximbiot.com>
77125
77126         Return usable errors from canon-host.
77127         * lib/canon-host.h: New file.
77128         * lib/canon-host.c (canon_host): Wrap...
77129         (canon_host_r): ...this new function, which now relies exclusively on
77130         getaddrinfo.
77131         (ch_strerror): New function.
77132         (last_cherror): New global.
77133         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77134         interface.
77135         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77136         void *.
77137         (freeaddrinfo): Free ai->ai_canonname when set.
77138
77139 2005-09-12  Derek Price  <derek@ximbiot.com>
77140
77141         Make canon-host require getaddrinfo.
77142         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77143         AC_LIBSOURCE canon-host.h.  Call...
77144         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77145         gl_GETADDRINFO.
77146         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77147
77148 2005-09-12  Derek Price  <derek@ximbiot.com>
77149
77150         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77151         LGPL.
77152         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77153
77154 2005-09-12  Derek Price  <derek@ximbiot.com>
77155
77156         * lib/gai_strerror.c: Include config.h when available.  Include
77157         getaddrinfo.h before other headers to test interface.
77158         Reported by Larry Jones <lawrence.jones@ugs.com>.
77159
77160 2005-09-12  Derek Price  <derek@ximbiot.com>
77161             Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         * modules/glob (Files): Add glob-libc.h.
77164
77165 2005-09-12  Derek Price  <derek@ximbiot.com>
77166             Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77169         glob_.h, glob-libc.h.
77170         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77171
77172 2005-09-12  Derek Price  <derek@ximbiot.com>
77173             Paul Eggert  <eggert@cs.ucla.edu>
77174
77175         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77176         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77177         protecting things that should be done only in gnulib contexts.
77178         * lib/glob_.h: New file, containing only the glob things needed for
77179         gnulib.
77180         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77181         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77182         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77183         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77184         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77185         and to respect the namespace rules better.
77186
77187 2005-09-08  Simon Josefsson  <jas@extundo.com>
77188
77189         * modules/socklen: New file.
77190
77191 2005-09-08  Simon Josefsson  <jas@extundo.com>
77192
77193         * m4/socklen.m4: New file.
77194
77195 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77196
77197         * modules/utimens (Files): Add m4/utimbuf.m4, since
77198         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77199         Reported by Sergey Poznyakoff.
77200
77201 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77202
77203         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77204         definitions, since that's the preferred style in glibc.
77205         Fix a minor spacing issue, and update copyright notice to match
77206         glibc's.
77207
77208 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77209
77210         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77211
77212 2005-09-06  Simon Josefsson  <jas@extundo.com>
77213
77214         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77215         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77216
77217 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77218
77219         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77220         warning.
77221
77222 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77223
77224         * config/srclist.txt: Add glibc bug 1302.
77225
77226 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77227
77228         Change bitset word type from unsigned int to unsigned long int,
77229         as this has better performance on typical 64-bit hosts.
77230         Port bitset code to hosts with unusual word sizes.
77231         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77232         (build_collating_symbol):
77233         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77234         argument is a bitset.  This is merely a style issue, but it makes
77235         it clearer that an entire array is expected.
77236         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77237         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77238         Port to the case where bitset_word is not the same as unsigned int.
77239         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77240         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77241         Likewise.
77242         * lib/regexec.c (check_dst_limits_calc_pos_1,
77243         check_subexp_matching_top):
77244         (build_trtable, group_nodes_into_DFAstates):
77245         Likewise.
77246         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77247         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77248         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77249         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77250         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77251         * lib/regcomp.c (optimize_subexps, lower_subexp):
77252         Work even if bitset_word has holes in its bitwise representation.
77253         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77254         * lib/regexec.c (check_dst_limits_calc_pos_1,
77255         check_subexp_matching_top):
77256         Likewise.
77257         * lib/regex_internal.c (re_string_reconstruct):
77258         Don't assume UCHAR_MAX == 255.
77259         * lib/regex_internal.h (bitset_set_all): Likewise.
77260         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77261         All uses changed.
77262         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77263         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77264         All uses changed.
77265         (BITSET_WORD_MAX): New macro.
77266         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77267         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77268         (bitset_empty, bitset_copy):
77269         Prefer sizeof (bitset) to multiplying it out ourselves.
77270         (bitset_not_merge): Remove; unused.
77271         (bitset_contain): Return bool, not unsigned int with one bit on.
77272         All callers changed.
77273         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77274         alignment than re_node_set; do this by defining a new internal
77275         type struct dests_alloc and using it to allocate memory.
77276
77277 2005-09-05  Bruno Haible  <bruno@clisp.org>
77278
77279         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77280         links.
77281
77282 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77283
77284         * modules/size_max (Makefile.am): Add size_max.h
77285
77286 2005-09-04  Derek Price  <derek@ximbiot.com>
77287
77288         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77289
77290 2005-09-03  Simon Josefsson  <jas@extundo.com>
77291
77292         * gnulib-tool: Fix typo.
77293
77294 2005-09-03  Simon Josefsson  <jas@extundo.com>
77295
77296         * config/srclist.txt: Add glibc bug 1293.
77297
77298 2005-09-03  Derek Price  <derek@ximbiot.com>
77299
77300         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77301         From Larry Jones <lawrence.jones@ugs.com>.
77302
77303 2005-09-02  Simon Josefsson  <jas@extundo.com>
77304
77305         * modules/socklen: New file.
77306
77307 2005-09-02  Simon Josefsson  <jas@extundo.com>
77308
77309         * modules/havelib: New module.
77310
77311         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77312         Use havelib.
77313
77314 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77315
77316         Check for arithmetic overflow when calculating sizes, to prevent
77317         some buffer-overflow issues.  These patches are conservative, in the
77318         sense that when I couldn't determine whether an overflow was possible,
77319         I inserted a run-time check.
77320         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77321         macros.
77322         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77323         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77324         (re_xnrealloc, re_x2nrealloc): New inline functions.
77325         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77326         parse_bracket_exp):
77327         (build_equiv_class, build_charclass): Check for arithmetic overflow
77328         in size expression calculations.
77329         * lib/regex_internal.c (re_string_realloc_buffers):
77330         (build_wcs_upper_buffer, re_node_set_add_intersect):
77331         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77332         (re_dfa_add_node, register_state): Likewise.
77333         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77334         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77335         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77336         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77337
77338 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77341         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77342
77343 2005-09-02  Bruno Haible  <bruno@clisp.org>
77344
77345         Support for lib vs. lib64 distinction on biarch platforms.
77346         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77347         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77348         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77349
77350 2005-09-02  Bruno Haible  <bruno@clisp.org>
77351
77352         * gnulib-tool (import): In the other first-use case, provide defaults
77353         as well.
77354
77355 2005-09-02  Bruno Haible  <bruno@clisp.org>
77356
77357         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77358         patches not yet found in the latest gettext release.
77359
77360 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77361
77362         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77363         to avoid a collision with bits/local_lim.h in glibc.
77364         All uses changed.  Problem reported by Dmitry V. Levin in
77365         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77366
77367         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77368         bugs in int versus size_t comparisons.
77369         (re_string_context_at): Fix bug where the code assumed that
77370         Idx is signed.
77371
77372         Use bool where appropriate.
77373         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77374         All callers changed.
77375         (calc_eclosure_iter): Likewise, for ROOT arg.
77376         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77377         (build_charclass_op): Likewise, for NON_MATCH arg.
77378         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77379         (re_string_construct_common): Likewise, for ICASE arg.
77380         * lib/regexec.c (re_search_2_stub, re_search_stub):
77381         Likewise, for RET_LEN arg.
77382         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77383         (set_regs): Likewise, for FL_BACKTRACK arg.
77384         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77385         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77386         (calc_eclosure_iter, parse_bracket_exp):
77387         Use bool for internal variables that are booleans.
77388         * lib/regexec.c (re_search_internal, check_matching,
77389         proceed_next_node):
77390         (set_regs, build_sifted_states, sift_states_bkref):
77391         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77392         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77393         (find_collation_sequence_value):
77394         Likewise.
77395         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77396         (re_node_set_compare):
77397         Return bool, not int. All callers changed.
77398         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77399         (build_trtable, check_node_accept): Likewise.
77400         * lib/regex_internal.h: Include stdbool.h.
77401
77402         Fix bugs uncovered when converting to bool.
77403         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77404         failure instead of charging ahead blindly.
77405         * lib/regex_internal.c (register_state): Likewise.
77406         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77407         for freeing internal storage.
77408         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77409         bitset pieces used as boolean, to avoid undefined behavior
77410         on hosts that do int overflow checking.
77411
77412 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77413
77414         * config/srclist.txt: Add glibc bugs 1285-1287.
77415
77416 2005-09-01  Jim Meyering  <jim@meyering.net>
77417
77418         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77419         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77420         Require gl_STAT_MACROS, too.
77421
77422 2005-09-01  Bruno Haible  <bruno@clisp.org>
77423
77424         * gnulib-tool (import): In the first-use case, provide defaults.
77425
77426 2005-09-01  Bruno Haible  <bruno@clisp.org>
77427
77428         * gnulib-tool (func_import): Remove the .tmp files.
77429
77430 2005-09-01  Bruno Haible  <bruno@clisp.org>
77431
77432         * gnulib-tool (func_import): Fix handling of symbolic links.
77433
77434 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77435
77436         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77437         old glibc regex code mishandles strings longer than 2**31 bytes.
77438         This patch fixes this when the regex code is used in gnulib
77439         (i.e., outside glibc).
77440
77441         This patch should not affect the use of the regex code inside
77442         glibc.  No doubt this problem also needs to be handled for glibc
77443         as well, but the result will be an incompatible change to the
77444         glibc ABI, and the old ABI will have to be supported too.  That
77445         can be the the subject for another patch.
77446
77447         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77448         governing whether the rest of this patch is active.  By default,
77449         the macro is disabled and the patch has no effect.
77450         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77451         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77452         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77453         (re_match_2, re_set_registers): Use the new types.
77454         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77455         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77456         New macros.
77457         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77458         (re_string_context_at, bin_tree_t, re_dfastate_t):
77459         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77460         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77461         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77462         (re_string_char_size_at, re_string_wchar_at):
77463         (re_string_elem_size_at):
77464         Use the new types and macros to port to 64-bit hosts.
77465         Use unsigned types for internal values, so that the code
77466         mostly works even for arrays larger than SSIZE_MAX.
77467         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77468         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77469         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77470         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77471         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77472         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77473         (calc_inveclosure, parse_dup_op, build_range_exp):
77474         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77475         (fetch_number, create_token_tree, mark_opt_subexp):
77476         Likewise.
77477         * lib/regex_internal.c (re_string_construct_common,
77478         create_ci_newstate):
77479         (create_cd_newstate, re_string_allocate, re_string_construct):
77480         (re_string_realloc_buffers, build_wcs_upper_buffer):
77481         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77482         (re_string_reconstruct, re_string_peek_byte_case):
77483         (re_string_fetch_byte_case, re_string_context_at):
77484         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77485         (re_node_set_init_copy, re_node_set_add_intersect):
77486         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77487         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77488         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77489         (re_acquire_state, re_acquire_state_context, register_state):
77490         Likewise.
77491         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77492         search_cur_bkref_entry):
77493         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77494         (re_search_internal, re_search_2_stub, re_search_stub)
77495         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77496         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77497         (update_cur_sifted_state, check_dst_limits):
77498         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77499         (check_subexp_limits, sift_states_bkref, merge_state_array):
77500         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77501         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77502         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77503         (expand_bkref_cache, check_node_accept_bytes):
77504         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77505         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77506         (acquire_init_state_context, check_halt_node_context):
77507         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77508         (sift_states_backward, clean_state_log_if_needed):
77509         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77510         (find_recover_state, transit_state_sb, transit_state_mb):
77511         (transit_state_bkref, build_trtable, match_ctx_clean):
77512         Likewise.
77513         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77514         to work around an assumption that REG_MISSING is negative.
77515
77516         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77517         (seek_collating_symbol_entry) [defined _LIBC]:
77518         (lookup_collation_sequence_value) [defined _LIBC]:
77519         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77520         Use prototypes rather than old-style function definitions.
77521         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77522         (transit_state_sb) [0]:
77523         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77524
77525         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77526         rm_eo.
77527
77528         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77529         (optimize_subexps, lower_subexp):
77530         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77531         since the signed shift might overflow.  Use 1u<<31 instead.
77532         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77533         Likewise.
77534         * lib/regexec.c (check_dst_limits_calc_pos_1,
77535         check_subexp_matching_top): Likewise.
77536
77537         * lib/regcomp.c (optimize_subexps, lower_subexp):
77538         Use CHAR_BIT rather than 8, for clarity.
77539         * lib/regexec.c (check_dst_limits_calc_pos_1):
77540         (check_subexp_matching_top): Likewise.
77541         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77542         have to worry about portability issues when shifting it left.
77543         Remove no-longer-needed test for table_size > 0.
77544         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77545         in a word, as the resulting behavior is undefined.
77546         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77547         in one case, a <= should have been an <, and in another case the
77548         whole test was missing.
77549         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77550         the standard name CHAR_BIT.
77551         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77552         this is not true on one's complement and signed-magnitude hosts.
77553
77554         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77555         next_last_offset.
77556         (struct re_dfa_t): Remove unused member states_alloc.
77557         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77558
77559 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77560
77561         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77562         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77563         and large-file glibc and in 32-bit large-file Solaris.
77564
77565 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77566
77567         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77568         lengths fit in regoff_t; this isn't true if regoff_t is the same
77569         width as size_t.
77570         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77571         (= START + RANGE) instead of RANGE.  This avoids overflow
77572         problems when regoff_t is the same width as size_t.
77573         All callers changed.
77574         (re_search_2_stub): Check for overflow when adding the
77575         sizes of the two strings.
77576         (re_search_stub): Check for overflow when adding START
77577         to RANGE; if it occurs, substitute the extreme value.
77578
77579 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77580
77581         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77582
77583 2005-08-31  Jim Meyering  <jim@meyering.net>
77584
77585         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77586         a pointer-to-const.
77587         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77588         (register_state): Likewise.
77589         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77590         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77591         (group_nodes_into_DFAstates): Likewise.
77592
77593 2005-08-31  Jim Meyering  <jim@meyering.net>
77594
77595         * check-module: Add a FIXME comment.
77596
77597 2005-08-31  Eric Blake  <ebb9@byu.net>
77598
77599         * modules/unistd-safer (Files): Add unistd--.h.
77600         * modules/stdio-safer (Files): Add stdio--.h.
77601
77602 2005-08-31  Derek Price  <derek@ximbiot.com>
77603
77604         * lib/getdelim.c (getdelim): Return EOF on EOF.
77605         Reported by Larry Jones <lawrence.jones@ugs.com>.
77606
77607 2005-08-31  Bruno Haible  <bruno@clisp.org>
77608
77609         Avoid unnecessary diffs in the generated lib/Makefile.am.
77610         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77611         the generated files.
77612         (func_import): Don't set cmd.
77613
77614 2005-08-31  Bruno Haible  <bruno@clisp.org>
77615
77616         * lib/strstr.c: Include <stddef.h>, for NULL.
77617         * lib/strcasestr.c: Likewise.
77618         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77619
77620 2005-08-31  Bruno Haible  <bruno@clisp.org>
77621
77622         * gnulib-tool: New option --macro-prefix.
77623         (func_import): Use macro_prefix.
77624         (import): Handle option --macro-prefix.
77625
77626 2005-08-31  Bruno Haible  <bruno@clisp.org>
77627
77628         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77629         Also use new variables cached_lgpl, cached_libtool.
77630
77631 2005-08-31  Bruno Haible  <bruno@clisp.org>
77632
77633         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77634         always instantiating them.
77635
77636 2005-08-31  Bruno Haible  <bruno@clisp.org>
77637
77638         * gnulib-tool (func_import): Read the previous cached settings
77639         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77640         earlier added by gnulib but are now dropped. Warn when a gnulib file
77641         overwrites a non-gnulib file.
77642
77643 2005-08-31  Bruno Haible  <bruno@clisp.org>
77644
77645         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77646         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77647         projects that don't keep autogenerated files in CVS. Put into
77648         actioncmd only the specified modules, not the transitive closure.
77649
77650 2005-08-31  Bruno Haible  <bruno@clisp.org>
77651
77652         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77653         Create directories that shall be filled.
77654         (import): Don't look for gl_* macros in configure.ac. Recurse across
77655         all directories containing a gnulib-cache.m4 files, if meaningful.
77656
77657 2005-08-31  Bruno Haible  <bruno@clisp.org>
77658
77659         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77660         (import): Set seen_libtool when we see gl_LIBTOOL.
77661
77662 2005-08-31  Bruno Haible  <bruno@clisp.org>
77663
77664         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77665         declaration macro definitions from generated gnulib.m4.
77666
77667 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77668
77669         * lib/iconvme.h: Add prototype for iconv_alloc.
77670
77671 2005-08-29  Simon Josefsson  <jas@extundo.com>
77672
77673         * lib/iconvme.c: Fix errno.
77674
77675 2005-08-29  Bruno Haible  <bruno@clisp.org>
77676
77677         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77678         that it works when the directory contains spaces.
77679
77680 2005-08-29  Bruno Haible  <bruno@clisp.org>
77681
77682         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77683
77684 2005-08-29  Bruno Haible  <bruno@clisp.org>
77685
77686         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77687         Emit more advice.
77688
77689 2005-08-29  Bruno Haible  <bruno@clisp.org>
77690         and Stepan Kasal  <kasal@ucw.cz>
77691
77692         * check-module: If more parameters are given, check each of them
77693         separately; add more exceptions, as noted by Jim Meyering.
77694         (check_module): New procedure.
77695         (%exempt_header): Now contains all exceptions.
77696
77697 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
77698
77699         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
77700
77701 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77702
77703         * lib/iconvme.c: Split iconv_string into iconv_alloc.
77704
77705 2005-08-28  Bruno Haible  <bruno@clisp.org>
77706
77707         * m4/gnulib-tool.m4: New file.
77708
77709 2005-08-27  Jim Meyering  <jim@meyering.net>
77710
77711         * modules/unistd-safer (Files): Add pipe-safer.c.
77712         * modules/fcntl-safer (Files): Add creat-safer.c.
77713
77714 2005-08-27  Jim Meyering  <jim@meyering.net>
77715
77716         * m4/stdlib-safer.m4: New file.  From coreutils.
77717         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
77718         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
77719         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
77720         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
77721         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
77722
77723 2005-08-27  Jim Meyering  <jim@meyering.net>
77724
77725         * lib/fopen-safer.c: Merge minor changes from coreutils.
77726         * lib/dup-safer.c: Likewise.
77727         * lib/fd-safer.c: Likewise.
77728
77729         Merge from coreutils.
77730         * lib/stdio--.h: New file.
77731         * lib/stdlib--.h: New file.
77732         * lib/mkstemp-safer.c: New file.
77733
77734         GNU tar needs these.
77735         * lib/pipe-safer.c: New file.
77736         * lib/creat-safer.c: New file.
77737         * lib/fcntl--.h (creat): Define to creat_safer.
77738         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
77739         * lib/unistd--.h (pipe): Define to pipe_safer.
77740         * lib/unistd-safer.h: Declare pipe_safer.
77741
77742 2005-08-26  Simon Josefsson  <jas@extundo.com>
77743
77744         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
77745         Haible <bruno@clisp.org>.
77746
77747 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * lib/regex_internal.h: Remove all references to
77750         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
77751         or better.
77752         (bitset_not, bitset_merge, bitset_not_merge):
77753         (bitset_mask, re_string_allocate, re_string_construct):
77754         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77755         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77756         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77757         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77758         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77759         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77760         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77761         (re_acquire_state_context):
77762         Remove unnecessary forward decls.
77763         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77764         Put __attribute at function definition,
77765         now that the function decl has been removed.
77766         * lib/regex_internal.c (re_string_peek_byte_case):
77767         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77768         Likewise.
77769
77770 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
77771
77772         * m4/regex.m4: Add AC_PREREQ(2.50).
77773         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
77774
77775 2005-08-25  Simon Josefsson  <jas@extundo.com>
77776
77777         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77778         __fsetlocking.
77779
77780 2005-08-25  Simon Josefsson  <jas@extundo.com>
77781
77782         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77783         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77784         GLIBC specific code.
77785
77786 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77787
77788         Make regex safe for g++.  This fixes one real bug (an "err"
77789         that should have been "*err").  g++ problem reported by
77790         Sam Steingold.
77791         * lib/regex_internal.h (re_calloc): New macro, consistent with
77792         re_malloc etc.  All callers of calloc changed to use re_calloc.
77793         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77794         not int.  All callers changed.
77795         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77796         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77797         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77798         (find_recover_state): Change "err" to "*err"; this fixes what
77799         appears to be a real bug.
77800         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77801         versus int.
77802
77803 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77804
77805         * modules/regex (Depends-on): Add malloc, since the code
77806         assumes that !malloc(0) means failure.
77807
77808 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77809
77810         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77811
77812         alloca modernization/simplification for regex.
77813         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77814         needs to be at the start of the file, and can be moved into
77815         regex_internal.h and simplified.
77816         * lib/regex_internal.h: Include <alloca.h>.
77817         (__libc_use_alloca) [!defined _LIBC]: New macro.
77818         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77819         now works outside glibc.
77820
77821 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77822
77823         * config/srclist.txt: Add glibc bugs 1241, 1245.
77824
77825 2005-08-25  Jim Meyering  <jim@meyering.net>
77826
77827         * lib/open-safer.c: Include <config.h>.
77828         Otherwise, we'd lose LARGEFILE support in any file using
77829         e.g. "fcntl--.h"
77830
77831 2005-08-25  Bruno Haible  <bruno@clisp.org>
77832
77833         * m4/minmax.m4: Require autoconf 2.52.
77834         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77835         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77836         alternatives of translit over the alphabet.
77837         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77838
77839 2005-08-24  Simon Josefsson  <jas@extundo.com>
77840
77841         * tests/test-getpass.c: New file.
77842
77843 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77844
77845         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77846         for GNU regex features.
77847
77848 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77849
77850         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77851         * lib/regex.h (regerror): Likewise.
77852
77853         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77854         requires this.  (The code never needed it.)
77855
77856         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77857         All uses of recently-renamed identifiers changed to use the new,
77858         POSIX-compliant names.  The code will build and run just fine
77859         without these changes, but it's better to eat our own dog food
77860         and use the standard-conforming names.
77861
77862         * lib/regex.h: Fix a multitude of POSIX name space violations.
77863         These changes have an effect only for programs that define
77864         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77865         do not change anything for programs compiled in the normal way.
77866         Also, there is no effect on the ABI.
77867
77868         (_REGEX_SOURCE): New macro.
77869         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77870         defined and _GNU_SOURCE is not; this fixes a name space violation.
77871
77872         Rename the following macros to obey POSIX requirements.
77873         The old names are still visible as macros if _REGEX_SOURCE is defined.
77874         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77875         RE_BACKSLASH_ESCAPE_IN_LISTS.
77876         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77877         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77878         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77879         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77880         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77881         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77882         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77883         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77884         (REG_INTERVALS): renamed from RE_INTERVALS.
77885         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77886         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77887         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77888         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77889         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77890         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77891         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77892         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77893         RE_UNMATCHED_RIGHT_PAREN_ORD.
77894         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77895         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77896         (REG_DEBUG): renamed from RE_DEBUG.
77897         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77898         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77899         unusual, since we can't clash with the POSIX REG_ICASE.
77900         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77901         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77902         (REG_NO_SUB): renamed from RE_NO_SUB.
77903         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77904         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77905         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77906         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77907         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77908         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77909         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77910         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77911         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77912         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77913         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77914         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77915         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77916         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77917         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77918         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77919         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77920         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77921         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77922         (REG_FIXED): Renamed from REGS_FIXED.
77923         (REG_NREGS): Renamed from RE_NREGS.
77924
77925         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77926         of other REG_* macros, since POSIX says the user is allowed to
77927         #undef these macros selectively.
77928
77929         (reg_errcode_t): Update comment stating what other tables need
77930         to be consistent.
77931
77932         Rename the following enum values to obey POSIX requirements.
77933         The old names are still visible as macros.
77934         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77935         is not defined, since GNU is supposed to be a superset of POSIX as
77936         much as possible, and since we want reg_errcode_t to be a signed
77937         type for implementation consistency.
77938         (_REG_NOERROR): Renamed from REG_NOERROR.
77939         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77940         (_REG_BADPAT): Renamed from REG_BADPAT.
77941         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77942         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77943         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77944         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77945         (_REG_EBRACK): Renamed from REG_EBRACK.
77946         (_REG_EPAREN): Renamed from REG_EPAREN.
77947         (_REG_EBRACE): Renamed from REG_EBRACE.
77948         (_REG_BADBR): Renamed from REG_BADBR.
77949         (_REG_ERANGE): Renamed from REG_ERANGE.
77950         (_REG_ESPACE): Renamed from REG_ESPACE.
77951         (_REG_BADRPT): Renamed from REG_BADRPT.
77952         (_REG_EEND): Renamed from REG_EEND.
77953         (_REG_ESIZE): Renamed from REG_ESIZE.
77954         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77955         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77956         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77957         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77958         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77959
77960         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77961         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77962         changed.  But support the old name if the new one is not defined
77963         and if _REGEX_SOURCE.
77964
77965         Change the following member names in struct re_pattern_buffer.
77966         The old names are still supported if !_REGEX_SOURCE.
77967         The new names are always supported, regardless of _REGEX_SOURCE.
77968         (re_buffer): Renamed from buffer.
77969         (re_allocated): Renamed from allocated.
77970         (re_used): Renamed from used.
77971         (re_syntax): Renamed from syntax.
77972         (re_fastmap): Renamed from fastmap.
77973         (re_translate): Renamed from translate.
77974         (re_can_be_null): Renamed from can_be_null.
77975         (re_regs_allocated): Renamed from regs_allocated.
77976         (re_fastmap_accurate): Renamed from fastmap_accurate.
77977         (re_no_sub): Renamed from no_sub.
77978         (re_not_bol): Renamed from not_bol.
77979         (re_not_eol): Renamed from not_eol.
77980         (re_newline_anchor): Renamed from newline_anchor.
77981
77982         Change the following member names in struct re_registers.
77983         The old names are still supported if !_REGEX_SOURCE.
77984         The new names are always supported, regardless of _REGEX_SOURCE.
77985         (rm_num_regs): Renamed from num_regs.
77986         (rm_start): Renamed from start.
77987         (rm_end): Renamed from end.
77988
77989         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77990         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77991         Prepend __ to parameter names.
77992
77993         Undo yesterday's changes.
77994
77995 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77996
77997         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77998         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77999         lib/regex.c.
78000
78001 2005-08-24  Jim Meyering  <jim@meyering.net>
78002
78003         Sync from coreutils.
78004         * m4/fcntl-safer.m4: New file.
78005
78006         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78007         and object files for this module.
78008
78009 2005-08-24  Jim Meyering  <jim@meyering.net>
78010
78011         Sync from coreutils.
78012         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78013
78014 2005-08-24  Jim Meyering  <jim@meyering.net>
78015
78016         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78017         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78018
78019 2005-08-24  Jim Meyering  <jim@meyering.net>
78020
78021         * modules/fcntl-safer: New module.
78022         * modules/fts (Depends-on): Add fcntl-safer.
78023         * MODULES.html.sh (File descriptor based Input/Output):
78024         Add fcntl-safer.
78025
78026 2005-08-24  Bruno Haible  <bruno@clisp.org>
78027
78028         Support for unit test modules.
78029         * modules/README: Mention tests modules.
78030         * modules/TEMPLATE-TESTS: New file.
78031         * gnulib-tool: New options --extract-tests-module, --with-tests and
78032         --tests-base (unused for the moment).
78033         (testsbase, inctests): New variables.
78034         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78035         (func_verify_module): Exclude TEMPLATE-TESTS.
78036         (func_verify_nontests_module, func_verify_tests_module): New functions.
78037         (func_get_dependencies): Add implicit dependency for tests modules.
78038         (func_get_tests_module): New function.
78039         (func_modules_transitive_closure): When --with-tests was specified,
78040         include the unit tests as well, unless explicitly avoided.
78041         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78042         (func_emit_tests_Makefile_am): New function.
78043         (func_create_testdir): When --with-tests was specified, emit a
78044         tests/ directory.
78045         * MODULES.html.sh (Future developments): Update.
78046
78047 2005-08-24  Bruno Haible  <bruno@clisp.org>
78048
78049         * modules/tls-tests: New file.
78050         * tests/test-tls.c: New file, from GNU gettext.
78051
78052 2005-08-24  Bruno Haible  <bruno@clisp.org>
78053
78054         * modules/lock-tests: New file.
78055         * tests/test-lock.c: New file, from GNU gettext.
78056
78057 2005-08-24  Bruno Haible  <bruno@clisp.org>
78058
78059         * lib/lock.h: Add multiple inclusion guard.
78060         * lib/tls.h: Add multiple inclusion guard.
78061
78062 2005-08-24  Bruno Haible  <bruno@clisp.org>
78063
78064         * gnulib-tool: Add support for the --aux-dir option to
78065         --create-testdir, --create-megatestdir, --test, --megatest.
78066         (func_create_testdir, func_create_megatestdir): Optionally emit a
78067         AC_CONFIG_AUX_DIR directive.
78068         (create-testdir, create-megatestdir, test, megatest): Provide a
78069         default value for $auxdir.
78070
78071 2005-08-24  Bruno Haible  <bruno@clisp.org>
78072
78073         * gnulib-tool (import): Use compound statement instead of subshell
78074         where possible.
78075
78076 2005-08-24  Bruno Haible  <bruno@clisp.org>
78077
78078         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78079
78080 2005-08-24  Bruno Haible  <bruno@clisp.org>
78081
78082         * gnulib-tool (func_version): Update.
78083
78084 2005-08-24  Bruno Haible  <bruno@clisp.org>
78085
78086         * gnulib-tool (func_import, func_create_testdir,
78087         func_create_megatestdir): Quote all autoconf macro arguments.
78088
78089 2005-08-24  Bruno Haible  <bruno@clisp.org>
78090
78091         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78092         option --force, because --force causes the aclocal.m4 of each
78093         subdirectory to be newer than the corresponding config.h.in.
78094
78095 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78098         All contents moved to gl_REGEX.
78099         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78100         assume that it does.
78101
78102 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78103
78104         * lib/regex.h (REG_NOSYS)
78105         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78106         Define, since POSIX requires it as of 2001.
78107         (_REG_ENOSYS)
78108         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78109         New private symbol, used to keep the enum signed in all cases.
78110         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78111         Youngman in
78112         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78113
78114         * lib/regex_internal.c (re_string_skip_chars, register_state):
78115         (calc_state_hash):
78116         Remove forward decls; no longer needed now that we use prototypes.
78117         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78118         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78119         (clean_state_log_if_needed): Likewise.
78120
78121 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * config/srclist.txt: Add glibc bugs 1231-1233.
78124
78125 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78126
78127         Fix problems reported by Sam Steingold in
78128         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78129         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78130         assumed that reg_errcode_t is a signed type, which is not
78131         necessarily true if _XOPEN_SOURCE is not defined.
78132         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78133         since some compilers warn about it otherwise.
78134
78135 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78136
78137         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78138         (init_word_char, create_initial_state, duplicate_node_closure):
78139         (fetch_token, peek_token_bracket, build_range_exp):
78140         (build_collating_symbol): Remove forward decls; no longer needed
78141         now that we use prototypes.
78142
78143         * lib/regcomp.c:
78144         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78145         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78146         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78147         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78148         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78149         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78150         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78151         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78152         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78153         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78154         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78155         (build_charclass, build_charclass_op, fetch_number, create_tree):
78156         (create_token_tree, mark_opt_subexp, duplicate_tree):
78157         Use prototypes rather than old-style definitions.
78158
78159         * lib/regex_internal.c:
78160         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78161         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78162         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78163         (re_string_reconstruct, re_string_peek_byte_case):
78164         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78165         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78166         (re_node_set_init_copy, re_node_set_add_intersect):
78167         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78168         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78169         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78170         (re_acquire_state, re_acquire_state_context, register_state):
78171         (create_ci_newstate, create_cd_newstate, free_state):
78172         Likewise.
78173         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78174         re_search_2):
78175         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78176         (re_search_internal, prune_impossible_nodes):
78177         (acquire_init_state_context, check_matching, static):
78178         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78179         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78180         (update_regs, sift_states_backward, build_sifted_states):
78181         (clean_state_log_if_needed, merge_state_array):
78182         (update_cur_sifted_state, add_epsilon_src_nodes):
78183         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78184         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78185         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78186         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78187         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78188         (check_arrival, check_arrival_add_next_nodes):
78189         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78190         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78191         (check_node_accept_bytes, check_node_accept, extend_buffers):
78192         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78193         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78194         (sift_ctx_init):
78195         Likewise.
78196
78197         * lib/regex_internal.h:
78198         (re_string_allocate, re_string_construct, re_string_reconstruct):
78199         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78200         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78201         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78202         (re_string_context_at, re_string_peek_byte_case):
78203         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78204         is defined, since we now use prototypes always.
78205
78206         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78207         C89 or better.  All uses removed.
78208
78209 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78210
78211         * config/srclist.txt: Add glibc bugs 1220-1227.
78212
78213 2005-08-20  Jim Meyering  <jim@meyering.net>
78214
78215         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78216         of unused local, dfa.
78217
78218 2005-08-20  Bruno Haible  <bruno@clisp.org>
78219
78220         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78221
78222 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78223
78224         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78225         (re_node_set_insert_last, re_dfa_add_node):
78226         Rename local variables to avoid GCC shadowing warnings.
78227
78228 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78231         [defined lint]: Suppress bogus uninitialized-variable warnings.
78232
78233         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78234         and let the caller return REG_ESPACE if out of space.  This
78235         removes an uninitialied-variable warning with GCC 4.0.1, and also
78236         avoids taking the address of a local variable.  All callers
78237         changed.
78238
78239 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78240
78241         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78242         $LIBCSRC/posix/regexec.c.
78243         Add glibc bug 1217 for regcomp.c.
78244
78245 2005-08-19  Jim Meyering  <jim@meyering.net>
78246
78247         * lib/regexec.c (proceed_next_node): Redo local variables to
78248         avoid GCC shadowing warnings.
78249
78250 2005-08-18  Bruno Haible  <bruno@clisp.org>
78251
78252         * lib/strstr.c (strstr): Fix return value in multibyte case.
78253         * lib/strcasestr.c (strcasestr): Likewise.
78254
78255 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78258
78259 2005-08-17  Jim Meyering  <jim@meyering.net>
78260
78261         Make the %s format (seconds since the epoch) work for a negative
78262         number and when used with a zero-padded field width, e.g. %015s.
78263
78264         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78265         label so that it precedes the code to set `digits'.  Otherwise,
78266         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78267         print `00-22'.  Now, it prints `-0022', as it should.
78268
78269 2005-08-17  Bruno Haible  <bruno@clisp.org>
78270
78271         * modules/strstr (Files): Add m4/mbrtowc.m4.
78272         (Depends-on): Add mbuiter.
78273
78274 2005-08-17  Bruno Haible  <bruno@clisp.org>
78275
78276         * modules/strcasestr: New file.
78277         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78278         strcasestr.
78279
78280 2005-08-17  Bruno Haible  <bruno@clisp.org>
78281
78282         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78283
78284 2005-08-17  Bruno Haible  <bruno@clisp.org>
78285
78286         * modules/mbuiter: New file.
78287         * MODULES.html.sh (Extended multibyte and wide character utilities):
78288         Add mbuiter.
78289
78290 2005-08-17  Bruno Haible  <bruno@clisp.org>
78291
78292         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78293         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78294
78295 2005-08-17  Bruno Haible  <bruno@clisp.org>
78296
78297         * m4/strcasestr.m4: New file.
78298
78299 2005-08-17  Bruno Haible  <bruno@clisp.org>
78300
78301         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78302         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78303
78304 2005-08-17  Bruno Haible  <bruno@clisp.org>
78305
78306         * lib/strcasestr.h: New file.
78307         * lib/strcasestr.c: New file.
78308
78309 2005-08-17  Bruno Haible  <bruno@clisp.org>
78310
78311         * lib/strcasecmp.c: Use mbuiter.h.
78312
78313 2005-08-17  Bruno Haible  <bruno@clisp.org>
78314
78315         * lib/mbuiter.h: New file.
78316
78317 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78318
78319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78320         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78321         and gl_GETOPT are both invoked via different paths (as happens
78322         with GNU tar CVS because it uses both argp and getopt), the former
78323         wins.
78324
78325 2005-08-16  Bruno Haible  <bruno@clisp.org>
78326
78327         * modules/tls: New file.
78328         * MODULES.html.sh (Multithreading): Add tls.
78329
78330 2005-08-16  Bruno Haible  <bruno@clisp.org>
78331
78332         * modules/strnlen1: New file.
78333         * MODULES.html.sh (String handling): Add strnlen1.
78334
78335 2005-08-16  Bruno Haible  <bruno@clisp.org>
78336
78337         * modules/strcase (Files): Add m4/mbrtowc.m4.
78338         (Depends-on): Add strnlen1, mbchar.
78339
78340 2005-08-16  Bruno Haible  <bruno@clisp.org>
78341
78342         * modules/mbiter: New file.
78343         * MODULES.html.sh (Extended multibyte and wide character utilities):
78344         Add mbiter.
78345
78346 2005-08-16  Bruno Haible  <bruno@clisp.org>
78347
78348         * modules/mbfile: New file.
78349         * MODULES.html.sh (Extended multibyte and wide character utilities):
78350         Add mbfile.
78351
78352 2005-08-16  Bruno Haible  <bruno@clisp.org>
78353
78354         * modules/mbchar: New file.
78355         * MODULES.html.sh (Extended multibyte and wide character utilities):
78356         New section.
78357
78358 2005-08-16  Bruno Haible  <bruno@clisp.org>
78359
78360         * m4/tls.m4: New file, from GNU gettext.
78361
78362 2005-08-16  Bruno Haible  <bruno@clisp.org>
78363
78364         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78365         always.
78366         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78367
78368 2005-08-16  Bruno Haible  <bruno@clisp.org>
78369
78370         * m4/mbiter.m4: New file.
78371
78372 2005-08-16  Bruno Haible  <bruno@clisp.org>
78373
78374         * m4/mbfile.m4: New file.
78375
78376 2005-08-16  Bruno Haible  <bruno@clisp.org>
78377
78378         * m4/mbchar.m4: New file.
78379
78380 2005-08-16  Bruno Haible  <bruno@clisp.org>
78381
78382         * lib/tls.h: New file, from GNU gettext.
78383         * lib/tls.c: New file, from GNU gettext.
78384
78385 2005-08-16  Bruno Haible  <bruno@clisp.org>
78386
78387         * lib/strnlen1.h: New file.
78388         * lib/strnlen1.c: New file.
78389
78390 2005-08-16  Bruno Haible  <bruno@clisp.org>
78391
78392         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78393         (mbi_init): Update.
78394         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78395         NUL byte, not after it.
78396
78397 2005-08-16  Bruno Haible  <bruno@clisp.org>
78398
78399         * lib/strcase.h (strcasecmp): Add note in comments.
78400         * lib/strncasecmp.c: Use code from strcasecmp.c.
78401         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78402         (strcasecmp): Work correctly in multibyte locales.
78403
78404 2005-08-16  Bruno Haible  <bruno@clisp.org>
78405
78406         * lib/mbiter.h: New file.
78407
78408 2005-08-16  Bruno Haible  <bruno@clisp.org>
78409
78410         * lib/mbfile.h: New file.
78411
78412 2005-08-16  Bruno Haible  <bruno@clisp.org>
78413
78414         * lib/mbchar.h: New file.
78415         * lib/mbchar.c: New file.
78416
78417 2005-08-16  Bruno Haible  <bruno@clisp.org>
78418
78419         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78420         the valid ones. Makes the comparison operations transitive:
78421         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78422         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78423
78424 2005-08-15  Simon Josefsson  <jas@extundo.com>
78425
78426         * modules/ssize_t (License): Change to 'unlimited'.
78427
78428         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78429
78430 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78431
78432         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78433         Add comments for each pending glibc patch.
78434
78435 2005-08-15  Bruno Haible  <bruno@clisp.org>
78436
78437         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78438         __cplusplus is defined.
78439
78440 2005-08-14  Jim Meyering  <jim@meyering.net>
78441
78442         Sync from coreutils.
78443
78444         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78445         Use the hash-table-based cycle-detection code not just when
78446         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78447         Reported by James Youngman in
78448         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78449         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78450         FTS_TIGHT_CYCLE_CHECK.
78451         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78452         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78453         once again.
78454         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78455         * lib/fts.c (fd_safer): Remove decl.
78456         Include fcntl--.h rather than unistd-safer.h
78457         (fts_safe_changedir): Don't call fd_safer; no longer needed
78458         now that we include fcntl--.h.
78459
78460 2005-08-12  Simon Josefsson  <jas@extundo.com>
78461
78462         * modules/getndelim2: Use ssize_t module.
78463         * modules/getnline: Likewise.
78464         * modules/safe-read: Likewise.
78465         * modules/xreadlink: Likewise.
78466
78467         * modules/ssize_t: New file.
78468
78469 2005-08-12  Simon Josefsson  <jas@extundo.com>
78470
78471         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78472
78473 2005-08-12  Simon Josefsson  <jas@extundo.com>
78474
78475         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78476         ssize_t.
78477
78478 2005-08-12  Simon Josefsson  <jas@extundo.com>
78479
78480         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78481         readline, getdelim and check_version.
78482         (Support for systems lacking ISO C 99: Sizes of integer types):
78483         Add size_max.
78484
78485 2005-08-12  Bruno Haible  <bruno@clisp.org>
78486
78487         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78488
78489 2005-08-11  Simon Josefsson  <jas@extundo.com>
78490
78491         * modules/readline: New file.
78492
78493         * modules/strnlen (Files): Add strnlen.h.
78494
78495 2005-08-11  Simon Josefsson  <jas@extundo.com>
78496
78497         * m4/readline.m4: New file.
78498
78499 2005-08-11  Simon Josefsson  <jas@extundo.com>
78500
78501         * lib/readline.h, readline.c: New file.
78502
78503 2005-08-11  Simon Josefsson  <jas@extundo.com>
78504
78505         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78506         gl_AVOID.
78507
78508 2005-08-11  Bruno Haible  <bruno@clisp.org>
78509
78510         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78511
78512 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78513
78514         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78515
78516 2005-08-10  Simon Josefsson  <jas@extundo.com>
78517
78518         * tests/test-iconvme.c: New file.
78519
78520 2005-08-10  Simon Josefsson  <jas@extundo.com>
78521
78522         * m4/strnlen.m4: New file.
78523
78524         * m4/strndup.m4: Don't check for strnlen declaration, done in
78525         strnlen.m4.
78526
78527 2005-08-10  Simon Josefsson  <jas@extundo.com>
78528
78529         * lib/strndup.c: Use strnlen.h.
78530
78531         * lib/strnlen.h: New file.
78532
78533 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78534
78535         * README: Typos.
78536
78537 2005-08-02  Simon Josefsson  <jas@extundo.com>
78538
78539         * modules/readline: New file.
78540
78541 2005-08-02  Simon Josefsson  <jas@extundo.com>
78542
78543         * modules/getdelim: New file.
78544
78545         * modules/getline: Rewrite, don't use getndelim2.
78546
78547 2005-08-02  Simon Josefsson  <jas@extundo.com>
78548
78549         * m4/getline.m4: Separate out getdelim stuff into separate module.
78550
78551         * m4/getdelim.m4: New file.
78552
78553 2005-08-02  Simon Josefsson  <jas@extundo.com>
78554
78555         * lib/getline.h, getline.c: Rewrite.
78556
78557         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78558
78559 2005-07-31  Bruno Haible  <bruno@clisp.org>
78560
78561         * lib/lock.h (gl_lock_initializer): New macro.
78562         (gl_lock_define_initialized): Use it.
78563         (gl_rwlock_initializer): New macro.
78564         (gl_rwlock_define_initialized): Use it.
78565         (gl_recursive_lock_initializer): New macro.
78566         (gl_recursive_lock_define_initialized): Use it.
78567
78568 2005-07-30  Karl Berry  <karl@gnu.org>
78569
78570         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78571         Report from Ben Pfaff, regarding getopt.
78572
78573 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78574
78575         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78576         normal way.
78577         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78578         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78579         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78580         (gl_GETOPT): Use the new macros.  Most of the implementation
78581         is moved to the new macros.  This is for programs like Emacs
78582         that don't want all the functionality of gl_GETOPT.
78583
78584 2005-07-26  Bruno Haible  <bruno@clisp.org>
78585
78586         * m4/lock.m4: Update from GNU gettext.
78587
78588 2005-07-26  Bruno Haible  <bruno@clisp.org>
78589
78590         * lib/lock.h: Update from GNU gettext.
78591         * lib/lock.c: Update from GNU gettext.
78592
78593 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78594
78595         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78596         obsolescent AC_TRY_RUN.  Include the default includes files, for
78597         'exit'.
78598
78599 2005-07-24  Bruno Haible  <bruno@clisp.org>
78600
78601         * modules/visibility: New file.
78602         * MODULES.html.sh (Misc): Add visibility.
78603
78604 2005-07-24  Bruno Haible  <bruno@clisp.org>
78605
78606         * m4/visibility.m4: New file.
78607
78608 2005-07-24  Bruno Haible  <bruno@clisp.org>
78609
78610         * doc/visibility.texi: New file.
78611
78612 2005-07-22  Bruno Haible  <bruno@clisp.org>
78613
78614         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78615         $(ALLOCA_H), redundant through BUILT_SOURCES.
78616         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78617         redundant through BUILT_SOURCES.
78618         * modules/byteswap (Makefile.am): Remove explicit dependency on
78619         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78620         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78621         $(FNMATCH_H), redundant through BUILT_SOURCES.
78622         * modules/getopt (Makefile.am): Remove explicit dependency on
78623         $(GETOPT_H), redundant through BUILT_SOURCES.
78624         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78625         redundant through BUILT_SOURCES.
78626         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78627         redundant through BUILT_SOURCES.
78628         * modules/stdbool (Makefile.am): Remove explicit dependency on
78629         $(STDBOOL_H), redundant through BUILT_SOURCES.
78630         * modules/stdint (Makefile.am): Remove explicit dependency on
78631         $(STDINT_H), redundant through BUILT_SOURCES.
78632         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78633         Remove explicit dependency on $(SYSEXITS_H).
78634         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78635
78636 2005-07-18  Simon Josefsson  <jas@extundo.com>
78637
78638         * lib/check-version.c (check_version): Accept identical versions too.
78639
78640 2005-07-18  Bruno Haible  <bruno@clisp.org>
78641
78642         * modules/lock: New file.
78643         * MODULES.html.sh (Multithreading): New section.
78644
78645 2005-07-18  Bruno Haible  <bruno@clisp.org>
78646
78647         * m4/lock.m4: New file, from GNU gettext.
78648
78649 2005-07-18  Bruno Haible  <bruno@clisp.org>
78650
78651         * lib/lock.h: New file, from GNU gettext.
78652         * lib/lock.c: New file, from GNU gettext.
78653
78654 2005-07-18  Bruno Haible  <bruno@clisp.org>
78655
78656         * lib/lock.h (gl_once_t): New type.
78657         (gl_once_define, gl_once): New macros.
78658         * lib/lock.c (fresh_once): New variable.
78659         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78660         functions.
78661
78662 2005-07-16  Simon Josefsson  <jas@extundo.com>
78663
78664         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78665         workaround, suggested by Bruno.
78666
78667 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78668
78669         * modules/xalloc (Depends-on): Add xalloc-die.
78670         * modules/xvasprintf (Depends-on): Add xalloc-die.
78671
78672 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78673
78674         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78675         with a minor change.
78676
78677 2005-07-15  Bruno Haible  <bruno@clisp.org>
78678
78679         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78680         When using lib/poll.c, define poll as rpl_poll.
78681
78682 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         * modules/argp (Depends-on): Remove unlocked-io.
78685
78686 2005-07-14  Derek Price  <derek@ximbiot.com>
78687
78688         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78689         for glob symlink bug.
78690
78691 2005-07-14  Bruno Haible  <bruno@clisp.org>
78692
78693         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78694         Instead, test for *_unlocked function declarations directly.
78695
78696 2005-07-11  Simon Josefsson  <jas@extundo.com>
78697
78698         * modules/size_max: New file.
78699
78700         * modules/xsize: Depend on size_max module for size_max.m4.
78701
78702 2005-07-11  Simon Josefsson  <jas@extundo.com>
78703
78704         * lib/size_max.h: New file.
78705
78706 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
78707
78708         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
78709         copyright symbol and the year.
78710         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
78711         (version_etc_va): Use parameterized copyright notice.
78712         Reword to conform to the current GNU coding standards.
78713
78714 2005-07-11  Karl Berry  <karl@gnu.org>
78715
78716         * doc/gnulib.texi (Quoting): new node.
78717         (Initial import): more info, from Patrice.
78718
78719 2005-07-11  Bruno Haible  <bruno@clisp.org>
78720
78721         * gnulib-tool (func_usage): Document option --avoid.
78722         (Command line options): Handle --avoid.
78723         (func_acceptable): New function.
78724         (func_modules_transitive_closure): Use it.
78725
78726 2005-07-11  Bruno Haible  <bruno@clisp.org>
78727
78728         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
78729         Reported by Jim Meyering.
78730
78731 2005-07-10  Bruno Haible  <bruno@clisp.org>
78732
78733         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
78734         Needed when size_t is smaller than 'unsigned int'.
78735         Reported by Paul Eggert.
78736
78737 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78738
78739         * modules/argp (Depends-on): Add unlocked-io
78740
78741 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78742
78743         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
78744         block of defines.
78745
78746 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78747
78748         * config/srclist.txt: Comment out regcomp.c, since we have a porting
78749         fix now.
78750
78751 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
78752         and Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78755         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78756
78757 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * modules/regex (Files): Add lib/regex_internal.c,
78760         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78761         (Depends-on): Add extensions.
78762         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78763
78764 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78765
78766         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78767         pathconf.
78768         * m4/same.m4 (gl_SAME): Likewise.
78769         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
78770
78771         * m4/regex.m4: Adjust to new libc regex implementation.
78772         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
78773         all the .c and .h parts of (the new) regex.
78774         Quote the m4 stuff better.
78775         Check for RE_ICASE bug of old gnulib.
78776         Check for REG_STARTEND of recent libc.
78777         Rename local variables from jm_* to gl_*.
78778         Quote operand of "test -f".
78779         Say "recent enough" version of libc, not "version 2".
78780         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78781         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78782         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78783         Remove check for btowc, isascii.
78784         Require AM_LANGINFO_CODESET.
78785
78786 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * lib/regex.c, regex.h: Sync from libc.
78789         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78790         * lib/regexec.c:
78791         New files, synced from libc, except that regex_internal.h
78792         currently has a small porting fix.
78793
78794 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78795
78796         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78797         regex_internal.c, regexec.c.
78798         Add regex_internal.h too, but as a comment, since the libc version
78799         is currently broken in gnulib mode.
78800
78801 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78802
78803         Support programs like Emacs that use gnulib but not gettext.
78804         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78805         * modules/gettext-h: New file.
78806         * modules/gettext (Files): Remove lib/gettext.h.
78807         (Depends-on): Add gettext-h.
78808         (Makefile.am): Remove lib_SOURCES.
78809         * modules/argmatch, modules/c-stack, modules/closeout:
78810         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78811         * modules/execute, modules/file-type, modules/getaddrinfo:
78812         * modules/getopt, modules/human, modules/javacomp:
78813         * modules/javaexec, modules/mkdir-p, modules/obstack:
78814         * modules/openat, modules/pagealign_alloc, modules/pipe:
78815         * modules/quotearg, modules/regex, modules/rpmatch:
78816         * modules/unicodeio, modules/userspec, modules/version-etc:
78817         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78818         * modules/xsetenv:
78819         Depend on gettext-h, not gettext.
78820
78821 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * gnulib-tool (func_import): Add support for 'public domain' license.
78824         * modules/alloca, modules/atexit, modules/memmove:
78825         Now public domain, not GPL.
78826         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78827         * modules/realloc, modules/strerror, modules/strtod:
78828         Now LGPL, not GPL.
78829
78830 2005-07-05  Bruno Haible  <bruno@clisp.org>
78831
78832         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78833         autoconf CVS. Needed for mingw.
78834
78835 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78836
78837         Remove the dependency of the strftime module on the tzset module.
78838         * modules/strftime (Depends-on): Remove dependency on tzset.
78839
78840 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78841
78842         Remove the dependency of the strftime module on the tzset module.
78843         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78844         gl_FUNC_TZSET_CLOBBER.
78845
78846 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78847
78848         Remove the dependency of the strftime module on the tzset module.
78849         * lib/strftime.c (my_strftime)
78850         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78851         Copy the input structure, to work around some of the bug with
78852         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78853         Solaris releases, you should also use the tzset module, but we won't
78854         require it as a dependency any more since we don't want LGPLed code
78855         to depend on GPLed code.
78856
78857 2005-07-02  Jim Meyering  <jim@meyering.net>
78858
78859         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78860         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78861         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78862         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78863
78864 2005-07-02  Jim Meyering  <jim@meyering.net>
78865
78866         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78867
78868 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78869
78870         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78871         declares only 'struct timespec;' (!).
78872
78873 2005-07-01  Jim Meyering  <jim@meyering.net>
78874
78875         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78876         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78877         * lib/save-cwd.c, tempname.c:
78878         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78879         and don't include <sys/file.h>).
78880
78881 2005-06-29  Jim Meyering  <jim@meyering.net>
78882
78883         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78884         type name.  Use the variable name instead.
78885         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78886         Likewise.
78887
78888 2005-06-28  Simon Josefsson  <jas@extundo.com>
78889
78890         * modules/check-version (Files): Add check-version.m4.
78891
78892 2005-06-28  Simon Josefsson  <jas@extundo.com>
78893
78894         * m4/check-version.m4: New file, suggested by Jim Meyering
78895         <jim@meyering.net>.
78896
78897 2005-06-28  Simon Josefsson  <jas@extundo.com>
78898
78899         * lib/check-version.h, lib/check-version.c: New files.
78900
78901 2005-06-28  Simon Josefsson  <jas@extundo.com>
78902
78903         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78904         collision with global variable.  Better indentation.  Don't
78905         increment buffer pointer beyond buffer end.  Based on comments
78906         from Paul Eggert <eggert@cs.ucla.edu>.
78907
78908         * lib/base64.h: Indent.
78909
78910 2005-06-28  Simon Josefsson  <jas@extundo.com>
78911
78912         * doc/gnulib.texi (Library version handling): New section.
78913
78914 2005-06-28  Jim Meyering  <jim@meyering.net>
78915
78916         * check-module (find_included_lib_files): Hard-code another
78917         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78918         but modules/fts-lgpl (correctly) does not list those files.
78919
78920         * modules/canonicalize (Files): Add lib/pathmax.h.
78921
78922 2005-06-25  Simon Josefsson  <jas@extundo.com>
78923
78924         * modules/check-version: New file.
78925
78926 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78927
78928         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78929         initializer of struct addrinfo, as an indication that we don't
78930         care how many members the structure has.
78931
78932 2005-06-24  Derek Price  <derek@ximbiot.com>
78933         and Bruno Haible  <bruno@clisp.org>
78934
78935         Remove stat module & update lstat.
78936         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78937         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78938         * m4/stat.m4: Remove this file.
78939
78940 2005-06-24  Derek Price  <derek@ximbiot.com>
78941         and Bruno Haible  <bruno@clisp.org>
78942
78943         Remove stat module & update lstat.
78944         * lib/stat.c: Remove this file...
78945         (slash_aware_lstat): ...moving this content and its support...
78946         * lib/lstat.c (rpl_lstat): ...into here.
78947         * lib/lstat.h: New file.
78948
78949 2005-06-24  Derek Price  <derek@ximbiot.com>
78950         and Bruno Haible  <bruno@clisp.org>
78951
78952         Remove stat module & update lstat.
78953         * config/srclist.txt (libc sources): Remove stat.
78954
78955 2005-06-24  Derek Price  <derek@ximbiot.com>
78956         and Bruno Haible  <bruno@clisp.org>
78957
78958         Remove stat module & update lstat.
78959         * MODULES.html.sh (stat): Remove.
78960         * MODULES.html: Regenerated.
78961         * modules/lstat (Description): Correct function name.
78962         (Files): Add "lstat.h".
78963         (Depends-on): Remove stat, add xalloc, stat-macros.
78964         * modules/stat: Remove this file.
78965         (Include): Add "lstat.h", remove <sys/stat.h>.
78966
78967 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78968
78969         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78970         (ranged_convert): Don't save conversion in a temporary struct.
78971         This causes a warning with GCC 4.0.0, and anyway in the typical
78972         case it's not worth the extra 100 bytes or so of code.
78973         (ranged_convert, __mktime_internal): When calling a function via a
78974         pointer P, use P () rather than (*P) (), as we now assume C89 or
78975         better.
78976
78977 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78978
78979         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78980         "who -r" failed to give output.  Problem reported by Tim Waugh.
78981
78982         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78983         (xcalloc): Use it to avoid needless tests.
78984         Problem reported by Jim Meyering.
78985
78986 2005-06-20  Derek Price  <derek@ximbiot.com>
78987
78988         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78989         unnecessary for Autoconfs > 2.59c.
78990
78991 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78992
78993         * lib/argp.h (__option_is_short): Check upper limit of
78994         __key. Isprint() requires its argument to have the value
78995         of an unsigned char or EOF.
78996
78997 2005-06-16  Jim Meyering  <jim@meyering.net>
78998
78999         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79000         when either N or S is zero.
79001
79002 2005-06-16  Derek Price  <derek@ximbiot.com>
79003
79004         * m4/bison.m4: Declare YACC & YFLAGS precious.
79005
79006 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79007
79008         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79009         multibyte string or pattern, fall back on unibyte matching.
79010         Problem reported by James Youngman.
79011
79012 2005-06-08  Bruno Haible  <bruno@clisp.org>
79013
79014         * modules/csharpcomp: New file.
79015         * MODULES.html.sh (C#): Add csharpcomp.
79016
79017 2005-06-08  Bruno Haible  <bruno@clisp.org>
79018
79019         * m4/csharpcomp.m4: New file, from GNU gettext.
79020
79021 2005-06-08  Bruno Haible  <bruno@clisp.org>
79022
79023         * lib/csharpcomp.h: New file, from GNU gettext.
79024         * lib/csharpcomp.c: New file, from GNU gettext.
79025         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79026
79027 2005-06-08  Bruno Haible  <bruno@clisp.org>
79028
79029         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79030         warning on mingw.
79031
79032 2005-06-07  Derek Price  <derek@ximbiot.com>
79033
79034         Sync from CVS.
79035         * lib/glob_.h: Indent nested #ifdef.
79036
79037 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         Sync from coreutils.
79040         Use "file name" when talking about file names, instead of "filename"
79041         or "path", as per the GNU coding standards.
79042         * lib/mkdir-p.c: Renamed from makepath.c.
79043         (make_dir_parents): Renamed from make_path.  All callers changed.
79044         * lib/mkdir-p.h: Likewise.  All includers changed.
79045         * lib/filenamecat.c: Renamed from path-concat.c.
79046         (file_name_concat): Renamed from path_concat.  All callers changed.
79047         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79048         * lib/filenamecat.h: Likewise.  All includers changed.
79049         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79050         in comments or local variable names.
79051         * lib/basename.c: Likewise.
79052         * lib/canonicalize.c, canonicalize.h: Likewise.
79053         * lib/dirname.c, dirname.h: Likewise.
79054         * lib/euidaccess.c: Likewise.
79055         * lib/exclude.c: Likewise
79056         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79057         * lib/fsusage.c, fsuage.h: Likewise.
79058         * lib/fts.c, fts_.h: Likewise.
79059         * lib/getcwd.c: Likewise.
79060         * lib/getloadavg.c: Likewise.
79061         * lib/mkstemp.c: Likewise.
79062         * lib/mountlist.c, mountlist.h: Likewise.
79063         * lib/openat.c, openat.h: Likewise.
79064         * lib/readlink-stub.c: Likewise.
79065         * lib/readutmp.c, readutmp.h: Likewise.
79066         * lib/rename.c: Likewise.
79067         * lib/rmdir.c: Likewise.
79068         * lib/same.c: Likewise.
79069         * lib/savedir.c: Likewise.
79070         * lib/stripslash.c: Likewise.
79071         * lib/tempname.c: Likewise.
79072         * lib/xreadlink.c: Likewise.
79073         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79074         All uses changed.
79075         * lib/exclude.h: Likewise.
79076
79077         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79078         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79079         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79080         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79081         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79082         files have been getting away with it for years (MORE/BSD 4.3
79083         is extinct now).
79084         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79085         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79086
79087         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79088         Define to 256, not 255, as per modern POSIX.
79089
79090 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         Sync from coreutils.
79093         Use "file name" when talking about file names, instead of "filename"
79094         or "path", as per the GNU coding standards.
79095         * MODULES.html.sh: mkdir-p renamed from makepath.
79096         filenamecat renamed from path-concat.
79097         * modules/filenamecat: Renamed from modules/path-concat.
79098         (Files): filenamecat.h and filenamecat.c renamed from
79099         path-concat.h and path-concat.c.
79100         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79101         (Include): filenamecat.h, not path-concat.h.
79102         * modules/mkdir-p: Renamed from modules/makepath.
79103         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79104         makepath.c.
79105         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79106         (Include): mkdir-p.h, not makepath.h.
79107
79108 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79109
79110         Sync from coreutils.
79111         * m4/mkdir-p.m4: Renamed from makepath.m4.
79112         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79113         Rename files from makepath.c to mkdir-p.c, and from
79114         makepath.h to mkdir-p.h.
79115         * m4/filenamecat.m4: Renamed from path-concat.m4.
79116         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79117         Rename files from path-concat.c to filenamecat.c,
79118         and from path-concat.h to filenamecat.h.
79119         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79120         "file name" in local variables or comments.
79121         * m4/rename.m4: Likewise.
79122
79123 2005-06-01  Bruno Haible  <bruno@clisp.org>
79124
79125         * modules/csharpexec: New file.
79126         * MODULES.html.sh (C#): New section.
79127
79128 2005-06-01  Bruno Haible  <bruno@clisp.org>
79129
79130         * m4/csharp.m4: New file, from GNU gettext.
79131         * m4/csharpexec.m4: New file, from GNU gettext.
79132
79133 2005-06-01  Bruno Haible  <bruno@clisp.org>
79134
79135         * lib/csharpexec.h: New file, from GNU gettext.
79136         * lib/csharpexec.c: New file, from GNU gettext.
79137         * lib/csharpexec.sh.in: New file, from GNU gettext.
79138
79139 2005-05-31  Derek Price  <derek@ximbiot.com>
79140             Paul Eggert  <eggert@cs.ucla.edu>
79141
79142         Sync from cvs.
79143         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79144
79145 2005-05-31  Derek Price  <derek@ximbiot.com>
79146             Paul Eggert  <eggert@cs.ucla.edu>
79147
79148         Sync from cvs.
79149         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79150
79151 2005-05-29  Derek Price  <derek@ximbiot.com>
79152
79153         * config/srclist.txt (glob_.h, glob.c): Add these files.
79154
79155 2005-05-29  Derek Price  <derek@ximbiot.com>
79156
79157         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79158         * modules/glob: New file.
79159         * modules/getlogin_r: Add link to POSIX spec in description.
79160
79161 2005-05-29  Derek Price  <derek@ximbiot.com>
79162             Paul Eggert  <eggert@cs.ucla.edu>
79163
79164         * m4/glob.m4: New file.
79165
79166 2005-05-29  Derek Price  <derek@ximbiot.com>
79167             Paul Eggert  <eggert@cs.ucla.edu>
79168
79169         * lib/glob_.h, lib/glob.c: New files.
79170
79171 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79174         * modules/fts-lgpl (Depends-on): Remove gettext.
79175
79176 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79179         and don't require gt_INTTYPES_PRI.
79180
79181 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79182
79183         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79184
79185         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79186         the configuration hassle isn't worth it.
79187         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79188         (LONGEST_MODIFIER, PRIuMAX): Remove.
79189
79190 2005-05-27  Bruno Haible  <bruno@clisp.org>
79191
79192         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79193
79194 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79195
79196         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79197         _POSIX_PTHREAD_SEMANTICS for Solaris.
79198
79199 2005-05-25  Derek Price  <derek@ximbiot.com>
79200
79201         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79202
79203 2005-05-25  Derek Price  <derek@ximbiot.com>
79204             Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79207         * lib/getlogin_r.c, getlogin_r.h: New files.
79208
79209 2005-05-25  Bruno Haible  <bruno@clisp.org>
79210             Derek Price  <derek@ximbiot.com>
79211
79212         * lib/getlogin_r.h: Simplify API documentation.
79213
79214 2005-05-23  Derek Price  <derek@ximbiot.com>
79215
79216         * modules/minmax (Files): Add m4/minmax.m4.
79217         (configure.ac): Add gl_MINMAX.
79218
79219 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79220
79221         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79222         so that unistd-safer.h (GPL'ed code) need not be included.
79223
79224 2005-05-22  Bruno Haible  <bruno@clisp.org>
79225
79226         * m4/minmax.m4: New file.
79227         Based on a patch by Derek Price <derek@ximbiot.com>.
79228
79229 2005-05-22  Bruno Haible  <bruno@clisp.org>
79230
79231         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79232         (INT64_MIN): Fix definition.
79233         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79234
79235         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79236         NEED_SIGNED_INT_TYPES.
79237
79238         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79239         HAVE_SYSTEM_INTTYPES.
79240
79241 2005-05-22  Bruno Haible  <bruno@clisp.org>
79242
79243         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79244         Also include <sys/param.h> if it defines MIN, MAX.
79245         Based on a patch by Derek Price <derek@ximbiot.com>.
79246
79247 2005-05-21  Jim Meyering  <jim@meyering.net>
79248
79249         * modules/fts (Files): Add m4/inttypes-pri.m4.
79250         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79251
79252 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         New fts module.
79255         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79256         (setup_dir, free_dir): New functions.
79257         (enter_dir, leave_dir): Define trivial
79258         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79259         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79260         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79261         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79262         Move to fts-cycle.c.
79263         (fts_open): Use setup_dir.
79264         (fts_close): Use free_dir.
79265         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79266         This adds a label and some gotos, but the alternatives were messier.
79267         Check for memory allocation failure when entering a dir.
79268         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79269         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79270         (FTS): New member fts_cycle, that is a union that contains the
79271         old active_dir_ht and cycle_state.  All uses changed to mention
79272         fts_cycle.ht and fts_cycle.state.
79273         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79274         fts.c, with the following changes:
79275         (setup_dir, free_dir): New functions.
79276         (enter_dir): Now returns bool.  Return true if successful, false
79277         if memory exhausted.  All callers changed.
79278         Do not bother partly cleaning up on
79279         memory allocation failure; that is free_dir's job.
79280         However, free ad if hash_insert fails, to avoid memory leak.
79281         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79282         fts->fts_options to see which union member to use.
79283
79284 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79285
79286         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79287         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79288
79289 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79290
79291         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79292
79293 2005-05-20  Jim Meyering  <jim@meyering.net>
79294
79295         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79296         Now a macro, to pacify GCC.
79297
79298 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79299
79300         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79301         of -1.
79302
79303 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79304
79305         * lib/chown.c (rpl_chown): Return -1 on failure.
79306
79307 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79310         Don't check for stddef.h.
79311         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79312         don't use its results.
79313         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79314         since we include them unconditionally.  Don't require
79315         AM_STDBOOL_H, since stdbool is a prerequisite.
79316         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79317         since we assume C89 or better.
79318         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79319         as we don't use their results.
79320         Don't check for fchdir, memmove, memset, strrchr, as we use
79321         them unconditionally.
79322         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79323         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79324
79325 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79326
79327         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79328         Include <stddef.h> unconditionally, since we assume C89 now.
79329         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79330         * lib/fts.c: Include fts_.h first, to check interface.
79331         Do not include intprops.h; no longer needed.
79332         Include cycle-check.h and hash.h, since fts_.h no longer does.
79333         Remove unnecessary casts of closedir to void.
79334         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79335         decide whether to decrement nlinks.
79336         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79337         (FTS): Use struct hash_table * instead of Hash_table, so that
79338         we no longer need to include hash.h here.
79339
79340 2005-05-18  Jim Meyering  <jim@meyering.net>
79341
79342         * modules/dirfd (License): Change to LGPL.  Most of the code
79343         is already in the public domain.
79344
79345 2005-05-18  Jim Meyering  <jim@meyering.net>
79346
79347         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79348         Reported by Yoann Vandoorselaere.
79349
79350 2005-05-17  Jim Meyering  <jim@meyering.net>
79351
79352         * m4/fts.m4: New file, from coreutils.
79353
79354 2005-05-17  Jim Meyering  <jim@meyering.net>
79355
79356         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79357
79358 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79359
79360         Sync from coreutils.
79361         * m4/unlinkdir.m4: New file.
79362
79363 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79364
79365         Sync from coreutils.
79366         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79367         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79368         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79369         White space changes only.
79370         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79371         special.
79372         * lib/yesno.c: Include getline.h, not ctype.h.
79373         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79374         Use getline to remove arbitrary restriction on response length.
79375
79376 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * config/srclist-update: Spell out "Street" in FSF postal
79379         mail address; this is the style the FSF seems to prefer.
79380
79381         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79382         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79383         this updates FSF postal mail address.
79384
79385         Sync from coreutils.
79386         * modules/unlinkdir: New file.
79387         * modules/yesno (Depends-on): Add getline.
79388         * MODULES.html.sh (File system functions): Add unlinkdir.
79389
79390 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79391
79392         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79393         lib/strsep.h:
79394         Change the initial comment to refer to GPL, not LGPL.
79395         gnulib-tool will change it to LGPL as needed.
79396
79397         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79398         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79399         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79400         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79401         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79402         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79403         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79404         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79405         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79406         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79407         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79408         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79409         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79410         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79411         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79412         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79413         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79414         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79415         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79416         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79417         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79418         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79419         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79420         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79421         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79422         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79423         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79424         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79425         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79426         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79427         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79428         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79429         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79430         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79431         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79432         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79433         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79434         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79435         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79436         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79437         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79438         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79439         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79440         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79441         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79442         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79443         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79444         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79445         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79446         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79447         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79448         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79449         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79450         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79451         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79452         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79453         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79454         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79455         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79456         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79457         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79458         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79459         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79460         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79461         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79462         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79463         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79464         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79465         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79466         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79467         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79468         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79469         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79470         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79471         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79472         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79473         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79474         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79475         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79476         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79477         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79478         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79479         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79480         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79481         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79482         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79483         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79484         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79485         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79486         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79487         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79488         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79489         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79490         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79491         lib/yesno.c, lib/yesno.h:
79492         Update FSF postal mail address.
79493
79494 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79495
79496         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79497         tests/test-memmem.c, tests/test-stpncpy.c:
79498         Update FSF postal mail address.
79499
79500 2005-05-13  Bruno Haible  <bruno@clisp.org>
79501
79502         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79503         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79504         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79505         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79506         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79507         Add support for 64-bit integers in the MSVC compiler.
79508
79509 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79510
79511         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79512
79513 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79514
79515         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79516
79517 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * doc/getdate.texi (General date syntax): Don't say that date
79520         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79521         Problem reported by Nic Ferrier.
79522
79523 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79524
79525         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79526         specified in ai_socktype. Fix invalid ai_protocol
79527         check. ai_protocol is usually set to 0 or depending on
79528         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79529         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79530         ai_socktype / ai_protocol in the returned addrinfo structure.
79531
79532 2005-05-10  Simon Josefsson  <jas@extundo.com>
79533
79534         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79535         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79536
79537 2005-05-10  Karl Berry  <karl@gnu.org>
79538
79539         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79540         (from http://www.gnu.org/licenses).
79541         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79542         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79543         fdl.texi suffices.
79544
79545 2005-05-10  Karl Berry  <karl@gnu.org>
79546
79547         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79548         (COPYING.DOC): remove.
79549
79550         * config/srclist-update: new FSF address.
79551
79552 2005-05-10  Derek Price  <derek@ximbiot.com>
79553
79554         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79555         possible.
79556
79557 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79558             Bruno Haible  <bruno@clisp.org>
79559
79560         * modules/inet_ntop: New file.
79561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79562         inet_ntop.
79563
79564 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79565             Bruno Haible  <bruno@clisp.org>
79566
79567         * m4/inet_ntop.m4: New file.
79568
79569 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79570             Bruno Haible  <bruno@clisp.org>
79571
79572         * lib/inet_ntop.h: New file.
79573         * lib/inet_ntop.c: New file, from glibc with modifications.
79574
79575 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79576
79577         * modules/time_r (License): Change to LGPL.
79578         * modules/extensions (License): Change to LGPL.  Actually,
79579         the license is more permissive than that, but currently gnulib-tool
79580         doesn't know how to handle more-permissive licenses.
79581
79582         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79583         Problem reported by Dave Love.
79584
79585 2005-05-08  Jim Meyering  <jim@meyering.net>
79586
79587         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79588         blank.
79589
79590 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79591
79592         * modules/argmatch (Depends-on): Add stdbool.
79593         * modules/backupfile (Depends-on): Likewise.
79594         * modules/chdir-long (Depends-on): Likewise.
79595         * modules/closeout (Depends-on): Likewise.
79596         * modules/cycle-check (Depends-on): Likewise.
79597         * modules/dirname (Depends-on): Likewise.
79598         * modules/fnmatch (Depends-on): Likewise.
79599         * modules/fsusage (Depends-on): Likewise.
79600         * modules/fwriteerror (Depends-on): Likewise.
79601         * modules/getcwd (Depends-on): Likewise.
79602         * modules/getloadavg (Depends-on): Likewise.
79603         * modules/hard-locale (Depends-on): Likewise.
79604         * modules/makepath (Depends-on): Likewise.
79605         * modules/mountlist (Depends-on): Likewise.
79606         * modules/nanosleep (Depends-on): Likewise.
79607         * modules/posixtm (Depends-on): Likewise.
79608         * modules/quotearg (Depends-on): Likewise.
79609         * modules/readtokens (Depends-on): Likewise.
79610         * modules/readtokens0 (Depends-on): Likewise.
79611         * modules/readutmp (Depends-on): Likewise.
79612         * modules/save-cwd (Depends-on): Likewise.
79613         * modules/strftime (Depends-on): Likewise.
79614         * modules/userspec (Depends-on): Likewise.
79615         * modules/utimecmp (Depends-on): Likewise.
79616         * modules/xgetcwd (Depends-on): Likewise.
79617         * modules/xnanosleep (Depends-on): Likewise.
79618         * modules/xstrtod (Depends-on): Likewise.
79619         * modules/yesno (Depends-on): Likewise.
79620
79621 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79622
79623         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79624         needless checks.
79625
79626 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79627
79628         Merge from coreutils.  Among other things,
79629         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79630         * lib/fd-safer.c: New file.
79631         * lib/fcntl-safer.h, open-safer.c: Remove.
79632         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79633         * lib/dup-safer.c: Include unistd-safer.h first.
79634         Don't include errno.h.
79635         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79636         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79637         * lib/file-type.c: Rely on file-type.h change.
79638         * lib/getloadavg.c: Include unistd-safer.h.
79639         (getloadavg): Use safer open.
79640         * lib/getusershell.c: Include "stdio-safer.h".
79641         (getusershell): Use safer fopen.
79642         * lib/long-options.c (long_options): Use NULL rather than 0.
79643         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79644         'free'.
79645         * lib/modechange.c: Likewise.
79646         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79647         (MODE_DONE): New constant.
79648         (struct mode_change): Remove 'next' member.
79649         (make_node_op_equals): New function; like the old one of the
79650         same name, except it allocates an array.
79651         (mode_compile, mode_create_from_ref): Use it.
79652         (mode_compile): Allocate result as an array, not a linked list.
79653         Parse octal string ourself, so that we catch mistakes like "+0".
79654         (mode_adjust): Arg is an array, not a linked list.
79655         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79656         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79657         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79658         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79659         Remove.  This is now stat-macros.h's job.
79660         (talloc): Remove.  All callers replaced by xalloc, so that
79661         our invokers don't have to worry about reporting memory failures.
79662         (make_node_op_equals): Remove.
79663         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79664         New constants.
79665         (struct mode_change): Moved here from modechange.h.
79666         (mode_append_entry): Remove.
79667         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79668         apps to have incorrect behavior.  Use simpler algorithm for head
79669         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79670         Detect more invalid usages rather than having somewhat-random behavior.
79671         Don't insert an "a=" action, as that leads to incorrect behavior.
79672         (mode_compile, mode_create_from_ref): Return NULL on error instead
79673         of an enum, since now there's only one way to have an error.  All
79674         callers changed.
79675         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79676         at the correct time.  Simplify calculation of "+u" and its ilk.
79677         Don't mishandle "+X".
79678         (mode_free): Remove "register" and localize decls.
79679         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79680         (struct mode_change): Move to modechange.c; callers don't
79681         need to see this stuff.
79682         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79683         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79684         (mode_change, mode_adjust): Reflect the new signatures noted above.
79685         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79686         that might redefine system include files.
79687         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79688         (my_usleep): Use NULL rather than (void *) 0.
79689         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79690         Use siginterrupt to specify that system calls should be interrupted.
79691         (rpl_nanosleep): Move initialization of suspended closer to call of
79692         my_usleep.
79693         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79694         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79695         (desirable_utmp_entry): New function.
79696         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79697         using x2nrealloc, to simplify logic.
79698         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
79699         size calculation.  Do not assume utmp file is a regular file.
79700         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
79701         (READ_UTMP_CHECK_PIDS): New constant.
79702         * lib/save-cwd.c: Include unistd-safer.h.
79703         (save_cwd): Use fd_safer.
79704         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
79705         [!_LIBC] Include "stat-macros.h" instead.
79706         * lib/unistd-safer.h (fd_safer): New decl.
79707
79708 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79709
79710         * modules/getloadavg (Depends-on): Add unistd-safer.
79711         * modules/getusershell (Depends-on): Add stdio-safer.
79712         * modules/lstat (Depends-on): Remove xalloc.
79713         * modules/mkstemp (Depends-on): Add stat-macros.
79714         * modules/modechange (Depends-on): Remove xstrtol.
79715         Add stat-macros, xalloc.
79716         * modules/save-cwd (Depends-on): Add unistd-safer.
79717         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
79718         * modules/unistd-safer (Files): Add lib/fd-safer.c
79719         (Makefile.am): Remove lib_SOURCES.
79720
79721         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
79722         Remove fcntl-safer; unistd-safer supersedes it.
79723
79724 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
79727         AC_HEADER_STAT.
79728         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
79729         (gl_PREREQ_CHOWN): Remove.
79730         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
79731         it.  Don't require AC_HEADER_STAT.
79732         (gl_PREREQ_LSTAT): Remove.
79733         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
79734         Don't require AC_HEADER_STAT.
79735         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
79736         (gl_PREREQ_RMDIR): Remove.
79737         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
79738         mention stat-macros.h or AC_HEADER_STAT, since we'll make
79739         the stat-macros module a prerequisite.
79740         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
79741         * m4/filemode.m4 (gl_FILEMODE): Likewise.
79742         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
79743         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
79744         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
79745         variable names.
79746         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
79747         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
79748         variable prefixes.
79749         * m4/fcntl-safer.m4: Remove.
79750         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
79751         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
79752         Invoke gl_PREREQ_FD_SAFER.
79753         (gl_PREREQ_FD_SAFER): New macro.
79754         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79755         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79756         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79757         Remove duplicate call to AC_LIBOBJ(readutmp).
79758         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79759
79760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79761         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79762
79763 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79764
79765         * MODULES.html.sh (Misc): Add byteswap.
79766
79767 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79768
79769         * modules/getcwd (Depends-on): Add extensions.
79770         * modules/openat (Depends-on): Likewise.
79771
79772 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79773
79774         * modules/byteswap: New file.
79775
79776 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79777
79778         * m4/byteswap.m4: New file.
79779
79780 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79781
79782         * lib/byteswap_.h: New file.
79783
79784 2005-04-25  Karl Berry  <karl@gnu.org>
79785
79786         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79787
79788 2005-04-25  Albert Chin  <china@thewrittenword.com>
79789
79790         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79791         Toolkit C bug.
79792
79793 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79794
79795         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79796         (func_ln_if_changed): Remove forcibly for no error message
79797         in case file does not exist.
79798
79799 2005-04-19  Simon Josefsson  <jas@extundo.com>
79800
79801         * gnulib-tool (Options): Make --symlink mean --symbolic.
79802
79803 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79804
79805         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79806
79807 2005-04-16  Simon Josefsson  <jas@extundo.com>
79808
79809         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79810
79811 2005-04-15  Simon Josefsson  <jas@extundo.com>
79812
79813         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79814
79815 2005-04-15  Simon Josefsson  <jas@extundo.com>
79816
79817         * gnulib-tool: Rename --symlink to --symbolic.
79818
79819 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79820
79821         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79822         symbolic links to files instead of copying/moving.  Add --aux-dir,
79823         specifying directory relative --dir where auxiliary build tools
79824         are placed.
79825
79826 2005-04-14  Bruno Haible  <bruno@clisp.org>
79827
79828         * modules/allocsa (License): Change to LGPL.
79829         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79830
79831 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79834         that "UTC +1 second" continues to work.  Problem reported
79835         by Dmitry V. Levin.
79836         (relunit_snumber): New rule.
79837         (relunit): Use it.
79838
79839 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79840
79841         * lib/getdate.y (universal_time_zone_table): New constant.
79842         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79843         universal_time_zone_table.
79844         (lookup_zone): Prefer universal_time_zone_table to
79845         local_time_zone_table, so that "GMT" time stamps are allowed in
79846         London during the summer.  Problem reported by Ian Abbott.
79847
79848 2005-04-12  Jim Meyering  <jim@meyering.net>
79849
79850         * lib/human.c (humblock): Set *options even when returning due to
79851         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79852         warning from gcc-4.
79853
79854 2005-04-09  Jim Meyering  <jim@meyering.net>
79855
79856         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79857         -Wuninitialized: initialize tm0.tm_year.
79858
79859 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79860
79861         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79862         count, since there's no maximum.  All uses changed.
79863         Add member dsts_seen.
79864         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79865         not being INT_MAX.
79866         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79867         Use pc_rels_seen to decide whther a date is absolute.
79868
79869         * lib/getdate.y (number): Don't overwrite year.
79870         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79871         check.
79872
79873 2005-04-02  Simon Josefsson  <jas@extundo.com>
79874
79875         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79876         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79877
79878 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79879
79880         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79881         where no absolute path name can be longer than PATH_MAX.
79882
79883 2005-03-27  Jim Meyering  <jim@meyering.net>
79884
79885         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79886
79887 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79890         "one's complement" -> "ones' complement" in comment, as per Knuth.
79891         "value of type" -> "type or expression" in comment.
79892         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79893
79894 2005-03-26  Jim Meyering  <jim@meyering.net>
79895
79896         Comment nits.
79897         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79898         Correct typos: s/or/of/.
79899
79900 2005-03-26  Jim Meyering  <jim@meyering.net>
79901
79902         * modules/check-include-files: Move to ../ and rename to...
79903         * check-module: ...this.
79904
79905 2005-03-25  Jim Meyering  <jim@meyering.net>
79906
79907         * modules/xvasprintf (Files): Add xalloc.h.
79908
79909 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79910
79911         * modules/gettext (Files): config/config.rpath ->
79912         build-aux/config.rpath
79913         * modules/iconv (Files): Likewise.
79914         Problem reported by Oskar Liljeblad.
79915
79916 2005-03-23  Jim Meyering  <jim@meyering.net>
79917
79918         * modules/check-include-files: New script to check for
79919         missing dependencies, multiple includes, etc.
79920
79921         * modules/c-strtold (Depends-on): Add xalloc.
79922         * modules/c-strtod (Depends-on): Add xalloc.
79923         * modules/hash (Depends-on): Add xalloc.
79924         (Files): Remove lib/xalloc.h.
79925
79926         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79927         * modules/userspec (Files): Add lib/inttostr.h.
79928
79929 2005-03-23  Jim Meyering  <jim@meyering.net>
79930
79931         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79932
79933 2005-03-22  Jim Meyering  <jim@meyering.net>
79934
79935         * modules/stat-macros: New module.
79936         * modules/canonicalize, modules/euidaccess, modules/file-type,
79937         * modules/filemode, modules/lchown, modules/makepath,
79938         * modules/rmdir, modules/stat: Depend on new stat-macros module
79939         rather than listing lib/stat-macros.h manually.
79940         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79941
79942 2005-03-22  Jim Meyering  <jim@meyering.net>
79943
79944         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79945
79946 2005-03-22  Bruno Haible  <bruno@clisp.org>
79947
79948         * config/srclist.txt: Replace target directory 'config' with
79949         'build-aux'.
79950         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79951         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79952         ../build-aux/.
79953
79954 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79955
79956         * modules/chdir-long (Depends-on): Add mempcpy.
79957
79958         * modules/acl, modules/backupfile, modules/c-strtod,
79959         modules/c-strtold, modules/canon-host, modules/canonicalize,
79960         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79961         modules/exclude, modules/exitfail, modules/file-type,
79962         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79963         modules/getdate, modules/getline, modules/getpagesize,
79964         modules/getpass, modules/getugroups, modules/group-member,
79965         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79966         modules/inttostr, modules/long-options, modules/makepath,
79967         modules/md5, modules/memcasecmp, modules/memcoll,
79968         modules/modechange, modules/mountlist, modules/path-concat,
79969         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79970         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79971         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79972         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79973         modules/strftime, modules/strndup, modules/strverscmp,
79974         modules/timespec, modules/unlocked-io, modules/userspec,
79975         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79976         modules/yesno:
79977         Remove lib_SOURCES line from Makefile.am section, as this is now
79978         done automatically by the corresponding Autoconf macro.
79979
79980 2005-03-21  Jim Meyering  <jim@meyering.net>
79981
79982         Changes imported from coreutils.
79983
79984         * lib/cycle-check.c: Don't include xalloc.h.
79985
79986         * lib/path-concat.c: Don't include assert.h.
79987         (path_concat): Remove assertion that would have triggered
79988         for ABASE starting with more than one slash.
79989         Reported by Andreas Schwab.
79990
79991         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79992         properly when ABASE is an absolute file name.
79993         Correct the description of this function.
79994         Include <assert.h>.
79995         Add an assertion and a test driver.
79996         This fixes a bug introduced on 2004-07-02.
79997         Andreas Schwab reported the resulting failure of cp --parents:
79998         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79999
80000 2005-03-21  Jim Meyering  <jim@meyering.net>
80001
80002         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80003         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80004
80005 2005-03-21  Jim Meyering  <jim@meyering.net>
80006         and  Paul Eggert  <eggert@cs.ucla.edu>
80007
80008         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80009         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80010         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80011         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80012         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80013         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80014         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80015         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80016         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80017         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80018         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80019         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80020         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80021         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80022         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80023         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80024         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80025         for these modules.
80026
80027 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80028
80029         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80030         (which shouldn't happen), generate nothing instead of returning 0
80031         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80032
80033 2005-03-16  Bruno Haible  <bruno@clisp.org>
80034
80035         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80036         HAVE_LONGLONG_64BIT.
80037
80038 2005-03-16  Bruno Haible  <bruno@clisp.org>
80039
80040         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80041         HAVE_LONGLONG_64BIT.
80042
80043 2005-03-16  Bruno Haible  <bruno@clisp.org>
80044
80045         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80046         HAVE_LONGLONG_64BIT.
80047
80048 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80049
80050         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80051         reliably distinguish strftime failure from empty output on POSIX
80052         hosts.
80053
80054 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80055
80056         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80057         (iconv_string): Don't guess a size-zero buffer, as that might cause
80058         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80059         result would be 'too large', where 'too large' is (heuristically)
80060         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80061         overflow concerns.  This will prevent some unwanted malloc failures
80062         when the inputs are very large.
80063
80064 2005-03-15  Karl Berry  <karl@gnu.org>
80065
80066         * config/srclist.txt (config.rpath): from gettext.
80067         * config/config.rpath: update.
80068
80069 2005-03-15  Bruno Haible  <bruno@clisp.org>
80070
80071         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80072         to 'negate'.
80073
80074         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80075         variable.
80076
80077         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80078         results.
80079
80080 2005-03-14  Simon Josefsson  <jas@extundo.com>
80081
80082         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80083         <fx@gnu.org>.
80084
80085 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80086
80087         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80088         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80089         intprops.h.
80090         * lib/strtol.c: Likewise.
80091
80092 2005-03-14  Jim Meyering  <jim@meyering.net>
80093
80094         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80095         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80096         to be nonzero so that we (and caller) can detect the difference
80097         between a valid zero-length expansion and an error return, even
80098         when the underlying strftime fails before writing anything into
80099         that location.
80100
80101 2005-03-14  Bruno Haible  <bruno@clisp.org>
80102
80103         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80104         Update from GNU gettext 0.14.3.
80105
80106 2005-03-10  Jim Meyering  <jim@meyering.net>
80107
80108         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80109
80110 2005-03-10  Jim Meyering  <jim@meyering.net>
80111
80112         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80113         so that this module works on systems without fchdir.
80114
80115 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         Factor int-properties macros into a single file, except for
80118         glibc-related files.
80119         * lib/intprops.h: New file.
80120         * lib/getloadavg.c: Include it instead of limits.h.
80121         (INT_STRLEN_BOUND): Remove.
80122         * lib/human.c: Include intprops.h.
80123         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80124         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80125         302/1000.
80126         * lib/inttostr.h: Include intprops.h instead of limits.h.
80127         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80128         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80129         for consistency with intprops.h.
80130         (time_t_is_integer, twos_complement_arithmetic): Use them.
80131         * lib/sig2str.h: Include <signal.h>, intprops.h.
80132         (INT_STRLEN_BOUND): Remove.
80133         * lib/strftime.c (TYPE_SIGNED): Remove.
80134         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80135         * lib/strtol.c: Adjust comments to match intprops.h.
80136         * lib/userspec.c: Include intprops.h.
80137         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80138         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80139         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80140         instead of rolling our own expressions.
80141         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80142
80143         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80144         instead of int.
80145         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80146         the right thing even if adding 1900 would overflow.  Similarly
80147         for tm_mon + 1 and tm_yday + 1.
80148         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80149         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80150         (DO_SIGNED_NUMBER): New macro.
80151         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80152
80153 2005-03-07  Bruno Haible  <bruno@clisp.org>
80154
80155         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80156
80157 2005-03-07  Bruno Haible  <bruno@clisp.org>
80158
80159         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80160
80161 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80162
80163         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80164         (func_import): Only replace files via --import when they have actually
80165         changed.
80166
80167 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80168
80169         * m4/mmap-anon.m4: New file.
80170         * m4/pagealign_alloc.m4: New file.
80171
80172 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80173             Bruno Haible  <bruno@clisp.org>
80174
80175         * modules/pagealign_alloc: New file.
80176         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80177
80178 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80179             Bruno Haible  <bruno@clisp.org>
80180
80181         * lib/pagealign_alloc.h: New file.
80182         * lib/pagealign_alloc.c: New file.
80183
80184 2005-03-03  Bruno Haible  <bruno@clisp.org>
80185
80186         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80187         Use an all-permissive copyright notice, recommended by RMS.
80188
80189 2005-03-02  Bruno Haible  <bruno@clisp.org>
80190
80191         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80192         of AIX, the replacement has to be done only after <string.h> is
80193         included, therefore not in config.h. stpncpy.h does the replacement,
80194         and stpncpy.c uses it.
80195
80196 2005-03-02  Bruno Haible  <bruno@clisp.org>
80197
80198         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80199         stpncpy.c uses it.
80200
80201 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80204         The workaround isn't strictly needed for POSIX conformance, and
80205         it's too much of a pain to configure and maintain.  We'll ask
80206         people to fix their kernels instead.
80207         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80208         (NANOSLEEP_BUG_WORKAROUND): Remove.
80209         (xnanosleep): Remove the workaround.
80210
80211 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80212
80213         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80214         Reported by Derek Price.
80215         (Include): Add "timespec.h".
80216
80217         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80218
80219 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80222         to detect nanosleep bug.
80223
80224 2005-03-01  Bruno Haible  <bruno@clisp.org>
80225
80226         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80227
80228 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80229
80230         * modules/gethrxtime: New file.
80231         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80232         (Depends-on): Add gethrxtime.
80233         (configure.ac): Add gl_XNANOSLEEP.
80234         (Makefile.am): Remove lib_SOURCES line.
80235
80236 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80237
80238         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80239         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80240
80241 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80242
80243         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80244         * lib/timespec.h (gettime): Return void, since it always
80245         succeeds now.  All uses changed.
80246         * lib/gettime.c (gettime): Likewise.
80247         [HAVE_NANOTIME]: Prefer nanotime.
80248         Assume gettimeofday succeeds, as POSIX requires.
80249         Assime time () succeeds, since other code already does.
80250         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80251         (timespec_subtract): Remove.
80252         (NANOSLEEP_BUG_WORKAROUND): New constant.
80253         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80254         things considerably.  Use it only on GNU/Linux hosts, since the
80255         workaround shouldn't be needed elsewhere.
80256
80257 2005-02-24  Bruno Haible  <bruno@clisp.org>
80258
80259         * modules/gettext (Files): Add m4/glibc2.m4.
80260
80261 2005-02-24  Bruno Haible  <bruno@clisp.org>
80262
80263         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80264         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80265         * m4/progtest.m4:
80266         Update from GNU gettext 0.14.2.
80267         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80268
80269 2005-02-24  Bruno Haible  <bruno@clisp.org>
80270
80271         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80272         * lib/config.charset: Update from GNU gettext 0.14.2.
80273
80274 2005-02-24  Bruno Haible  <bruno@clisp.org>
80275
80276         * lib/gettext.h: Update from GNU gettext 0.14.2.
80277
80278 2005-02-23  Simon Josefsson  <jas@extundo.com>
80279
80280         * m4/iconvme.m4: New file.
80281
80282 2005-02-23  Jim Meyering  <jim@meyering.net>
80283
80284         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80285         change.
80286         Thanks to Bruno Haible for catching it.
80287
80288 2005-02-22  Simon Josefsson  <jas@extundo.com>
80289
80290         * modules/iconvme: New file.
80291
80292         * MODULES.html.sh: Add iconvme.
80293
80294 2005-02-22  Simon Josefsson  <jas@extundo.com>
80295
80296         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80297
80298 2005-02-22  Simon Josefsson  <jas@extundo.com>
80299
80300         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80301
80302 2005-02-22  Jim Meyering  <jim@meyering.net>
80303
80304         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80305         s/ifndef/ifdef/.
80306
80307 2005-02-20  Neil Conway  <neilc@samurai.com>
80308
80309         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80310         returned by OSX/Darwin if the specified buffer is not large
80311         enough for the hostname.
80312
80313 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80314
80315         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80316         pass it to _help, otherwise the latter coredumps trying to
80317         dereference state.root_argp.
80318
80319 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80320
80321         * modules/chdir-long (Depends-on): Add memrchr.
80322         * modules/memrchr (Files): Add lib/memrchr.h.
80323         (Include): "memrchr.h".
80324
80325 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80326
80327         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80328
80329 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80330
80331         * lib/memrchr.h: New file.
80332         * lib/chdir-long.c: Include it.
80333         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80334         Don't bother including stddef.h.
80335
80336 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80337
80338         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80339         inclusion.
80340         Include <sys/types.h>, for dev_t.
80341         (ME_DUMMY, ME_REMOTE): Move from here....
80342         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80343         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80344         Dmitry V. Levin.
80345         Include mountlist.h first, to test the interface.
80346
80347 2005-01-29  Bruno Haible  <bruno@clisp.org>
80348
80349         * lib/progname.c (program_name): Initialize.
80350         Needed when linking statically on MacOS X.
80351
80352 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80353
80354         Sync from coreutils.
80355         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80356         (Depends-on): Add c-strtod.
80357         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80358
80359 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         Sync from coreutils.
80362         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80363
80364         Remove files that are specific to coreutils.
80365         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80366
80367 2005-01-28  Bruno Haible  <bruno@clisp.org>
80368
80369         * modules/javacomp: New file.
80370         * MODULES.html.sh (Java): Add javacomp.
80371
80372 2005-01-28  Bruno Haible  <bruno@clisp.org>
80373
80374         * m4/javacomp.m4: New file, from GNU gettext.
80375
80376 2005-01-28  Bruno Haible  <bruno@clisp.org>
80377
80378         * lib/javacomp.sh.in: New file, from GNU gettext.
80379         * lib/javacomp.h: New file, from GNU gettext.
80380         * lib/javacomp.c: New file, from GNU gettext.
80381
80382 2005-01-26  Simon Josefsson  <jas@extundo.com>
80383
80384         * lib/gai_strerror.c: Use GPL in header.
80385
80386 2005-01-26  Bruno Haible  <bruno@clisp.org>
80387
80388         * modules/javaexec: New file.
80389         * MODULES.html.sh (Java): Add javaexec.
80390
80391 2005-01-26  Bruno Haible  <bruno@clisp.org>
80392
80393         * m4/javaexec.m4: New file, from GNU gettext.
80394
80395 2005-01-26  Bruno Haible  <bruno@clisp.org>
80396
80397         * lib/javaexec.sh.in: New file, from GNU gettext.
80398         * lib/javaexec.h: New file, from GNU gettext.
80399         * lib/javaexec.c: New file, from GNU gettext.
80400
80401 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80402
80403         * modules/lchown (Depends-on): Remove lchown.h
80404
80405 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80406
80407         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80408         must be defined if the header file was not found, in order
80409         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80410
80411 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80412
80413         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80414         initializers for struct pentry_state.
80415         (__argp_error): Check return value of __asprintf
80416         (__argp_failure): Translate error message
80417
80418         * lib/argp-parse.c: Removed braces around the expansion of N_()
80419
80420 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80421
80422         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80423         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80424         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80425         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80426         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80427         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80428         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80429         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80430         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80431         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80432         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80433         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80434         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80435         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80436         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80437         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80438         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80439         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80440         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80441         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80442         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80443         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80444         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80445         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80446         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80447         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80448         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80449         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80450         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80451         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80452         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80453         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80454         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80455         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80456         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80457         Use an all-permissive copyright notice, recommended by RMS.
80458
80459 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80460
80461         * modules/chdir-long (Depends-on): Remove mempcpy.
80462
80463 2005-01-21  Jim Meyering  <jim@meyering.net>
80464
80465         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80466         same value as for Solaris 9.
80467
80468         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80469         component length.  This included changing the parameter to be
80470         of type `char *' rather than `char const *'.
80471         * lib/chdir-long.h (chdir_long): Update prototype.
80472
80473         * lib/openat.c (fdopendir, fstatat): New functions.
80474         * lib/openat.h: Include headers required for use of DIR and struct
80475         stat.
80476         [AT_SYMLINK_NOFOLLOW]: Define.
80477         (fdopendir, fstatat): Add prototypes.
80478
80479 2005-01-21  Bruno Haible  <bruno@clisp.org>
80480
80481         * modules/classpath: New file.
80482         * MODULES.html.sh (Java): Add classpath.
80483
80484 2005-01-21  Bruno Haible  <bruno@clisp.org>
80485
80486         * lib/classpath.h: New file, from GNU gettext.
80487         * lib/classpath.c: New file, from GNU gettext.
80488
80489 2005-01-20  Simon Josefsson  <jas@extundo.com>
80490
80491         * modules/version-etc-fsf: New file.
80492
80493 2005-01-20  Simon Josefsson  <jas@extundo.com>
80494
80495         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80496         * lib/version-etc.c: Remove version_etc_copyright.
80497         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80498         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80499
80500 2005-01-20  Simon Josefsson  <jas@extundo.com>
80501
80502         * lib/base64.h (isbase64): Add.
80503
80504         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80505         using a unsigned prototype, don't inline.
80506         (base64_decode): Use it.
80507
80508 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80509
80510         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80511         it.
80512
80513 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80514
80515         * lib/save-cwd.c (save_cwd): Remove code to support the case
80516         where fchdir is missing or flaky.
80517
80518 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80519
80520         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80521
80522 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80523
80524         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80525         AC_LIBSOURCES now does this.
80526         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80527         with new ullong_max module.
80528
80529 2005-01-19  Bruno Haible  <bruno@clisp.org>
80530
80531         * modules/sh-quote: New file.
80532         * MODULES.html.sh (Executing programs): Add sh-quote.
80533
80534 2005-01-19  Bruno Haible  <bruno@clisp.org>
80535
80536         * lib/sh-quote.h: New file, from GNU gettext.
80537         * lib/sh-quote.c: New file, from GNU gettext.
80538
80539 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80540
80541         Merge from coreutils.
80542         * m4/ullong_max.m4: New file.
80543         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80544         (gl_MACROS): Assume localeconv exists.
80545
80546 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80547
80548         Merge changes from coreutils, as described below in several
80549         changelogs dated today.
80550
80551         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80552         (O_DIRECTORY): Remove; not needed here, since "." must be
80553         a directory.  All uses removed.
80554         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80555         universal on Suns, and we also need to test for IRIX.
80556         Revamp code to use 'if' rather than '#if'.
80557         Avoid unnecessary comparison of cwd->desc to 0.
80558
80559         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80560         for known valid error numbers rather than observed invalid ones.
80561
80562 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80563
80564         * modules/ullong_max: New file.
80565
80566         * modules/chdir-long, modules/openat: New files.
80567         * modules/save-cwd (Depends-on): Depend on chdir-long.
80568         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80569
80570 2005-01-18  Jim Meyering  <jim@meyering.net>
80571
80572         Merge from coreutils.
80573         * m4/chdir-long.m4, m4/openat.m4: New files.
80574         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80575         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80576         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80577         is sane and DOES follow symlinks.  Besides, testing 20 different
80578         systems found no broken chown implementations.
80579         Prompted by a change in rsync's copy of this macro.
80580         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80581
80582         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80583
80584         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80585         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80586         NULL-means-set-to-current-time semantics.
80587         Remove temporary file immediately, rather than waiting
80588         for configure's at-exit trap code to do it.
80589
80590 2005-01-18  Jim Meyering  <jim@meyering.net>
80591
80592         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80593
80594         * lib/utimens.c (futimens): Account for the fact that futimes
80595         can also fail with errno == ENOSYS or errno == ENOENT.
80596         Patch from Dmitry V. Levin.
80597
80598         Change the name of the robust chdir function from chdir to chdir_long.
80599         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80600         (restore_cwd): Use chdir_long, not chdir.
80601         * lib/chdir-long.c: Renamed from chdir.c.
80602         * lib/chdir-long.h: Renamed from chdir.h.
80603         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80604         Hurd.
80605
80606 2005-01-18  Bruno Haible  <bruno@clisp.org>
80607
80608         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80609         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80610         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80611         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80612         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80613         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80614         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80615         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80616         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80617         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80618         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80619         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80620         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80621         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80622         Use an all-permissive copyright notice, recommended by RMS.
80623
80624 2005-01-18  Bob Proulx  <bob@proulx.com>
80625
80626         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80627         simplify offsetof() macro construct to avoid compile failure with
80628         native HP-UX 11.0 ANSI C compiler.
80629
80630 2005-01-17  Bruno Haible  <bruno@clisp.org>
80631
80632         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80633         redundant because stpncpy.m4 takes care of it.
80634
80635 2005-01-17  Bruno Haible  <bruno@clisp.org>
80636
80637         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80638
80639 2005-01-17  Bruno Haible  <bruno@clisp.org>
80640
80641         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80642         used.
80643
80644 2005-01-17  Bruno Haible  <bruno@clisp.org>
80645
80646         * lib/fwriteerror.h (fwriteerror): Change specification to include
80647         fclose.
80648         * lib/fwriteerror.c: Include <stdbool.h>.
80649         (fwriteerror): At the end, close the file stream. Record whether
80650         stdout was already closed.
80651
80652 2005-01-17  Bruno Haible  <bruno@clisp.org>
80653
80654         * lib/execute.c (environ): Declare if needed.
80655         * lib/pipe.c (environ): Likewise.
80656         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80657
80658 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80659
80660         * modules/argp: Depend on vsnprintf
80661
80662 2005-01-10  Jim Meyering  <jim@meyering.net>
80663
80664         * modules/closeout (Depends-on): Add atexit.
80665
80666 2005-01-06  Bruno Haible  <bruno@clisp.org>
80667
80668         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80669
80670 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80671
80672         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80673         definitions to be after all include files, to avoid collisions.
80674         Problem reported by Bob Proulx.
80675
80676 2005-01-04  Jim Meyering  <jim@meyering.net>
80677
80678         Changes imported from coreutils.
80679         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80680         as the mkstemp template, use a temporary directory and an
80681         8.3-friendly template to avoid trouble on systems like DJGPP.
80682         Reported by Juan M. Guerrero via Stepan Kasal.
80683         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80684         close. Remove the temporary directory right away, rather than waiting
80685         for configure's at-exit trap code to do it.
80686         Suggestion from Stepan Kasal.
80687
80688 2005-01-01  Simon Josefsson  <jas@extundo.com>
80689
80690         * gnulib-tool: Print #include directives when --import'ing.
80691
80692 2004-12-28  Simon Josefsson  <jas@extundo.com>
80693
80694         * tests/test-base64.c: Include required header files.  Remove
80695         unused variables.
80696
80697 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80698
80699         * modules/error (Depends-on): Remove gettext.
80700
80701 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80702
80703         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
80704         not needed.  This removes a dependency on the gettext module.
80705         [defined _LIBC]: Do not include <libintl.h>; not needed.
80706
80707 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80708
80709         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
80710         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
80711
80712 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80713
80714         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
80715         HAVE_DECL_STRTOLD.
80716
80717 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80718
80719         * modules/getdate (Depends-on): Remove alloca-opt.
80720
80721 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80722
80723         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
80724
80725 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80726
80727         * lib/argp-parse.c: Include <stddef.h>.
80728         (alignof, alignto): New macros.
80729         (parser_init): Don't assume that void * is aligned sufficiently
80730         for struct option.
80731
80732         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
80733         need to extend the stack.
80734         (YYINITDEPTH): New macro, so that the initial stack isn't overly
80735         large.
80736
80737 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80738
80739         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
80740
80741 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80742
80743         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
80744         (2004-10-24) change.  Apparently this was a false alarm.
80745
80746         * modules/getdate: Depend on alloca-opt, not alloca.
80747
80748 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80749
80750         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
80751         Remove now-obsolete comment about AIX.
80752         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
80753         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80754         (YYMAXDEPTH): New macro.
80755
80756 2004-12-18  Simon Josefsson  <jas@extundo.com>
80757
80758         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80759
80760 2004-12-18  Bruno Haible  <bruno@clisp.org>
80761
80762         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80763
80764 2004-12-18  Bruno Haible  <bruno@clisp.org>
80765
80766         * lib/fatal-signal.c (fatal_signals): Make non-const.
80767         (init_fatal_signals): New function.
80768         (uninstall_handlers, install_handlers): Ignore signals that were set to
80769         SIG_IGN.
80770         (at_fatal_signal): Call init_fatal_signals.
80771         (init_fatal_signal_set): Likewise. Ignore signals that were set to
80772         SIG_IGN.
80773         Reported by Paul Eggert.
80774
80775 2004-12-18  Bruno Haible  <bruno@clisp.org>
80776
80777         * doc/alloca.texi: New file.
80778         * doc/alloca-opt.texi: New file.
80779
80780 2004-12-17  Jim Meyering  <jim@meyering.net>
80781
80782         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80783         Otherwise, install-sh could exit with improper exit status when
80784         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80785
80786 2004-12-16  Simon Josefsson  <jas@extundo.com>
80787
80788         * tests/test-base64.c: Add license.
80789
80790 2004-12-15  Stepan Kasal  <address@hidden>
80791
80792         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80793
80794 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80795
80796         * modules/getcwd (Files): Add m4/d-ino.m4.
80797         Suggested by Mark D. Baushke.
80798
80799 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80800
80801         * lib/getdate.y (textint): New member "negative".
80802         (time_zone_hhmm): New function.
80803         Expect 14 shift-reduce conflicts, not 13.
80804         (o_colon_minutes): New rule.
80805         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80806         (yylex): Set the "negative" member of signed numbers.
80807
80808 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         * doc/getdate.texi (Time of day items, Time zone items):
80811         Describe new formats +00:00, UTC+00:00.
80812
80813 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80814
80815         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80816         spurious "-l"s.  Problem reported by Stepan Kasal.
80817
80818 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80819
80820         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80821         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80822
80823 2004-12-04  Simon Josefsson  <jas@extundo.com>
80824
80825         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80826         Vandoorselaere <yoann@prelude-ids.org>.
80827
80828 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80829
80830         Changes imported from coreutils.
80831         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80832         exist.
80833         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80834
80835 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80836
80837         Changes imported from coreutils.
80838         * lib/hard-locale.c: Assume <locale.h> exists.
80839         Include "strdup.h".
80840         (GLIBC_VERSION): New macro.
80841         (hard_locale): Assume setlocale exists.
80842         Rewrite to avoid #ifdef.
80843         Use strdup rather than malloc + strcpy.
80844         * lib/human.c: Assume <locale.h> exists.
80845         (human_readable): Assume localeconv exists.
80846
80847 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         * modules/hard-locale (Depends-on): Add strdup.
80850
80851 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80852
80853         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80854         convert T2, not T.  (Imported from libc.)
80855
80856 2004-11-30  Simon Josefsson  <jas@extundo.com>
80857
80858         * modules/restrict (License): Change to LGPL.
80859
80860 2004-11-30  Simon Josefsson  <jas@extundo.com>
80861
80862         * m4/restrict.m4: Add copyright and copying conditions.
80863
80864 2004-11-30  Simon Josefsson  <jas@extundo.com>
80865
80866         * m4/base64.m4: New file.
80867
80868 2004-11-30  Simon Josefsson  <jas@extundo.com>
80869
80870         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80871         base64.
80872
80873         * tests/test-base64.c: New file.
80874
80875         * modules/base64: New file.
80876
80877 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80878
80879         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80880         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80881
80882         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80883
80884 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80885
80886         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80887         (__getcwd.c): Don't restore errno; glibc doesn't.
80888         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80889         first, falling back to our code only if its results look suspicious.
80890         Ensure that the resulting buffer is only as large as necessary.
80891
80892         * lib/readutmp.c: Include readutmp.h first.
80893         Include <errno.h>, since readutmp.h no longer does that.
80894         * lib/readutmp.h: Don't include <errno.h>,
80895         <sys/param.h>, <time.h>; not needed to establish interface.
80896         (errno): Remove decl.
80897         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80898         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80899         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80900
80901 2004-11-28  Simon Josefsson  <jas@extundo.com>
80902
80903         * lib/base64.h, base64.c: New file.
80904
80905 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80906
80907         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80908
80909 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80910
80911         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80912         (Depends-on): Remove pathmax, same.  Add mempcpy.
80913         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80914         (Makefile.am): Append getcwd.h to lib_SOURCES.
80915         (Include): Add getcwd.h.
80916         (Maintainer): Change from Jim Meyering to "all, glibc",
80917         since getdate now uses intended-for-glibc code.
80918         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80919         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80920
80921 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80922
80923         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80924         HP's ANSI C compiler.
80925         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80926         Declaring int functions causes warnings on some modern systems and
80927         shouldn't be needed to compile on ancient ones.
80928         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80929         defined.
80930
80931         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80932         with the following changes.
80933         (__set_errno): Parenthesize properly.
80934         Include <stdbool.h>.
80935         (MIN, MAX, MATCHING_INO): New macros.
80936         (__getcwd): Define with prototype, not K&R form.
80937         Use heuristics to allocate default buffer on stack if possible.
80938         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80939         behavior, and to avoid the PATH_MAX limit when computing
80940         ../../../../...
80941         Use MATCHING_INO to compare inode number to file.
80942         Check for arithmetic overflow in size calculations.
80943         Fix bug in reallocation of dot array that caused getcwd to fail
80944         on directories nested deeper than 75.
80945         Be more careful about saving errno on error.
80946         Do not use realloc; use only free+malloc, as this is a bit
80947         more flexible and avoids a needless copy operation.
80948         Do not inspect st_dev and st_ino for symbolic links; POSIX
80949         doesn't specify the latter.
80950         Check for closedir errors.
80951         Avoid needless casts.
80952         Use "#ifdef weak_alias" around weak_alias, to be like other
80953         glibc code.
80954         The following changes to getcwd.c have effect only when used in
80955         gnulib; they have no effect inside glibc proper.
80956         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80957         as alloca isn't used.
80958         (alloca, __alloca): Likewise.
80959         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80960         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80961         unconditionally, as gnulib assumes C89 or better.
80962         Do not include <sys/param.h>.
80963         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80964         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80965         better.
80966         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80967         Include <dirent.h> in a way that is compatible with modern Autoconf.
80968         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80969         New macros, if not already defined.
80970         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80971         Use "_LIBC", not "defined _LIBC", for consistency.
80972         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80973         a mempcpy module.
80974         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80975         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80976         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80977         credit only to Jim Meyering and adjust the copyright dates.
80978         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80979         <stdlib.h>, <unistd.h>, "pathmax.h".
80980         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80981         (INITIAL_BUFFER_SIZE): Remove.
80982         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80983
80984 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80985
80986         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80987         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80988         Use the _ONCE methods, for efficiency.
80989         Check for fcntl.h.  In test program, include <errno.h>
80990         and <fcntl.h> if available.  Remove old K&R cruft from
80991         test program.  Check for common errors in GNU/Linux,
80992         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80993         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80994         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80995         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80996         name accordingly.
80997         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80998         accommodate new getcwd.c.
80999         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81000         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81001         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81002         that's all we need now.
81003
81004 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81005
81006         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81007         argp-parse.c depends on getopt internals, that means we should
81008         always use our getopt, to be on the safe side.
81009         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81010         order not to spoil the result of an eventual previous invocation
81011         of gl_GETOPT_SUBSTITUTE.
81012
81013 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81014
81015         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81016         redefinition warnings. To avoid them, include the defines
81017         in `#if !defined __need_getopt ... #endif'. The only place
81018         where __getopt_argv_const is used is in definitions
81019         of getopt_long and getopt_long_only below, which are as well
81020         protected by `#ifndef __need_getopt'.
81021         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81022         __need_getopt after including <stdio.h> and <unistd.h> These
81023         headers might have defined it.
81024
81025 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81026
81027         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81028
81029 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81030
81031         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81032         (futimens): New function, which uses futimes if available.
81033         (futimens, utimens): Support timespec==NULL, with same semantics
81034         as utime and utimens.
81035         * lib/utimens.h (futimens): New decl.
81036
81037 2004-11-23  Jim Meyering  <jim@meyering.net>
81038
81039         * lib/getopt_.h: Remove trailing blanks.
81040
81041 2004-11-23  Jim Meyering  <jim@meyering.net>
81042
81043         * lib/__fpending.c: Add comment.
81044
81045 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81046
81047         * modules/canonicalize (Depends-on): Add xreadlink.
81048         Problem reported by James Youngman.
81049
81050 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81051
81052         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81053         New macros.
81054         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81055         optopt): Use them instead of invoking ## directly; otherwise, the
81056         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81057
81058 2004-11-19  Bruno Haible  <bruno@clisp.org>
81059
81060         * lib/strtok_r.c: Move comments from here...
81061         * lib/strtok_r.h: ... to here.
81062
81063 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81064
81065         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81066         implementations that mishandle size_t overflow.
81067
81068 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81069
81070         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81071         might fail.  Problem reported by Yoann Vandoorselaere.
81072         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81073         implementations that mishandle size_t overflow.
81074
81075 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81076
81077         * modules/canon-host (Depends-on): Add strdup.
81078
81079 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81080
81081         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81082
81083 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81084
81085         * lib/canon-host.c: Include "strdup.h".
81086         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81087         Use strdup instead of malloc/strcpy to duplicate strings.
81088
81089         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81090         (human_space_before_unit): New constant.
81091         * lib/human.c (human_readable): Support it.
81092
81093         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81094         (xgetcwd): Set errno correctly when failing.
81095         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81096         the failure is actually due to a PATH_MAX problem.
81097
81098         Further getopt changes to make it more likely that glibc will
81099         buy the changes back.
81100         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81101         (getopt): Use it, so to preserve glibc semantic
81102         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81103         when compiling for libc.
81104         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81105         (getopt_long, getopt_long_only): Use it.
81106
81107         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81108         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81109         (getopt): Argv is now char * const *, as per standard.
81110         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81111         not char *__getopt_argv_const *.
81112         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81113         _getopt_long_only_r): Likewise.
81114         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81115         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81116         _getopt_long_r, _getopt_long_only_r): Likewise.
81117         * lib/getopt_.h (__getopt_argv_const): Remove.
81118         (getopt): Argv is now char * const *, as per standard.
81119
81120         * lib/getdate.y (tORDINAL): New token.
81121         (day, relunit): Allow it for relative times.
81122         (relative_time_table): Use tORDINAL for ordinals.
81123
81124 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81125
81126         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81127         Document that "second" isn't allowed as an ordinal number.
81128
81129 2004-11-16  Jim Meyering  <jim@meyering.net>
81130
81131         * modules/closeout (Depends-on): Add fpending.
81132
81133 2004-11-15  Jim Meyering  <jim@meyering.net>
81134
81135         * lib/closeout.c: Include "__fpending.h" once again.
81136         Include <stdbool.h>.
81137         (close_stdout): Don't fail just because stdout was closed initially,
81138         since some programs don't write to stdout in the normal course of
81139         operation (other than --version and --help), and we don't want this
81140         function to make e.g. `touch file >&-' fail.
81141         But do fail if it was closed and someone has tried to write to it.
81142         E.g., `printf foo >&-' must fail.
81143
81144 2004-11-13  Jim Meyering  <jim@meyering.net>
81145
81146         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81147
81148 2004-11-12  Simon Josefsson  <jas@extundo.com>
81149
81150         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81151         small doc fix is still pending.
81152
81153 2004-11-11  Simon Josefsson  <jas@extundo.com>
81154
81155         * modules/strtok_r: New file.
81156
81157         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81158         strtok_r.
81159
81160 2004-11-11  Simon Josefsson  <jas@extundo.com>
81161
81162         * m4/strtok_r.m4: New file.
81163
81164         * m4/getopt.m4: Replace opterr.
81165
81166 2004-11-11  Simon Josefsson  <jas@extundo.com>
81167
81168         * lib/strtok_r.h, strtok_r.c: New file.
81169
81170 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81171
81172         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81173         of replacing opterr, getopt, etc.  This should handle the
81174         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81175
81176 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81177
81178         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81179         we can stop lying to compilers about the constness of argv when we
81180         are compiled outside glibc.
81181         (getopt, getopt_long, getopt_long_only): Use it.
81182         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81183         _getopt_internal, getopt): Likewise.
81184         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81185         _getopt_long_only_r): Likewise.
81186         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81187         _getopt_long_r, _getopt_long_only_r): Likewise.
81188
81189         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81190         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81191         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81192         the other external symbols.
81193         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81194         declaration, since the above renaming now works around collisions.
81195
81196 2004-11-11  Jim Meyering  <jim@meyering.net>
81197
81198         * lib/linebreak.c: Remove trailing blanks.
81199         * lib/alloca_.h: Likewise.
81200         * lib/acosl.c: Likewise.
81201         * lib/euidaccess.c: Likewise.
81202         * lib/allocsa.h: Likewise.
81203
81204 2004-11-10  Simon Josefsson  <jas@extundo.com>
81205
81206         * m4/getaddrinfo.m4: New file.
81207
81208 2004-11-10  Simon Josefsson  <jas@extundo.com>
81209
81210         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81211
81212 2004-11-10  Simon Josefsson  <jas@extundo.com>
81213
81214         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81215         getaddrinfo.
81216
81217         * modules/getaddrinfo: New file.
81218
81219 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81220
81221         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81222
81223 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81224
81225         * lib/mktime.c (SHR): New macro, which is a portable
81226         substitute for >> that should work even on Crays.
81227         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81228         Problem reported by Mark D. Baushke in
81229         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81230         * lib/getdate.y (SHR): Likewise.
81231         (tm_diff): Use it.
81232         * lib/strftime.c (SHR): Likewise.
81233         (tm_diff): Use it.
81234         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81235         quote_these_too, so that right shifts are well defined.  All uses
81236         changed.
81237
81238 2004-11-10  Jim Meyering  <jim@meyering.net>
81239
81240         Ensure that no close failure goes unreported.
81241         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81242         return early when it seems there's nothing to flush.
81243         Don't include __fpending.h.
81244
81245 2004-11-10  Jim Meyering  <jim@meyering.net>
81246
81247         * modules/closeout (Depends-on): Remove fpending.
81248
81249 2004-11-10  Jim Meyering  <jim@meyering.net>
81250
81251         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81252
81253 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81254
81255         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81256         gl_FUNC_STRFTIME.
81257         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81258         and AC_REQUIRE when possible, to avoid duplicate checks.
81259         Check for <wchar.h>.
81260
81261 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81262
81263         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81264
81265 2004-11-09  Bruno Haible  <bruno@clisp.org>
81266
81267         * m4/sockpfaf.m4: New file.
81268
81269 2004-11-05  Bruno Haible  <bruno@clisp.org>
81270
81271         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81272         Reported by Mark D. Baushke <mdb@cvshome.org>.
81273
81274 2004-11-04  Bruno Haible  <bruno@clisp.org>
81275
81276         2004-09-11  Bruno Haible  <bruno@clisp.org>
81277                 * allocsa.valgrind: New file.
81278         2004-02-06  Bruno Haible  <bruno@clisp.org>
81279                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81280                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81281                 Reported by Christopher Seip <chris.seip@hp.com>.
81282
81283 2004-11-04  Bruno Haible  <bruno@clisp.org>
81284
81285         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81286         (Makefile.am): Distribute it.
81287
81288 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81289
81290         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81291         with errno == ERANGE if the buffer is too small.
81292         Problem reported by Mark D. Baushke.
81293
81294 2004-11-03  Albert Chin  <china@thewrittenword.com>
81295             Paul Eggert  <eggert@cs.ucla.edu>
81296
81297         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81298         equivalent, substitute $ac_type for equivalent type rather than
81299         blindly using uint32_t *always* which won't work if uint32_t is not
81300         available.  Define _UINT32_T to work around typedef of uint32_t if
81301         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81302         2.5.1.
81303
81304 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81305
81306         * m4/jm-macros.m4: Sync from coreutils.
81307         (gl_MACROS): Check for mbrlen, for pathchk.
81308         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81309
81310 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81311
81312         * lib/xreadlink.c (MAXSIZE): New macro.
81313         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81314         size does not exceed MAXSIZE.  Avoid cast.
81315         As suggested by Mark D. Baushke in
81316         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81317         if readlink fails with buffer size just under MAXSIZE, try again
81318         with MAXSIZE.
81319
81320 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81321
81322         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81323
81324 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81325         and  Paul Eggert  <eggert@cs.ucla.edu>
81326
81327         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81328         (get_date): Overparenthesize to avoid GCC warning.
81329
81330 2004-11-02  Bruno Haible  <bruno@clisp.org>
81331
81332         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81333         returns void.
81334
81335 2004-11-02  Bruno Haible  <bruno@clisp.org>
81336
81337         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81338         function returns void.
81339
81340 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81341
81342         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81343         fflush_unlocked, flockfile, funlockfile, funlockfile,
81344         fputs_unlocked, putc_unlocked.
81345
81346 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81347
81348         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81349         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81350         already declared.
81351
81352 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81353
81354         * modules/getdate (Files): Add doc/getdate.texi.
81355         (Depends-on): Add setenv, xalloc.
81356
81357 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81358
81359         * lib/getdate.y: Add support for TZ="foo" within a date string.
81360         Fix some bugs near time_t boundaries.  Reject dates with
81361         out-of-range components, e.g., "Sept 31".
81362         Include <stdlib.h>, "setenv.h", "xalloc.h".
81363         (ISDIGIT_LOCALE): Remove; unused.
81364         Note that the TZ and time functions used here are not reentrant.
81365         (mktime_ok, get_tz): New functions.
81366         (TZBUFSIZE): New constant.
81367         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81368         This requires that we sometimes generate our own TZ="XXX..." setting.
81369
81370 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81371
81372         * doc/getdate.texi: New file, from coreutils with modifications for
81373         the new TZ parsing.
81374
81375 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81376
81377         * lib/mktime.c (not_equal_tm): Remove redundant check.
81378
81379 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81380
81381         * modules/regex (lib_SOURCES): Add regex.c.
81382         Reported by James Youngman in
81383         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81384
81385 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81386
81387         * lib/getdate.y: Use Bison 1.875 features, and some minor
81388         code cleanups.  This change does not affect semantics.
81389         Don't include <stdlib.h>; no longer needed.
81390         Don't include unlocked-io.h; only the "#if TEST" code uses
81391         stdio, and performance isn't crucial there.
81392         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81393         Bison 1.875 features as described below.
81394         All uses of "PC." replaced by "pc->".
81395         (YYSTYPE): Add a forward declaration.
81396         (yylex, yyerror): Use full prototypes in forward decls.
81397         Use "%pure-parser" rather than obsolescent "%pure_parser".
81398         Use %parse-param and %lex-param instead of obsolescent
81399         YYPARSE_PARAM and YYLEX_PARAM.
81400         (meridian_table, month_and_day_table, time_units_table,
81401         relative_time_table, time_zone_table, military_table,
81402         lookup_zone, lookup_word, get_date):
81403         Use NULL instead of 0 where appropriate.
81404         (to_hour): Avoid abort (), to avoid a dependency on
81405         stdlib.h.
81406         (yyerror, yylex): Now accepts parser_control * arg.
81407         (main) [TEST]: Use '\0' rather than 0 for char.
81408
81409 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81410
81411         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81412
81413 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81414
81415         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81416         It's now the caller's responsibility to handle the case where
81417         !HAVE_GETPAGESIZE && !defined getpagesize.
81418
81419         * lib/mktime.c (leapyear): Arg is long int, not int.
81420
81421 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81424
81425 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81426
81427         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81428         missing.  Problem reported by James Youngman.
81429
81430 2004-10-16  Simon Josefsson  <jas@extundo.com>
81431
81432         * gnulib-tool: Fix comments.  Fix parse problem.
81433         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81434
81435 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81436
81437         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81438         implementation of getopt_long.  Problem reported by Alexander Taler in:
81439         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81440
81441 2004-10-15  Bruno Haible  <bruno@clisp.org>
81442
81443         * gnulib-tool: Untabify. Initialize supplied_libname.
81444         (func_usage): More homogenous output.
81445         (func_modules_transitive_closure, func_modules_to_filelist,
81446         func_emit_lib_Makefile_am): New functions.
81447         (func_import): New function, extracted from big case statement. Use
81448         func_get_license, func_modules_transitive_closure,
81449         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81450         opt_lgpl. Don't use test -a, as it's not portable.
81451         (func_create_testdir): Use func_modules_transitive_closure,
81452         func_modules_to_filelist, func_emit_lib_Makefile_am.
81453
81454 2004-10-15  Bruno Haible  <bruno@clisp.org>
81455
81456         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81457
81458 2004-10-15  Bruno Haible  <bruno@clisp.org>
81459
81460         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81461         the portions belonging to each module.
81462         Suggested by Derek Robert Price <derek@ximbiot.com>.
81463
81464 2004-10-12  Simon Josefsson  <jas@extundo.com>
81465
81466         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81467         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81468         to real functions.
81469
81470 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81471
81472         * modules/vsnprintf: New file.
81473
81474 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81475
81476         * m4/vsnprintf.m4: New file.
81477
81478 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81479
81480         * lib/vsnprintf.h: New file.
81481         * lib/vsnprintf.c: New file.
81482
81483 2004-10-11  Bruno Haible  <bruno@clisp.org>
81484
81485         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81486         vsnprintf.
81487
81488 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81489
81490         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81491
81492 2004-10-07  Bruno Haible  <bruno@clisp.org>
81493
81494         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81495         fits into the provided buffer.
81496
81497 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81498
81499         * lib/diacrit.c, diacrit.h: Add GPL notice.
81500
81501         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81502         notice.
81503         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81504         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81505         This avoids a potential constant-folding bug.
81506
81507 2004-10-05  Bruno Haible  <bruno@clisp.org>
81508
81509         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81510         for the declaration of strsep.
81511
81512 2004-10-05  Bruno Haible  <bruno@clisp.org>
81513
81514         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81515
81516 2004-10-04  Simon Josefsson  <jas@extundo.com>
81517
81518         * modules/memmem: New file.
81519         * tests/test-memmem.c: New file.
81520         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81521
81522 2004-10-04  Simon Josefsson  <jas@extundo.com>
81523
81524         * m4/memmem.m4: New file.
81525
81526 2004-10-04  Simon Josefsson  <jas@extundo.com>
81527
81528         * lib/memmem.h: New file.
81529         * lib/memmem.c: New file, taken from glibc.
81530
81531 2004-10-04  Simon Josefsson  <jas@extundo.com>
81532
81533         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81534         '#ifdef USE_UNLOCKED_IO'.
81535
81536 2004-10-04  Simon Josefsson  <jas@extundo.com>
81537
81538         * config/srclist.txt: Add memmem from glibc.
81539
81540 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81541
81542         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81543
81544         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81545         modules/exclude, modules/getdate, modules/getline,
81546         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81547         modules/getusershell, modules/linebuffer, modules/md5,
81548         modules/mountlist, modules/posixtm, modules/readtokens,
81549         modules/readutmp, modules/regex, modules/sha1,
81550         modules/version-etc, modules/yesno:
81551         Remove dependency on unlocked-io.
81552
81553 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81554
81555         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81556
81557         * m4/unlocked-io.m4: Add copyright notice.
81558         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81559
81560 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81561
81562         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81563         * lib/xmalloc.c (xmemdup): Likewise.
81564         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81565         XFREE): Remove these long-obsolescent macros.
81566         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81567         * lib/xstrdup.c: Remove.
81568
81569         * lib/regex.c (re_comp): Cast gettext return value to char *,
81570         Problem reported by Martin Neitzel via Mark D. Baushke.
81571
81572 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81573
81574         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81575         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81576         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81577         regex.c, sha1.c, version-etc.c, yesno.c:
81578         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81579         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81580         the includer's responsibility.
81581
81582         Sync from coreutils.
81583
81584         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81585         points to the start of a string, as the C Standard says the
81586         resulting behavior is undefined.
81587
81588         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81589         simple -> simple_backups, numbered_existing ->
81590         numbered_existing_backups, numbered -> numbered_backups
81591         to avoid shadowing problems.  All uses changed.
81592         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81593         * lib/backupfile.c (check_extension, numbered_backup):
81594         Rename locals to avoid shadowing 'basename'.
81595         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81596         once.
81597
81598         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81599         * lib/.cvsignore: Add getopt.h.
81600
81601 2004-10-04  Bruno Haible  <bruno@clisp.org>
81602
81603         * modules/README: New file.
81604         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81605         not a module.
81606
81607 2004-10-02  Jim Meyering  <jim@meyering.net>
81608
81609         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81610
81611 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81612
81613         * modules/strsep: New file.
81614
81615 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81616
81617         * m4/strsep.m4: New file.
81618
81619 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81620
81621         * lib/strsep.h: New file.
81622         * lib/strsep.c: New file.
81623
81624 2004-10-01  Simon Josefsson  <jas@extundo.com>
81625
81626         * lib/snprintf.c (snprintf): Handle size==0.
81627
81628 2004-10-01  Simon Josefsson  <jas@extundo.com>
81629             Bruno Haible  <bruno@clisp.org>
81630
81631         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81632         (snprintf): Declare 'args'.
81633
81634 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81635
81636         * lib/snprintf.c: Remove comments as to why each header is needed.
81637
81638 2004-10-01  Bruno Haible  <bruno@clisp.org>
81639
81640         * MODULES.html.sh: Add strsep.
81641
81642 2004-09-30  Simon Josefsson  <jas@extundo.com>
81643
81644         * modules/snprintf: New file.
81645
81646 2004-09-30  Simon Josefsson  <jas@extundo.com>
81647
81648         * m4/snprintf.m4: New file.
81649
81650 2004-09-30  Simon Josefsson  <jas@extundo.com>
81651
81652         * lib/snprintf.h, lib/snprintf.c: New files.
81653
81654 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81655
81656         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81657         (hol_entry_help): Never translate an empty string.
81658         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81659         * lib/argp.h (OPTION_NO_TRANS): New option.
81660
81661 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81662
81663         * modules/argp (Maintainer): Replace Simon Josefsson
81664         by Sergey Poznyakoff.
81665
81666 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81667
81668         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81669         changes merged back into glibc.
81670
81671 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81672
81673         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81674
81675 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81676
81677         * lib/xvasprintf.c: Include xalloc.h.
81678         (xvasprintf): Use xalloc_die, not xmalloc_die.
81679
81680 2004-09-29  Bruno Haible  <bruno@clisp.org>
81681
81682         * modules/alloca-opt: New file, derived from modules/alloca.
81683         * modules/allocsa: Depend on alloca-opt instead of alloca.
81684         * modules/setenv: Likewise.
81685         * modules/vasnprintf: Likewise.
81686         * MODULES.html.sh: Add alloca-opt.
81687
81688 2004-09-28  Simon Josefsson  <jas@extundo.com>
81689
81690         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81691         LGPL, and to replace license template from GPL to LGPL.
81692
81693 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81694
81695         * modules/dummy: Change license to LGPL.
81696
81697 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81698
81699         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
81700
81701 2004-09-24  Simon Josefsson  <jas@extundo.com>
81702
81703         * modules/minmax (License): Change from GPL to LGPL.
81704
81705 2004-09-23  Simon Josefsson  <jas@extundo.com>
81706
81707         * gnulib-tool (--import): Typo.
81708
81709 2004-09-23  Simon Josefsson  <jas@extundo.com>
81710
81711         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
81712
81713 2004-09-22  Bruno Haible  <bruno@clisp.org>
81714
81715         * modules/*: Add 'License' field.
81716         * gnulib-tool: Accept --extract-license option.
81717         (func_get_license): New function.
81718
81719 2004-09-21  Bruno Haible  <bruno@clisp.org>
81720
81721         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
81722         Reported by Simon Josefsson.
81723
81724 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81725
81726         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
81727         gl_AC_TYPE_LONG_LONG.
81728
81729 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81730
81731         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
81732
81733 2004-09-18  Simon Josefsson  <jas@extundo.com>
81734         and  Paul Eggert  <eggert@cs.ucla.edu>
81735
81736         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
81737         calls with autoreconf.  Define GL_LIB.
81738
81739 2004-09-14  Karl Berry  <karl@gnu.org>
81740
81741         * config/srclist.txt: unsync setenv.c, sigh.
81742
81743 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81744
81745         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
81746         Problem reported by Bruno Haible in:
81747         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
81748
81749 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81750
81751         * config/srclist.txt: Comment out argp-pvh.c.
81752
81753 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81754
81755         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81756         in case some system header has #define'd it.  Problem reported by
81757         Soeren D. Schulze in
81758         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81759
81760 2004-09-09  Karl Berry  <karl@gnu.org>
81761
81762         * regex.[ch]: delete from the root.  These were supposed to be
81763                 synced with emacs cvs, but this has not happened for about
81764                 a year, and anyway nothing else uses emacs regex.[ch].
81765                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81766                 lib/regex[.ch] is untouched.
81767
81768 2004-09-09  Bruno Haible  <bruno@clisp.org>
81769
81770         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
81771
81772 2004-09-09  Bruno Haible  <bruno@clisp.org>
81773
81774         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
81775         modifications.
81776         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
81777
81778 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81779
81780         * modules/xvasprintf: New file.
81781         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81782
81783 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81784
81785         * lib/xvasprintf.h: New file.
81786         * lib/xvasprintf.c: New file.
81787         * lib/xasprintf.c: New file.
81788
81789 2004-09-08  Bruno Haible  <bruno@clisp.org>
81790
81791         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81792
81793 2004-09-08  Bruno Haible  <bruno@clisp.org>
81794
81795         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81796         length is > INT_MAX.
81797         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81798         more.
81799
81800 2004-09-08  Bruno Haible  <bruno@clisp.org>
81801
81802         * lib/stdint_.h: New file, taken from GNU clisp.
81803
81804 2004-09-08  Bruno Haible  <bruno@clisp.org>
81805             Oskar Liljeblad  <oskar@osk.mine.nu>
81806
81807         * modules/stdint: New file.
81808         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81809
81810 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         Import from coreutils.
81813         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81814         strings on unbounded length.  alloca's performance benefits aren't
81815         that important here.
81816         (V_STRDUP): Remove.
81817         (parse_with_separator): New function, with most of the internals
81818         of the old parse_user_spec.  Allow user to omit both user and group,
81819         for compatibility with FreeBSD.
81820         Clone only the user name, not the entire spec.
81821         Do not set *uid, *gid unless entirely successful.
81822         Avoid memory leak in some failing cases.
81823         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81824         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81825         (parse_user_spec): Rewrite to use parse_with_separator.
81826
81827 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81828
81829         * modules/userspec: Don't depend on alloca.
81830
81831 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81832
81833         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81834
81835 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81836
81837         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81838         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81839         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81840
81841 2004-08-16  Simon Josefsson  <jas@extundo.com>
81842
81843         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81844         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81845         Add --dry-run for --import.
81846         Let user provided command line parameters override configure.ac
81847         settings.
81848
81849 2004-08-12  Simon Josefsson  <jas@extundo.com>
81850
81851         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81852         as discussed with Paul Eggert in threads rooted at
81853         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81854         and
81855         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81856         Before, the test was empty, and relied on ELIDE_CODE in source
81857         code.)
81858         (gl_PREREQ_GETOPT): New macro.
81859         (gl_GETOPT): Use them.
81860
81861 2004-08-12  Simon Josefsson  <jas@extundo.com>
81862
81863         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81864         * lib/getopt_.h: Renamed from getopt.h.
81865
81866 2004-08-12  Simon Josefsson  <jas@extundo.com>
81867
81868         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81869         Change default library name from libfoo to libgnu.
81870         Now, if you have a configure.ac that says:
81871                 gl_SOURCE_BASE(gl)
81872                 gl_M4_BASE(gl/m4)
81873                 gl_MODULES(error getopt etcetera)
81874                 gl_INIT
81875         you can import all you need by running:
81876                 ../gnulib/gnulib-tool --import
81877
81878         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81879         (Makefile.am): Rewrite, use logic from argz.
81880         (Include): Use <getopt.h> instead of "getopt.h".
81881
81882 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81883
81884         * modules/argp (Files): Add m4/unlocked-io.m4.
81885         (Depends-on): Add extensions.
81886
81887 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81888
81889         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81890         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81891         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81892         Check for program_invocation_name, program_invocation_short_name,
81893         flockfile, funlockfile, features.h, _getopt_long_only_r.
81894
81895 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81896
81897         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81898         its complicated substitute.
81899         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81900         and program_invocation_name.
81901         (__argp_basename) [!_LIBC]: Remove; the only use was
81902         replaced by its body.
81903         (__argp_short_program_name): Change condition from
81904         !defined __argp_short_program_name to
81905         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81906         to match argp-namefrob.h.
81907         (__argp_failure): Don't assume strerror_r returns char *.
81908         * lib/argp-parse.c (N_): Define unconditionally.
81909         (argp_default_options): Fill out initializers with 0 to avoid
81910         gcc warnings.
81911
81912 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81913
81914         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81915         getopt1.c.
81916
81917 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         Merge from coreutils.
81920
81921         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81922
81923         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81924         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81925
81926 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81927
81928         Merge from coreutils.
81929
81930         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81931         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81932         for Reliant Unix 5.43.
81933
81934         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81935         (union fooround): Use uintmax_t, not long int.
81936         The rest is a merge from libc:
81937         [defined _LIBC]: Include <shlib-compat.h>.
81938         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81939
81940         * lib/settime.c (settime): Recode to avoid warning with
81941         Sun Forte C 6U2.
81942
81943         * lib/strverscmp.c: Convert to UTF-8.
81944
81945 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81946
81947         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81948         m4/uintmax_t.m4.
81949
81950 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81951
81952         * modules/xalloc-die: New file.
81953         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81954
81955         * modules/md5 (Files): Add m4/uint32_t.m4.
81956         * modules/sha1: Renamed from modules/sha.
81957         (Files):
81958         Rename lib/sha.h to lib/sha1.h.
81959         Rename lib/sha.c to lib/sha1.c.
81960         Rename m4/sha.m4 to m4/sha1.m4.
81961         (lib_SOURCES): Likewise.
81962         (configure.ac): Rename gl_SHA to gl_SHA1.
81963         (Include): sha.h -> sha1.h.
81964
81965 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81966
81967         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81968         * m4/sha1.m4: Renamed from sha.m4.
81969         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81970
81971 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * lib/obstack.h (obstack_empty_p):
81974         Don't assume that chunk->contents is suitably aligned.
81975         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81976         Likewise. Problem reported by Benno in
81977         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81978
81979         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81980         readable.  This could be improved further but it'd take some work.
81981
81982 2004-08-08  Simon Josefsson  <jas@extundo.com>
81983
81984         * modules/xgethostname (Depends-on): Remove exit and error (not
81985         used).
81986
81987         * modules/getpass-gnu: Add getpass.h.
81988         (Depends-on): Add stdbool.
81989         * modules/getpass: Add getpass.h.
81990
81991 2004-08-08  Simon Josefsson  <jas@extundo.com>
81992
81993         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81994         Check getpass declaration.
81995
81996 2004-08-08  Simon Josefsson  <jas@extundo.com>
81997
81998         * lib/xgethostname.c: Don't include error.h (not used).
81999
82000         * lib/getpass.h: Add.
82001         * lib/getpass.c: Include getpass.h first.
82002
82003 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * lib/xalloc-die.c: New file.
82006         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82007         All uses removed.
82008         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82009         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82010         xalloc-die.c.
82011         (_, N_, xalloc_die): Move to xalloc-die.c.
82012         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82013         so that we needn't mess with xalloc_msg_memory_exhausted.
82014
82015         * lib/sha1.h: Renamed from sha.h.
82016         (SHA1_H): Renamed from _SHA_H.
82017         (sha1_ctx): Renamed from sha_ctx.
82018         (sha1_init_ctx): Renamed from sha_init_ctx.
82019         (sha1_process_block): Renamed from sha_process_block.
82020         (sha1_process_bytes): Renamed from sha_process_bytes.
82021         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82022         (sha1_read_ctx): Renamed from sha_read_ctx.
82023         (sha1_stream): Renamed from sha_stream.
82024         (sha1_buffer): Renamed from sha_buffer.
82025         * lib/sha1.c: Likewise; renamed from sha.c.
82026         Do not include <sys/types.h>.
82027         Include <stddef.h> rather than <stdlib.h>.
82028
82029 2004-08-08  Bruno Haible  <bruno@clisp.org>
82030
82031         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82032         FILESYSTEM_PREFIX_LEN.
82033         * lib/progreloc.c: Likewise.
82034         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82035
82036 2004-08-06  Simon Josefsson  <jas@extundo.com>
82037
82038         * modules/progname (Depends-on): Don't depend on stdbool.
82039
82040 2004-08-06  Simon Josefsson  <jas@extundo.com>
82041
82042         * modules/getsubopt: New file.
82043         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82044         getsubopt.
82045
82046 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82047
82048         More merge from coreutils.
82049
82050         * m4/utimens.m4, m4/utimecmp.m4: New files.
82051         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82052         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82053         prereq.m4, sha.m4: Import changes from coreutils.
82054
82055 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82056
82057         More merge from coreutils.
82058         * modules/raise, modules/readtokens0, modules/utimens:
82059         * modules/utimecmp, module/xnanosleep: New files.
82060         * modules/strftime: Add lib/strftime.h.
82061         Change include from <time.h> to "strftime.h".
82062         * modules/yesno: Add lib/yesno.h.
82063         * modules/backupfile: Remove lib/addext.c.
82064         * modules/euidaccess: Add stat-macros.h.
82065         * modules/canonicalize, modules/euidaccess,
82066         modules/filemode, modules/lchown, modules/makepath,
82067         modules/rmdir, modules/stat: Likewise.
82068
82069 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82070
82071         Merge from tar.
82072         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82073         SIZE_MAX is a valid preprocessor constant.
82074         (__argp_basename): Change from "#ifndef _LIBC"
82075         to "#ifndef __argp_short_program_name", so that
82076         we don't compile these functions for tar.
82077
82078         More merges from coreutils.
82079         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82080         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82081         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82082         * lib/addext.c: Remove; no longer needed.
82083         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82084         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82085         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82086         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82087         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82088         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82089         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82090         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82091         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82092         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82093         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82094         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82095         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82096         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82097         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82098         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82099         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82100         Import changes from coreutils.
82101
82102 2004-08-05  Simon Josefsson  <jas@extundo.com>
82103
82104         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82105
82106 2004-08-05  Simon Josefsson  <jas@extundo.com>
82107
82108         * m4/getsubopt.m4: New file.
82109
82110 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82111
82112         Merge from coreutils.
82113
82114         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82115         * m4/getcwd-path-max.m4: New files.
82116
82117         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82118         FILESYSTEM_PREFIX_LEN ->
82119         FILE_SYSTEM_PREFIX_LEN.
82120         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82121         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82122         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82123         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82124
82125         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82126         prerequisite modules now handle the DOS stuff.
82127         Don't check for unistd.h.
82128
82129 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82130
82131         Merge from coreutils.
82132
82133         * lib/.gdb-history: Remove; this doesn't belong here.
82134
82135         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82136         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82137         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82138         * lib/getcwd.c: New files.
82139
82140         * lib/dirname.h: Include <stdbool.h>.
82141         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82142         for consistency with POSIX terminology.  All uses changed.
82143         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82144         (strip_trailing_slashes): Use bool for booleans.
82145         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82146
82147         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82148         sometimes returns a positive errno value even when it succeeds.
82149         (print_errno_message) [!LIBC]: Fall back on strerror if
82150         __strerror_r fails.
82151
82152         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82153         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82154         (longest_relative_suffix): New function.
82155         (path_concat): Use it.  Assume first argument is not NULL.
82156         Port to DOS.  Omit redundant separators.
82157         Report an error instead of returning NULL.
82158         Use mempcpy instead of memcpy.
82159         (xpath_concat): Remove: not declared or used.
82160
82161         * lib/same.h: Include <stdbool.h>
82162         (same_name): Return bool, not int.
82163         * lib/same.c (same_name): Likewise.
82164         (errno): Don't declare; we assume C89 or better now.
82165
82166         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82167         if not already defined.
82168
82169         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82170         * lib/dup-safer.c (errno): Likewise.
82171
82172 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82173
82174         Merge from coreutils.
82175         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82176         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82177         * modules/path-concat: Don't depend on strdup.
82178
82179 2004-08-03  Simon Josefsson  <jas@extundo.com>
82180
82181         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82182         * lib/progname.h: Don't include stdbool.h.
82183
82184 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82187         * MODULES.html.sh (func_all_modules): Remove fatal.
82188
82189 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82190
82191         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82192
82193 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82194
82195         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82196         working.
82197
82198 2004-08-02  Simon Josefsson  <jas@extundo.com>
82199
82200         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82201         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82202         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82203
82204 2004-08-01  Simon Josefsson  <jas@extundo.com>
82205
82206         * lib/xgetdomainname.c: Include stdlib.h, for free().
82207
82208 2004-07-19  Bruno Haible  <bruno@clisp.org>
82209
82210         * MODULES.html.sh (func_all_modules): Add dummy.
82211
82212 2004-07-16  Simon Josefsson  <jas@extundo.com>
82213
82214         * modules/dummy: New file.
82215
82216 2004-07-16  Simon Josefsson  <jas@extundo.com>
82217
82218         * lib/dummy.c: New file.
82219
82220 2004-07-16  Bruno Haible  <bruno@clisp.org>
82221
82222         * lib/backupfile.h: Add extern "C" for C++.
82223         * lib/closeout.h: Likewise.
82224         * lib/copy-file.h: Likewise.
82225         * lib/findprog.h: Likewise.
82226         * lib/full-write.h: Likewise.
82227         * lib/pathname.h: Likewise.
82228         * lib/progname.h: Likewise.
82229         * lib/stpcpy.h: Likewise.
82230         * lib/stpncpy.h: Likewise.
82231         * lib/strcase.h: Likewise.
82232         * lib/strstr.h: Likewise.
82233         * lib/xalloc.h: Likewise.
82234
82235         * lib/mbswidth.h: Add extern "C" for C++.
82236         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82237
82238 2004-07-13  Robert Millan  <robertmh@gnu.org>
82239
82240         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82241
82242 2004-07-09  Simon Josefsson  <jas@extundo.com>
82243
82244         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82245         failed without this.)
82246
82247 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82248
82249         * modules/chown (Files): Add lib/fchown-stub.c, since
82250         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82251
82252 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82253
82254         * lib/fchown-stub.c: New file.
82255
82256 2004-06-24  Jim Meyering  <jim@meyering.net>
82257
82258         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82259
82260 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82261
82262         * modules/argz: Omit "#include".
82263
82264         * MODULES.html.sh (func_all_modules): Add calloc, to match
82265         2004-06-01 addition of calloc module.
82266
82267 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82268
82269         * m4/argz.m4: New file, which is autoupdated from libtool.
82270
82271 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82272
82273         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82274         libtool.
82275
82276 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82277
82278         * config/srclist-update: Don't insist on "USA." before the
82279         close-comment, as libtool omits the period and puts the */ on a
82280         separate line.
82281         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82282         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82283
82284 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82285
82286         * modules/argz: New file.
82287         * MODULES.html.sh (func_all_modules): Add argz.
82288
82289 2004-06-12  Jim Meyering  <jim@meyering.net>
82290         and  Paul Eggert  <eggert@cs.ucla.edu>
82291
82292         * modules/hash (Files): Add lib/xalloc.h.
82293         * modules/pipe (Depends-on): Add wait-process.
82294         * modules/stat (Depends-on): Add xalloc.
82295         * modules/userspec (Files): Add lib/userspec.h.
82296         * modules/xstrto
82297
82298         Upgrade from gettext-0.13.
82299         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82300         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82301         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82302
82303 2004-06-10  Jim Meyering  <jim@meyering.net>
82304
82305         * lib/calloc.c: New file.
82306
82307 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82308
82309         * lib/getdate.y (yylex): Allow space between sign and number.
82310         Problem reported by Dan Jacobson.
82311
82312 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82313
82314         Merge from coreutils CVS.
82315
82316         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82317         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82318         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82319         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82320         xstrtol.m4: Fix copyright date and/or serial number.
82321
82322         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82323         See if we need an fchown replacement.
82324         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82325         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82326         and use the replacement function if we detect either defect.
82327
82328         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82329         gl_UTIMECMP.
82330
82331 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82332         and  Jim Meyering  <jim@meyering.net>
82333
82334         Merge from coreutils CVS.
82335
82336         * lib/stat-macros.h: New file, with contents from file-type.h
82337         and coreutils' system.h.
82338         * lib/file-type.c: Include "stat-macros.h".
82339         * lib/file-type.h (file_type): Move all macro definitions to new file,
82340         stat-macros.h.
82341
82342         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82343         Wrap old code with this conditional.
82344         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82345         function that does not dereference symlinks.
82346         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82347
82348         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82349         dependency problems.
82350         (xreadlink): Accept new arg SIZE, for efficiency.
82351         All decls and uses changed.
82352         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82353
82354         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82355         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82356
82357         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82358         sysexits.h.
82359
82360 2004-06-01  Jim Meyering  <jim@meyering.net>
82361
82362         * m4/calloc.m4: New file.
82363
82364 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82365
82366         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82367         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82368         Also, fix a typo in a diagnostic.
82369
82370 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82371
82372         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82373         or AC_FUNC_REALLOC.
82374
82375 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82376
82377         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82378         macros to be defined.
82379         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82380         the allocator returns NULL because the requested size is zero.
82381
82382 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82383
82384         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82385         var.  Add comment explaining why libc still defines it.  This
82386         merges the following patch from glibc:
82387         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82388
82389 2004-05-20  Andreas Schwab  <schwab@suse.de>
82390
82391         * m4/free.m4: Replace free if it not known to work, not the other
82392         way round.
82393
82394 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82395
82396         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82397         present in glibc since revision 1.1 of this file.
82398         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82399         obstack_alignment_mask, obstack_alloc, obstack_base,
82400         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82401         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82402         obstack_grow0, obstack_init, obstack_int_grow,
82403         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82404         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82405         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82406         nonexistent functions.
82407
82408 2004-05-18  Karl Berry  <karl@gnu.org>
82409
82410         * config/srclist.txt: break link for vasnprintf.c.
82411
82412 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82413
82414         Port obstack to the AS/400, where pointers are 16 bytes wide and
82415         you cannot cast an integer to a valid pointer.  This patch is
82416         currently waiting to be integrated into glibc; see
82417         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82418
82419         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82420         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82421         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82422         (struct obstack): temp member is now a union of a pointer and
82423         an integer, instead of an integer.  All integer uses changed.
82424         This does not affect the physical layout of struct obstack,
82425         except on hosts (like the AS/400) where the size or alignment of
82426         void * is greater than that of ptrdiff_t.
82427         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82428         __STDC__)]: Store temporary in pointer member of union, not
82429         integer member.
82430         * lib/obstack.c: Include <stddef.h>, for offsetof.
82431         (struct fooalign): Remove; it doesn't need a name.
82432         (union fooround): Change double to long double, and add void *.
82433         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82434         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82435         not a macro.  Hence the values are always int; so remove all
82436         casts-to-int in uses.
82437
82438 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82439
82440         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82441         we can get this patch merged into glibc.
82442
82443 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82444             Paul Eggert  <eggert@cs.ucla.edu>
82445
82446         * m4/argp: Depend on alloca.
82447
82448 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82449             Paul Eggert  <eggert@cs.ucla.edu>
82450
82451         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82452         freecoding.
82453
82454 2004-05-17  Bruno Haible  <bruno@clisp.org>
82455
82456         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82457         precision that consists of a '.' followed by an empty digit string.
82458         Patch by Tor Lillqvist <tml@iki.fi>.
82459
82460 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82461
82462         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82463         for backward compatibility with older code.  We need our own
82464         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82465         it under some other name, and our alloca.h will define it.
82466
82467 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82468             Derek Price  <derek@ximbiot.com>
82469
82470         * lib/alloca.c: Include <alloca.h>, to get our interface.
82471         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82472         include <alloca.h> first.  Use C89 prototype for alloca; this
82473         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82474         Use #elif for simplicity, since we can assume C89 now.
82475         Don't try to source the system alloca.h since it will not be found
82476         and to prevent recursively including its replacement.
82477         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82478         * lib/regex.c: Likewise.
82479
82480 2004-05-16  Derek Price  <derek@ximbiot.com>
82481             Paul Eggert  <eggert@cs.ucla.edu>
82482
82483         getline cleanup.  This changes the getndelim2 API: both order of
82484         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82485         no delimiter).
82486
82487         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82488         interface does that.
82489         (getline): Always use getdelim, so that we don't have two
82490         copies of this code.
82491         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82492         if available.
82493         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82494         (GETNDELIM2_MAXIMUM): New macro.
82495         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82496         instead of the old practice of delim2==0.  All callers changed.
82497         Return -1 on overflow, instead of returning junk.
82498         Do not set *linesize unless allocation succeeds.
82499         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82500         that we include sys/types.h.
82501         * lib/getnline.h: Likewise.
82502         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82503         (getndelim2): Reorder arguments.
82504         * lib/getnline.c (getnline, getndelim):
82505         Don't discard the NMAX argument.
82506         (getnline): Invoke getndelim, to avoid code duplication.
82507         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82508         of (size_t) -1 by callers of the getnline family.
82509
82510 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82511
82512         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82513         Check for gettimeofday.
82514         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82515         Check for settimeofday, stime.
82516
82517 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82518
82519         * lib/nanosleep.c (suspended): Change its type from int to
82520         sig_atomic_t volatile.
82521         (first_call): Make it private to rpl_nanosleep, and have it
82522         be zero initially as that's a bit faster.
82523         (my_usleep): Round up fractional times instead of truncating them,
82524         as this is the usual meaning for 'sleep'.
82525
82526         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82527         doesn't work.
82528         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82529         (ENOSYS): Define if not defined.
82530         (settime): Fall back on stime if it exists and settimeofday fails.
82531         But don't bother with fallbacks if a method fails with errno == EPERM.
82532
82533 2004-05-11  Jim Meyering  <jim@meyering.net>
82534
82535         Prior to this change, the save_cwd caller required read access to the
82536         current directory on most systems (ones with the fchdir function).
82537
82538         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82539         fails, try write-only, and finally, resort to using xgetcwd.
82540
82541 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82542
82543         * lib/obstack.c, obstack.h: Import changes from libc.
82544
82545 2004-04-28  Bruno Haible  <bruno@clisp.org>
82546
82547         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82548         also implicitly appends .exe to executables.
82549         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82550         accepts Windows pathnames.
82551         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82552         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82553         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82554         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82555         Reported by Derek Robert Price <derek@ximbiot.com>.
82556
82557 2004-04-21  Karl Berry  <karl@gnu.org>
82558
82559         * config/srclist.txt (localcharset.c): break sync.
82560
82561 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82562
82563         * m4/host-os.m4: Add a copyright notice.
82564
82565 2004-04-20  Jim Meyering  <jim@meyering.net>
82566
82567         Change UTILS_ to gl_ in AC_DEFINE'd names.
82568         Change utils_- and jm_-prefixed variables, too.
82569         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82570         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82571         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82572
82573         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82574         Don't emit trailing blanks.
82575         Also rename jm_-prefixed variables to have gl_ prefix.
82576
82577         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82578         Also rename jm_-prefixed variables to have gl_ prefix.
82579
82580         * m4/jm-macros.m4: Reflect the renamings.
82581         * m4/prereq.m4: Likewise.
82582
82583 2004-04-20  Jim Meyering  <jim@meyering.net>
82584
82585         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82586         memory.
82587
82588 2004-04-20  Jim Meyering  <jim@meyering.net>
82589             Bruno Haible  <bruno@clisp.org>
82590
82591         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82592         memory when realloc fails.
82593
82594 2004-04-19  Jim Meyering  <jim@meyering.net>
82595
82596         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82597         now that readutmp.c may call `free (0)'.
82598
82599 2004-04-19  Bruno Haible  <bruno@clisp.org>
82600
82601         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82602         * m4/inttypes_h.m4: Likewise.
82603         * m4/stdint_h.m4: Likewise.
82604         * m4/intmax_t.m4: Likewise.
82605         * m4/uintmax_t.m4: Likewise.
82606
82607 2004-04-18  Jim Meyering  <jim@meyering.net>
82608
82609         * m4/prereq.m4: Don't forbid jm_ prefix.
82610
82611         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82612         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82613         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82614         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82615         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82616         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82617         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82618         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82619         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82620         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82621         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82622         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82623         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82624         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82625         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82626         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82627         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82628         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82629         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82630
82631 2004-04-18  Jim Meyering  <jim@meyering.net>
82632
82633         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82634         failure, don't leak memory and do call END_UTMP_ENT.
82635
82636 2004-04-16  Jim Meyering  <jim@meyering.net>
82637
82638         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82639         coreutils' stat program.
82640         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82641
82642 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82643
82644         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82645         C89.
82646         (CHAR_BIT): Remove, since we assume C89.
82647         Include <stdint.h> if available, as per current Autoconf CVS advice.
82648
82649 2004-03-31  Jim Meyering  <jim@meyering.net>
82650
82651         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82652         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82653         * m4/xalloc.m4: Likewise.
82654
82655 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82656
82657         Merge from coreutils.
82658
82659         * m4/inttostr.m4: New file.
82660         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82661         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82662         Require gl_CLOCK_TIME.
82663         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82664
82665 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82666
82667         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82668         not bool, to be more consistent with Unix conventions.
82669         Suggested by Bruno Haible.
82670
82671         Merge from coreutils.
82672
82673         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82674         * lib/umaxtostr.c: New files.
82675
82676         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82677         the usual <time.h> dance.
82678         (get_date): Change signature to support fractional time stamps.
82679         All callers changed.
82680         * lib/getdate.y: Include "getdate.h" first, as we can now
82681         assume C89 and don't need to worry about 'const'.
82682         Similarly, include "unlocked-io.h" near start, not in middle.
82683         Include <limits.h>.
82684         (textint.value): Use long int rather than int.
82685         (textint.digits): Use size_t rather than int.
82686         (BILLION, LOG10_BILLION): New constants.
82687         (parser_control): New member rel_ns.  Members day_ordinal,
82688         time_zone, month, day, hour, minutes, rel_year, rel_month,
82689         rel_day, rel_hour, rel_minutes, rel_seconds
82690         are now long int, not int.  Member seconds is now struct timespec,
82691         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82692         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82693         not int.
82694         (%union.intval): Now long int, not int.
82695         New member timespec.
82696         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82697         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
82698         (spec): Now is a timespec or an item list.
82699         (timespec, items): New nonterminals.
82700         (time, rel, relunit, number, get_date):
82701         Add support for fractional seconds.
82702         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
82703         (gmtime, localtime, mktime): Remove decls; not needed with C89.
82704         (to_hour): First arg is now long int, not int.
82705         (to_year): Returns long int, not int.
82706         Don't treat year -70 like 70.
82707         (tm_diff): Returns long int, not int.
82708         (lookup_word): Use bool instead of int when appropriate.
82709         (yylex): Use size_t for count, not int.
82710         Detect overflow when parsing large integer constants.
82711         Add support for fractions.
82712         (get_date): Make pointers 'const' if possible.
82713         Use more-portable code to detect integer overflow.
82714         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
82715         Don't use ctime; it's not reliable if the year has >4 digits.
82716
82717         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
82718         This is for compatibility with BSD.
82719
82720         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
82721         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
82722         From coreutils' system.h.
82723
82724         * lib/userspec.c: Don't include "posixver.h".
82725         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
82726         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
82727         compatible extension.  Simplify code by removing a boolean int
82728         that was always nonzero if a string was nonnull.
82729
82730 2004-03-30  Jim Meyering  <jim@meyering.net>
82731
82732         Merge from coreutils.
82733
82734         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
82735         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
82736         on some systems one must include <grp.h> before it.
82737         Reported by Christian Krackowizer.
82738
82739 2004-03-30  Jim Meyering  <jim@meyering.net>
82740
82741         Merge from coreutils.
82742
82743         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
82744
82745         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
82746         an empty input stream.
82747
82748         * lib/readtokens.c: Include <stdbool.h>.
82749         (readtoken): Use `size_t' rather than int/long.
82750         All callers adjusted.
82751         Use `bool' rather than `int' where appropriate.
82752         Use memset rather than an explicit loop.
82753         Use x2nrealloc rather than xrealloc.
82754         Allow the use of `\0' as a delimiter.
82755         (readtokens): Likewise.
82756         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82757
82758 2004-03-30  Jim Meyering  <jim@meyering.net>
82759
82760         * m4/realloc.m4: Remove file, since now it does no more than
82761         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82762         the `configure.ac' section of module/realloc.
82763         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82764
82765 2004-03-30  Bruno Haible  <bruno@clisp.org>
82766
82767         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82768         nonnull.
82769
82770 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82771
82772         Merge changes to getloadavg.c from coreutils and Emacs.
82773
82774         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
82775         Define to an expression, not to the empty string.
82776         Include cloexec.h and xalloc.h.
82777         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82778         Use set_cloexec_flag rather than rolling our own.
82779         * lib/cloexec.c, lib/cloexec.h: New files.
82780
82781 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82782
82783         * m4/cloexec.m4: New file.
82784
82785 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82786
82787         * lib/getopt.h: Sync with libc CVS.
82788
82789 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82790             Bruno Haible  <bruno@clisp.org>
82791
82792         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82793         mbswidth.
82794
82795 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82796             Bruno Haible  <bruno@clisp.org>
82797
82798         * lib/mbswidth.h: Include <wchar.h> only if
82799         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82800         <wchar.h>.
82801         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82802
82803 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82804
82805         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82806         Sync with libc CVS.
82807         * lib/getopt_int.h: New file, also synced from libc.
82808
82809 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82810
82811         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82812         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82813         Bring back getopt.c, getopt.h, getopt1.c.
82814
82815 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82816
82817         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82818         All uses changed.  Check for sa_sigaction member; this fixes
82819         a bug first reported by Jason Andrade in
82820         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82821
82822 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82823
82824         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82825         '#if' expressions.  Unlike the code it replaces, it does not
82826         depend on (defined _SC_PAGESIZE).  However, it does depend on
82827         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82828         first reported by Jason Andrade in
82829         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82830
82831 2004-02-25  Simon Josefsson  <jas@extundo.com>
82832
82833         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82834
82835 2004-02-25  Simon Josefsson  <jas@extundo.com>
82836
82837         * lib/strdup.h: New file.
82838         * lib/strdup.c: Include it.
82839         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82840         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82841
82842 2004-02-23  Karl Berry  <karl@gnu.org>
82843
82844         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82845         (from fencepost.gnu.org:/gd/gnuorg).
82846
82847 2004-02-23  Karl Berry  <karl@gnu.org>
82848
82849         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82850         * config/srclist.txt: add maintain/standards documents.
82851
82852 2004-02-18  Bruno Haible  <bruno@clisp.org>
82853
82854         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82855         Reported by Derek Robert Price <derek@ximbiot.com>.
82856
82857 2004-02-16  Karl Berry  <karl@gnu.org>
82858
82859         * config/mkinstalldirs, install-sh: update from automake.
82860
82861 2004-02-06  Karl Berry  <karl@gnu.org>
82862
82863         * m4/po.m4: update from gettext 0.14.1.
82864
82865 2004-02-06  Karl Berry  <karl@gnu.org>
82866
82867         * lib/config.charset: update from gettext 0.14.1.
82868
82869 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82870
82871         Add comments and code, prompted by suggestions from Bruno Haible
82872         for sh-quote.
82873         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82874         describing the enum quoting_style values.
82875         * lib/quotearg.c (quotearg_alloc): New function.
82876         (quotearg_buffer_restyled): Treat lone { and } as special.
82877         Treat = as special.  Work around bug with older shells
82878         that "see" a '\' that is really the 2nd byte of a multibyte char.
82879         Quote empty string with shell_quoting_style.
82880
82881 2004-02-03  Bruno Haible  <bruno@clisp.org>
82882
82883         * m4/pipe.m4: New file, from GNU gettext.
82884
82885 2004-02-03  Bruno Haible  <bruno@clisp.org>
82886
82887         * lib/pipe.h: New file, from GNU gettext.
82888         * lib/pipe.c: New file, from GNU gettext.
82889
82890 2004-01-27  Bruno Haible  <bruno@clisp.org>
82891
82892         * m4/execute.m4: New file, from GNU gettext.
82893
82894 2004-01-27  Bruno Haible  <bruno@clisp.org>
82895
82896         * lib/execute.h: New file, from GNU gettext.
82897         * lib/execute.c: New file, from GNU gettext.
82898         * lib/w32spawn.h: New file, from GNU gettext.
82899
82900 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82901
82902         Merge from diffutils.
82903
82904         * lib/file-type.c (file_type): Add typed memory objects.
82905         * lib/file-type.h (S_TYPEISTMO): New macro.
82906
82907         * lib/c-stack.h (c_stack_action): Remove argv argument.
82908         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82909         (die): Don't calculate message unless segv_action returns.
82910         (get_stack_location, min_address_from_argv, max_address_from_argv,
82911         volatile stack_base, volatile_stack_size): Remove.
82912         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82913         that every segmentation violation is a stack overflow.  (Ouch!)
82914         See Debian bug 136249 (still outstanding) for more info about why
82915         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82916
82917 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82918
82919         Exit-status fix from coreutils.
82920
82921         Use exit_failure consistently in place of EXIT_FAILURE,
82922         so that program exit statuses are consistent on failure.
82923
82924         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82925         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82926         * lib/argmatch.h: Comment fix to match the above.
82927         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82928         Now a macro referring to exit_failure, instead of a separate
82929         variable.  Include "exitfail.h" to get it.
82930         * lib/xstrtol.h: Include "exitfail.h".
82931         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82932
82933         * lib/long-options.c (parse_long_options): Use prototype
82934         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82935         for clarity.
82936
82937 2004-01-21  Jim Meyering  <jim@meyering.net>
82938
82939         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82940         so as not to conflict with a different-sized __mktime_internal
82941         function in GNU libc.
82942         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82943         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82944
82945 2004-01-20  Karl Berry  <karl@gnu.org>
82946
82947         * config/config.guess: update from config.
82948
82949         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82950
82951 2004-01-20  Bruno Haible  <bruno@clisp.org>
82952
82953         Safer stack allocation.
82954         * lib/setenv.c: Include allocsa.h.
82955         (alloca): Remove fallback definition.
82956         (freea): Remove macro.
82957         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82958         instead of freea.
82959
82960 2004-01-20  Bruno Haible  <bruno@clisp.org>
82961
82962         * m4/eealloc.m4: New file, from GNU gettext.
82963
82964 2004-01-20  Bruno Haible  <bruno@clisp.org>
82965
82966         * m4/allocsa.m4: New file, from GNU gettext.
82967
82968 2004-01-20  Bruno Haible  <bruno@clisp.org>
82969
82970         * lib/xallocsa.h: New file, from GNU gettext.
82971         * lib/xallocsa.c: New file, from GNU gettext.
82972
82973 2004-01-20  Bruno Haible  <bruno@clisp.org>
82974
82975         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82976
82977 2004-01-20  Bruno Haible  <bruno@clisp.org>
82978
82979         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82980         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82981         specially.
82982
82983 2004-01-20  Bruno Haible  <bruno@clisp.org>
82984
82985         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82986         patch.
82987
82988 2004-01-20  Bruno Haible  <bruno@clisp.org>
82989
82990         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82991
82992 2004-01-20  Bruno Haible  <bruno@clisp.org>
82993
82994         * lib/eealloc.h: New file.
82995
82996 2004-01-20  Bruno Haible  <bruno@clisp.org>
82997
82998         * lib/binary-io.h: Avoid warnings on Cygwin.
82999
83000 2004-01-20  Bruno Haible  <bruno@clisp.org>
83001
83002         * lib/allocsa.h: New file, from GNU gettext.
83003         * lib/allocsa.c: New file, from GNU gettext.
83004
83005 2004-01-18  Karl Berry  <karl@gnu.org>
83006
83007         * doc/gpl.texi, doc/lgpl.texi: new files.
83008
83009 2004-01-18  Karl Berry  <karl@gnu.org>
83010
83011         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83012         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83013
83014 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83015
83016         Merge from coreutils.
83017
83018         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83019         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83020         (gl_DEFAULT_POSIX2_VERSION): Move
83021         the documentation from 'configure' into 'config.hin',
83022         so that 'configure --help' isn't burdened by it and
83023         we don't have to worry about its formatting there.
83024         Reword the documentation so that it's more succinct
83025         and can be run together into a single paragraph.
83026         * m4/same.m4 (gl_SAME): Check for pathconf.
83027
83028 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83029
83030         Merge from coreutils.
83031
83032         * lib/posixver.c: Include posixver.h.
83033
83034         * lib/same.c: Include <stdbool.h>, <limits.h>.
83035         (_POSIX_NAME_MAX): Define if not defined.
83036         (MIN): New macro.
83037         (same_name): If file names are silently truncated, report
83038         that the file names are the same if they are the same after
83039         the silent truncation.
83040
83041         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83042         conversion function.
83043         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83044         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83045         longer needed.
83046
83047 2004-01-15  Jim Meyering  <jim@meyering.net>
83048
83049         Merge from coreutils.
83050
83051         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83052         if no library is required.
83053         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83054         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83055         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83056         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83057         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83058         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83059         value, $ac_cv_search_crypt, if it's "none required".
83060         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83061         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83062         not gl_FUNC_GETLOADAVG.
83063         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83064         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83065
83066 2004-01-15  Jim Meyering  <jim@meyering.net>
83067
83068         Merge from coreutils.
83069
83070         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83071         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83072         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83073
83074         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83075         optional configure-time default.
83076
83077         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83078
83079         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83080
83081 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83082
83083         Merge from coreutils.
83084
83085         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83086         value, $ac_cv_search_nanosleep, if it's "none required".
83087
83088 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83089
83090         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83091         with like-named macro in fnmatch.c.
83092         (EXT): Use an internal constant instead.
83093
83094         Merge fnmatch patches from glibc.
83095         * lib/fnmatch.c (mbsinit): Remove define.
83096         Add libc_hidden_ver (__fnmatch, fnmatch).
83097         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83098         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83099
83100 2004-01-14  Karl Berry  <karl@gnu.org>
83101
83102         * config/install-sh: update from automake.
83103
83104 2004-01-13  Karl Berry  <karl@gnu.org>
83105
83106         * config/install-sh: update from automake.
83107
83108 2004-01-09  Karl Berry  <karl@gnu.org>
83109
83110         * config/install-sh: update from automake.
83111
83112 2004-01-05  Karl Berry  <karl@gnu.org>
83113
83114         * config/config.{sub,guess}: update from config.
83115
83116 2003-12-31  Karl Berry  <karl@gnu.org>
83117
83118         * config/depcomp: update from automake.
83119
83120 2003-12-14  Karl Berry  <karl@gnu.org>
83121
83122         * lib/config.charset: update from gettext-runtime.
83123
83124 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83125
83126         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83127         Bug reported by Alfred M. Szmidt.
83128
83129 2003-12-03  Bruno Haible  <bruno@clisp.org>
83130
83131         * m4/gettext.m4: Upgrade from gettext-0.13.
83132         * m4/po.m4: Upgrade from gettext-0.13.
83133         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83134         * m4/intmax.m4: New file, from gettext-0.13.
83135         * m4/printf-posix.m4: New file, from gettext-0.13.
83136
83137 2003-11-29  Karl Berry  <karl@gnu.org>
83138
83139         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83140
83141 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83142             Bruno Haible  <bruno@clisp.org>
83143
83144         * lib/printf-parse.h: Don't include sys/types.h.
83145         (ARG_NONE): New macro.
83146         (char_directive): Change type of *arg_index fields to size_t.
83147         * lib/printf-parse.c: Don't include sys/types.h.
83148         (SSIZE_MAX): Remove macro.
83149         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83150         Remove unnecessary overflow check.
83151         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83152         fields.
83153
83154 2003-11-25  Bruno Haible  <bruno@clisp.org>
83155
83156         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83157
83158 2003-11-25  Bruno Haible  <bruno@clisp.org>
83159
83160         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83161         gt_TYPE_SSIZE_T.
83162
83163 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83164
83165         * modules/alloca: Remove dependency on xalloc.
83166
83167 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83168
83169         * lib/alloca.c: Remove dependency on xalloc module.
83170         (xalloc_die): Remove.
83171         (memory_full) [!defined emacs]: New macro.
83172         [!defined emacs]: Don't include xalloc.h.
83173         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83174         address arithmetic overflows.  Change datatypes a bit to avoid
83175         unnecessary casts.
83176
83177 2003-11-22  Jim Meyering  <jim@meyering.net>
83178
83179         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83180         s/size/size_t/.
83181
83182 2003-11-21  Karl Berry  <karl@gnu.org>
83183
83184         * config/config.{sub,guess}: update from config.
83185
83186 2003-11-18  Karl Berry  <karl@gnu.org>
83187
83188         * config/config.{sub,guess}: update from config.
83189
83190         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83191
83192 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83193
83194         * README: Mention that S+T cannot overflow if S is the size of
83195         an existing object and T is sufficiently small.
83196
83197 2003-11-17  Jim Meyering  <jim@meyering.net>
83198
83199         On systems without utime and without a utimes function capable of
83200         dealing with a NULL struct utimbuf* argument, this utime replacement
83201         could -- in unusual circumstances -- leak a file descriptor.
83202         * lib/utime.c: Include <unistd.h> and <errno.h>.
83203         (utime_null): Be sure to close `fd' and to preserve errno.
83204         Reported by Geoff Collyer via Arnold Robbins.
83205
83206 2003-11-17  Bruno Haible  <bruno@clisp.org>
83207
83208         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83209         (Depends-on): Add xsize.
83210
83211 2003-11-17  Bruno Haible  <bruno@clisp.org>
83212
83213         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83214
83215 2003-11-17  Bruno Haible  <bruno@clisp.org>
83216
83217         * lib/vasnprintf.c (alloca): Remove fallback definition.
83218         (freea): Remove definition.
83219         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83220         Reported by Paul Eggert.
83221
83222 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83223             Bruno Haible  <bruno@clisp.org>
83224
83225         Protect against address arithmetic overflow.
83226         * lib/printf-args.h: Include stddef.h.
83227         (arguments): Change type of field 'count' to size_t.
83228         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83229         'unsigned int' where appropriate.
83230         * lib/printf-parse.h: Include sys/types.h.
83231         (char_directive): Change type of *arg_index fields to ssize_t.
83232         (char_directives): Change type of fields 'count', max_*_length to
83233         size_t.
83234         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83235         (SSIZE_MAX): Define fallback value.
83236         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83237         instead of 'int' where appropriate. Check a_allocated, d_allocated
83238         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83239         * lib/vasnprintf.c: Include xsize.h.
83240         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83241         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83242         overflow. Avoid wraparound when converting a width or precision from
83243         decimal to binary.
83244
83245 2003-11-16  Bruno Haible  <bruno@clisp.org>
83246
83247         Update from GNU gettext.
83248         * lib/printf-parse.c: Generalize to it can be compiled for wide
83249         strings.
83250         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83251         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83252         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83253         SNPRINTF): New macros.
83254         Don't include <alloca.h> if the file is used inside libintl.
83255         (local_wcslen): New function, for Solaris 2.5.1.
83256         (VASNPRINTF): Use it instead of wcslen.
83257
83258 2003-11-16  Bruno Haible  <bruno@clisp.org>
83259
83260         * lib/xsize.h (xmax): New function.
83261         (xsum, xsum3, xsum4): Declare as "pure" functions.
83262
83263 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83264
83265         * modules/xalloc (Files): Undo latest change, since xalloc.h
83266         no longer needs SIZE_MAX or PTRDIFF_MAX.
83267
83268 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83269
83270         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83271         gl_PTRDIFF_MAX.
83272
83273 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83274
83275         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83276         "return", to pacify some unknown compiler.  Problem reported
83277         by Joerg Schilling.
83278
83279 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83280
83281         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83282         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83283         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83284         heuristic is just as accurate as far as we know, and it removes a
83285         dependency on size_max.m4 and ptrdiff_max.m4.
83286
83287 2003-11-11  Bruno Haible  <bruno@clisp.org>
83288
83289         * modules/xsize (Files): Add m4/size_max.m4.
83290         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83291
83292 2003-11-11  Bruno Haible  <bruno@clisp.org>
83293
83294         * m4/size_max.m4: New file.
83295         * m4/ptrdiff_max.m4: New file.
83296         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83297         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83298         (gl_XALLOC): Invoke it.
83299
83300 2003-11-11  Bruno Haible  <bruno@clisp.org>
83301
83302         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83303         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83304         defined.
83305
83306 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83307
83308         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83309         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83310         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83311         From Bruno Haible.
83312         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83313         not (size_t) -1, since it's defined here.
83314
83315 2003-11-09  Karl Berry  <karl@gnu.org>
83316
83317         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83318
83319 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83320
83321         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83322         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83323         Reject sizes of exactly SIZE_MAX bytes.
83324         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83325         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83326
83327 2003-11-05  Bruno Haible  <bruno@clisp.org>
83328
83329         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83330         SIZE_MAX defined in <limits.h> on Solaris.
83331
83332 2003-11-04  Jim Meyering  <jim@meyering.net>
83333
83334         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83335         variable names, rather than @VAR@.
83336         * modules/poll: Likewise.
83337
83338 2003-11-04  Bruno Haible  <bruno@clisp.org>
83339
83340         * modules/xsize: New file.
83341         * modules/linebreak: Depend on xsize.
83342         * MODULES.html.sh (func_all_modules): Add xsize.
83343
83344 2003-11-04  Bruno Haible  <bruno@clisp.org>
83345
83346         * m4/xsize.m4: New file.
83347
83348 2003-11-04  Bruno Haible  <bruno@clisp.org>
83349
83350         * lib/xsize.h: New file.
83351         * lib/linebreak.c: Include xsize.h.
83352         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83353         argument for overflow.
83354         Suggested by Paul Eggert.
83355
83356 2003-11-03  Karl Berry  <karl@gnu.org>
83357
83358         * config/config.{guess,sub}: update from config.
83359
83360 2003-11-03  Jim Meyering  <jim@meyering.net>
83361
83362         * modules/userspec (lib_SOURCES): Add userspec.h.
83363         (Include): Add "userspec.h".
83364         Improve description.
83365
83366 2003-11-03  Jim Meyering  <jim@meyering.net>
83367
83368         * lib/userspec.c: Include "userspec.h".
83369         * lib/userspec.h: New file.
83370
83371 2003-11-03  Bruno Haible  <bruno@clisp.org>
83372
83373         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83374
83375 2003-11-03  Bruno Haible  <bruno@clisp.org>
83376
83377         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83378         available, to avoid (extremely rare) race condition.
83379         Suggested by Paul Eggert.
83380
83381 2003-11-02  Karl Berry  <karl@gnu.org>
83382
83383         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83384
83385 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83386
83387         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83388         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83389         (read_filesystem_list): Set and use me_type_malloced.
83390         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83391         whatever the type happens to be), for brevity and consistency.
83392         Check for size calculation overflow on Alphas running OSF/1.
83393
83394 2003-10-31  Jim Meyering  <jim@meyering.net>
83395
83396         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83397
83398         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83399
83400 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83401             Bruno Haible  <bruno@clisp.org>
83402
83403         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83404         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83405
83406 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83407
83408         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83409         netbsd*-gnu*.  Suggested by Robert Millan.
83410
83411 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83412
83413         * modules/group-member: Depend on stdbool.
83414
83415 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83416
83417         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83418
83419 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83420
83421         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83422         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83423         after the 'gnu' in these cases.  This fixes some bugs in the
83424         previous change, and is based on suggestions by Robert Millan.
83425
83426 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83427
83428         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83429         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83430         no longer needed.
83431         * lib/quotearg.c (quotearg_n_options): Use it.
83432         * lib/group-member.c: Include <stdbool.h>.
83433         (free_group_info): Arg is now const *; don't free arg.
83434         (get_group_info): Now returns bool and accepts struct group_info *,
83435         rather than returning a malloc'ed struct group_info *.
83436         All uses changed.  Check for overflow in internal size calculation.
83437
83438         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83439         rather than xmalloc/xrealloc.
83440         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83441         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83442         conformance bug: the old code used a pointer after freeing the
83443         storage that it addressed.
83444         * lib/hash.c (hash_initialize): Simplify the code by using
83445         xalloc_oversized rather than doing it by hand.
83446         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83447         the buffer preserved.  Use free and xmalloc instead.
83448         * lib/quotearg.c (quotearg_n_options): Likewise.
83449         Use a simpler test for size overflow.  Don't use xalloc_oversized
83450         because unsigned int might be wider than size_t (!); this suggests
83451         that we should switch from unsigned int to size_t for slot numbers.
83452
83453 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83454
83455         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83456         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83457         NetBSD kernels.  Requested by Richard Stallman.
83458
83459 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83460
83461         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83462         to allocate the returned structure.  Do not allocate a subarray,
83463         as x2nrealloc will do that.
83464         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83465         instead of xnrealloc.
83466         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83467
83468 2003-10-27  Bruno Haible  <bruno@clisp.org>
83469
83470         * lib/stdbool_.h: Better support for BeOS.
83471
83472 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83473
83474         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83475         now uses inline.
83476
83477 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83478
83479         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83480         callers that want to do their own size-overflow checking.  Include
83481         <stdbool.h>, since xalloc_oversized returns bool.
83482         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83483         to use xalloc_oversized.
83484
83485         Add two functions x2realloc, x2nrealloc, for programs that grow
83486         arrays dynamically by doubling their sizes.
83487         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83488         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83489         New functions.
83490
83491         Port to C99 semantics for 'inline' of external functions.
83492         Bug reported by Bruno Haible.
83493         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83494         with the old contents of xnmalloc.
83495         (xnmalloc, xmalloc): Use it.
83496         (xnrealloc_inline): New static inline function,
83497         with the old contents of xnrealloc.
83498         (xnrealloc, xrealloc): Use it.
83499
83500         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83501         that.
83502
83503 2003-10-26  Karl Berry  <karl@gnu.org>
83504
83505         * config/srclist.txt (COPYING.DOC): no longer available from
83506         /gd/gnuorg; don't know where the ultimate source is.
83507
83508 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83509
83510         Fix several address-calculation bugs in the hash modules,
83511         plus some minor code cleanup.
83512
83513         * lib/hash.h: Include <stdbool.h>, for bool.
83514         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83515         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83516         hash_get_n_entries, hash_get_max_bucket_length,
83517         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83518         hash_rehash): Use size_t rather than unsigned.
83519         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83520         hash_get_n_buckets_used, hash_get_n_entries,
83521         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83522         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83523         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83524         Likewise.
83525         (SIZE_MAX): Define if not defined.
83526         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83527         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83528         hash_print):
83529         Use const * when possible.
83530         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83531         (check_tuning): Fix bug: if tuning parameters were very close to
83532         0 or 1, rounding errors could have caused subscript violations.
83533         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83534         (hash_initialize): Add 'fail:' label
83535         to free table and return NULL, and use it to simplify code.
83536         Use calloc rather than clearing the storage ourself.
83537         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83538         buffer size calculations.
83539         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83540         Include <stddef.h>, for size_t.
83541         * lib/hash-pjw.c (hash_pjw): Likewise.
83542         Switch to method described by Bruno Haible.
83543         Include <limits.h>, for CHAR_BIT.
83544         (SIZE_BITS): New macro.
83545
83546 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83547
83548         * m4/getline.m4 (AM_FUNC_GETLINE):
83549         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83550         hosts.  Problem reported by Derek Robert Price in
83551         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83552         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83553         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83554
83555 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83556
83557         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83558         ceiling the allocation at NMAX bytes rather than silently
83559         discarding input bytes before NMAX is reached.  This makes
83560         a difference only if NMAX exceeds SIZE_MAX / 2.
83561
83562         * lib/obstack.c: Merge from glibc.
83563         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83564         Add libc_hidden_def (_obstack_newchunk).
83565         (_obstack_free) [! defined _LIBC]: Remove.
83566         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83567         a clone of the function body.
83568         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83569         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83570
83571         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83572         glibc.
83573         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83574         arg to memcpy.
83575
83576         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83577         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83578         Don't use lvalue casts, as GCC plans to remove support for them
83579         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83580         was also present in the non-GCC version, indicating that this
83581         code had always been buggy and had never been widely used.
83582         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83583         Use the fast variant of each macro, rather than copying the
83584         definiens of the fast variant; that way, we'll be more likely to
83585         catch future bugs in the fast variants.
83586
83587 2003-10-20  Bruno Haible  <bruno@clisp.org>
83588
83589         * modules/wait-process: New file.
83590         * MODULES.html.sh (func_all_modules): Add wait-process.
83591
83592 2003-10-20  Bruno Haible  <bruno@clisp.org>
83593
83594         * m4/wait-process.m4: New file.
83595
83596 2003-10-20  Bruno Haible  <bruno@clisp.org>
83597
83598         * lib/wait-process.h: New file, from GNU gettext.
83599         * lib/wait-process.c: New file, from GNU gettext.
83600
83601 2003-10-19  Jim Meyering  <jim@meyering.net>
83602
83603         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83604         HPUX 10.20.
83605
83606 2003-10-18  Karl Berry  <karl@gnu.org>
83607
83608         * config/config.guess: update from config.
83609
83610 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83611
83612         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83613         (getgroups): First arg is int, not size_t.
83614         Don't let 'free' mangle errno.
83615
83616 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83617
83618         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83619
83620 2003-10-16  Karl Berry  <karl@gnu.org>
83621
83622         * config/config.{guess,sub}: update from config.
83623
83624 2003-10-16  Jim Meyering  <jim@meyering.net>
83625
83626         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83627         memcpy.
83628
83629 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83630
83631         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83632         (SIZE_MAX): Remove.
83633         (new_exclude, add_exclude_file): Initial size no longer needs to
83634         be a power of 2.
83635         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83636         our own address arithmetic overflow checking.
83637
83638         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83639         (fnmatch): Do not alloca more than 2000 wide characters;
83640         instead, use malloc for large buffers.
83641         Check for address arithmetic overflow, and return -1
83642         with errno set to ENOMEM in that case.
83643         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83644         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83645         instead, return -1.  Check for address arithmetic overflow.
83646
83647 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83648
83649         Handle invalid suffixes and overflow independently, so that
83650         callers can treat them independently as needed.  Fix some bugs in
83651         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83652         suffix for a human-readable blocksize.  The major caller-visible
83653         change is the addition of a new
83654         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83655         that both overflow and suffix chars were found.
83656
83657         * lib/human.c (humblock): Don't check separately for invalid suffix
83658         char; that is xstrtoumax's job (now that its bug is fixed).
83659         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83660         INTMAX_MAX]: New macros.
83661         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83662         TYPE_MAXIMUM): New macros.
83663         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83664         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83665         if overflow occurs, as it's what __strtol does and it's more useful
83666         in practice.
83667         (__xstrtol): If __strtol reports some error other than ERANGE,
83668         reflect it to the caller as LONGINT_INVALID.  If it reports
83669         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83670         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83671         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83672         value.
83673         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83674         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83675         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83676         [defined UINTMAX_MAX]: New macros.
83677
83678 2003-10-14  Bruno Haible  <bruno@clisp.org>
83679
83680         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83681
83682 2003-10-14  Bruno Haible  <bruno@clisp.org>
83683
83684         * m4/sig_atomic_t: New file, from GNU gettext.
83685         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83686
83687 2003-10-14  Bruno Haible  <bruno@clisp.org>
83688
83689         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83690         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83691         Also use volatile where needed.
83692
83693 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83694
83695         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83696         Change maintainer from Bruno Haible to 'all'.
83697
83698 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83699
83700         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
83701
83702 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83703
83704         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
83705         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
83706         and define in terms of the other primitives.
83707         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
83708         (SIZE_MAX): Define if not already defined.
83709         (array_size_overflow): New function.
83710         (xalloc_die): Abort instead of exiting if 'error' returns.
83711         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
83712         (xmalloc, xrealloc): Use them.
83713         (xcalloc): Check for address arithmetic overflow.
83714         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
83715         a bit faster than strcpy.
83716
83717 2003-10-10  Simon Josefsson  <jas@extundo.com>
83718
83719         * modules/argp (Depends-on): Add restrict and strcase.
83720
83721 2003-10-10  Simon Josefsson  <jas@extundo.com>
83722
83723         * m4/argp.m4: Add AC_C_INLINE.
83724
83725 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83726
83727         Merge getpass from libc, plus a few fixes.
83728
83729         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
83730         Include <stdbool.h>.
83731         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
83732         __fsetlocking to empty.
83733         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
83734         do include <bits/libc-lock.h>.
83735         Do not include <fcntl.h>; not needed.
83736         [_LIBC]: Include <wchar.h>.
83737         (NOTCANCEL_MODE): New macro.
83738         (flockfile, funlockfile) [_LIBC]: New macros.
83739         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
83740         [!_LIBC]: New macros.
83741         (call_fclose): New function.
83742         (getpass): Use it.  Save tty stream separately; this simplifies the
83743         code and makes it more reliable if stdin happens to equal stdout.
83744         Invoke __fsetlocking on tty.
83745         Handle thread cancellation if needed.
83746         Namespace cleanup (use __tcgetattr, __getline).
83747         Use bool for Booleans.
83748         [USE_IN_LIBIO]: Handle wide streams.
83749         [!_LIBC]: Unconditionally do the fseek, since we don't know what
83750         stream might go where.
83751
83752         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
83753         doesn't have to include <stdio.h> before us.
83754         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83755         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83756         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83757         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83758         if not declared, so that we can use getpass.c code from libc without
83759         rewriting it.
83760         (flockfile, ftrylockfile, funlockfile): New macros.
83761
83762 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83763
83764         * modules/getpass: Depend on stdbool.
83765
83766 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83767
83768         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83769
83770 2003-10-07  Karl Berry  <karl@gnu.org>
83771
83772         * config/config.{guess,sub}: update from config.
83773
83774 2003-10-06  Jim Meyering  <jim@meyering.net>
83775             Bruno Haible  <bruno@clisp.org>
83776
83777         This lets translators provide better translations for the
83778         "Written by ..." part of --version output.
83779         * lib/version-etc.h: Include stdarg.h.
83780         (version_etc_copyright): Declare as readonly.
83781         (version_etc): Make this function variadic with a NULL-terminated list
83782         of author name strings.
83783         (version_etc_va): New declaration.
83784         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83785         (version_etc_copyright): Declare as readonly.
83786         (version_etc_va): New function. Provide a different translatable string
83787         for each possible number of authors < 10. Abbreviate when there are 10
83788         authors or more.
83789         (version_etc): Make this function variadic. Call version_etc_va.
83790         Suggestion from Gary V. Vaughan.
83791
83792         * lib/long-options.h (parse_long_options): Change prototype: the
83793         authors string is moved to the end and becomes variadic.
83794         * lib/long-options.c: Include stdarg.h.
83795         (parse_long_options): Make this function variadic, too.
83796         Call version_etc_va, not version_etc.
83797
83798 2003-10-06  Bruno Haible  <bruno@clisp.org>
83799
83800         * modules/version-etc-2: Remove file.
83801         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83802
83803 2003-10-06  Bruno Haible  <bruno@clisp.org>
83804
83805         * modules/fatal-signal: New file.
83806         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83807
83808 2003-10-06  Bruno Haible  <bruno@clisp.org>
83809
83810         * m4/fatal-signal.m4: New file.
83811         * m4/signalblocking.m4: New file, from GNU gettext.
83812
83813 2003-10-06  Bruno Haible  <bruno@clisp.org>
83814
83815         * lib/version-etc-2.h: Remove file.
83816         * lib/version-etc-2.c: Remove file.
83817
83818 2003-10-06  Bruno Haible  <bruno@clisp.org>
83819
83820         * lib/fatal-signal.h: New file, from GNU gettext.
83821         * lib/fatal-signal.c: New file, from GNU gettext.
83822
83823 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83824
83825         * README: Rework advice for preventing empty .o files.
83826         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83827         not <sys/types.h>.
83828
83829 2003-10-04  Karl Berry  <karl@gnu.org>
83830
83831         * lib/argp*: update from libc.
83832
83833 2003-10-04  Karl Berry  <karl@gnu.org>
83834
83835         * config/config.{guess,sub}: update from config.
83836
83837 2003-10-02  Bruno Haible  <bruno@clisp.org>
83838
83839         * modules/lchown (Include): Add lchown.h.
83840         * modules/time_r (Include): Use "..." syntax.
83841         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83842
83843 2003-10-01  Simon Josefsson  <jas@extundo.com>
83844
83845         * MODULES.html.sh (func_all_modules): Move gethostname from section
83846         'based on' to section 'lacking' POSIX:2001.
83847
83848 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83849
83850         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83851         to output mode on the same stream.
83852
83853 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83854
83855         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83856         Fix arg typo in previous patch.
83857
83858 2003-09-28  Jim Meyering  <jim@meyering.net>
83859
83860         * lib/error.c: Correct cpp indentation.
83861
83862 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83863
83864         * modules/free: New file.
83865
83866 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83867
83868         * m4/free.m4: New file.
83869
83870 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83871
83872         * lib/minmax.h (MIN, MAX)
83873         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83874         Omit the special code that used __typeof__, since we worry that
83875         it could be more trouble than it's worth.  See:
83876         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83877         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83878
83879         * lib/free.c: New file.
83880
83881 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83882
83883         Trivial fixes to Makefile.am parts of module listings.
83884         * modules/strstr: Append strstr.h to lib_SOURCES.
83885         * modules/strcase: Likewise, for strcase.h.
83886
83887 2003-09-27  Karl Berry  <karl@gnu.org>
83888
83889         * config/mkinstalldirs: update from automake.
83890
83891 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83892
83893         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83894         (error_tail): Do not loop, reallocating temporary buffer, since
83895         the output cannot contain more wide characters than the input
83896         contains bytes, the size must be big enough already.  This avoids
83897         one potential size overflow calculation.  Check for size overflow
83898         when calculating temporary buffer size.  Free temporary buffer
83899         when done, if it was allocated with malloc; this plugs a memory
83900         leak.  Remove casts from void * to pointers, that are no longer
83901         needed now that we're assuming C89 or better.
83902
83903         Merge error changes from glibc.
83904
83905         * lib/error.c, error.h: Update copyright notice header to match glibc.
83906         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83907         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83908         Disable cancellation while printing error.
83909         * lib/error.h: Prepend __ to parameter names.
83910
83911 2003-09-26  Jim Meyering  <jim@meyering.net>
83912
83913         * lib/error.c (error_tail): Move some declarations
83914         into inner scope where the local variables are used.
83915
83916 2003-09-26  Bruno Haible  <bruno@clisp.org>
83917
83918         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83919         stpncpy().
83920         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83921
83922 2003-09-26  Bruno Haible  <bruno@clisp.org>
83923
83924         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83925         (stpncpy): Define as alias for gnu_stpncpy.
83926         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83927
83928 2003-09-25  Simon Josefsson  <jas@extundo.com>
83929
83930         * lib/xgetdomainname.h: New file.
83931         * lib/xgetdomainname.c: New file.
83932
83933 2003-09-25  Simon Josefsson  <jas@extundo.com>
83934             Bruno Haible  <bruno@clisp.org>
83935
83936         * modules/getdomainname: New file.
83937         * modules/xgetdomainname: New file.
83938         * MODULES.html.sh (func_all_modules): Add getdomainname,
83939         xgetdomainname.
83940
83941 2003-09-25  Simon Josefsson  <jas@extundo.com>
83942             Bruno Haible  <bruno@clisp.org>
83943
83944         * m4/getdomainname.m4: New file.
83945
83946 2003-09-25  Simon Josefsson  <jas@extundo.com>
83947             Bruno Haible  <bruno@clisp.org>
83948
83949         * lib/getdomainname.h: New file.
83950         * lib/getdomainname.c: New file.
83951
83952 2003-09-25  Karl Berry  <karl@gnu.org>
83953
83954         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83955
83956 2003-09-25  Karl Berry  <karl@gnu.org>
83957
83958         * config/install-sh: update from automake.
83959
83960 2003-09-25  Bruno Haible  <bruno@clisp.org>
83961
83962         * modules/version-etc-2: New file, from modules/version-etc with
83963         modifications.
83964         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83965
83966 2003-09-25  Bruno Haible  <bruno@clisp.org>
83967
83968         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83969         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83970
83971 2003-09-24  Simon Josefsson  <jas@extundo.com>
83972
83973         * modules/xgethostname: Add xgethostname.h.
83974
83975 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83976
83977         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83978         the buffer associated with the argument.  Bug reported by
83979         Simon Josefsson.
83980
83981 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83982
83983         * README: Document assumptions that 'int' is at least 32 bits
83984         wide, that integer arithmetic is 2's complement without overflow,
83985         that there are no holes in integer values, that adding sizes of
83986         two nonoverlapping objects can't overflow, and that all-bits-zero
83987         yields scalar zero.  Fix spelling and capitalization typos.
83988
83989 2003-09-19  Karl Berry  <karl@gnu.org>
83990
83991         * lib/argp.h: update from libc.
83992
83993 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83994
83995         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83996         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83997         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83998
83999 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84000
84001         * gnulib-tool: Use "test -h", not "test -L", for portability
84002         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84003         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84004         (sed_extract_prog): Issue s commands one-by-one, rather than
84005         using \| in one s command.
84006
84007 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84008
84009         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84010         input error, instead of returning NULL the next time we are called
84011         (and therefore losing track of errno).
84012
84013 2003-09-16  Bruno Haible  <bruno@clisp.org>
84014
84015         * gnulib-tool (func_create_testdir): Warn about duplicated
84016         dependencies.
84017
84018 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84019
84020         * modules/argmatch, modules/fatal, modules/obstack,
84021         modules/xalloc, modules/xgethostname: Sort dependencies by
84022         importance, not alphabetically.
84023
84024 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84025
84026         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84027         fails, so that the caller gets the proper errno.
84028
84029         * lib/readutmp.c (read_utmp): Likewise.
84030         Check for fstat error.  Close stream and free storage
84031         when failing.
84032
84033 2003-09-14  Karl Berry  <karl@gnu.org>
84034
84035         * config/srclist.txt (strdup.c): disable for c89 changes.
84036
84037 2003-09-14  Jim Meyering  <jim@meyering.net>
84038
84039         * lib/getloadavg.c: Correct cpp indentation.
84040         * lib/strdup.c: Likewise.
84041         * lib/vasnprintf.c: Likewise.
84042
84043 2003-09-14  Bruno Haible  <bruno@clisp.org>
84044
84045         * modules/fwriteerror: New file.
84046         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84047
84048 2003-09-14  Bruno Haible  <bruno@clisp.org>
84049
84050         * lib/fwriteerror.h: New file.
84051         * lib/fwriteerror.c: New file.
84052
84053 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84054
84055         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84056         modules/xgethostname, modules/xalloc: Depend on exit.
84057
84058 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84059
84060         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84061
84062         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84063         and AC_MINIX, too, so that their extensions are available.
84064
84065         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84066         This macro has been superseded by gl_BACKUPFILE.
84067
84068         More patches to assume C89 or better.
84069
84070         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84071
84072         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84073         unconditionally.
84074         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84075         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84076         Include <string.h>, <stdlib.h> unconditionally.
84077         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84078         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84079         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84080         headers or for string.h.
84081         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84082         or strtoul.
84083
84084         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84085         headers.
84086         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84087         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84088         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84089         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84090         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84091         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84092         memcpy, memset.
84093         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84094         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84095         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84096         strtol.
84097         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84098         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84099         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84100         strtoul.
84101
84102 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84103
84104         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84105         * lib/obstack.c [!defined _LIBC]: Likewise.
84106         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84107         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84108         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84109
84110         More changes to assume C89 or better.
84111
84112         * lib/error.c (error_tail): Assume vprintf.
84113
84114         * lib/argmatch.c (getenv): Remove decl.
84115         * lib/progreloc.c (get_full_program_name): Define via prototype.
84116         * lib/setenv.c (clearenv): Likewise.
84117         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84118         needed.
84119         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84120         (malloc, memcpy): Remove decls.
84121         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84122         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84123         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84124         (memcpy): Remove macro.
84125         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84126         (__P): Remove.  All uses removed.
84127         (PTR): Remove.  All uses changed to void *.
84128         (CHAR_BIT, NULL): Remove.
84129         (spaces, zeros, memset_space, memset_zero)
84130         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84131         Remove.
84132         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84133         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84134         Define with prototype.
84135         Remove now-unnecessary prototype decl.
84136         (extra_args_spec): Assume ANSI C.  All uses changed.
84137         (extra_args_spec_iso): Remove.
84138         (my_strftime, emacs_strftimeu): Define via prototype.
84139         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84140         unconditionally.
84141         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84142         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84143         (strtoul, strtol): Remove decls.
84144         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84145         LONG_MAX): Remove.
84146         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84147         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84148         (LOCALE_PARAM_PROTO): New macro.
84149         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84150         (INTERNAL (strtol), strtol): Define with a prototype.
84151         (PARAMS): Remove.  All uses removed.
84152         * lib/tempname.c: Include <string.h> unconditionally.
84153         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84154         * lib/xgethostname.c (main): Define with a prototype.
84155         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84156         Include <stdlib.h> unconditionally.
84157         (calloc, malloc, realloc, free): Remove decls.
84158         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84159         Include <stdlib.h> unconditionally.  Sort include file names.
84160         (strtod): Remove.
84161         (xstrtod): Define with a prototype.
84162         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84163         (strtol, strtoul): Remove decls.
84164
84165 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84166
84167         More patches to assume C89 or better.
84168         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84169         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84170         string.h, memchr, STDC_HEADERS.
84171
84172 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84173
84174         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84175         Include <stdlib.h>, <string.h> unconditionally.
84176         Remove now-unnecessary cast to char *.
84177         * lib/strnlen.c: Include <string.h> unconditionally.
84178         * lib/yesno.c (yesno): Define with a prototype.
84179
84180 2003-09-11  Bruno Haible  <bruno@clisp.org>
84181
84182         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84183
84184 2003-09-10  Jim Meyering  <jim@meyering.net>
84185
84186         * lib/error.c: Correct indentation of cpp directives.
84187
84188 2003-09-10  Bruno Haible  <bruno@clisp.org>
84189
84190         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84191         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84192         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84193         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84194         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84195         <stdlib.h> and <string.h> checks.
84196         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84197         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84198
84199 2003-09-10  Bruno Haible  <bruno@clisp.org>
84200
84201         * lib/strcspn.c: Include <string.h> unconditionally.
84202         * lib/strpbrk.c: Include <string.h> unconditionally.
84203         * lib/strstr.c: Include <string.h> unconditionally.
84204         * lib/unicodeio.c: Include <string.h> unconditionally.
84205         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84206         * lib/unsetenv.c: Likewise.
84207         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84208         * lib/yesno.c: Include <stdlib.h> unconditionally.
84209         (rpmatch): Add prototype.
84210
84211 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84212
84213         More patches to assume C89 or better.
84214         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84215         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84216         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84217         or for string.h.
84218         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84219         stdlib.h.
84220         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84221         C headers.
84222         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84223         string.h.
84224         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84225         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84226         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84227         or for string.h.
84228         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84229         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84230         C headers.
84231         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84232         memcpy.
84233         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84234         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84235         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84236         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84237         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84238         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84239         string.h, free.
84240         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84241         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84242         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84243         C headers, or for string.h.
84244         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84245         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84246         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84247         headers, memory.h, stdlib.h, string.h, strings.h.
84248         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84249         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84250         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84251         strchr.
84252         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84253         headers, memory.h, string.h.
84254         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84255         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84256         free.
84257         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84258         headers.
84259         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84260         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84261         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84262         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84263         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84264
84265 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84266
84267         More K&R removal.
84268
84269         * lib/acosl.c (main): Use a prototype.
84270         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84271         tanl.c: Likewise.
84272
84273         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84274
84275         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84276         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84277         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84278         with a prototype.
84279         * lib/getopt.c (const): Remove macro.
84280         Include <string.h> unconditionally.
84281         (my_index): Remove; all uses changed to strchr.
84282         (strlen): Remove decl.
84283         (exchange): Remove forward decl; no longer needed.
84284         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84285         Define with prototype.
84286         * lib/getopt1.c (const): Remove macro.
84287         (getopt_long, getopt_long_only, main): Define with prototype.
84288
84289         * lib/getugroups.c: Include <string.h> unconditionally.
84290
84291         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84292         (getusershell, setusershell, endusershell, readname, main):
84293         Define with prototypes.
84294
84295         * lib/group-member.c: Include group-member.h first.
84296         Include <stdlib.h> unconditionally.
84297
84298         * lib/hard-locale.c: Include hard-locale.h first.
84299         Include <stdlib.h>, <string.h> unconditionally.
84300
84301         * lib/hash.c (free, malloc): Remove decls.
84302         Include <stdlib.h> unconditionally.
84303
84304         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84305         (getenv): Do not declare.
84306
84307         * lib/idcache.c: Include <string.h> unconditionally.
84308
84309         * lib/long-options.c: Include long-options.h first, to test interface.
84310         Include <stdlib.h> unconditionally.
84311
84312         * lib/makepath.c: Include makepath.h first, to test interface.
84313         Include <stdlib.h> and <string.h> unconditionally.
84314
84315         * lib/linebuffer.c: Include <stdlib.h>.
84316         (free): Remove decl.
84317
84318         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84319         stddef.h. rpl_malloc returns void *, not char *.
84320         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84321         prototype.
84322
84323         * lib/md5.h: Include <limits.h> unconditionally.
84324         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84325         (__P): Remove; all uses removed.
84326         * lib/md5.c: Include "md5.h" first.
84327         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84328         md5_buffer, md5_process_bytes, md5_process_block):
84329         Define with prototypes.
84330         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84331         * lib/sha.c: Include "sha.h" first.
84332         Include <stdlib.h>, <string.h> unconditionally.
84333
84334         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84335         * lib/memcmp.c (__ptr_t): Likewise.
84336         * lib/memrchr.c (__ptr_t): Likewise.
84337         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84338         Include <string.h> unconditionally.
84339         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84340         * lib/memchr.c: Include <stdlib.h> unconditionally.
84341         * lib/memchr.c (LONG_MAX): Remove.
84342         * lib/memrchr.c (LONG_MAX): Likewise.
84343         * lib/memchr.c (__memchr): Define via a prototype.
84344         * lib/memrchr.c (__memrchr): Likewise.
84345         * lib/memcmp.c (__P): Remove, and remove all uses.
84346         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84347         Remove forward decls; no longer needed.
84348         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84349         Use types required by C89 in prototype.
84350
84351         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84352         * lib/savedir.c: Likewise.
84353         * lib/mkdir.c (free): Remove decl.
84354         * lib/rmdir.c (rmdir): Define with a prototype.
84355         * lib/savedir.c: Include savedir.h first, to test interface.
84356
84357         * lib/mktime.c (STDC_HEADERS): Remove.
84358         Include <stdlib.h>, <string.h> unconditionally.
84359
84360         * lib/modechange.c: Include <stdlib.h> unconditionally.
84361         (malloc): Remove decl.
84362
84363         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84364         (free): Remove decl.
84365
84366         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84367         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84368         (This type really should be intptr_t, but that's a C99ism.)
84369         (_obstack_memcpy): Remove: all uses changed to memcpy.
84370         Include <string.h> unconditionally.
84371         (struct obstack): Assume __STDC__ for types of members
84372         chunkfun, freefun, extra_arg.
84373         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84374         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84375         obstack_begin, obstack_specify_allocation,
84376         obstack_specify_allocation_with_arg, obstack_chunkfun,
84377         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84378         Remove unprototyped decls and the macros that use them.
84379         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84380         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84381         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84382         (defined __STDC__ && __STDC__)]:
84383         Remove nonprototyped code.
84384         Include <stdlib.h> unconditionally.
84385         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84386         _obstack_allocated_p, _obstack_free, obstack_free,
84387         _obstack_memory_used, print_and_abort):
84388         Define using prototypes.
84389         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84390         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84391         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84392         obstack_next_free, obstack_object_size, obstack_room) [0]:
84393         Remove unused, unprototyped code.
84394
84395         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84396
84397         * lib/physmem.c (physmem_total, physmem_available, main): Define
84398         with prototypes.
84399
84400         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84401         (main): Define with a prototype.
84402
84403         * lib/posixver.c (getenv): Remove decl.
84404
84405         * lib/putenv.c (malloc): Returns void *, not char *.
84406         Include <string.h> unconditionally.
84407         (strchr, memcpy, NULL): Do not define.
84408
84409         * lib/readtokens.c: Include readtokens.h first, to test interface.
84410         Include <stdlib.h>, <string.h> unconditionally.
84411         (init_tokenbuffer): Define with a prototype.
84412
84413         * lib/regex.c (PARAMS): Remove.  All uses removed.
84414         All uses of _RE_ARGS removed, too.
84415         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84416         unconditionally.
84417         (bzero): Assume memset exists.
84418         (memcmp, memcpy, NULL): Remove.
84419         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84420         char, or assignments to local vars of type signed char.
84421         (init_syntax_once, PREFIX(extract_number_and_incr),
84422         PREFIX(print_partial_compiled_pattern),
84423         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84424         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84425         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84426         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84427         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84428         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84429         wcs_compile_range, byte_compile_range, truncate_wchar,
84430         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84431         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84432         count_mbs_length, wcs_re_match_2_internal,
84433         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84434         PREFIX(alt_match_null_string_p),
84435         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84436         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84437         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84438         now-unnecessary declaration, if any.
84439         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84440         regcomp, regexec):
84441         Remove now-unnecessary casts among pointer types.
84442         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84443
84444         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84445         (free): Remove decl.
84446
84447         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84448
84449         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84450         (free): Remove decl.
84451
84452         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84453         * lib/xgetcwd.c: Likewise.
84454
84455         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84456         (free): Remove decl.
84457
84458         * lib/strchrnul.c (strchrnul): Define with a prototype.
84459         Fix bug: c_in was not converted to char before searching.
84460
84461         The following changes are not K&R related:
84462
84463         * lib/group-member.h: Include <sys/types.h>, so that this file is
84464         self-contained.
84465         * lib/makepath.h: Likewise.
84466
84467         * lib/getusershell.c (readname, default_index, line_size, readname):
84468         Use size_t, not int, for sizes.
84469         (readname): If the size overflows, report an error instead of
84470         looping forever.
84471
84472 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84473
84474         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84475         libc.
84476
84477 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84478
84479         * README: New section: portability guidelines.
84480
84481 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84482
84483         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84484         C89 spec.
84485
84486 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84487
84488         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84489
84490 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84491
84492         Assume C89 or better; remove K&R cruft.
84493         A few of these changes were first proposed by Derek Robert Price
84494         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84495
84496         * lib/addext.c: Include <string.h> unconditionally.
84497         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84498         Don't declare getenv or malloc.
84499
84500         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84501         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84502         (NULL): Remove.
84503         (find_stack_direction, alloca): Use prototypes.
84504
84505         * lib/atexit.c (atexit): Define using a prototype.
84506
84507         * lib/basename.c, dirname.c, stripslash.c:
84508         Include <string.h> unconditionally.
84509
84510         * lib/bcopy.c: Include <stddef.h>.
84511         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84512
84513         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84514
84515         * lib/error.h (error, error_at_line, error_print_progname)
84516         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84517         * lib/error.c: Include error.h first, to check interface.
84518         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84519         (VA_START): Remove; all uses changeed to va_start.
84520         (exit, strerror): Remove decls.
84521         (error_print_progname): Prototype uncondionally.
84522         Don't include <errno.h>; no longer needed.
84523         (private_strerror): Remove.
84524         (error_tail): Always define.
84525         (error, error_at_line): Assume C89 or better; always use prototypes.
84526         * lib/fatal.c: Include "fatal.h" first, to test interface.
84527         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84528         (VA_START): Remove; all uses changed to va_start.
84529         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84530         this case.
84531         (exit): Remove decl.
84532         (fatal): Prototype unconditionally.  Assume va_start works.
84533         Abort at end, to pacify gcc.
84534
84535         * lib/euidaccess.c (main): Define with a prototype.
84536
84537         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84538
84539         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84540
84541         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84542         prototypes.
84543         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84544         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84545         (getenv): Remove decl.
84546         (fnmatch): Define using a prototype.
84547         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84548         (FCT): Define using a prototype.
84549
84550         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84551
84552         * lib/gethostname.c: Include <stddef.h>.
84553         (gethostname): Define with prototype.  Length is size_t, not int.
84554
84555 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84556
84557         Assume C89 or better; remove K&R cruft.
84558         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84559         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84560         string.h, getenv, malloc.
84561         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84562         headers.
84563         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84564         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84565         do not check for strerror.
84566         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84567         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84568         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84569         do not check for doprnt or vprintf.
84570         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84571         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84572
84573 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84574
84575         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84576         getversion.c should have been removed then, but was accidentally
84577         preserved.
84578
84579         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84580         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84581
84582 2003-09-08  Karl Berry  <karl@gnu.org>
84583
84584         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84585                 config, forget about prep.
84586
84587         * config/depcomp, missing: update from automake.
84588
84589 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84590
84591         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84592         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84593
84594 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84595
84596         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84597         copy_tm_result.  Bug reported by Simon Josefsson in
84598         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84599
84600 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84601
84602         * m4/time_r.m4: New file.
84603         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84604         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84605         is. Check for timegm declaration.
84606         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84607         Do not check for gmtime_r.
84608         Replace mktime if __mktime_internal does not exist and if mktime
84609         hasn't been replaced already.
84610
84611 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84612
84613         * lib/time_r.c, lib/time_r.h: New files.
84614
84615         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84616         __localtime_r.
84617         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84618         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84619
84620         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84621         __gmtime_r.
84622         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84623         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84624         Include <time_r.h>.
84625
84626         * lib/timegm.c: Switch to glibc implementation, with the following
84627         changes:
84628         [defined HAVE_CONFIG_H]: Include <config.h>.
84629         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84630         (__mktime_internal) [!defined _LIBC]: New decl.
84631         (__gmtime_r) [!defined _LIBC]: New macro and function.
84632         (timegm): Use a prototype, since gnulib assumes C89.
84633         Do not bother declaring tmp to be const, as it's not really usefu.
84634         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84635         (timegm): Declare only if HAVE_DECL_TIMEGM.
84636
84637 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84638
84639         * MODULES.html.sh (func_all_modules): Add time_r.
84640         * modules/time_r: New file.
84641         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84642         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84643
84644 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84645
84646         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84647         Bug reported by Lute Kamstra in
84648         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84649
84650         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84651         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84652         course with correspondingly smaller numbers for tomorrow and
84653         yesterday.  From Tadayoshi Funaba.  Originally installed into
84654         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84655         coreutils merge?).
84656
84657 2003-08-31  Simon Josefsson  <jas@extundo.com>
84658
84659         * modules/timegm: New file.
84660         * MODULES.html.sh (func_all_modules): Add timegm.
84661
84662 2003-08-31  Simon Josefsson  <jas@extundo.com>
84663
84664         * m4/timegm.m4: New file.
84665
84666 2003-08-31  Simon Josefsson  <jas@extundo.com>
84667
84668         * lib/timegm.h: New file.
84669         * lib/timegm.c: New file.  Based on
84670         wget-1.8.2/src/http.c:mktime_from_utc.
84671
84672 2003-08-31  Karl Berry  <karl@gnu.org>
84673
84674         * lib/argp.h: update from libc.
84675
84676 2003-08-28  Bruno Haible  <bruno@clisp.org>
84677
84678         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84679         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84680         followed by '#define fnmatch fnmatch_posix' gives an error.
84681
84682 2003-08-28  Bruno Haible  <bruno@clisp.org>
84683
84684         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84685         warning on QNX, which defines O_BINARY to 000000.
84686
84687 2003-08-27  Jim Meyering  <jim@meyering.net>
84688
84689         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84690         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84691         would fail after 32.  Reported by Danny Levinson.  Details here:
84692         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84693
84694 2003-08-24  Bruno Haible  <bruno@clisp.org>
84695
84696         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84697         MSVC7 <stdio.h> is included later.
84698
84699 2003-08-22  Simon Josefsson  <jas@extundo.com>
84700
84701         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
84702
84703 2003-08-20  Karl Berry  <karl@gnu.org>
84704
84705         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
84706
84707 2003-08-20  Bruno Haible  <bruno@clisp.org>
84708
84709         * modules/progname: New file.
84710         * MODULES.html.sh (func_all_modules): Add progname.
84711
84712 2003-08-20  Bruno Haible  <bruno@clisp.org>
84713
84714         * lib/progname.h: New file, from GNU gettext.
84715         * lib/progname.c: New file, from GNU gettext.
84716         * lib/progreloc.c: New file, from GNU gettext.
84717
84718 2003-08-19  Jim Meyering  <jim@meyering.net>
84719
84720         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
84721         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
84722
84723 2003-08-19  Bruno Haible  <bruno@clisp.org>
84724
84725         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
84726         more.
84727
84728 2003-08-19  Bruno Haible  <bruno@clisp.org>
84729
84730         * lib/xstrdup.c: Assume <string.h> exists.
84731
84732 2003-08-18  Paul Eggert  <eggert@twinsun.com>
84733
84734         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
84735         in makefile rules.
84736
84737 2003-08-18  Jim Meyering  <jim@meyering.net>
84738
84739         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
84740         * m4/lib-ld.m4: Likewise.
84741
84742 2003-08-18  Jim Meyering  <jim@meyering.net>
84743
84744         * lib/setenv.h: Indent nested cpp directive.
84745         * lib/vasnprintf.c: Remove trailing blanks.
84746
84747 2003-08-17  Simon Josefsson  <jas@extundo.com>
84748
84749         * modules/xstrndup: New file.
84750         * MODULES.html.sh (func_all_modules): Add xstrndup.
84751
84752 2003-08-17  Simon Josefsson  <jas@extundo.com>
84753
84754         * modules/argp: Fix autoconf macro name. Add more dependencies.
84755
84756 2003-08-17  Simon Josefsson  <jas@extundo.com>
84757
84758         * m4/xstrndup.m4: New file.
84759
84760 2003-08-17  Simon Josefsson  <jas@extundo.com>
84761
84762         * m4/argp.m4: New file.
84763
84764 2003-08-17  Simon Josefsson  <jas@extundo.com>
84765             Bruno Haible  <bruno@clisp.org>
84766
84767         * lib/xstrndup.h: New file.
84768         * lib/xstrndup.c: New file.
84769
84770 2003-08-17  Bruno Haible  <bruno@clisp.org>
84771
84772         * modules/strndup (Files, Include): Add lib/strndup.h.
84773
84774 2003-08-17  Bruno Haible  <bruno@clisp.org>
84775
84776         * modules/euidaccess (Files): Add lib/euidaccess.h.
84777
84778 2003-08-17  Bruno Haible  <bruno@clisp.org>
84779
84780         * lib/strndup.h: New file.
84781
84782 2003-08-17  Bruno Haible  <bruno@clisp.org>
84783
84784         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84785         like AC_GNU_SOURCE.
84786         * modules/extensions (configure.ac): Comment out the invocation of
84787         gl_USE_SYSTEM_EXTENSIONS.
84788
84789 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84790
84791         Merges from coreutils, etc.
84792         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84793         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84794         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84795         fixing a typo.
84796         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84797         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84798
84799 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84800
84801         Document merge from coreutils.
84802         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84803         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84804         * modules/utime: Add m4/utimes-null.m4.
84805
84806 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84807
84808         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84809         space, undoing this 2003-08-12 change:
84810         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84811
84812 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84813
84814         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84815         strtoul.c from libc, undoing this 2003-08-12 change:
84816         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84817
84818 2003-08-16  Jim Meyering  <jim@meyering.net>
84819
84820         Merges from coreutils.
84821         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84822         prefix.  Adjust cache variables similarly.  Create 500 rather than
84823         just 300 files, to exercise bug on Darwin6.5, too.
84824         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84825         $missing_dir.
84826         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84827         AM_SYS_POSIX_TERMIOS.
84828         Reported by mkc@mathdogs.com.
84829         Also change use of $am_cv_sys_posix_termios
84830         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84831         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84832         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84833         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84834         in /proc/mounts until it finds one with matching device number.  This
84835         is unnecessary when the FILE argument *is* a mount point.  No stat call
84836         is necessary in that case.  So, disable the statvfs-testing code on
84837         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84838         as RedHat bug# 84846.
84839         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84840         to 1MB, so as not to render systems with no stack size limit (e.g.,
84841         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84842         Include <unistd.h>.  On some systems,
84843         it is required for the definition of _SC_PAGESIZE.
84844
84845 2003-08-16  Jim Meyering  <jim@meyering.net>
84846
84847         Merge from coreutils.
84848         * lib/xstrtoimax.c: #else #if -> #elif.
84849         * lib/xstrtoumax.c: Likewise.
84850
84851 2003-08-16  Jim Meyering  <jim@meyering.net>
84852
84853         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84854         * m4/utimes.m4: Removed.
84855         * m4/utimes-null.m4: Renamed from utimes.m4.
84856
84857         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84858         to 1MB, so as not to render systems with no stack size limit (e.g.,
84859         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84860         Include <unistd.h>.  On some systems,
84861         it is required for the definition of _SC_PAGESIZE.
84862
84863 2003-08-16  Jim Meyering  <jim@meyering.net>
84864         and Paul Eggert  <eggert@cs.ucla.edu>
84865
84866         Merges from coreutils, etc.
84867
84868         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84869         using the latest version from cvs.  This avoids problems with #line
84870         directives using a vendor (Sun) compiler.
84871         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84872         Don't set GETGROUPS_LIB here; now it's
84873         done via getgroups.m4's wrapper function.
84874         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84875         rather than just in sh-util/configure.in, so that the
84876         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84877         same.
84878         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84879         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84880         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84881         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84882         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84883         Remove code that is now done by the newly-required macros.
84884         Append $(EXEEXT) to DF_PROG.
84885         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84886         Do not invoke or require the following here,
84887         since prereq.m4 or some gnulib .m4 now does this for us:
84888         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84889         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84890         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84891         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84892         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84893         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84894         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84895         AC_FUNC_OBSTACK.
84896         Do not replace the following functions, as this is now the job
84897         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84898         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84899         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84900         atexit getpass, strdup, getpagesize.
84901         Replace 'raise'.
84902         Do not check for the following functions, as this is now the job
84903         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84904         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84905         setregid.
84906         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84907         Check for sys/sysctl.h.
84908         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84909         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84910         of checking for ssize_t ourselves.
84911
84912         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84913         Require every macro that gnulib/modules/* suggests for us.
84914         (jm_PREREQ_ADDEXT): New macro.
84915         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84916         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84917
84918         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84919         (gl_PHYSMEM): Use it.
84920         Also check for `table' function.
84921         Check for new headers and functions.
84922         Add check for sys/sysmp.h.
84923         With suggestions from Kaveh Ghazi.
84924         Ignore headers that are present but cannot be compiled.  This
84925         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84926         C 5.4.
84927
84928 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84929
84930         Document merge from coreutils.
84931         * modules/userspec: Depend on posixver.
84932         * modules/strftime: Depend on tzset.
84933
84934 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84935
84936         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84937         rather than tab, after '#' in shell-script copyright notices.
84938         Suggested by Bruno Haible.
84939
84940 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84941
84942         * config/srclist-update: Use three spaces, rather than tab, after '#'
84943         in shell-script copyright notices.  Suggested by Bruno Haible.
84944         Remove unnecessary parenthesization in regular expression.
84945
84946 2003-08-15  Jim Meyering  <jim@meyering.net>
84947
84948         Merge from coreutils.
84949         * lib/xgethostname.c: Include <stdlib.h>.
84950         (xghostname): Don't exit for anything other than memory-related
84951         failure; just return NULL.
84952         * lib/userspec.c: Include "posixver.h".
84953         (parse_user_spec): Accept `.' as a separator only
84954         in pre-POSIX-200112 mode.
84955         * lib/strtoimax.c: Use #elif rather than #else #if.
84956         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84957         Remove function, now that we can rely on a working tzset function.
84958         [!_LIBC]: Ensure that the required autoconf test has been run.
84959         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84960         Use underlying_strftime for %r.
84961         * lib/sha.c: Merge in some clean-up and optimization changes from
84962         glibc.
84963         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84964         Ensure that it is a multiple of 64.
84965         Rearrange loop exit tests so as to avoid performing an
84966         additional fread after encountering an error or EOF.
84967         * lib/realloc.c: Update copyright date.
84968
84969 2003-08-15  Jim Meyering  <jim@meyering.net>
84970         and Paul Eggert  <eggert@twinsun.com>
84971
84972         Merge from coreutils.
84973         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84974         member but strut utmpx does not.  Needed for AIX 4.3.3.
84975         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84976
84977 2003-08-15  Jim Meyering  <jim@meyering.net>
84978         and Paul Eggert  <eggert@cs.ucla.edu>
84979
84980         Merges from coreutils, etc.
84981         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84982         Require gl_FUNC_TZSET_CLOBBER.
84983         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84984         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84985         members.
84986
84987 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84988
84989         Help the merge from coreutils.
84990         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84991         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84992         * m4/tzset.m4: Use it too.
84993
84994 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84995
84996         * modules/tzset: New file.
84997
84998 2003-08-14  Jim Meyering  <jim@meyering.net>
84999
85000         Merges from coreutils.
85001         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85002         variable names, rather than @FNMATCH_H@.
85003         * modules/alloca: Likewise for $(ALLOCA_H).
85004
85005         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85006         the three copies of the literal target, `fnmatch.h'.
85007         * modules/alloca (alloca.h): Likewise.
85008
85009 2003-08-14  Jim Meyering  <jim@meyering.net>
85010
85011         Merge from coreutils.
85012         * m4/tzset.m4: New file.
85013         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85014         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85015         otherwise, AIX 5.1 systems would end up using the latter.
85016         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85017         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85018         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85019         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85020
85021 2003-08-14  Jim Meyering  <jim@meyering.net>
85022
85023         Merge from coreutils.
85024         * lib/obstack.h: Whitespace changes.
85025         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85026         and xcalloc return values.
85027         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85028         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85029         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85030         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85031         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85032         error from mntctl.
85033         Use mntctl's return value to drive the entry-processing loop, since
85034         we can't rely on the value of the vmt_length member in the last
85035         entry.  On some systems doing so could result in exhausting
85036         virtual memory.  Based in part on a patch from Mike Jetzer.
85037
85038 2003-08-14  Jim Meyering  <jim@meyering.net>
85039         and Paul Eggert  <eggert@twinsun.com>
85040
85041         Merges from coreutils, plus other fixes.
85042         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85043         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85044         for credits and details.  Thanks to Kaveh Ghazi for helping
85045         to keep these files in sync.
85046         (ARRAY_SIZE): Define it.
85047         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85048         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85049         (memcasecmp): Don't assume size_t fits in unsigned int.
85050         Remove casts and duplicate code.
85051         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85052         (memcpy): Remove definition.
85053         Merge in some clean-up and optimization changes from glibc.
85054         [BLOCKSIZE]: Move definition to top of file.
85055         Ensure that it is a multiple of 64.
85056         Rearrange loop exit tests so as to avoid performing an
85057         additional fread after encountering an error or EOF.
85058         * lib/md5.h (md5_uintptr): Define.
85059         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85060         return to the initial working directory.  Preserve errno
85061         for caller.
85062         * lib/idcache.c: Include "xalloc.h".
85063         (xmalloc, xrealloc): Remove decls.
85064         (getuser): Remove casts no longer required in C89.
85065         * lib/human.c: Include stdio.h, for sprintf.
85066         * lib/group-member.c: Include "xalloc.h".
85067         (xmalloc, xrealloc): Remove decls.
85068         (get_group_info): Remove casts no longer required in C89.
85069         * lib/getusershell.c (readname): Remove casts no longer required in
85070         C89.
85071         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85072         * lib/getline.c: Whitespace fix, from coreutils.
85073
85074 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85075
85076         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85077         Check for isascii.
85078
85079         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85080         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85081         Undo previous (whitespace-only) change.
85082
85083 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85084
85085         * lib/exclude.c: Include <ctype.h>
85086         (IN_CTYPE_DOMAIN): New macro.
85087         (is_space): New fn.
85088         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85089         and empty lines.
85090
85091         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85092         Undo previous (whitespace-only) change.
85093
85094 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85095
85096         * config/srclist-update: Change update back to the old behavior,
85097         leaving whitespace alone.  Use one 'sed' command rather than a
85098         pipeline.
85099         (fixlicense): Now a variable, not a function.
85100         (remove_trailing_blanks): Remove.
85101         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85102         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85103         Undo previous (whitespace-only) change.
85104
85105 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85106
85107         Merge from coreutils.
85108         * modules/euidaccess: Add lib_SOURCES, include for new
85109         file euidaccess.h
85110
85111 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85112
85113         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85114         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85115         Normalize leading white space and remove trailing white space.
85116
85117         Merge from coreutils
85118         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85119
85120         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85121         0.12.1.  These files are now being upgraded automatically by
85122         ../config/srclist-update.
85123
85124 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85125
85126         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85127         Normalize leading white space and remove trailing white space.
85128         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85129         notice, as per ../config/srclist-update.
85130
85131         Merge from coreutils.
85132         * lib/euidaccess.h: New file.
85133         * lib/euidaccess.c: Include it.
85134         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85135         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85136         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85137
85138 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85139
85140         * config/srclist-update: Add copyright notice.
85141         (remove_id_lines, remove_trailing_blanks): New constants.
85142         (fixfile): Use them to normalize spacing a bit in copied files.
85143         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85144         Normalize leading white space and remove trailing white space.
85145
85146         * config/texinfo.tex: Sync with texinfo.
85147
85148         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85149         strtoul.c from libc, to merge coreutils whitespace changes.
85150
85151         * config/srclist.txt: Get the following m4 files from gettext:
85152         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85153         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85154         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85155         wint_t.m4.
85156
85157 2003-08-12  Karl Berry  <karl@gnu.org>
85158
85159         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85160         been made.
85161
85162 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85163
85164         * modules/gnu-source, m4/gnu-source.m4:
85165         Remove; we're assuming Autoconf 2.54 or later now.
85166         Suggested by Bruno Haible.
85167         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85168
85169 2003-08-11  Bruno Haible  <bruno@clisp.org>
85170
85171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85172
85173 2003-08-11  Bruno Haible  <bruno@clisp.org>
85174
85175         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85176         (vasnprintf): Use it instead of wcslen.
85177
85178 2003-08-11  Bruno Haible  <bruno@clisp.org>
85179
85180         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85181         value to ensure that _Bool promotes to int. Use #define for _Bool when
85182         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85183
85184 2003-08-10  Karl Berry  <karl@gnu.org>
85185
85186         * lib/regex.h: update from libc (whitespace fix).
85187
85188 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85189
85190         Merge some files from coreutils.  These changes were
85191         originally made by Jim Meyering.
85192         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85193         many older Unixes require this.
85194         * lib/alloca.c (alloca): Remove cast to argument of free;
85195         no longer needed in C89.
85196         * lib/alloca_.h, regex.h: Fix white space to match
85197         what GNU indent does.
85198
85199 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85200
85201         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85202         apparently Emacs's Unicode mode got confused before my 2003-08-05
85203         checkin.
85204
85205 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85206
85207         * m4/extensions.m4: New file.
85208         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85209         Require gl_USE_SYSTEM_EXTENSIONS.
85210         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85211         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85212
85213 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85214
85215         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85216         * modules/extensions, modules/gnu-source: New files.
85217         * modules/timespec, modules/unlocked-io: Depend on extensions.
85218
85219 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85220
85221         * modules/restrict: New file.
85222         * MODULES.html.sh (func_all_modules): Add restrict.
85223         * modules/regex: Depend on restrict.
85224
85225 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85226
85227         * m4/restrict.m4: New file.
85228         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85229
85230 2003-08-07  Bruno Haible  <bruno@clisp.org>
85231
85232         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85233         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85234
85235 2003-08-07  Bruno Haible  <bruno@clisp.org>
85236
85237         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85238         makes the module 'getndelim2' compatible with the module 'getline'.
85239
85240 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85241
85242         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85243         byte with "\201" to avoid glitches when editing that source file
85244         with multi-gnome-terminal.
85245
85246 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85247
85248         * lib/bumpalloc.h: Remove.
85249
85250 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85251
85252         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85253         * modules/bumpalloc: Remove.
85254
85255 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85256
85257         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85258         GNU coding style.
85259
85260         Merge from coreutils.
85261         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85262         1. From glibc.
85263         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85264         from Karl Berry, implemented by Jim Meyering.
85265         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85266         from Dmitry V. Levin.
85267         Remove anachronistic cast of xrealloc.
85268         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85269         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85270         type. Otherwise, it wouldn't compile with at least /bin/cc on
85271         ymp-cray-unicos9.0.2.X.
85272         Combine two mostly-identical uses of alloca into one.
85273         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85274
85275 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85276
85277         [From Emacs.]
85278
85279         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85280         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85281         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85282         obsolete NLIST_NAME_UNION.
85283         [__GNU__]: Undef BSD and FSCALE.
85284         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85285
85286 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85287
85288         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85289         an enum type, so that it's guaranteed to promote to int.  See:
85290         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85291
85292 2003-08-03  Karl Berry  <karl@gnu.org>
85293
85294         * config/depcomp: update from automake.
85295
85296 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85297
85298         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85299         (strerror): Don't assume that a printable int fits in 14 bytes.
85300
85301 2003-07-31  Bruno Haible  <bruno@clisp.org>
85302
85303         * modules/getpass-gnu: New file.
85304         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85305
85306 2003-07-31  Bruno Haible  <bruno@clisp.org>
85307
85308         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85309
85310 2003-07-24  Karl Berry  <karl@gnu.org>
85311
85312         * config/missing: update from automake.
85313
85314 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85315             Bruno Haible  <bruno@clisp.org>
85316
85317         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85318         * lib/getline.c (getline, getdelim): Likewise.
85319         Remove _GNU_SOURCE define; now it's defined in config.h through
85320         m4/getline.m4.
85321
85322 2003-07-23  Karl Berry  <karl@gnu.org>
85323
85324         * config/config.sub: update from prep.
85325
85326 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85327
85328         * modules/xalloc (Depends-on): Add exitfail.
85329         * modules/xmemcoll: Likewise.
85330
85331 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85332
85333         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85334         over-parenthesization in macros.
85335
85336         Sync with coreutils.
85337
85338         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85339         required by C99.
85340
85341         Use `exit_failure' for xalloc and xmemcoll instead of their own
85342         private exit-failure variables.
85343         * lib/xalloc.h (xalloc_exit_failure): Remove.
85344         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85345         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85346         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85347         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85348         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85349
85350 2003-07-20  Jim Meyering  <jim@meyering.net>
85351
85352         * modules/closeout (Depends-on): Add exitfail.
85353         Suggestion from Bruno Haible.
85354
85355 2003-07-19  Karl Berry  <karl@gnu.org>
85356
85357         * config/config.sub: update from prep.
85358
85359 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85360
85361         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85362         Remove.
85363         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85364         to test that it can stand by itself.  Include "exitfail.h".
85365         Clients should set exit_failure instead.
85366         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85367
85368 2003-07-18  Bruno Haible  <bruno@clisp.org>
85369
85370         * modules/getndelim2: New file.
85371         * modules/getline: Share files with module getndelim2.
85372         * modules/getnline: Depend on getndelim2 instead of sharing files with
85373         it. Add getnline.c to lib_SOURCES.
85374         * MODULES.html.sh (func_all_modules): Add getndelim2.
85375
85376 2003-07-18  Bruno Haible  <bruno@clisp.org>
85377
85378         * m4/getndelim2.m4: New file.
85379         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85380         invoke gl_PREREQ_GETNDELIM2.
85381         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85382         gl_PREREQ_GETNDELIM2.
85383         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85384         gl_GETNDELIM2.
85385
85386 2003-07-18  Bruno Haible  <bruno@clisp.org>
85387
85388         * lib/getndelim2.h: New file.
85389         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85390         getndelim2.h.
85391         (getndelim2): Make non-static. Change return type to ssize_t.
85392         * lib/getline.h: Change argument names.
85393         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85394         * lib/getnline.c: Include getndelim2.h.
85395
85396 2003-07-18  Andreas Schwab  <schwab@suse.de>
85397
85398         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85399
85400 2003-07-17  Karl Berry  <karl@gnu.org>
85401
85402         * config/config.sub: update from prep.
85403
85404 2003-07-17  Bruno Haible  <bruno@clisp.org>
85405
85406         * modules/getnline: New file.
85407         * modules/getline: Add lib/getndelim2.c to source file list.
85408         * MODULES.html.sh (func_all_modules): Add getnline.
85409
85410 2003-07-17  Bruno Haible  <bruno@clisp.org>
85411
85412         * m4/getnline.m4: New file.
85413
85414 2003-07-17  Bruno Haible  <bruno@clisp.org>
85415
85416         * m4/Makefile.am.in: Remove file.
85417         * m4/Makefile.am: Remove file.
85418         * m4/Makefile.in: Remove file.
85419
85420 2003-07-17  Bruno Haible  <bruno@clisp.org>
85421
85422         * lib/getnline.h: New file.
85423         * lib/getnline.c: New file.
85424         * lib/getndelim2.c: New file, extracted from getline.c.
85425         (getndelim2): Renamed from getdelim2, with added nmax argument.
85426         * lib/getline.c: Include getndelim2.c.
85427         (getdelim2): Moved out to getndelim2.c.
85428         (getline, getdelim): Update.
85429
85430 2003-07-17  Bruno Haible  <bruno@clisp.org>
85431
85432         * lib/Makefile.am: Remove file.
85433         * lib/Makefile.in: Remove file.
85434
85435 2003-07-17  Bruno Haible  <bruno@clisp.org>
85436
85437         * configure.in: Remove file.
85438         * Makefile.in: Remove file.
85439
85440 2003-07-17  Bruno Haible  <bruno@clisp.org>
85441
85442         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85443
85444 2003-07-16  Karl Berry  <karl@gnu.org>
85445
85446         * config/srclist-update: was running fixlicense twice, which caused
85447                 texinfo.tex to be nullified for some reason.  Simplify,
85448                 $gplsrc is no longer needed as far as I can see?
85449
85450 2003-07-16  Jim Meyering  <jim@meyering.net>
85451
85452         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85453
85454 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85455
85456         * config/srclist.txt: Get the following files from gettext-runtime/intl
85457         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85458         ref-del.sin.  From Bruno Haible.
85459         * config/srclist-update (fixfile): Change grep pattern again, since the
85460         previous fix didn't work (there was another trailing $).  Use
85461         '[$]' to escape the $s.
85462
85463 2003-07-15  Karl Berry  <karl@gnu.org>
85464
85465         * lib/vasnprintf.c: update from gettext.
85466
85467 2003-07-15  Karl Berry  <karl@gnu.org>
85468
85469         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85470         gets expanded when surrounded by '$'.
85471
85472 2003-07-15  Jim Meyering  <jim@meyering.net>
85473
85474         * modules/save-cwd: Don't depend on error.  From Derek Price.
85475
85476 2003-07-15  Jim Meyering  <jim@meyering.net>
85477
85478         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85479
85480 2003-07-14  Simon Josefsson  <jas@extundo.com>
85481
85482         * modules/mempcpy: New file.
85483         * MODULES.html.sh (func_all_modules): Add mempcpy.
85484
85485 2003-07-14  Simon Josefsson  <jas@extundo.com>
85486
85487         * m4/mempcpy.m4: New file.
85488
85489 2003-07-14  Simon Josefsson  <jas@extundo.com>
85490
85491         * lib/mempcpy.h: New file.
85492         * lib/mempcpy.c: New file.
85493
85494 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85495
85496         * modules/getdate, modules/posixtm: Depend on mktime.
85497
85498 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85499
85500         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85501         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85502         unicodeio.c, unicodeio.h, unlocked-io.h:
85503         Switch from LGPL to GPL.
85504
85505 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85506
85507         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85508         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85509         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85510         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85511         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85512         updated automatically by ../config/srclist-update.  This changes
85513         their license from LPGL to GPL.
85514
85515 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85516
85517         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85518         assumed to refer to the root of the most recent stable gettext version.
85519         * config/srclistvars.sh: Add defaults for eggert.
85520         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85521         Match "This program" as well as "The program".  This is needed
85522         for gettext.
85523
85524 2003-07-14  Jim Meyering  <jim@meyering.net>
85525
85526         Don't emit diagnostics.  Let callers do that.
85527         * lib/save-cwd.c: Don't include "error.h".
85528         (save_cwd): Don't call error.  Ensure that errno is valid
85529         when returning nonzero.
85530
85531         * lib/save-cwd.h (restore_cwd): Update prototype.
85532         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85533         Simplify.  Don't call error upon failure.  Let callers do that.
85534         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85535         when auditing is enabled.  But don't bother updating the #if.
85536
85537 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85538
85539         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85540         it breaks C++ compilation.
85541         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85542
85543 2003-07-10  Simon Josefsson  <jas@extundo.com>
85544
85545         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85546
85547 2003-07-10  Jim Meyering  <jim@meyering.net>
85548
85549         * m4/clock_time.m4: Remove trailing blank.
85550         * m4/intmax_t.m4: Likewise.
85551
85552 2003-07-10  Jim Meyering  <jim@meyering.net>
85553
85554         * lib/vasnprintf.c: Remove trailing blanks.
85555         Make cpp indentation consistent.
85556
85557 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85558
85559         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85560         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85561         Switch from LGPL to GPL.
85562
85563 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85564
85565         * config/srclist.txt: Sort sublists.  Add
85566         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85567         that differ from gnulib for one reason or another; we'd like this list
85568         to be smaller but for now let's document what we have.
85569
85570 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85571
85572         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85573         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85574         and sweeter "eval x=$x".
85575         * config/srclist.txt: Get lib/argp* from glibc.
85576
85577 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85578
85579         * lib/mktime.c: Fix some boundary cases and remove need for floating
85580         point.
85581
85582         Issue a compile-time diagnostic if time_t is floating point, or if
85583         two's complement arithmetic is not in effect, or if arithmetic
85584         right shift does not propagate the sign.  These assumptions were
85585         all in the original code but they weren't checked.
85586
85587         (TIME_T_MIDPOINT, verify): New macros.
85588         (__isleap): Remove; it has integer overflow problems.
85589         (leapyear): New function, without those problems.
85590         (ydhms_tm_diff): Remove; splitting into two parts.
85591         (ydhms_diff): New function, containing the arithmetic part of
85592         the old ydhms_tm_diff function.  Issue a compile-time
85593         diagnostic if we are not using C99 integer division.
85594         Avoid casts when possible.
85595         (guess_time_tm): New function, containing the checking part of
85596         the old ydhms_tm_diff function.  Return the new value, rather than
85597         the difference between it and the old.  Accept a new argument T
85598         so that *T specifies the old value.  Check for overflow in the result.
85599
85600         (__mktime_internal): Use a time_t offset, not a long int offset.
85601         This undoes the 2003-06-04 change, which is no longer needed now
85602         that we have better overflow checking.
85603         (localtime_offset): Likewise.
85604
85605         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85606         and long are 64-bit but int is only 32-bit.
85607         (ydhms_diff): Use long int to store year1 and yday1.
85608         Issue a compile-time diagnostic if long int is not wide enough.
85609
85610         (__mktime_internal): Use long int to store adjusted year and yday.
85611         Use plain C rather than preprocessor commands, if that doesn't
85612         affect efficiency.
85613         Check for overflow (and try to repair) after each probe
85614         rather than checking only at the very end.  This avoids some bugs
85615         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85616         does not equal GMT offset at maximum time).
85617         Use integer to check for overflow rather than floating point; this
85618         is more portable to non-IEEE hosts, and is a tad faster.
85619         When we detect that we are oscillating between two values,
85620         don't check whether tm_isdst has the requested value, since
85621         we already know the answer.  When tm_isdst has the wrong value,
85622         use a different heuristic to find the right one, based on the
85623         extreme values actually observed in practice in tz2003a,
85624         rather than the (overly optimistic) "previous 3 calendar quarters".
85625
85626         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85627         "T const" to accommodate glibc style.
85628         (check_result): Use less-confusing report format.  "long" -> "long int.
85629         (main): Likewise.
85630         Don't loop if the iteration overflows time_t.
85631         Allow a negative step in the iteration.
85632
85633 2003-07-06  Karl Berry  <karl@gnu.org>
85634
85635         * config/depcomp: update from automake.
85636         * config/config.sub: update from prep.
85637
85638 2003-07-03  Karl Berry  <karl@gnu.org>
85639
85640         * config/config.guess: update from prep.
85641
85642 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85643
85644         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85645         xreadlink.c now includes it unconditionally.
85646
85647 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85648
85649         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85650         having it depend on HAVE_SYS_TYPES_H.
85651
85652 2003-07-01  Bruno Haible  <bruno@clisp.org>
85653
85654         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85655         <sys/types.h> should be sufficient.
85656         Reported by Paul Eggert.
85657
85658 2003-06-26  Karl Berry  <karl@gnu.org>
85659
85660         * config/depcomp: update from automake.
85661
85662 2003-06-26  Bruno Haible  <bruno@clisp.org>
85663
85664         * modules/human: Depend on module stdbool.
85665
85666 2003-06-25  Bruno Haible  <bruno@clisp.org>
85667
85668         * modules/readlink: New file.
85669         * modules/xreadlink: Depend on it.
85670         * MODULES.html.sh (func_all_modules): Add readlink.
85671
85672 2003-06-25  Bruno Haible  <bruno@clisp.org>
85673
85674         * m4/readlink.m4: New file.
85675
85676 2003-06-25  Bruno Haible  <bruno@clisp.org>
85677
85678         * lib/readlink.c: New file.
85679
85680 2003-06-22  Karl Berry  <karl@gnu.org>
85681
85682         * config/srclist.txt: update mkinstalldirs from automake.
85683         * config/mkinstalldirs: update.
85684
85685 2003-06-22  Bruno Haible  <bruno@clisp.org>
85686
85687         Portability to mingw32.
85688         * m4/ssize_t.m4: New file, from GNU gettext.
85689         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85690         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85691
85692 2003-06-22  Bruno Haible  <bruno@clisp.org>
85693
85694         * modules/safe-read: Add m4/ssize_t.m4.
85695         * modules/xreadlink: Add m4/ssize_t.m4.
85696
85697 2003-06-20  Bruno Haible  <bruno@clisp.org>
85698
85699         Assume C89, so PARAMS isn't needed.
85700         * lib/unicodeio.h (PARAMS): Remove.
85701         * lib/unicodeio.c: Don't use PARAMS.
85702
85703 2003-06-18  Karl Berry  <karl@gnu.org>
85704
85705         * config/config.{guess,sub}: update from prep.
85706
85707 2003-06-18  Jim Meyering  <jim@meyering.net>
85708
85709         Merge changes from coreutils.
85710         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
85711         Remove explicit declarations of xmalloc and realloc.
85712         Include xalloc.h.
85713         (read_utmp): Remove anachronistic cast of xmalloc.
85714
85715 2003-06-17  Paul Eggert  <eggert@twinsun.com>
85716
85717         Assume C89, so PARAMS isn't needed.
85718         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
85719         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
85720         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
85721         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
85722         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
85723         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
85724         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
85725         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
85726         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
85727         lib/xstrtod.h, lib/xstrtol.h: Likewise.
85728         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
85729         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
85730         no longer needed. Anyway, config.h should always be included before any
85731         other file.
85732
85733 2003-06-11  Simon Josefsson  <jas@extundo.com>
85734
85735         * modules/sysexits: New file.
85736         * MODULES.html.sh (func_all_modules): Add sysexits.
85737
85738 2003-06-11  Simon Josefsson  <jas@extundo.com>
85739
85740         * lib/sysexit_.h: New file.
85741
85742 2003-06-11  Derek Price  <derek@ximbiot.com>
85743
85744         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
85745         necessary.
85746
85747 2003-06-11  Bruno Haible  <bruno@clisp.org>
85748
85749         * m4/sysexits.m4: New file.
85750
85751 2003-06-10  Simon Josefsson  <jas@extundo.com>
85752
85753         * lib/argp.h: New file, from glibc.
85754         * lib/argp-ba.c: New file, from glibc.
85755         * lib/argp-eexst.c: New file, from glibc.
85756         * lib/argp-fmtstream.c: New file, from glibc.
85757         * lib/argp-fmtstream.h: New file, from glibc.
85758         * lib/argp-fs-xinl.c: New file, from glibc.
85759         * lib/argp-help.c: New file, from glibc.
85760         * lib/argp-namefrob.h: New file, from glibc.
85761         * lib/argp-parse.c: New file, from glibc.
85762         * lib/argp-pv.c: New file, from glibc.
85763         * lib/argp-pvh.c: New file, from glibc.
85764         * lib/argp-xinl.c: New file, from glibc.
85765
85766 2003-06-10  Simon Josefsson  <jas@extundo.com>
85767
85768         * modules/strchrnul: New file.
85769
85770 2003-06-10  Simon Josefsson  <jas@extundo.com>
85771
85772         * modules/argp: New file.
85773
85774 2003-06-10  Simon Josefsson  <jas@extundo.com>
85775
85776         * m4/strchrnul.m4: New file.
85777
85778 2003-06-10  Simon Josefsson  <jas@extundo.com>
85779
85780         * lib/strchrnul.h: New file.
85781         * lib/strchrnul.c: New file.
85782
85783 2003-06-10  Bruno Haible  <bruno@clisp.org>
85784
85785         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85786
85787 2003-06-07  Karl Berry  <karl@gnu.org>
85788
85789         * config/config.{guess,sub}: update from prep.
85790
85791 2003-06-07  Jim Meyering  <jim@meyering.net>
85792
85793         * modules/strtod: Use $(...) notation, not @...@ for
85794         AC_REPLACE'd variables.
85795         * modules/localcharset: Likewise.
85796
85797 2003-06-07  Jim Meyering  <jim@meyering.net>
85798
85799         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85800         in place of my name in the copyright comment.
85801         Remove definition and uses of __P.
85802
85803         From coreutils.
85804         * lib/stat.c: Don't declare xmalloc explicitly.
85805         Instead, include "xalloc.h".
85806         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85807         xrealloc, and xcalloc return values.
85808         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85809         Improve comment.
85810         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85811
85812 2003-06-07  Bruno Haible  <bruno@clisp.org>
85813
85814         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85815         avoid AC_CONFIG_LINKS.
85816         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85817         fnmatch.h, to avoid AC_CONFIG_LINKS.
85818         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85819
85820 2003-06-07  Bruno Haible  <bruno@clisp.org>
85821
85822         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85823         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85824         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85825         directory.
85826         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85827         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85828         directory.
85829
85830 2003-06-06  Jim Meyering  <jim@meyering.net>
85831
85832         Merge from coreutils.
85833         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85834         Consolidate declarations and initializations of *_base* locals.
85835
85836         Merge from coreutils.
85837         This avoids a core dump on systems without GNU putenv,
85838         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85839         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85840         (unsetenv): New static function, from GNU libc.
85841         (rpl_putenv): Use it.
85842
85843         * lib/modechange.c: Remove trailing blanks.
85844
85845         Merge from coreutils.
85846         * lib/fsusage.c: Remove declaration of statfs.
85847         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85848
85849         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85850
85851 2003-06-06  Jim Meyering  <jim@meyering.net>
85852
85853         * lib/stdbool_.h: Renamed from stdbool.h.in.
85854
85855 2003-06-06  Jim Meyering  <jim@meyering.net>
85856             Bruno Haible  <bruno@clisp.org>
85857
85858         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85859         Adjust Makefile.am snippet not to redirect directly to target.
85860         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85861
85862 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85863
85864         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85865         mismatch, look in future quarters as well as past.  This fixes a
85866         bug when processing fall-backwards gaps immediately after a long
85867         period of daylight-saving time.
85868
85869         * lib/mktime.c: Assume freestanding C89 or better.
85870         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85871         (__P): Remove; not used.
85872         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85873         (mktime, not_equal_tm, print_tm, check_result,
85874         main): Use prototypes.  Use const * where appropriate.
85875         (main): Fix typo in testing code that uncovered by above changes.
85876         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85877
85878 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85879
85880         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85881         locale.h, localeconv.  This merges changes from coreutils.
85882
85883         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85884         It can be removed after the next Autoconf is released.
85885         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85886         needed.
85887
85888 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85889
85890         * lib/mktime.c: Fix Debian bug 177940
85891         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85892         (localtime_offset): Now long int, not time_t, because we want it
85893         to be guaranteed to be signed.  All uses changed.
85894         (__mktime_internal): If overflow would occur when adding offset,
85895         don't add it.
85896
85897         Merge 'human' changes from coreutils.  Rewrite to support
85898         locale-specific notations like thousands separators.
85899         * lib/human.c: Simplify authorship notice.
85900         Include human.h immediately after config.h.
85901         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85902         <limits.h>: Do not include, since human.h does.
85903         (SIZE_MAX, UINTMAX_MAX): New macros.
85904         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85905         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85906         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85907         (power_letter): Renamed from suffixes.
85908         (generate_suffix_backwards): Remove.
85909         (adjust_value): Now takes int style (because of human.h changes)
85910         and long double value (for greater precision on some platforms).
85911         (group_number): New function.
85912         (human_readable): Use it.  Use integer options, not enum.
85913         Put the options before the sizes in the arg list.
85914         Support all the new options.
85915         The old human_readable function has been removed;
85916         use inttostr.h instead.
85917         (human_readable, default_block_size, humblock):
85918         Use uintmax_t, not int, for block sizes.
85919         (human_readable_inexact, block_size_types): Remove.
85920         (block_size_opts): New constant.
85921         (human_options): Renamed from human_block_size, with new signature
85922         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85923         * lib/human.h: Add copyright and authorship notice.
85924         Include <limits.h> and <stdbool.h> unconditionally.
85925         (PARAMS): Remove.  All uses removed.
85926         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85927         (enum human_inexact_style): Remove tag; now a nameless enum.
85928         (human_floor, human_ceiling, human_round_to_even): Now have
85929         values 2, 0, 1 rather than -1, 1, 0.
85930         (human_group_digits, human_suppress_point_zero, human_autoscale,
85931         human_base_1024, human_SI, human_B): New constants.
85932         (human_readable_inexact, human_block_size): Remove.
85933         (human_readable): Size args are now uintmax_t, not int.
85934         (human_options): New decl.
85935
85936         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85937         unnecessary now that we assume C89 or better.  This change
85938         imported from coreutils.
85939
85940         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85941         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85942         in the 2003-05-30 sync from glibc.
85943
85944         .h files should stand alone, but we shouldn't include <sys/types.h>
85945         if we can get away with just <stddef.h>.
85946
85947         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85948         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85949         rather than <sys/types.h>, as we merely need size_t.
85950         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85951         to get size_t.
85952         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85953         Include <stdio.h>, to get FILE.
85954         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85955         memcasecmp.h has included <stddef.h> and all we need is size_t.
85956         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85957         our interface, instead of including <sys/types.h>
85958
85959 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85960
85961         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85962         now, as glibc mktime is buggy on non-glibc systems.
85963
85964 2003-06-03  Karl Berry  <karl@gnu.org>
85965
85966         * config/config.sub: update from prep.
85967
85968 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85969
85970         [from coreutils]
85971         Fix some minor time-related bugs with POSIX time arguments.
85972         Some valid time stamps were being rejected (notably -1, and
85973         time stamps before 1900 on 64-bit hosts).  And some invalid
85974         time stamps were being accepted, e.g. September 31.
85975
85976         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85977         that we can return (time_t) -1 successfully.
85978         * lib/posixtm.c: Likewise.
85979         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85980         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85981         (t): Remove static var.
85982         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85983         of static var.  All uses changed.
85984         (year): Do not reject years before 1900; they can occur with
85985         64-bit time_t.
85986         (posix_time_parse): Do not check for out-of-range components;
85987         that is now the caller's responsibility, since our checks were
85988         only approximations.
85989         (posixtime): Use mktime to check for out-of-range components,
85990         since it knows them exactly.
85991         If mktime returns (time_t) -1, check whether an error actually occurred
85992         by invoking localtime on -1.
85993         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85994         posixtime failures better.
85995         Improve the test data (in comments only).
85996
85997 2003-06-02  Karl Berry  <karl@gnu.org>
85998
85999         * config/mkinstalldirs (version): new variable.
86000         (--version): new option.
86001         (usage): improve message.
86002
86003 2003-05-30  Karl Berry  <karl@gnu.org>
86004
86005         * lib/mktime.c: update from libc.
86006
86007 2003-05-30  Bruno Haible  <bruno@clisp.org>
86008
86009         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86010         * config/config.rpath: Upgrade to gettext-0.12.1.
86011
86012 2003-05-30  Bruno Haible  <bruno@clisp.org>
86013
86014         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86015         * m4/nls.m4: New file, from gettext-0.12.1.
86016         * m4/po.m4: New file, from gettext-0.12.1.
86017         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86018
86019 2003-05-30  Bruno Haible  <bruno@clisp.org>
86020
86021         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86022         * lib/localcharset.h: Likewise.
86023         * lib/localcharset.c: Likewise.
86024
86025 2003-05-29  Karl Berry  <karl@gnu.org>
86026
86027         * config/config.rpath: update from gettext.
86028
86029 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86030
86031         Assume the headers required for C89 freestanding compilers.
86032         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86033         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86034         * m4/human.m4 (gl_HUMAN): Likewise.
86035         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86036         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86037         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86038         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86039         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86040         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86041
86042 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86043
86044         Assume the headers required for C89 freestanding compilers.
86045         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86046         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86047         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86048         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86049         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86050         define, since <limits.h> is guaranteed to do that.
86051         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86052         * lib/exclude.c: Include <stdbool.h> unconditionally.
86053         * lib/tempname.c: Include <stddef.h> unconditionally.
86054         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86055         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86056         <stddef.h> does that.
86057         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86058         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86059         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86060         needed.
86061         * lib/xstrtol.c: Likewise.
86062         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86063         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86064
86065         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86066         warnings on some platforms.
86067
86068         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86069         arbitrarily.
86070
86071 2003-05-26  Jim Meyering  <jim@meyering.net>
86072
86073         Merge in a change from coreutils:
86074         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86075         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86076         that condition, rather than `-1' which is slightly misleading.
86077         Change the name of the cache variable to have the gl_ prefix.
86078         Prompted by a patch from Richard Dawe for DJGPP.
86079
86080 2003-05-24  Karl Berry  <karl@gnu.org>
86081
86082         * config/config.guess: update from prep.
86083
86084 2003-05-22  Karl Berry  <karl@gnu.org>
86085
86086         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86087
86088 2003-05-20  Karl Berry  <karl@gnu.org>
86089
86090         * config/config.guess: update from prep.
86091
86092 2003-05-18  Karl Berry  <karl@gnu.org>
86093
86094         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86095         might actually be set by the user.
86096
86097         * config/depcomp, install-sh, mdate-sh: update from automake.
86098
86099 2003-05-17  Bruno Haible  <bruno@clisp.org>
86100
86101         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86102         invalid expansion for AC_EGREP_CPP.
86103         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86104         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86105         Suggested by Akim Demaille <akim@epita.fr> in
86106         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86107
86108 2003-05-12  Jim Meyering  <jim@meyering.net>
86109
86110         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86111         the space-padded-by-default conversion specifiers, %e, %k, %l.
86112
86113 2003-05-12  Bruno Haible  <bruno@clisp.org>
86114
86115         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86116         the string is longer than 4 KB.
86117
86118 2003-05-11  Karl Berry  <karl@gnu.org>
86119
86120         * config/config.{guess,sub}: update from prep.
86121
86122 2003-05-09  Bruno Haible  <bruno@clisp.org>
86123
86124         * modules/error: Add m4/strerror_r.m4 to file list.
86125
86126 2003-05-03  Bruno Haible  <bruno@clisp.org>
86127
86128         Upgrade to Unicode-4.0.
86129         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86130         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86131         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86132         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86133         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86134         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86135         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86136         Change width of U+E0100..U+E01EF from 1 to 0.
86137
86138 2003-04-25  Jim Meyering  <jim@meyering.net>
86139
86140         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86141         of type size_t, not int.
86142
86143 2003-04-25  Bruno Haible  <bruno@clisp.org>
86144
86145         * lib/copy-file.c: Include <stddef.h>, for size_t.
86146
86147 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86148
86149         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86150         code which expansion is under static control.  Patch imported from
86151         Akim Demaille's patch to Bison; see
86152         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86153
86154 2003-04-14  Bruno Haible  <bruno@clisp.org>
86155
86156         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86157
86158 2003-04-11  Jim Meyering  <jim@meyering.net>
86159
86160         Merge changes from Coreutils.
86161
86162         2003-03-22  Jim Meyering  <jim@meyering.net>
86163
86164         * lib/strftime.c (widen): Cast alloca return value to proper type.
86165
86166         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86167
86168         From GNU libc.
86169         * lib/strftime.c (my_strftime): Handle very large width
86170         specifications for numeric values correctly.  Improve checks for
86171         overflow.
86172
86173         2003-01-19  Jim Meyering  <jim@meyering.net>
86174
86175         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86176         definitions.
86177         (nl_get_alt_digit) [! defined my_strftime]: Define.
86178         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86179         _nl_get_alt_digit and _nl_get_walt_digit.
86180
86181         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86182         libc. These changes have no effect outside of _LIBC.
86183
86184 2003-04-10  Bruno Haible  <bruno@clisp.org>
86185
86186         * modules/findprog: New file.
86187         * MODULES.html.sh (func_all_modules): Add it.
86188
86189 2003-04-10  Bruno Haible  <bruno@clisp.org>
86190
86191         * m4/findprog.m4: New file.
86192         * m4/eaccess.m4: New file.
86193
86194 2003-04-10  Bruno Haible  <bruno@clisp.org>
86195
86196         * lib/findprog.h: New file, from GNU gettext.
86197         * lib/findprog.c: New file, from GNU gettext.
86198
86199 2003-04-05  Jim Meyering  <jim@meyering.net>
86200
86201         Merge changes from Coreutils.
86202
86203         * lib/exclude.h (PARAMS): Remove definition and uses.
86204         * lib/exclude.c: Remove uses of `PARAMS'.
86205
86206         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86207         Add test-cases for DOS filenames. Declare program_name.
86208         (main): Set up program_name.  Patch by Rich Dawe.
86209
86210         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86211         error from mntctl.
86212         Use mntctl's return value to drive the entry-processing loop, since
86213         we can't rely on the value of the vmt_length member in the last
86214         entry.  On some systems doing so could result in exhausting
86215         virtual memory.  Based in part on a patch from Mike Jetzer.
86216
86217 2003-04-04  Bruno Haible  <bruno@clisp.org>
86218
86219         * modules/linebreak: New file.
86220         * MODULES.html.sh (func_all_modules): Add it.
86221
86222 2003-04-04  Bruno Haible  <bruno@clisp.org>
86223
86224         * m4/linebreak.m4: New file.
86225
86226 2003-04-04  Bruno Haible  <bruno@clisp.org>
86227
86228         * lib/linebreak.h: New file, from GNU gettext.
86229         * lib/linebreak.c: New file, from GNU gettext with slight
86230         modifications.
86231         * lib/lbrkprop.h: New file, from GNU gettext.
86232
86233 2003-04-03  Bruno Haible  <bruno@clisp.org>
86234
86235         * modules/utf8-ucs4: New file.
86236         * modules/utf16-ucs4: New file.
86237         * modules/ucs4-utf8: New file.
86238         * modules/ucs4-utf16: New file.
86239         * MODULES.html.sh (func_all_modules): Add them.
86240
86241 2003-04-03  Bruno Haible  <bruno@clisp.org>
86242
86243         * m4/utf-ucs4.m4: New file.
86244         * m4/ucs4-utf.m4: New file.
86245
86246 2003-04-03  Bruno Haible  <bruno@clisp.org>
86247
86248         * lib/utf8-ucs4.h: New file, from GNU gettext.
86249         * lib/utf16-ucs4.h: New file, from GNU gettext.
86250         * lib/ucs4-utf8.h: New file, from GNU gettext.
86251         * lib/ucs4-utf16.h: New file, from GNU gettext.
86252
86253 2003-04-02  Bruno Haible  <bruno@clisp.org>
86254
86255         * modules/binary-io: New file.
86256         * MODULES.html.sh (func_all_modules): Add it.
86257
86258 2003-04-02  Bruno Haible  <bruno@clisp.org>
86259
86260         * lib/binary-io.h: New file, from GNU gettext.
86261
86262 2003-04-01  Bruno Haible  <bruno@clisp.org>
86263
86264         * modules/pathname: New file.
86265         * MODULES.html.sh (func_all_modules): Add it.
86266
86267 2003-04-01  Bruno Haible  <bruno@clisp.org>
86268
86269         * lib/pathname.h: New file, from GNU gettext.
86270         * lib/concatpath.c: New file, from GNU gettext.
86271
86272 2003-03-30  Bruno Haible  <bruno@clisp.org>
86273
86274         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86275
86276 2003-03-30  Bruno Haible  <bruno@clisp.org>
86277
86278         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86279         function chown() doesn't exist.
86280
86281 2003-03-28  Bruno Haible  <bruno@clisp.org>
86282
86283         * modules/copy-file: New file.
86284         * MODULES.html.sh (func_all_modules): Add it.
86285
86286 2003-03-28  Bruno Haible  <bruno@clisp.org>
86287
86288         * m4/copy-file.m4: New file.
86289
86290 2003-03-28  Bruno Haible  <bruno@clisp.org>
86291
86292         * lib/copy-file.h: New file, from GNU gettext.
86293         * lib/copy-file.c: New file, from GNU gettext.
86294
86295 2003-03-18  Jim Meyering  <jim@meyering.net>
86296
86297         * lib/quote.c (quote_n): Fix typo in comment.
86298
86299 2003-03-18  Bruno Haible  <bruno@clisp.org>
86300
86301         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86302         checking.
86303         * m4/onceonly_2_57.m4: Likewise.
86304
86305 2003-03-17  Bruno Haible  <bruno@clisp.org>
86306
86307         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86308         (m4_quote): Remove macro.
86309         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86310
86311 2003-03-14  Jim Meyering  <jim@meyering.net>
86312
86313         Merge changes from Coreutils.
86314         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86315         to be const, in order to avoid warnings.
86316         (obstack_room): Likewise.
86317         (obstack_empty_p): Likewise.
86318
86319 2003-03-14  Bruno Haible  <bruno@clisp.org>
86320
86321         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86322         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86323
86324 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86325
86326         Merge changes from Bison.
86327         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86328         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86329         when compiling Bison 1.875's `bitset bset = obstack_alloc
86330         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86331         * lib/hash.c: Include <stdbool.h> unconditionally.
86332
86333 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86334
86335         * m4/onceonly.m4 (m4_quote): New macro.
86336         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86337         Quote AC_FOREACH variable-expansions properly.
86338
86339 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86340
86341         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86342
86343 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86344
86345         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86346         Reported by Bruce Becker; see:
86347         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86348
86349 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86350             Bruno Haible  <bruno@clisp.org>
86351
86352         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86353         Reported by John Hughes, see
86354         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86355
86356 2003-02-20  Bruno Haible  <bruno@clisp.org>
86357
86358         * MODULES.html.sh (func_all_modules): Add poll.
86359
86360 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86361
86362         * modules/poll: New file.
86363
86364 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86365
86366         * lib/poll_.h: New file.
86367         * lib/poll.c: New file.
86368
86369 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86370
86371         * m4/poll.m4: New file.
86372
86373 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86374
86375         * modules/mathl: New file.
86376
86377 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86378
86379         * lib/mathl.h: New file.
86380         * lib/acosl.c: New file.
86381         * lib/asinl.c: New file.
86382         * lib/atanl.c: New file.
86383         * lib/ceill.c: New file.
86384         * lib/cosl.c: New file.
86385         * lib/expl.c: New file.
86386         * lib/floorl.c: New file.
86387         * lib/frexpl.c: New file.
86388         * lib/ldexpl.c: New file.
86389         * lib/logl.c: New file.
86390         * lib/sincosl.c: New file.
86391         * lib/sinl.c: New file.
86392         * lib/sqrtl.c: New file.
86393         * lib/tanl.c: New file.
86394         * lib/trigl.c: New file.
86395         * lib/trigl.h: New file.
86396
86397 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86398
86399         * m4/mathl.m4: New file.
86400
86401 2003-02-18  Bruno Haible  <bruno@clisp.org>
86402
86403         * MODULES.html.sh (func_all_modules): Add mathl.
86404
86405 2003-02-17  Bruno Haible  <bruno@clisp.org>
86406
86407         * modules/mkdtemp: New module.
86408         * MODULES.html.sh (func_all_modules): Add it.
86409
86410 2003-02-17  Bruno Haible  <bruno@clisp.org>
86411
86412         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86413
86414 2003-02-17  Bruno Haible  <bruno@clisp.org>
86415
86416         * lib/mkdtemp.h: New file, from GNU gettext.
86417         * lib/mkdtemp.c: New file, from GNU gettext.
86418
86419 2003-02-02  Jim Meyering  <jim@meyering.net>
86420
86421         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86422         e.g. glibc-2.2.93.
86423
86424 2003-01-31  Bruno Haible  <bruno@clisp.org>
86425
86426         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86427         'rpl_rename'.
86428         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86429         'rpl_strnlen'.
86430         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86431         'rpl_strtod'.
86432         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86433         'rpl_utime'.
86434
86435 2003-01-31  Bruno Haible  <bruno@clisp.org>
86436
86437         * lib/rename.c: #undef rename before defining rpl_rename.
86438         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86439
86440 2003-01-30  Bruno Haible  <bruno@clisp.org>
86441
86442         * modules/vasnprintf, modules/vasprintf: New modules.
86443         * MODULES.html.sh (func_all_modules): Add them.
86444
86445 2003-01-30  Bruno Haible  <bruno@clisp.org>
86446
86447         * m4/signed.m4: New file, from GNU gettext.
86448         * m4/longdouble.m4: New file, from GNU gettext.
86449         * m4/wchar_t.m4: New file, from GNU gettext.
86450         * m4/wint_t.m4: New file, from GNU gettext.
86451         * m4/vasnprintf.m4: New file.
86452         * m4/vasprintf.m4: New file.
86453
86454 2003-01-30  Bruno Haible  <bruno@clisp.org>
86455
86456         * lib/printf-args.h: New file, from GNU gettext.
86457         * lib/printf-args.c: New file, from GNU gettext.
86458         * lib/printf-parse.h: New file, from GNU gettext.
86459         * lib/printf-parse.c: New file, from GNU gettext.
86460         * lib/vasnprintf.h: New file, from GNU gettext.
86461         * lib/vasnprintf.c: New file, from GNU gettext.
86462         * lib/asnprintf.c: New file, from GNU gettext.
86463         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86464         * lib/vasprintf.c: New file, from GNU gettext.
86465         * lib/asprintf.c: New file, from GNU gettext.
86466
86467 2003-01-29  Bruno Haible  <bruno@clisp.org>
86468
86469         * modules/stpncpy: New module.
86470         * MODULES.html.sh (func_all_modules): Add it.
86471
86472 2003-01-29  Bruno Haible  <bruno@clisp.org>
86473
86474         * m4/stpncpy.m4: New file.
86475
86476 2003-01-29  Bruno Haible  <bruno@clisp.org>
86477
86478         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86479         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86480
86481 2003-01-28  Bruno Haible  <bruno@clisp.org>
86482
86483         * modules/c-ctype: New module.
86484         * MODULES.html.sh (func_all_modules): Add it.
86485
86486 2003-01-28  Bruno Haible  <bruno@clisp.org>
86487
86488         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86489         Paul Eggert.
86490         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86491         Paul Eggert.
86492
86493 2003-01-27  Bruno Haible  <bruno@clisp.org>
86494
86495         * modules/xsetenv: New module.
86496         * MODULES.html.sh (func_all_modules): Add it.
86497
86498 2003-01-27  Bruno Haible  <bruno@clisp.org>
86499
86500         * lib/xsetenv.h: New file, from GNU gettext.
86501         * lib/xsetenv.c: New file, from GNU gettext.
86502
86503 2003-01-23  Jim Meyering  <jim@meyering.net>
86504
86505         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86506         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86507
86508 2003-01-23  Bruno Haible  <bruno@clisp.org>
86509
86510         * modules/minmax: New module.
86511         * MODULES.html.sh (func_all_modules): Add it.
86512
86513 2003-01-23  Bruno Haible  <bruno@clisp.org>
86514
86515         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86516         Eggert.
86517
86518 2003-01-22  Bruno Haible  <bruno@clisp.org>
86519
86520         * modules/exit: New module.
86521         * MODULES.html.sh (func_all_modules): Add it.
86522
86523 2003-01-22  Bruno Haible  <bruno@clisp.org>
86524
86525         * lib/exit.h: New file, from GNU gettext.
86526
86527 2003-01-19  Bruno Haible  <bruno@clisp.org>
86528
86529         * gnulib-tool: Recognize option --extract-maintainer.
86530         (func_get_maintainer): New function.
86531         * modules/*: Add Maintainer entry.
86532
86533 2003-01-16  Jim Meyering  <jim@meyering.net>
86534
86535         * m4/regex.m4: The `regex' struct is both input and output.
86536         Initialize it before each use.  Patch by Tim Waugh.
86537
86538 2003-01-16  Bruno Haible  <bruno@clisp.org>
86539
86540         * MODULES.html.sh: Add a table of contents. Add the module name as
86541         leftmost column. Add hyperlinks.
86542
86543 2003-01-15  Bruno Haible  <bruno@clisp.org>
86544
86545         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86546
86547 2003-01-15  Bruno Haible  <bruno@clisp.org>
86548
86549         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86550         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86551         suffix.
86552
86553 2003-01-15  Bruno Haible  <bruno@clisp.org>
86554
86555         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86556
86557 2003-01-15  Bruno Haible  <bruno@clisp.org>
86558
86559         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86560         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86561
86562 2003-01-14  Jim Meyering  <jim@meyering.net>
86563
86564         * lib/same.c (same_name): Tweak a comment.
86565
86566 2003-01-14  Bruno Haible  <bruno@clisp.org>
86567
86568         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86569         when a string comparison is sufficient.
86570
86571 2003-01-14  Bruno Haible  <bruno@clisp.org>
86572
86573         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86574         'unsigned int'.
86575
86576 2003-01-14  Bruno Haible  <bruno@clisp.org>
86577
86578         * lib/hash-pjw.c: Add comment about low quality of this function.
86579
86580 2003-01-13  Bruno Haible  <bruno@clisp.org>
86581
86582         * modules/stpcpy: Distribute lib/stpcpy.h.
86583         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86584
86585 2003-01-13  Bruno Haible  <bruno@clisp.org>
86586
86587         * modules/*: Add a description.
86588         * modules/strpbrk: Fix Makefile.am snippet.
86589         * modules/strtoimax: Fix dependencies.
86590         * modules/strtoumax: Likewise.
86591
86592 2003-01-13  Bruno Haible  <bruno@clisp.org>
86593
86594         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86595         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86596         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86597
86598 2003-01-13  Bruno Haible  <bruno@clisp.org>
86599
86600         * gnulib-tool (func_create_testdir): Store config/* files in the main
86601         directory.
86602         * config.rpath: Move to ...
86603         * config/config.rpath: ... here.
86604         * modules/gettext: Contains config/config.rpath, not config.rpath.
86605         * modules/iconv: Likewise.
86606
86607 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86608
86609         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86610         to avoid collisions with libcurses and libreadline.
86611
86612         * m4/getstr.m4: Remove.
86613         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86614
86615 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86616
86617         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86618         to avoid collisions with libcurses and libreadline.
86619
86620         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86621         * lib/getstr.h, getstr.c: Remove.
86622         * lib/getline.c: Include "getline.h", to check interface.
86623         Move body of old getstr.c here: this defines MIN_CHUNK and
86624         declares getdelim2, which is renamed from getstr.
86625         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86626
86627         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86628         All uses changed.
86629         * lib/linebuffer.h: Likewise.
86630         (readline): Remove backward-compatibility macro.
86631
86632 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86633
86634         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86635         to avoid collisions with libcurses and libreadline.
86636         * getstr: Remove.
86637         * MODULES.html.sh: Remove getstr.
86638         * modules/getline: Depend on unlocked-io, not getstr.
86639
86640 2003-01-12  Jim Meyering  <jim@meyering.net>
86641
86642         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86643
86644 2003-01-10  Bruno Haible  <bruno@clisp.org>
86645
86646         * modules/alloca: Change Makefile.am requirements. Simplify Include
86647         requirements. Add lib/alloca_.h to file list.
86648
86649 2003-01-10  Bruno Haible  <bruno@clisp.org>
86650
86651         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86652
86653 2003-01-10  Bruno Haible  <bruno@clisp.org>
86654
86655         * lib/alloca_.h: New file.
86656         * lib/getdate.y: Unconditionally include alloca.h.
86657         * lib/makepath.c: Likewise.
86658         * lib/setenv.c: Likewise.
86659         * lib/userspec.c: Likewise.
86660
86661 2003-01-09  Karl Berry  <karl@gnu.org>
86662
86663         * MODULES.html.sh: include `dirname $0` in PATH, to find
86664         gnulib-tool.
86665
86666 2003-01-09  Bruno Haible  <bruno@clisp.org>
86667
86668         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86669         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86670
86671 2003-01-09  Bruno Haible  <bruno@clisp.org>
86672
86673         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86674
86675 2003-01-09  Bruno Haible  <bruno@clisp.org>
86676
86677         * lib/stdbool.h.in: New file.
86678
86679 2003-01-09  Bruno Haible  <bruno@clisp.org>
86680
86681         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86682         * MODULES.html.sh: Likewise.
86683
86684 2003-01-08  Jim Meyering  <jim@meyering.net>
86685
86686         * lib/full-write.c: Undefine and define-away `const' after inclusion
86687         of errno.h, not before.  Suggestion from Bruno Haible.
86688
86689 2003-01-08  Bruno Haible  <bruno@clisp.org>
86690
86691         * modules/full-read: Depend on full-write.
86692
86693 2003-01-08  Bruno Haible  <bruno@clisp.org>
86694
86695         * lib/safe-read.c: Include specification header first, to ensure its
86696         selfcontainedness.
86697         * lib/full-write.c: Likewise.
86698
86699 2003-01-07  Jim Meyering  <jim@meyering.net>
86700
86701         * lib/full-write.c: Rework so that it may serve to define full_read,
86702         too.
86703         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
86704
86705 2003-01-07  Bruno Haible  <bruno@clisp.org>
86706
86707         * lib/strtoimax.c: Include <stdint.h> as an alternative to
86708         <inttypes.h>.
86709         * lib/xstrtol.h: Likewise.
86710         * lib/xstrtoimax.c: Likewise.
86711         * lib/xstrtoumax.c: Likewise.
86712         * lib/human.h: Likewise.
86713
86714         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
86715         on systems that have <inttypes.h> but not <stdint.h>.
86716
86717 2003-01-07  Bruno Haible  <bruno@clisp.org>
86718
86719         * MODULES.html.sh: Add copyright notice.
86720         (missed_files): Omit CVS directory entries.
86721         (func_module): Make it work with sed-3.02.
86722         * MODULES.txt: Remove file.
86723
86724 2003-01-06  Jim Meyering  <jim@meyering.net>
86725
86726         * lib/version-etc.c: Update year in translatable copyright string.
86727
86728 2003-01-03  Karl Berry  <karl@gnu.org>
86729
86730         * config/config.{guess,sub}: update from prep.
86731
86732 2003-01-02  Karl Berry  <karl@gnu.org>
86733
86734         * doc/COPYING.DOC: belatedly updated to 1.2.
86735
86736 2003-01-01  Karl Berry  <karl@gnu.org>
86737
86738         * gnulib-tool (func_verify_module): report module name $module in
86739         error message, not $1.
86740         * gnulib-tool (create-testdir): don't complain if destdir couldn't
86741         be created, only if it doesn't exist.
86742         * gnulib-tool (last_checkin_date): don't expand the $Date here.
86743
86744 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86745
86746         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
86747
86748 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86749
86750         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
86751         memcmp if strcoll doesn't work.
86752
86753 2002-12-31  Bruno Haible  <bruno@clisp.org>
86754
86755         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86756         nonempty.
86757
86758 2002-12-31  Bruno Haible  <bruno@clisp.org>
86759
86760         * lib/memcoll.c (STRCOLL): New macro.
86761         (memcoll): Use it.
86762
86763 2002-12-31  Bruno Haible  <bruno@clisp.org>
86764
86765         * lib/localcharset.h: New file.
86766         * lib/localcharset.c: Include it.
86767         * lib/unicodeio.c: Likewise.
86768
86769 2002-12-31  Bruno Haible  <bruno@clisp.org>
86770
86771         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
86772         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
86773
86774 2002-12-31  Bruno Haible  <bruno@clisp.org>
86775
86776         * lib/getline.h: Include <stddef.h>, for size_t.
86777
86778         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86779         * lib/unicodeio.c: Don't include <stddef.h>.
86780
86781 2002-12-31  Bruno Haible  <bruno@clisp.org>
86782
86783         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86784         HAVE_TM_ZONE.
86785
86786 2002-12-24  Karl Berry  <karl@gnu.org>
86787
86788         * config/config.guess: update from prep.
86789
86790 2002-12-24  Bruno Haible  <bruno@clisp.org>
86791
86792         General infrasructure.
86793         * m4/README: Rewritten.
86794         * m4/onceonly.m4: New file.
86795         * m4/onceonly_2_57.m4: New file.
86796
86797         Module atexit.
86798         * m4/atexit.m4: New file.
86799
86800         Module strtod.
86801         * m4/strtod.m4: New file.
86802
86803         Module strtol.
86804         * m4/strtol.m4: New file.
86805
86806         Module strtoul.
86807         * m4/strtoul.m4: New file.
86808
86809         Module memchr.
86810         * m4/memchr.m4: New file.
86811
86812         Module memcmp.
86813         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86814         (jm_FUNC_MEMCMP): Invoke it.
86815
86816         Module memcpy.
86817         * m4/memcpy.m4: New file.
86818
86819         Module memmove.
86820         * m4/memmove.m4: New file.
86821
86822         Module memset.
86823         * m4/memset.m4: New file.
86824
86825         Module strcspn.
86826         * m4/strcspn.m4: New file.
86827
86828         Module strpbrk.
86829         * m4/strpbrk.m4: New file.
86830
86831         Module strstr.
86832         * m4/strstr.m4: New file.
86833
86834         Module strerror.
86835         * m4/strerror.m4: New file.
86836
86837         Module mktime.
86838         * m4/mktime.m4: Renamed from jm-mktime.m4.
86839         (gl_PREREQ_MKTIME): New macro.
86840         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86841
86842         Module malloc.
86843         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86844         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86845         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86846
86847         Module realloc.
86848         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86849         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86850         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86851
86852         Module strftime.
86853         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86854         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86855         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86856         gl_TM_GMTOFF.
86857         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86858
86859         Module xalloc.
86860         * m4/xalloc.m4: New file.
86861
86862         Module alloca.
86863         * m4/alloca.m4: New file.
86864
86865         Module putenv.
86866         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86867         (jm_FUNC_PUTENV): Invoke it.
86868
86869         Module setenv.
86870         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86871         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86872         when invoked twice.
86873         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86874         gt_FUNC_SETENV.
86875
86876         Module memrchr.
86877         * m4/memrchr.m4: New file.
86878
86879         Module stpcpy.
86880         * m4/stpcpy.m4: New file.
86881
86882         Module strcase.
86883         * m4/strcase.m4: New file.
86884
86885         Module strdup.
86886         * m4/strdup.m4: New file.
86887
86888         Module strnlen.
86889         * m4/strnlen.m4: New file.
86890
86891         Module strndup.
86892         * m4/strndup.m4: New file.
86893
86894         Module xstrtod.
86895         * m4/xstrtod.m4: New file.
86896
86897         Module xstrtol.
86898         * m4/xstrtol.m4: New file.
86899
86900         Module getdate.
86901         * m4/getdate.m4: New file.
86902
86903         Module unlocked-io.
86904         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86905         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86906         * m4/jm-glibc-io.m4n: Remove file.
86907
86908         Module long-options.
86909         * m4/long-options.m4: New file.
86910
86911         Module md5.
86912         * m4/md5.m4: New file.
86913
86914         Module sha.
86915         * m4/sha.m4: New file.
86916
86917         Module getstr.
86918         * m4/getstr.m4: New file.
86919
86920         Module getline.
86921         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86922         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86923         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86924         simply getline. Infoke gl_PREREQ_GETLINE.
86925
86926         Module obstack.
86927         * m4/obstack.m4: New file.
86928
86929         Module hash.
86930         * m4/hash.m4: New file.
86931
86932         Module readtokens.
86933         * m4/readtokens.m4: New file.
86934
86935         Module strverscmp.
86936         * m4/strverscmp.m4: New file.
86937
86938         Module stdbool.
86939         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86940         OSF/1.
86941
86942         Module strtoll.
86943         * m4/strtoll.m4: New file.
86944
86945         Module strtoull.
86946         * m4/strtoull.m4: New file.
86947
86948         Module strtoimax.
86949         * m4/strtoimax.m4: New file.
86950
86951         Module strtoumax.
86952         * m4/strtoumax.m4: New file.
86953
86954         Module xstrtoimax.
86955         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86956         jm_AC_PREREQ_XSTRTOIMAX.
86957         Moved the strtol prerequisites to strtol.m4.
86958         Moved the strtoll prerequisites to strtoll.m4.
86959         Moved the strtoimax prerequisites to strtoimax.m4.
86960
86961         Module xstrtoumax.
86962         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86963         jm_AC_PREREQ_XSTRTOUMAX.
86964         Moved the strtoul prerequisites to strtoul.m4.
86965         Moved the strtoull prerequisites to strtoull.m4.
86966         Moved the strtoumax prerequisites to strtoumax.m4.
86967
86968         Module chown.
86969         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86970         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86971
86972         Module dup2.
86973         * m4/dup2.m4: New file.
86974
86975         Module ftruncate.
86976         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86977         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86978
86979         Module getgroups.
86980         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86981         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86982
86983         Module gettimeofday.
86984         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86985         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86986         gl_PREREQ_GETTIMEOFDAY.
86987
86988         Module mkdir.
86989         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86990         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86991
86992         Module mkstemp.
86993         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86994         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86995         jm_AC_TYPE_UINTMAX_T.
86996         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86997
86998         Module stat.
86999         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87000         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87001
87002         Module lstat.
87003         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87004         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87005
87006         Module timespec.
87007         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87008         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87009         * m4/st_mtim.m4: Indentation.
87010
87011         Module nanosleep.
87012         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87013         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87014         gl_PREREQ_NANOSLEEP.
87015
87016         Module regex.
87017         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87018         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87019         (gl_REGEX): New macro.
87020
87021         Module rename.
87022         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87023         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87024
87025         Module rmdir.
87026         * m4/rmdir.m4: New file.
87027
87028         Module utime.
87029         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87030         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87031         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87032
87033         Module dirname.
87034         * m4/dirname.m4: New file.
87035
87036         Module getopt.
87037         * m4/getopt.m4: New file.
87038
87039         Module unistd-safer.
87040         * m4/unistd-safer.m4: New file.
87041
87042         Module fnmatch.
87043         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87044         declaration.
87045         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87046         (gl_FUNC_FNMATCH_POSIX): New macro.
87047         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87048         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87049         simply fnmatch.
87050
87051         Module exclude.
87052         * m4/exclude.m4: New file.
87053
87054         Module human.
87055         * m4/human.m4: New file.
87056
87057         Module acl.
87058         * m4/acl.m4: Nop.
87059
87060         Module backupfile.
87061         * m4/backupfile.m4: New file.
87062         * m4/d-ino.m4: Indentation.
87063
87064         Module fsusage.
87065         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87066         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87067         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87068
87069         Module dirfd.
87070         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87071         requirements.
87072
87073         Module euidaccess.
87074         * m4/euidaccess.m4: New file.
87075
87076         Module file-type.
87077         * m4/file-type.m4: New file.
87078
87079         Module fileblocks.
87080         * m4/fileblocks.m4: New file.
87081
87082         Module filemode.
87083         * m4/filemode.m4: New file.
87084
87085         Module isdir.
87086         * m4/isdir.m4: New file.
87087
87088         Module lchown.
87089         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87090         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87091
87092         Module makepath.
87093         * m4/makepath.m4: New file.
87094
87095         Module modechange.
87096         * m4/modechange.m4: New file.
87097
87098         Module mountlist.
87099         * m4/mountlist.m4: New file.
87100         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87101         Indentation.
87102
87103         Module path-concat.
87104         * m4/path-concat.m4: New file.
87105
87106         Module pathmax.
87107         * m4/pathmax.m4: New file.
87108
87109         Module same.
87110         * m4/same.m4: New file.
87111
87112         Module save-cwd.
87113         * m4/save-cwd.m4: New file.
87114
87115         Module savedir.
87116         * m4/savedir.m4: New file.
87117
87118         Module xgetcwd.
87119         * m4/xgetcwd.m4: New file.
87120         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87121
87122         Module xreadlink.
87123         * m4/xreadlink.m4: New file.
87124
87125         Module safe-read.
87126         * m4/safe-read.m4: New file.
87127
87128         Module safe-write.
87129         * m4/safe-write.m4: New file.
87130
87131         Module closeout.
87132         * m4/closeout.m4: New file.
87133
87134         Module stdio-safer.
87135         * m4/stdio-safer.m4: New file.
87136
87137         Module getpass.
87138         * m4/getpass.m4: New file.
87139
87140         Module getugroups.
87141         * m4/getugroups.m4: New file.
87142
87143         Module group-member.
87144         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87145         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87146
87147         Module idcache.
87148         * m4/idcache.m4: New file.
87149
87150         Module userspec.
87151         * m4/userspec.m4: New file.
87152
87153         Module gettime.
87154         * m4/clock_time.m4: New file.
87155         * m4/gettime.m4: New file.
87156
87157         Module settime.
87158         * m4/settime.m4: New file.
87159
87160         Module posixtm.
87161         * m4/posixtm.m4: New file.
87162
87163         Module gethostname.
87164         * m4/gethostname.m4: New file.
87165
87166         Module canon-host.
87167         * m4/canon-host.m4: New file.
87168
87169         Module gettext.
87170         * m4/codeset.m4: New file, from gettext-0.11.5.
87171         * m4/gettext.m4: New file, from gettext-0.11.5.
87172         * m4/glibc21.m4: New file, from gettext-0.11.5.
87173         * m4/iconv.m4: New file, from gettext-0.11.5.
87174         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87175         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87176         * m4/inttypes.m4: New file, from gettext-0.11.5.
87177         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87178         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87179         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87180         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87181         * m4/lib-link.m4: New file, from gettext-0.11.5.
87182         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87183         * m4/progtest.m4: New file, from gettext-0.11.5.
87184         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87185         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87186         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87187
87188         Module localcharset.
87189         * m4/localcharset.m4: New file.
87190
87191         Module hard-locale.
87192         * m4/hard-locale.m4: New file.
87193
87194         Module mbswidth.
87195         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87196         onceonly macros.
87197         * m4/mbrtowc.m4: Add comment.
87198
87199         Module memcasecmp.
87200         * m4/memcasecmp.m4: New file.
87201
87202         Module memcoll.
87203         * m4/memcoll.m4: New file.
87204
87205         Module unicodeio.
87206         * m4/unicodeio.m4: New file.
87207
87208         Module rpmatch.
87209         * m4/rpmatch.m4: New file.
87210
87211         Module yesno.
87212         * m4/yesno.m4: New file.
87213
87214         Module exitfail.
87215         * m4/exitfail.m4: New file.
87216
87217         Module c-stack.
87218         * m4/c-stack.m4 (gl_C_STACK): New macro.
87219         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87220
87221         Module error.
87222         * m4/error.m4 (gl_ERROR): New macro.
87223         (jm_PREREQ_ERROR): Use onceonly macros.
87224
87225         Module fatal.
87226         * m4/fatal.m4: New file.
87227
87228         Module getloadavg.
87229         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87230         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87231
87232         Module getpagesize.
87233         * m4/getpagesize.m4: New file.
87234
87235         Module getusershell.
87236         * m4/getusershell.m4: New file.
87237
87238         Module physmem.
87239         * m4/physmem.m4: New file.
87240
87241         Module posixver.
87242         * m4/posixver.m4: New file.
87243
87244         Module quotearg.
87245         * m4/quotearg.m4: New file.
87246
87247         Module quote.
87248         * m4/quote.m4: New file.
87249
87250         Module readutmp.
87251         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87252
87253         Module sig2str.
87254         * m4/sig2str.m4: New file.
87255
87256         Other.
87257         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87258         ulonglong.m4.
87259         * m4/intmax_t.m4: New file.
87260         * m4/d-type.m4: Indentation.
87261         * m4/jm-macros.m4: Update.
87262         * m4/prereq.m4 (jm_PREREQ): Update.
87263         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87264         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87265         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87266         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87267         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87268         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87269         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87270         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87271         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87272         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87273         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87274         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87275         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87276         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87277         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87278         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87279         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87280         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87281         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87282
87283 2002-12-24  Bruno Haible  <bruno@clisp.org>
87284
87285         * MODULES.txt: Update according to m4/ changes.
87286
87287         Module gettext.
87288         * config.rpath: New file, from gettext-0.11.5.
87289
87290         * modules/*: New module descriptions.
87291         * gnulib-tool: New file.
87292         * MODULES.html.sh: New file.
87293
87294 2002-12-21  Karl Berry  <karl@gnu.org>
87295
87296         * doc/fdl.texi: update to version 1.2.
87297
87298 2002-12-19  Karl Berry  <karl@gnu.org>
87299
87300         * config/config.guess: update from prep.
87301
87302 2002-12-18  Bruno Haible  <bruno@clisp.org>
87303
87304         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87305         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87306
87307 2002-12-17  Bruno Haible  <bruno@clisp.org>
87308
87309         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87310         stdlib.h, string.h.
87311
87312 2002-12-17  Bruno Haible  <bruno@clisp.org>
87313
87314         * lib/canon-host.c (strdup): Remove unused declaration.
87315
87316         * lib/fsusage.c: Include full_read.h.
87317         (get_fs_usage): Use full_read instead of safe_read.
87318
87319         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87320
87321 2002-12-12  Karl Berry  <karl@gnu.org>
87322
87323         * config/config.guess: update from prep.
87324
87325 2002-12-11  Bruno Haible  <bruno@clisp.org>
87326
87327         * m4/setenv.m4: New file, from gettext-0.11.5.
87328
87329 2002-12-11  Bruno Haible  <bruno@clisp.org>
87330
87331         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87332         not unsetenv().
87333         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87334         modifications:
87335
87336         2002-12-11  Bruno Haible  <bruno@clisp.org>
87337
87338                 * setenv.c (alloca): Fall back to malloc.
87339                 (freea): New macro.
87340                 (setenv): Use freea() to free memory allocated with alloca().
87341
87342         2002-11-13  Bruno Haible  <bruno@clisp.org>
87343
87344                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87345                 function declarations.
87346                 * unsetenv.c (unsetenv): Likewise.
87347
87348         2002-03-04  Bruno Haible  <bruno@clisp.org>
87349
87350                 Portability to AIX 4.3.3.
87351                 * unsetenv.c: New file, extracted from setenv.c.
87352                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87353
87354         2001-12-20  Bruno Haible  <bruno@clisp.org>
87355
87356                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87357                 use malloc instead. For SunOS 4.
87358
87359         2001-12-11  Bruno Haible  <bruno@clisp.org>
87360
87361                 * setenv.c: Declare alloca.
87362                 (compar_fn_t): New typedef.
87363                 (KNOWN_VALUE, STORE_VALUE): Use it.
87364
87365         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87366         setenv.h.
87367
87368 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87369
87370         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87371         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87372         Choose values that are less likely to collide with system fnmatch
87373         options.
87374         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87375         defined (e.g., a pure POSIX system).
87376         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87377         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87378
87379 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87380
87381         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87382         a pain in practice to deal with generated m4 files.  This change
87383         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87384
87385         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87386         and jm-glibc-io.m4, as they are no longer a special case.
87387         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87388         kludge and the auto-generation stuff.  Check only whether the
87389         functions are declared, not whether they exist, since older hosts
87390         that don't declare the functions can't use the optimization anyway.
87391
87392 2002-12-06  Jim Meyering  <jim@meyering.net>
87393
87394         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87395
87396         Merge in changes from libc's misc/error.c, in preparation
87397         for the merge of gnulib's changes back into libc.
87398
87399         * lib/error.c (_): Define only if not already defined.
87400         Move definition to follow all #include directives.
87401         Include unlocked-io.h only if !_LIBC.
87402         [_LIBC]: Include <libio/libioP.h>.
87403         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87404         (fflush): Tweak definition to use INTUSE.
87405         (putc): Define.
87406
87407 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87408
87409         * lib/alloca.c [defined emacs]: Include "lisp.h".
87410         (xalloc_die) [defined emacs]: New macro.
87411         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87412         [! defined emacs]: Include <xalloc.h>.
87413         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87414         (pointer): Typedef to POINTER_TYPE *.
87415         (malloc): Remove decl; we now always use xmalloc.
87416         (alloca): Use old-style definition, since Emacs needs this.
87417         Check for arithmetic overflow when computing combined size.
87418
87419 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87420
87421         Do not generate unlocked-io.h automatically, since it's easier to
87422         maintain it by hand.
87423
87424         * lib/unlocked-io.h: New file, from GNU diffutils,
87425         but with proper copyright notice and attribution.
87426         * lib/gen-uio: Remove.
87427         * lib/Makefile.am: Add copyright notice.
87428         (libfetish_a_SOURCES): Add unlocked-io.h.
87429         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87430         (DISTCLEANFILES, io_functions): Remove macros.
87431         (EXTRA_DIST): Remove gen_uio.
87432         (unlocked-io.h): Remove rule.
87433
87434 2002-12-04  Jim Meyering  <jim@meyering.net>
87435
87436         Reflect the fact that stat.c and lstat.c are no longer generated.
87437         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87438         (DISTCLEANFILES): Likewise.
87439         (EXTRA_DIST): Likewise.
87440         (all_local): Don't depend on stat.c or lstat.c.
87441         (stat.c, lstat.c): Remove rules.
87442         (EXTRA_DIST): Remove xstat.in.
87443
87444         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87445         * lib/stat.c: New file.  Contents mostly from xstat.in.
87446         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87447         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87448
87449         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87450         too.
87451         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87452
87453 2002-12-03  Jim Meyering  <jim@meyering.net>
87454
87455         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87456         but not semantics, to minimize the differences between these two files.
87457         (safe_read): Change comment to mention SAFE_READ_ERROR.
87458
87459         * lib/safe-read.c (IS_EINTR): Define.
87460         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87461
87462 2002-12-02  Jim Meyering  <jim@meyering.net>
87463
87464         * lib/safe-read.c (EINTR): Define.
87465         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87466         (INT_MAX): Provide fallback.
87467         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87468
87469         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87470
87471 2002-12-02  Bruno Haible  <bruno@clisp.org>
87472
87473         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87474         Define, taken from safe-read.c.
87475         (INT_MAX): Provide fallback.
87476         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87477         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87478
87479         * lib/safe-read.c (EINTR): Remove definition.
87480         (safe_read): Don't use EINTR if it is absent.
87481
87482 2002-12-01  Jim Meyering  <jim@meyering.net>
87483
87484         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87485         zero.
87486         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87487
87488 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87489
87490         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87491         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87492         with `if (! (value < limit)) abort ();', for readability.
87493
87494 2002-11-26  Karl Berry  <karl@gnu.org>
87495
87496         * lib/strdup.c: copy from libc again, with jim's ok.
87497         * lib/.cppi-disable: re-add strdup.c
87498
87499 2002-11-25  Karl Berry  <karl@gnu.org>
87500
87501         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87502         instead of "strtol.c".
87503
87504 2002-11-25  Karl Berry  <karl@gnu.org>
87505
87506         * config/install-sh: update from automake for variable quoting, $0 in
87507         error msgs, etc.
87508
87509         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87510         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87511         entry.
87512
87513 2002-11-25  Jim Meyering  <jim@meyering.net>
87514
87515         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87516
87517 2002-11-24  Karl Berry  <karl@gnu.org>
87518
87519         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87520         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87521
87522 2002-11-24  Jim Meyering  <jim@meyering.net>
87523
87524         Update from coreutils:
87525
87526         * lib/mktime.c: Merge in changes from libc.
87527
87528         Avoid a link-time failure on some Linux systems.
87529         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87530         (otherwise).
87531         (__mon_yday): Declare with the STATIC attribute.
87532         (__mktime_internal): Likewise.
87533         Based on a report from Greg Schafer.
87534
87535 2002-11-23  Jim Meyering  <jim@meyering.net>
87536
87537         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87538         Use `unsigned', not `int', as type of index.
87539
87540         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87541
87542         * lib/fsusage.c: Remove unneeded parentheses around operands of
87543         `defined'.
87544
87545 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87546
87547         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87548         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87549         so that we can be included first.
87550         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87551         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87552         No need to include stddef.h or sys/types.h any more.
87553         Surround local include files with "", not "<>".
87554         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87555         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87556         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87557         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87558         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87559         (ISPRINT): Remove; no longer needed now that we assume C89.
87560
87561         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87562         Preserve errno.
87563
87564         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87565         quotearg_char): Use SIZE_MAX rather than
87566         (size_t) -1 when we are talking about "infinity".
87567
87568         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87569
87570 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87571
87572         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87573         hint that one should use `if (! x) abort ();' rather than `assert
87574         (x);', and anyway it's one less thing to worry about configuring.
87575         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87576         hash_rehash, hash_insert): Use abort rather than assert.
87577
87578 2002-11-22  Bruno Haible  <bruno@clisp.org>
87579
87580         * lib/safe-read.h: Assume C89. Add comments.
87581         (safe_read): Change return type to size_t.
87582         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87583         byte counts > SSIZE_MAX correctly.
87584         * lib/safe-write.h: New file.
87585         * lib/safe-write.c: New file.
87586         * lib/full-read.h: New file.
87587         * lib/full-read.c: New file.
87588         * lib/full-write.h: Assume C89. Add comments.
87589         * lib/full-write.c: Include safe-write.h.
87590         (full_write): Rewritten to use safe_write.
87591         Suggested by Jim Meyering and Paul Eggert.
87592
87593 2002-11-21  Jim Meyering  <jim@meyering.net>
87594
87595         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87596
87597         Merge in changes from the coreutils.
87598
87599         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87600         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87601         <stdint.h>.
87602         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87603         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87604         int.  Work more efficiently if X is the same width as uintmax_t.
87605         Do not compare X to -1, to avoid bogus compiler warning.
87606         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87607         Don't assume that f_frsize and f_bsize are the same type.
87608
87609         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87610         warning on FreeBSD.
87611
87612         * lib/makepath.c (make_path): Restore umask *before* creating the final
87613         component.
87614         (make_path): Minor reformatting.
87615
87616         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87617         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87618         HAVE_MALLOC/HAVE_REALLOC.
87619
87620         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87621         dummy ones.  At least on GNU/Linux systems, `auto' means something
87622         else.
87623         From Michael Stone.
87624
87625 2002-11-21  Bruno Haible  <bruno@clisp.org>
87626
87627         Remove case insensitive option matching.
87628         * lib/argmatch.h (argcasematch): Remove declaration.
87629         (ARGCASEMATCH): Remove macro.
87630         (__xargmatch_internal): Remove case_sensitive argument.
87631         (XARGMATCH): Update.
87632         (XARGCASEMATCH): Remove macro.
87633         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87634         case_sensitive argument.
87635         (argcasematch): Remove function.
87636         (__xargmatch_internal): Remove case_sensitive argument.
87637         (main): Use XARGMATCH instead of XARGCASEMATCH.
87638
87639         * lib/xmalloc.c: Change compile-time error message. Add comment about
87640         required autoconf version.
87641
87642 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87643
87644         Merge argmatch cleanups from Bison.  Assume C89.
87645
87646         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87647         Include stdlib.h, for EXIT_FAILURE.
87648         Always include <string.h>, since we assume C89.
87649         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87650         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87651         Include <stddef.h> instead, since it's all we need for size_t.
87652         (PARAMS): Remove.  All uses removed.
87653         (ARRAY_CARDINALITY): Do not bother to #undef.
87654         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87655         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87656         Remove unnecessary parentheses.
87657         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87658         Insert necessary parentheses.
87659         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87660         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87661
87662 2002-11-19  Bruno Haible  <bruno@clisp.org>
87663
87664         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87665         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87666
87667         * lib/mbswidth.h (PARAMS): Remove macro.
87668         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87669         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87670
87671         * lib/gcd.h (PARAMS): Remove macro.
87672         (gcd): Use ANSI C function declarations.
87673         * lib/gcd.c (gcd): Likewise.
87674
87675 2002-11-15  Bruno Haible  <bruno@clisp.org>
87676
87677         * lib/strcspn.c: Include <stddef.h>.
87678         (strcspn): Use ANSI C function declaration. Change return type to
87679         size_t. Use NULL.
87680         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87681         (strpbrk): Use NULL.
87682         * lib/strpbrk.h (PARAMS): Remove macro.
87683         (strpbrk): Use ANSI C function declaration.
87684         * lib/strstr.c: Don't include <sys/types.h>.
87685         * lib/strstr.h (PARAMS): Remove macro.
87686         (strstr): Use ANSI C function declarations.
87687
87688 2002-11-14  Karl Berry  <karl@gnu.org>
87689
87690         * config/mkinstalldirs: `do' on separate line, instead of
87691         `for var; do'.
87692
87693 2002-11-06  Bruno Haible  <bruno@clisp.org>
87694
87695         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87696         * lib/gcd.c (gcd): Likewise.
87697
87698 2002-11-05  Bruno Haible  <bruno@clisp.org>
87699
87700         * lib/gcd.h: New file, from gettext-0.11.5.
87701         * lib/gcd.c: New file, from gettext-0.11.5.
87702
87703 2002-11-05  Bruno Haible  <bruno@clisp.org>
87704
87705         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87706         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87707         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87708         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87709
87710         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
87711         <libintl.h>.
87712         * lib/makepath.c: Include gettext.h instead of <locale.h> and
87713         <libintl.h>.
87714
87715         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
87716         * lib/human.c: Include gettext.h instead of <libintl.h>.
87717         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
87718         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
87719         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
87720         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
87721         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
87722         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
87723         (textdomain): Remove definition.
87724         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
87725
87726         * lib/long-options.c: Remove include of <libintl.h> and definition of
87727         _.
87728         * lib/same.c: Remove include of <libintl.h> and definition of _.
87729
87730 2002-11-04  Owen Taylor  <otaylor@redhat.com>
87731
87732         * lib/config.charset: A few additions for Solaris.
87733
87734 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87735
87736         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
87737         * lib/localcharset.c (locale_charset): Declare as extern "C".
87738
87739 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87740
87741         * lib/config.charset: msdos in uk_UA uses CP1125.
87742
87743 2002-11-04  Bruno Haible  <bruno@clisp.org>
87744
87745         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
87746         * lib/strcase.h: New file, from GNU gettext-0.11.5.
87747         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
87748         * lib/strstr.h: New file, from GNU gettext-0.11.5.
87749         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
87750
87751 2002-11-04  Bruno Haible  <bruno@clisp.org>
87752
87753         * lib/localcharset.c (locale_charset): Don't return an empty string.
87754
87755 2002-11-04  Bruno Haible  <bruno@clisp.org>
87756
87757         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87758         aliases.
87759
87760 2002-11-04  Bruno Haible  <bruno@clisp.org>
87761
87762         * lib/config.charset: Update for newest glibc. Add canonical names
87763         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87764
87765 2002-11-04  Bruno Haible  <bruno@clisp.org>
87766
87767         * lib/config.charset: Add support for NetBSD.
87768
87769 2002-11-04  Bruno Haible  <bruno@clisp.org>
87770
87771         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
87772
87773 2002-11-01  Bruno Haible  <bruno@clisp.org>
87774
87775         * configure.in: Add AC_CONFIG_AUX_DIR call.
87776         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
87777         test/Makefile.
87778         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87779
87780 2002-09-28  Karl Berry  <karl@gnu.org>
87781
87782         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87783         installed automake until the next release, since changes have been
87784         made.
87785
87786 2002-09-25  Karl Berry  <karl@gnu.org>
87787
87788         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87789         * lib/getopt*: copy from libc/posix.
87790         * lib/gettext.h: copy from gettext.
87791         * lib/.cppi-disable: add strdup.c, gettext.h.
87792
87793 2002-09-25  Karl Berry  <karl@gnu.org>
87794
87795         * config/srclist.txt: enable gettext.h check.
87796         * config/config.{guess,sub}: update from prep.
87797         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87798                 from automake 1.6.3.
87799         See srclist*.
87800
87801 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87802
87803         * regex.c (PATFETCH): Remove the translating fetch.
87804         (PATFETCH_RAW): Rename to PATFETCH.
87805         (set_image_of_range): New fun.
87806         (SET_RANGE_TABLE_WORK_AREA): Use it.
87807         (regex_compile): Don't translate the pattern chars so eagerly.
87808         Only do it when inserting an `exactn' bytecode or when handling
87809         a char-range.
87810         (mutually_exclusive_p): Avoid empty statement.
87811
87812 2002-07-06  Jim Meyering  <meyering@lucent.com>
87813
87814         * m4/README: Don't mention Makefile.am.in.
87815         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87816
87817 2002-07-01  Jim Meyering  <meyering@lucent.com>
87818
87819         * lib/c-stack.c: Include sys/time.h.
87820         From Volker Borchert.
87821
87822 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87823
87824         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87825
87826 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87827
87828         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87829         New macro.  Use it uniformly instead of
87830         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87831         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87832         reported by Vin Shelton.
87833
87834 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87835
87836         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87837         Do not assume SA_SIGINFO behavior.
87838         Bug reported by Jim Meyering on NetBSD 1.5.2.
87839
87840 2002-06-22  Jim Meyering  <meyering@lucent.com>
87841
87842         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87843         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87844
87845         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87846         now that configure.ac uses AC_GNU_SOURCE.
87847         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87848         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87849
87850         Update to latest tools.  Suggestions from Paul Eggert.
87851         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87852         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87853         * m4/fnmatch.m4: Likewise.
87854         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87855         to AC_HEADER_STDBOOL
87856
87857 2002-06-22  Jim Meyering  <meyering@lucent.com>
87858
87859         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87860         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87861
87862 2002-06-22  Jim Meyering  <meyering@lucent.com>
87863
87864         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87865
87866         * lib/exitfail.c, exitfail.h: Likewise.
87867         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87868
87869         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87870         of fnmatch.h.
87871         (EXTRA_DIST): Add fnmatch_loop.c.
87872         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87873
87874         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87875         * lib/fnmatch.c: Update from diffutils-2.8.2.
87876         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87877         * lib/fnmatch.h: Remove file.
87878
87879 2002-06-21  Jim Meyering  <meyering@lucent.com>
87880
87881         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87882         * m4/mbrtowc.m4: Likewise.
87883
87884         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87885         * m4/mbswidth.m4: Reflect name change:
87886         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87887         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87888
87889         * m4/lib-link.m4: Update from gettext-0.11.2.
87890         * m4/gettext.m4: Likewise.
87891
87892         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87893         From Alfred M. Szmidt.
87894
87895 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87896
87897         * lib/file-type.h: Report an error if neither S_ISREG nor
87898         S_IFREG is defined, instead of using a test specific to glibc
87899         2.2.  This should be safe, since POSIX requires S_ISREG and
87900         Unix Version 7 had S_IFREG.  We don't need to check for
87901         <sys/types.h> since we don't use any symbols that it defines.
87902
87903 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87904
87905         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87906         $@-t, so that each temporary file name is unique and valid in the first
87907         8 characters, for operation under DOS.
87908
87909 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87910
87911         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87912
87913 2002-06-15  Jim Meyering  <meyering@lucent.com>
87914
87915         Work even with DJGPP 2.03, which lacks support for symlinks.
87916         From Richard Dawe.
87917         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87918         is defined.
87919         * lib/lchown.c (S_ISLNK): Likewise.
87920
87921 2002-06-15  Jim Meyering  <meyering@lucent.com>
87922
87923         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87924         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87925         have been included before this file.
87926
87927 2002-06-14  Jim Meyering  <meyering@lucent.com>
87928
87929         * lib/file-type.h: Use the version from diffutils-2.8.2.
87930         * lib/file-type.c: Likewise.
87931
87932 2002-06-07  Jim Meyering  <meyering@lucent.com>
87933
87934         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87935         They're needed at least for NetBSD 1.5.2.
87936         ($statxfs_includes): Include those same headers.
87937         ($statxfs_includes): Include sys/vfs.h if available.
87938         ($statxfs_includes): Likewise for sys/statvfs.h.
87939         Check for the following members in both structs statfs and statvfs:
87940         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87941
87942 2002-06-01  Jim Meyering  <meyering@lucent.com>
87943
87944         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87945         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87946
87947 2002-05-28  Jim Meyering  <meyering@lucent.com>
87948
87949         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87950         Reported by Volker Borchert.
87951
87952 2002-05-27  Jim Meyering  <meyering@lucent.com>
87953
87954         Fix a problem seen only on nonconforming systems whereby ls.c's
87955         use of localtime, and then of gettimeofday would cause trouble:
87956         the localtime call used to initialize rpl_gettimeofday's save
87957         mechanism would clobber ls's current local time information so
87958         that in any long listing the first file would always be listed
87959         with date 1970-01-01.  Analysis by Volker Borchert.
87960
87961         * lib/gettimeofday.c (localtime): Undefine.
87962         (rpl_localtime): New function.
87963
87964 2002-05-27  Jim Meyering  <meyering@lucent.com>
87965
87966         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87967         localtime.
87968
87969         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87970         use the replacement function; it wouldn't resolve at link time.
87971         Reported by Volker Borchert.
87972
87973 2002-05-22  Jim Meyering  <meyering@lucent.com>
87974
87975         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87976         file-type.h.
87977         * lib/file-type.h: New file.
87978         * lib/file-type.c (file_type): New file/function.  Extracted from
87979         diffutils.
87980
87981 2002-04-30  Jim Meyering  <meyering@lucent.com>
87982
87983         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87984
87985 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87986
87987         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87988
87989 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87990
87991         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87992         Do not check for alloca.h (no longer used) or stdbool.h (was never
87993         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87994
87995 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87996
87997         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87998
87999 2002-04-29  Jim Meyering  <meyering@lucent.com>
88000
88001         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88002         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88003         Use AC_FUNC_STRNLEN here instead.
88004
88005         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88006         With autoconf-2.53a, it's part of AC_PROG_CC.
88007
88008 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88009
88010         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88011         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88012
88013 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88014
88015         * lib/sig2str.h, lib/sig2str.c: New files.
88016         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88017
88018 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88019
88020         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88021         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88022         of 127, since 64 is the largest conceivable number for ancient
88023         nonstandard hosts.
88024         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88025
88026 2002-04-28  Jim Meyering  <meyering@lucent.com>
88027
88028         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88029
88030 2002-04-24  Jim Meyering  <meyering@lucent.com>
88031
88032         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88033         (jm_PREREQ): Use it.
88034
88035         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88036         mach/mach.h fcntl.h.
88037         Check for this function: setlocale.
88038
88039 2002-04-24  Jim Meyering  <meyering@lucent.com>
88040
88041         * lib/gettext.h: New file, from Gettext.
88042         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88043         (libfetish_a_SOURCES): Add gettext.h.
88044
88045 2002-04-16  Jim Meyering  <meyering@lucent.com>
88046
88047         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88048         ut_pid, ut_id, ut_exit.
88049
88050 2002-04-16  Jim Meyering  <meyering@lucent.com>
88051
88052         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88053         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88054         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88055
88056 2002-04-12  Jim Meyering  <meyering@lucent.com>
88057
88058         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88059         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88060         existence of the getmntinfo function.  Needed for Darwin 5.3.
88061
88062         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88063         This is necessary at least on Darwin 5.3.
88064
88065         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88066         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88067         strnlen.o in the library, and that makes some versions of ranlib
88068         object.
88069
88070 2002-04-12  Jim Meyering  <meyering@lucent.com>
88071
88072         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88073
88074 2002-04-09  Jim Meyering  <meyering@lucent.com>
88075
88076         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88077         to be more precise.  Rather than saying we're checking whether the
88078         function `works', say what we're testing.
88079         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88080         Reported by Bruno Haible.
88081
88082 2002-03-10  Jim Meyering  <meyering@lucent.com>
88083
88084         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88085         Suggestion from Santiago Vila.
88086
88087 2002-03-08  Jim Meyering  <meyering@lucent.com>
88088
88089         * lib/rename.c: Mention that this wrapper is needed also on
88090         mips-dec-ultrix4.4 systems.
88091
88092 2002-03-02  Jim Meyering  <meyering@lucent.com>
88093
88094         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88095         not HAVE_CLOCK_SETTIME.
88096
88097 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88098
88099         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88100         Check for clock_settime.
88101
88102 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88103
88104         * lib/nanosleep.h: Rename to....
88105         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88106
88107         * lib/gettime.c: New file.
88108         * lib/settime.c: New file.
88109         * lib/stime.c: Remove.
88110
88111         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88112         timespec.h.  Remove nanosleep.h.
88113
88114 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88115
88116         * m4/acl.m4: New file.
88117         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88118         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88119
88120 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88121
88122         * lib/acl.c, lib/acl.h: New files.
88123         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88124
88125 2002-02-24  Jim Meyering  <meyering@lucent.com>
88126
88127         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88128         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88129         cause trouble.  Reported by Nelson Beebe.
88130
88131 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88132
88133         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88134         compilers that don't know that xalloc_die never returns.
88135
88136 2002-02-20  Jim Meyering  <meyering@lucent.com>
88137
88138         * lib/getdate.c: Regenerate using bison-1.33.
88139
88140 2002-02-17  Jim Meyering  <meyering@lucent.com>
88141
88142         * config/config.guess (main): Don't use `head -1'; it's no longer
88143         portable. Use `sed 1q' instead.
88144
88145 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88146
88147         * m4/codeset.m4: Upgrade to gettext-0.11.
88148         * m4/gettext.m4: Upgrade to gettext-0.11.
88149         * m4/glibc21.m4: Upgrade to gettext-0.11.
88150         * m4/iconv.m4: Upgrade to gettext-0.11.
88151         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88152         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88153         * m4/lib-ld.m4: New file, from gettext-0.11.
88154         * m4/lib-link.m4: New file, from gettext-0.11.
88155         * m4/lib-prefix.m4: New file, from gettext-0.11.
88156         * m4/progtest.m4: Upgrade to gettext-0.11.
88157
88158 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88159
88160         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88161         (jm_PREREQ): Use it.
88162
88163 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88164
88165         * lib/posixver.c, lib/posixver.h: New files.
88166         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88167
88168 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88169             Bruno Haible  <bruno@clisp.org>
88170
88171         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88172         (fwrite_success_callback): New declaration.
88173         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88174         print_unicode_char. Call failure callback instead of error.
88175         (fwrite_success_callback): New function.
88176         (exit_failure_callback): New function.
88177         (fallback_failure_callback): New function.
88178         (print_unicode_char): Call unicode_to_mb.
88179
88180 2002-01-26  Jim Meyering  <meyering@lucent.com>
88181
88182         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88183         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88184
88185 2002-01-26  Jim Meyering  <meyering@lucent.com>
88186
88187         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88188
88189 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88190
88191         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88192
88193 2002-01-22  Jim Meyering  <meyering@lucent.com>
88194
88195         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88196         Otherwise, some versions of automake would omit the rule that makes
88197         Makefile from Makefile.in.
88198
88199 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88200
88201         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88202         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88203         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88204         (memcoll): Set errno to zero if there is no error.
88205
88206         * lib/quotearg.c (quotearg_buffer_restyled):
88207         Fix bug with quoting buffers containing NUL when backslashing escapes.
88208         This bug was exposed by the other changes in this patch.
88209         (quotearg_n_options): New arg ARGSIZE.
88210         All callers changed.
88211         (quoting_options_from_style): New function.
88212         (quotearg_n_style): Use it.
88213         (quotearg_n_style_mem): New function.
88214
88215         * lib/quotearg.h (quotearg_n_style_mem): New function.
88216
88217 2002-01-19  Jim Meyering  <meyering@lucent.com>
88218
88219         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88220         Remove useless quotes: DF_PROG="df".
88221         * m4/strnlen.m4: New file.
88222
88223 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88224
88225         * lib/backupfile.c (ISDIGIT): Comment fix.
88226         * lib/getdate.y (ISDIGIT): Likewise.
88227         * lib/posixtm.c (ISDIGIT, year): Likewise.
88228         * lib/strverscmp.c (ISDIGIT): Likewise.
88229         * lib/userspec.c (ISDIGIT): Likewise.
88230
88231 2002-01-16  Jim Meyering  <meyering@lucent.com>
88232
88233         * lib/getdate.y: Add three semicolons, each just before a closing
88234         brace. Bison (as of version 1.31) no longer papers over that mistake.
88235
88236 2002-01-05  Jim Meyering  <meyering@lucent.com>
88237
88238         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88239
88240 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88241
88242         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88243         not silently exit merely because the output buffer happens to
88244         have nothing pending.
88245
88246 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88247
88248         See the big note in ../ChangeLog.
88249         * lib/human.c (suffixes): Prefer K to k for 1024.
88250         (generate_suffix_backwards): New function.
88251         (human_readable_inexact): Use it.
88252         * lib/xstrtol.c (__xstrtol): If there is no number but there
88253         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88254         Accept 'K' as well as 'k'.
88255
88256 2001-12-15  Jim Meyering  <meyering@lucent.com>
88257
88258         * lib/regex.h (__restrict_arr): Update from libc.
88259
88260         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88261         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88262         (STREQ): Define.
88263
88264 2001-12-14  Jim Meyering  <meyering@lucent.com>
88265
88266         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88267         Suggestion from Bruno Haible.
88268
88269 2001-12-10  Jim Meyering  <meyering@lucent.com>
88270
88271         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88272         xrealloc, Instead, include "xalloc.h".
88273         (initbuffer): Don't cast xmalloc return value to char*.
88274         (readline): Reword comment.
88275         Don't cast xrealloc return value to char*
88276         Return NULL, not 0.
88277
88278 2001-12-09  Jim Meyering  <meyering@lucent.com>
88279
88280         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88281         about `signed and unsigned type in conditional expression'.
88282         * lib/posixtm.c (posix_time_parse): Likewise.
88283
88284         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88285
88286         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88287         to avoid a pedantic warning.
88288
88289         * lib/getstr.c: Don't include assert.h.
88290         (getstr): Remove warning-evoking assertions.
88291         Return -1 if offset parameter is out of bounds.
88292         Change the type of a local from int to size_t.
88293
88294         * lib/strftime.c (my_strftime_localtime_r): Include this function
88295         definition in the `#if ! HAVE_TM_GMTOFF' block.
88296
88297         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88298         Include xalloc.h instead.
88299
88300 2001-12-02  Jim Meyering  <meyering@lucent.com>
88301
88302         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88303         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88304         included.
88305
88306         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88307         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88308
88309 2001-11-30  Akim Demaille  <akim@epita.fr>
88310
88311         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88312         before being defined.
88313
88314 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88315
88316         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88317         First arg is int, not unsigned.
88318         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88319         (SIZE_MAX, UINT_MAX): New macros.
88320         (quotearg_n_options): Abort if N is negative.
88321         Avoid overflow check on hosts where size_t is 64 bits and int
88322         is 32 bits, as overflow is impossible there.
88323         Fix off-by-one typo that caused unnecessary reallocation.
88324
88325 2001-11-27  Jim Meyering  <meyering@lucent.com>
88326
88327         * lib/tempname.c: Merge with version from libc.
88328         * lib/regex.c: Likewise.
88329
88330         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88331         systems for which STDC_HEADERS is 0, it was not included, resulting in
88332         a warning about an integer-to-pointer conversion problem with getenv.
88333         Reported by Volker Borchert.
88334
88335 2001-11-26  Jim Meyering  <meyering@lucent.com>
88336
88337         * lib/gtod.h: Remove file.
88338         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88339         * lib/gettimeofday.c: Don't include gtod.h.
88340         (GTOD_init): Remove function.
88341         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88342         Suggestion from Volker Borchert.
88343
88344 2001-11-23  Jim Meyering  <meyering@lucent.com>
88345
88346         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88347         it.
88348         * lib/hash.c (struct hash_table): Define it here instead.
88349
88350 2001-11-22  Jim Meyering  <meyering@lucent.com>
88351
88352         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88353
88354 2001-11-20  Jim Meyering  <meyering@lucent.com>
88355
88356         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88357         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88358
88359 2001-11-19  Jim Meyering  <meyering@lucent.com>
88360
88361         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88362         directory.  Use "conftestXXXXXX" as the template.
88363         Suggestion from Paul Eggert.
88364
88365         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88366         immediately, so the test doesn't mistakenly hit the max-open-files
88367         limit.
88368
88369 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88370
88371         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88372         (TEMPORARIES): New macro.
88373         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88374         removes an artificial limitation (e.g. HP-UX 10.20, where
88375         TMP_MAX is 17576).
88376
88377 2001-11-18  Jim Meyering  <meyering@lucent.com>
88378
88379         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88380
88381 2001-11-18  Jim Meyering  <meyering@lucent.com>
88382
88383         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88384         on SunOS 4.
88385
88386         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88387         files will be created before anything else.
88388
88389 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88390
88391         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88392         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88393
88394 2001-11-17  Jim Meyering  <meyering@lucent.com>
88395
88396         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88397         Prompted by a report from Bob Proulx.
88398
88399         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88400         Instead, require UTILS_FUNC_MKSTEMP.
88401
88402 2001-11-17  Jim Meyering  <meyering@lucent.com>
88403
88404         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88405         Now, that's done as part of AC_FUNC_STRTOD.
88406
88407 2001-11-17  Jim Meyering  <meyering@lucent.com>
88408
88409         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88410         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88411         rather than group writable.  Patch by Juan F. Codagnone.
88412
88413         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88414         xrealloc, Instead, include "xalloc.h".
88415
88416         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88417         Remove explicit declarations of xmalloc, xrealloc,
88418         and xstrdup.  Instead, include "xalloc.h".
88419
88420         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88421         unlocked-io.h.
88422         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88423         Likewise.
88424         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88425
88426         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88427         Reported by Padraig Brady.
88428
88429         * lib/mkstemp.c: #undef mkstemp.
88430         Include config.h.
88431         (rpl_mkstemp): Rename from mkstemp.
88432         Protoize.
88433
88434 2001-11-16  Jim Meyering  <meyering@lucent.com>
88435
88436         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88437         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88438         determine the amount of total physical memory, use pstat_getstatic.
88439         HPUX-11 doesn't define _SC_PHYS_PAGES.
88440         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88441         If sysconf couldn't be used to determine the amount of available
88442         physical memory, use both pstat_getstatic and pstat_getdynamic.
88443         Based on a patch from Bob Proulx.
88444
88445 2001-11-10  Jim Meyering  <meyering@lucent.com>
88446
88447         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88448         (jm_PREREQ): Use it.
88449
88450 2001-11-09  Jim Meyering  <meyering@lucent.com>
88451
88452         * m4/jm-macros.m4: Require autoconf-2.52f.
88453         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88454         Use these AC_-prefixed names, not the AM_-prefixed ones.
88455
88456         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88457
88458 2001-11-05  Jim Meyering  <meyering@lucent.com>
88459
88460         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88461
88462 2001-11-04  Jim Meyering  <meyering@lucent.com>
88463
88464         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88465         $DEFS.
88466
88467 2001-11-03  Jim Meyering  <meyering@lucent.com>
88468
88469         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88470         of AC_DEFUN.
88471
88472         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88473         know the name of the variable in the macro definition.
88474
88475 2001-11-03  Jim Meyering  <meyering@lucent.com>
88476
88477         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88478         in argmatch_to_argument call.
88479
88480         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88481         argument.
88482
88483         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88484         e.g., a fault due to an attempt to free a NULL pointer.
88485
88486 2001-11-01  Jim Meyering  <meyering@lucent.com>
88487
88488         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88489         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88490
88491 2001-11-01  Jim Meyering  <meyering@lucent.com>
88492
88493         * lib/dirfd.c, lib/dirfd.h: New files.
88494         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88495
88496         * lib/hash.c (hash_print) [TESTING]: Clean up.
88497
88498 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88499
88500         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88501         to avoid a warning if -Wall.
88502
88503 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88504
88505         * README: New file
88506         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88507         (per RMS's instructions, this is now the canonical source)
88508         * lgpl/, gpl/: New directories.
88509
88510 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88511
88512         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88513
88514 2001-10-21  Jim Meyering  <meyering@lucent.com>
88515
88516         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88517         this code would end up calling gettext even in packages built
88518         with --disable-nls.
88519         * lib/getopt.c (_): Likewise.
88520         * lib/regex.c (_): Likewise.
88521
88522 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88523
88524         * m4/error.m4 (jm_PREREQ_ERROR):
88525         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88526         AC_FUNC_STRERROR_R does that.
88527         Check for strerror declaration.
88528
88529         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88530         are supposed to have them these days.
88531         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88532         Merge changes from latest Autoconf CVS.
88533         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88534         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88535         POSIX decided to standardize on the int flavor of strerror_r.
88536
88537 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88538
88539         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88540         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88541         Use strerror_r that is only a macro, even if it is not a function.
88542         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88543         (private_strerror): Use prototypes, not old-style function definition.
88544         (print_errno_message): New function.
88545         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88546         char*-flavored one.
88547         (error_tail, error, error_at_line): Use it.
88548
88549 2001-10-11  Jim Meyering  <meyering@lucent.com>
88550
88551         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88552         and quote_n (1, ... to avoid clobbering a buffer.
88553
88554 2001-10-05  Jim Meyering  <meyering@lucent.com>
88555
88556         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88557         hash-pjw.h.
88558         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88559         * lib/hash-pjw.h: New file.
88560
88561 2001-09-30  Jim Meyering  <meyering@lucent.com>
88562
88563         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88564         `struct fsstat' has the `f_fstypename' member.
88565         Use that to define FS_TYPE, which is now used to make
88566         the getfsstat link test tighter.
88567
88568 2001-09-30  Jim Meyering  <meyering@lucent.com>
88569
88570         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88571         Include <sys/ucred.h>, for Apple Darwin.
88572         Include sys/mount.h and sys/fs_types.h only if available.
88573         (FS_TYPE): Define.
88574         (read_filesystem_list): Use FS_TYPE.
88575
88576 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88577
88578         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88579         a boolean context.
88580
88581 2001-09-29  Jim Meyering  <meyering@lucent.com>
88582
88583         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88584         [one-argument getmntent function]): Include stdio.h before mntent.h.
88585         SunOS 4.1.x needs it for the declaration of `FILE'.
88586         Patch by Volker Borchert.
88587
88588         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88589         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88590         sys/fs_types.h, and make the link-test for getfsstat guard #include
88591         directives with appropriate #if HAVE_*_H tests so that we can
88592         detect getfsstat on Apple Darwin1.3.7 systems.
88593         Reported by Nelson Beebe.
88594         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88595
88596 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88597
88598         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88599         #defines strtoimax.  Also treat the other strto* functions
88600         like strtoimax.
88601
88602         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88603         Check for strtoul and strtoumax,
88604         as those declarations are made even in the signed case.
88605         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88606         Likewise, for strtol and strtoimax.
88607
88608 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88609
88610         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88611         #defines strtoimax.  Also treat the other strto* functions
88612         like strtoimax.
88613
88614         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88615         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88616         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88617
88618 2001-09-26  Jim Meyering  <meyering@lucent.com>
88619
88620         Most macros in unlocked-io.h had the wrong number of arguments.
88621         * lib/gen-uio: New script.
88622         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88623         * lib/unlocked-io.hin: Remove file.
88624         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88625         rather than trying to embed it here.
88626         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88627         Reported by Padraig Brady.
88628
88629 2001-09-25  Volker Borchert  <bt@teknon.de>
88630
88631         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88632         `result'.
88633
88634 2001-09-24  Jim Meyering  <meyering@lucent.com>
88635
88636         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88637
88638 2001-09-23  Jim Meyering  <meyering@lucent.com>
88639
88640         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88641         instead of the mere test for existence of mntent.h.  The latter
88642         would get a false-positive on AIX 3.4 systems.
88643         In the outer getmntent if-block, don't die if neither of the getmntent
88644         tests succeeds.  Instead, just fall through and continue with the
88645         remaining tests.
88646
88647 2001-09-23  Jim Meyering  <meyering@lucent.com>
88648
88649         * lib/mountlist.c: Remove useless parentheses in #if directives.
88650         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88651         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88652
88653 2001-09-22  Jim Meyering  <meyering@lucent.com>
88654
88655         * m4/gettext.m4: New file.  From gettext.
88656         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88657         * m4/progtest.m4: Likewise
88658         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88659         * m4/glibc21.m4: Likewise.
88660
88661         * m4/libintl.m4: Remove.  No longer used.
88662
88663 2001-09-22  Jim Meyering  <meyering@lucent.com>
88664
88665         * lib/localcharset.c: Update from latest gettext.
88666         * lib/config.charset: Likewise.
88667
88668 2001-09-20  Jim Meyering  <meyering@lucent.com>
88669
88670         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88671         strtoimax.
88672         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88673         strtoumax.
88674
88675 2001-09-20  Jim Meyering  <meyering@lucent.com>
88676
88677         * lib/xstrtol.c (strtoimax): Guard declaration with
88678         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88679         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88680         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88681         (strtoumax): Likewise, for completeness (it wasn't necessary).
88682
88683 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88684
88685         * lib/strtoimax.c (HAVE_LONG_LONG):
88686         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88687         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88688         to work around bug in IBM C compiler.
88689
88690 2001-09-17  Jim Meyering  <meyering@lucent.com>
88691
88692         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88693         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88694         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88695         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88696         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88697         whenever the right hand side need not be expanded by the shell.
88698
88699 2001-09-16  Paul Eggert  <eggert@twinsun.com>
88700
88701         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
88702         library.  It's not correct, as some older glibcs are buggy.
88703         fnmatch wasn't fixed until glibc 2.2.
88704
88705         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
88706         special shell magic here.
88707
88708 2001-09-16  Jim Meyering  <meyering@lucent.com>
88709
88710         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
88711         * m4/jm-macros.m4: Require it.
88712
88713 2001-09-16  Jim Meyering  <meyering@lucent.com>
88714
88715         * lib/mkdir.c: New file.
88716
88717 2001-09-15  Jim Meyering  <meyering@lucent.com>
88718
88719         * m4/jm-macros.m4: Check for help2man.
88720
88721 2001-09-11  Jim Meyering  <meyering@lucent.com>
88722
88723         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
88724         The body, by Paul Eggert, was moved here from configure.in.
88725         * m4/jm-macros.m4: Require UTILS_HOST_OS.
88726
88727 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88728
88729         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
88730         (jm_PREREQ): Use it.
88731
88732 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88733
88734         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
88735         Use ssize_t, not int, to store result of readlink.
88736         Check for ssize_t overflow as well as size_t overflow,
88737         as POSIX says the result of readlink is implementation-defined
88738         when ssize_t overflows.
88739         Remove unnecessary cast to char*.
88740         Use free+malloc instead of realloc, as the storage doesn't need
88741         to be preserved and it's clearer and can be more efficient that way.
88742         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
88743         * lib/xreadlink.h (xreadlink): Update prototype.
88744
88745 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88746
88747         * lib/xgetcwd.c: Revert some of the previous change; intead,
88748         fix the HAVE_GETCWD_NULL code to behave more like the
88749         !HAVE_GETCWD_NULL code used to.
88750
88751         Include "xalloc.h".
88752         (xgetcwd): Do not return NULL when memory is exhausted; instead,
88753         invoke xalloc_die.
88754
88755 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88756
88757         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88758         sys/param.h, as pathmax.h includes them.
88759
88760 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88761
88762         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88763         (jm_PREREQ_XGETCWD): New macro.
88764
88765         * m4/getcwd.m4: New file.
88766
88767 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88768
88769         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
88770         like the HAVE_GETCWD_NULL code.
88771         Include pathmax.h if not HAVE_GETCWD.
88772         Do not include xalloc.h.
88773         (INITIAL_BUFFER_SIZE): New symbol.
88774         Do not use xmalloc / xrealloc, since the caller is responsible for
88775         handling errors.  Preserve errno around `free' during failure.
88776         Do not overrun buffer when using getwd.
88777
88778 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88779
88780         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88781         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88782         getcwd (NULL, 0).
88783
88784 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88785
88786         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88787         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88788         spotted by Jim Meyering.
88789
88790 2001-09-03  Jim Meyering  <meyering@lucent.com>
88791
88792         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88793         failure.
88794
88795 2001-09-02  Jim Meyering  <meyering@lucent.com>
88796
88797         * lib/error.c: Update from GNU libc.
88798
88799 2001-09-01  Jim Meyering  <meyering@lucent.com>
88800
88801         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88802         Used by df.
88803
88804 2001-09-01  Jim Meyering  <meyering@lucent.com>
88805
88806         * lib/xreadlink.c: New file.
88807         * lib/xreadlink.h: New file.
88808         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88809         xreadlink.h.
88810
88811         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88812         doesn't conflict with sparc Solaris 7's definition in
88813         /usr/include/sys/int_types.h.
88814
88815         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88816         files.
88817         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88818         and strncasecmp as r-values.  Unixware didn't have declarations.
88819
88820 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88821
88822         * lib/xstrtol.h: Add copyright notice.
88823         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88824         LONGINT_INVALID_SUFFIX_CHAR.
88825
88826 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88827
88828         * lib/xstrtol.c (strtoimax): New decl.
88829
88830 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88831
88832         * lib/xgetcwd.c: Don't include pathmax.h.
88833         Include stdlib.h and unistd.h if available.
88834         Include xalloc.h.
88835         (xmalloc, xstrdup, free): Remove decls.
88836         (xgetcwd): Don't assume sizes fit in unsigned.
88837         Check for overflow when computing sizes.
88838         Simplify reallocation code.
88839
88840 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88841
88842         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88843         a directory's st_size can have an arbitrary value, so the old
88844         usage could waste an arbitrary amount of memory.  All uses
88845         changed.
88846         * lib/savedir.h: Update prototype.
88847
88848 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88849
88850         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88851
88852         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88853         old strtoimax.c.
88854
88855         Also, make the following further changes to make this file's
88856         configuration more similar to that of strtol.c:
88857         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88858         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88859         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88860         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88861         changed to signed values.
88862
88863         And make the following changes as well:
88864         Fix copyright notice, as 1999 was missing.
88865         (verify): New macro.
88866         (strtoimax): Check sizes at compile-time, not run-time.
88867         Prefer strtol to strtoll if both work.
88868         (main): Remove; it was not that useful and was a pain to maintain.
88869
88870         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88871
88872 2001-08-31  Jim Meyering  <meyering@lucent.com>
88873
88874         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88875         Use an initial, malloc'd, buffer of length 128 rather than
88876         a statically allocated one of length 1024.
88877
88878 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88879
88880         Simplify code, partly by assuming autoconf 2.52 semantics.
88881
88882         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88883
88884         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88885         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88886         All uses removed.
88887         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88888         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88889         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88890         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88891         jm_AC_HEADER_INTTYPES_H.
88892         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88893
88894         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88895
88896         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88897         Quote first arg of AC_DEFUN.
88898         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88899         since they are needed to parse the include file even if we need
88900         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88901         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88902         but with opposite signedness.
88903
88904 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88905
88906         Merge 'exclude' changes from tar 1.13.22.
88907         This fixes one or two unlikely storage allocation overflow bugs,
88908         but doesn't change user-visible behavior otherwise.
88909
88910 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88911
88912         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88913         (jm_PREREQ_EXCLUDE): New macro.
88914
88915 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88916
88917         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88918         tm to be declared.
88919
88920 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88921
88922         * lib/hash.c: Remove '2001' from copyright notice.
88923
88924 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88925
88926         * lib/full-write.h: New file.
88927         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88928         * lib/full-write.c: Correct credits, as cccp.c no longer
88929         exists and anyway it was so heavily changed from the old cccp
88930         code as to be unrecognizable.  Include full-write.h.
88931         (full_write): Return size_t, with short writes meaning failure.
88932         All callers changed.  This fixes a bug with large buffers
88933         on 64-bit hosts.
88934         * lib/utime.c: Include full-write.h.
88935
88936 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88937
88938         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88939         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88940         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88941         Include if available.
88942         (<xalloc.h>): Include
88943         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88944         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88945         collide with FNM macros.
88946         (struct patopts): New struct.
88947         (struct exclude): Use it, as exclude patterns now come with options.
88948         (new_exclude): Support above changes.
88949         (new_exclude, add_exclude_file):
88950         Initial size must now be a power of two to simplify overflow checking.
88951         (free_exclude, fnmatch_no_wildcards): New function.
88952         (excluded_filename): No longer requires options arg, as the options
88953         are determined by add_exclude.  Now returns bool, not int.
88954         (excluded_filename, add_exclude):
88955         Add support for the fancy new exclusion options.
88956         (add_exclude, add_exclude_file): Now takes int options arg.
88957         Check for arithmetic overflow when computing sizes.
88958         (add_exclude_file): xrealloc might modify errno, so don't
88959         realloc until after errno might be used.
88960
88961         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88962         New macros.
88963         (free_exclude): New decl.
88964         (add_exclude, add_exclude_file): Now takes int options arg.
88965         (excluded_filename): No longer requires options arg, as the options
88966         are determined by add_exclude.  Now returns bool, not int.
88967
88968 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88969
88970         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88971
88972 2001-08-27  Jim Meyering  <meyering@lucent.com>
88973
88974         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88975
88976         * lib/version-etc.c (N_): Remove definition.
88977         Revert most of last change.
88978         Instead, simply don't mark the `Copyright...' string for translation.
88979         Based on advice from Paul Eggert.
88980
88981         * lib/strtoxmax.c: Tweak comment.
88982
88983 2001-08-26  Jim Meyering  <meyering@lucent.com>
88984
88985         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88986
88987         * m4/xstrtoimax.m4: New file.
88988         * m4/xstrtoumax.m4: Add comments explaining why we
88989         AC_REPLACE_FUNCS(strtol).
88990
88991 2001-08-26  Jim Meyering  <meyering@lucent.com>
88992
88993         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88994         of copyright with `%s' so translators don't get an untranslated
88995         message in 2002.
88996         (COPYRIGHT_YEAR): Define.
88997         (version_etc): Use fprintf rather than fputs.
88998         Suggestion from Ulrich Drepper.
88999
89000         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89001
89002         * lib/strtoll.c: New file, from GNU libc.
89003         * lib/xstrtoimax.c: New file.
89004
89005         * lib/xstrtol.h: Add xstrtoimax.
89006         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89007         * lib/strtoimax.c: New file.  Likewise, but first define
89008         STRTOUXMAX_SIGNED.
89009
89010         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89011         ...
89012         * lib/strtoxmax.c: ... then renamed to this.
89013
89014 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89015
89016         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89017         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89018         (jm_AC_TYPE_INTMAX_T): New macro.
89019         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89020
89021         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89022
89023         * m4/longlong.m4: Renamed from ulonglong.m4.
89024         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89025         * m4/uintmax_t.m4: Removed.
89026
89027 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89028
89029         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89030         Port to Solaris 8, where 'sed' requires a space after the 'r'
89031         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89032         Redirect output to $tmp just once.
89033
89034 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89035
89036         * lib/addext.c (<errno.h>): Include.
89037         (errno): Declare if not defined.
89038         (addext): Work correctly when pathconf returns -1 and leaves
89039         errno alone because there is no limit.  Also, work even if
89040         pathconf returns a value greater than SIZE_MAX.
89041
89042 2001-08-12  Jim Meyering  <meyering@lucent.com>
89043
89044         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89045         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89046         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89047         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89048         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89049         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89050         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89051         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89052         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89053         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89054         utime.m4, utimes.m4, xstrtoumax.m4:
89055         Quote the first argument in each use of AC_DEFUN.
89056
89057 2001-08-12  Jim Meyering  <meyering@lucent.com>
89058
89059         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89060         Simply `return getcwd (NULL, 0);'.
89061         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89062         Use 1300 as initial value for length, not PATH_MAX.
89063
89064         * lib/pathmax.h: Clean up cpp syntax.
89065
89066 2001-08-12  Jim Meyering  <meyering@lucent.com>
89067
89068         * lib/gettimeofday.c: New file.
89069         * lib/gtod.h: New file.
89070         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89071
89072 2001-08-05  Jim Meyering  <meyering@lucent.com>
89073
89074         * m4/jm-macros.m4: Require autoconf-2.52.
89075
89076 2001-08-04  Jim Meyering  <meyering@lucent.com>
89077
89078         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89079         stmt, to get in sync with glibc.
89080
89081 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89082
89083         The following changes are from gettext 0.10.39 as maintained by
89084         Bruno Haible.
89085
89086         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89087         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89088         with inverted sense.  All uses changed.
89089
89090         * lib/mbswidth.c: Don't include <limits.h>.
89091         Include <stdlib.h> and <string.h> unconditionally.
89092         (iswcntrl, mbsinit, ISCNTRL): New macros.
89093         (mbsnwidth): Use K&R style function declarations.
89094         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89095         can optimize it when MB_CUR_MAX == 1.
89096         The width of control characters is zero, not 1.
89097
89098 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89099
89100         The following changes are from gettext 0.10.39 as maintained by
89101         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89102
89103         * m4/codeset.m4: Upgrade to serial AM1.
89104         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89105         all uses changed.  Quote first arg of AC_DEFUN.
89106         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89107
89108         * m4/iconv.m4: Upgrade to serial AM2.
89109         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89110         Add --with-libconv-prefix.
89111         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89112         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89113         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89114         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89115         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89116
89117         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89118         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89119         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89120         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89121         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89122         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89123         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89124         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89125         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89126
89127         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89128         string.h any more.
89129
89130         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89131         not the default value.
89132
89133         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89134         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89135         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89136         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89137         Also check for iswcntrl, used for wcwidth fallback.
89138         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89139         to Autoconf 2.13.
89140
89141 2001-08-03  Jim Meyering  <meyering@lucent.com>
89142
89143         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89144         as it was in the original.  Reported by Paul Eggert.
89145
89146 2001-07-16  Jim Meyering  <meyering@lucent.com>
89147
89148         * m4/gettimeofday.m4: New file.
89149         Prompted by a report from Bernhard Baehr.
89150
89151 2001-07-15  Jim Meyering  <meyering@lucent.com>
89152
89153         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89154         stuff. Now it's in ../Makefile.cfg.
89155
89156 2001-07-15  Jim Meyering  <meyering@lucent.com>
89157
89158         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89159         (BUILT_SOURCES): Add unlocked-io.h.
89160         (io_functions): Define.
89161         (unlocked-io.h): New rule.
89162         (DISTCLEANFILES): Add unlocked-io.h.
89163         (all-local): Depend on unlocked-io.h, to ensure it is created.
89164
89165         * lib/unlocked-io.hin: New file
89166
89167         * lib/regex.c: Update from glibc.
89168
89169 2001-07-05  Jim Meyering  <meyering@lucent.com>
89170
89171         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89172         recommendation.
89173         (libfetish_a_SOURCES): Put all .h files here instead.
89174         Remove a thus-exposed (better checks in automake) duplicate and
89175         two unnecessary .h files.
89176
89177 2001-07-04  Jim Meyering  <meyering@lucent.com>
89178
89179         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89180         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89181         distcheck failure.
89182
89183 2001-07-02  Jim Meyering  <meyering@lucent.com>
89184
89185         The following changes were prompted by suggestions from Bruno Haible.
89186
89187         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89188         is now generated.
89189         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89190         definition of EXTRA_DIST.
89191         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89192         ensure that the generated file is created/updated whenever the list
89193         of $(unlocked_functions) is changed.
89194         (jm-glibc-io.m4): New rule.
89195         (unlocked-io.h): New rule -- currently unused.
89196
89197 2001-06-24  Jim Meyering  <meyering@lucent.com>
89198
89199         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89200         unmatched right bracket, rather than kludging it with an extra,
89201         falsely-matching quote in a comment.  Patch by Akim Demaille.
89202
89203 2001-06-11  Jim Meyering  <meyering@lucent.com>
89204
89205         * lib/regex.c: Update from GNU libc.
89206
89207 2001-05-27  Jim Meyering  <meyering@lucent.com>
89208
89209         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89210         Check for ut_type in struct utmp.
89211
89212 2001-05-27  Jim Meyering  <meyering@lucent.com>
89213
89214         * lib/readutmp.h (UT_TYPE): Define.
89215
89216 2001-05-24  Jim Meyering  <meyering@lucent.com>
89217
89218         * lib/argmatch.c: Include "quote.h".
89219         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89220         quote function.  Reported by Göran Uddeborg.
89221
89222 2001-05-22  Jim Meyering  <meyering@lucent.com>
89223
89224         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89225         now that we use the package-supplied version unconditionally.
89226         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89227
89228 2001-05-21  Jim Meyering  <meyering@lucent.com>
89229
89230         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89231         shell syntax errors.
89232
89233 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89234
89235         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89236
89237 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89238
89239         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89240         Don't bother to check library strftime, since
89241         we'll be using our own my_strftime function anyway.
89242         Define my_strftime instead of strftime.
89243
89244 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89245
89246         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89247         which is not yet declared.
89248
89249 2001-05-15  Jim Meyering  <meyering@lucent.com>
89250
89251         * m4/regex.m4: Use proper quoting so brackets appear in the test
89252         program.
89253         Reported by, and with help from, Bruno Haible.
89254
89255 2001-05-13  Jim Meyering  <meyering@lucent.com>
89256
89257         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89258         undefined.
89259
89260 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89261
89262         dirname code cleanup.  base_name now behaves more compatibly
89263         with POSIX basename when given file names that have trailing
89264         slashes, and similarly for dir_name.  Add new primitives
89265         base_len and dir_len.  Put the directory-name-related decls
89266         into dirname.h.
89267
89268         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89269         * lib/backupfile.c (base_name): Likewise.
89270         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89271         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89272         * lib/makepath.c (strip_trailing_slashes): Likewise.
89273         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89274         ISSLASH): Likewise.
89275         * lib/rename.c (strip_trailing_slashes): Likewise.
89276         * lib/same.c (base_name): Likewise.
89277         * lib/stripslash.c (ISSLASH): Likewise.
89278
89279         * lib/addext.c: Include <dirname.h> after size_t is defined.
89280         * lib/backupfile.c: Likewise.
89281
89282         * lib/addext.c (addext): Use base_len to trim redundant
89283         trailing slashes instead of doing it ourselves.
89284         But do not trim the last slash if it is not redundant.
89285
89286         * lib/backupfile.c (find_backup_file_name,
89287         max_backup_version): Use base_len instead of rolling it ourselves.
89288         Handle the case of "" and (on DOS) "C:" correctly.
89289
89290         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89291         needed. Include <string.h>, <dirname.h>.
89292         (base_name): Allow file names ending in slashes, other than names
89293         that are all slashes.  In this case, return the basename followed
89294         by the slashes.  This is more general, and can be used in places
89295         where the original base_name purposely had an assertion failure.
89296         (base_len): New function.
89297
89298         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89299         Do not include <assert.h>; no longer needed.
89300         Include xalloc.h.
89301         (memrchr): Remove decl.
89302         (dir_name_r): Remove.
89303         (dir_len): Renamed from dirlen.  All callers changed.
89304         Rewrite in terms of base_name, for simplicity and consistency.
89305         (dir_name): Never return NULL.  All callers changed.
89306         Do not include <stdlib.h> in test program; no longer needed.
89307         return 0; is fine for test program.
89308
89309         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89310         New macros.
89311         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89312
89313         * lib/path-concat.c (path_concat): Use base_len to compute
89314         base length, not strlen; this means we cannot rely on memcpy
89315         to null-terminate.
89316
89317         * lib/same.c (STREQ): Remove.
89318         (same_name): Handle the case where the basename ends in trailing '/'.
89319
89320         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89321         a slash was stripped.  Do not strip the last slash after a
89322         file system prefix.
89323
89324 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89325
89326         * lib/Makefile.am (libfetish_a_SOURCES):
89327         Add strftime.c, since we now compile it on all hosts.
89328
89329         * lib/strftime.c (my_strftime):
89330         Define to nstrftime if emacs, but only if my_strftime is not defined.
89331         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89332         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89333         Add one more extra argument: a nanoseconds value.
89334         All uses changed.
89335         (ns): New macro.
89336         (my_strftime function): Add %N format.
89337         (emacs_strftimeu): Renamed from emacs_strftime,
89338         with extra ut argument.
89339
89340 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89341
89342         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89343
89344 2001-04-21  Jim Meyering  <meyering@lucent.com>
89345
89346         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89347         doesn't interfere.
89348
89349 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89350
89351         * m4/ftruncate.m4: Check for chsize.
89352         Link with ftruncate.o unconditionally if ftruncate is missing.
89353         This was required when cross-compiling to i586-mingw32msvc.
89354
89355 2001-04-08  Jim Meyering  <meyering@lucent.com>
89356
89357         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89358         recomputed; that's necessary when the offset spans a DST transition.
89359         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89360
89361 2001-04-02  Jim Meyering  <meyering@lucent.com>
89362
89363         * lib/regex.h, regex.c: Update from GNU libc.
89364
89365 2001-03-24  Jim Meyering  <meyering@lucent.com>
89366
89367         * m4/jm-macros.m4: Require autoconf-2.49d.
89368
89369 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89370
89371         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89372
89373 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89374
89375         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89376
89377 2001-03-17  Jim Meyering  <meyering@lucent.com>
89378
89379         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89380         now that the version in autoconf is equivalent.
89381         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89382
89383         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89384         Suggestion from Akim Demaille.
89385
89386         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89387         (jm_PREREQ_TEMPNAME): New function.
89388
89389 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89390
89391         * lib/tempname.c (uint64_t): Define to uintmax_t if
89392         not defined, and if UINT64_MAX is not defined.
89393         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89394         Reported by John David Anglin.
89395
89396 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89397
89398         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89399         resolve alias if codeset is empty.
89400         * lib/config.charset (BeOS): Use wildcard syntax.
89401
89402 2001-03-13  Jim Meyering  <meyering@lucent.com>
89403
89404         * lib/path-concat.c (path_concat)
89405         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89406         concatenating e.g., `C:' and `foo'.
89407         From Bruno Haible.
89408
89409 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89410
89411         * lib/localcharset.c (locale_charset): Don't use
89412         setlocale(LC_CTYPE,NULL). Don't return NULL.
89413         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89414
89415 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89416
89417         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89418         support for DOS/DJGPP.
89419
89420 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89421
89422         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89423         lacks mkstemp.  Compile our own tempname.c if we compile our own
89424         mkstemp.c, as mkstemp relies on tempname.
89425
89426 2001-03-01  Jim Meyering  <meyering@lucent.com>
89427
89428         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89429         AH_VERBATIM really does output its argument verbatim.
89430
89431 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89432
89433         * lib/Makefile.am (libfetish_a_SOURCES):
89434         Add dup-safer.c, fopen-safer.c.
89435         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89436
89437         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89438         * lib/unistd-safer.h: New files.
89439
89440 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89441
89442         The mkstemp replacement is taken from glibc 2.2.2, with some
89443         portability fixes for use outside glibc, as follows:
89444
89445         * lib/tempname.c (struct_stat64): New macro.
89446         (direxists, __gen_tempname): Use it.
89447         This avoids a portability problem with Solaris 8.
89448
89449         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89450         (<stddef.h>, <stdint.h>, <string.h>):
89451         Include only if STDC_HEADERS || _LIBC.
89452         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89453         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89454         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89455         (__set_errno): Define this macro if <errno.h> doesn't.
89456         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89457         Define these macros if <stdio.h> doesn't.
89458         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89459         Define these macros if <sys/stat.h>
89460         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89461         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89462         __xstat64): Define if not _LIBC.
89463         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89464         (__gen_tempname): Invoke gettimeofday only if
89465         HAVE_GETTIMEOFDAY || _LIBC;
89466         otherwise, fall back on plain "time".
89467         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89468
89469         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89470
89471         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89472
89473 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89474
89475         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89476
89477 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89478
89479         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89480         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89481         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89482         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89483
89484 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89485
89486         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89487         Remove workaround macros for hosts that have mbrtowc but not
89488         mbstate_t, as we now insist on proper declarations for both
89489         before using mbrtowc.
89490
89491 2001-02-17  Jim Meyering  <meyering@lucent.com>
89492
89493         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89494         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89495         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89496         UnixWare 7.1.1.
89497
89498         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89499         rather than AC_CACHE_VAL.
89500
89501 2001-02-17  Jim Meyering  <meyering@lucent.com>
89502
89503         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89504         around included file name.
89505
89506         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89507
89508         * lib/strftime.c: Update from GNU libc (the only changes were to
89509         comments).
89510
89511 2001-02-17  Jim Meyering  <meyering@lucent.com>
89512
89513         * lib/regex.c: Update from libc.
89514
89515 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89516
89517         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89518         clash.
89519
89520 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89521
89522         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89523         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89524         Reported by Mark Hounschell via Paul Eggert.
89525
89526 2001-02-07  Jim Meyering  <meyering@lucent.com>
89527
89528         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89529
89530 2001-02-05  Jim Meyering  <meyering@lucent.com>
89531
89532         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89533         it includes the patch required for `large file' support with at least
89534         HP-UX's 10.20 /bin/cc.
89535
89536 2001-02-03  Jim Meyering  <meyering@lucent.com>
89537
89538         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89539         AS_IF, now that it works once again (mysteriously).
89540         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89541
89542 2001-01-30  Jim Meyering  <meyering@lucent.com>
89543
89544         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89545         * m4/chown.m4: Rename conftestchown to conftest.chown.
89546         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89547         s/conftestdir2/conftest.d2/.
89548         * m4/utimes.m4: s/conftestdata/conftest.data/
89549         Inspired by Pavel Roskin's change in autoconf.
89550
89551 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89552
89553         * lib/config.charset: Update for FreeBSD 4.2.
89554
89555 2001-01-27  Jim Meyering  <meyering@lucent.com>
89556
89557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89558         a use of AS_IF.
89559         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89560
89561 2001-01-26  Jim Meyering  <meyering@lucent.com>
89562
89563         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89564         quotearg.c includes it.
89565
89566 2001-01-26  Jim Meyering  <meyering@lucent.com>
89567
89568         * lib/quotearg.c: Include stddef.h.
89569         * lib/quote.c: Include stddef.h.
89570         Reported by Axel Kittenberger.
89571
89572         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89573         line in double quotes so that it evokes a better diagnostic.
89574         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89575         Reported by Axel Kittenberger.
89576
89577 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89578
89579         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89580         as if it was a `charset'.
89581
89582 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89583
89584         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89585         has const.
89586
89587 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89588
89589         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89590         to avoid a warning.  Add back 'const' to inptr.
89591
89592 2001-01-20  Jim Meyering  <meyering@lucent.com>
89593
89594         Be sure that headers are checked before used in code compiled
89595         for the type checks.
89596         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89597         In place of that, invoke jm_CHECK_ALL_TYPES.
89598         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89599         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89600         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89601         The check for ssize_t was mistakenly run before the test for unistd.h.
89602
89603         The configure-time check for stdbool.h was missing.
89604         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89605         (jm_PREREQ_HASH): New function.
89606
89607 2001-01-17  Jim Meyering  <meyering@lucent.com>
89608
89609         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89610         for autoconf-2.49c.
89611         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89612
89613 2001-01-16  Jim Meyering  <meyering@lucent.com>
89614
89615         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89616         From Bruno Haible.
89617
89618 2001-01-14  Jim Meyering  <meyering@lucent.com>
89619
89620         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89621         foo and bar.  Create conftestdir/ in the script, not in the C code.
89622         Remove directories in the script, not in the C code.
89623         Remove conftestdir{,2} before trying to create the directory.
89624         Make the entire configure script fail if the mkdir fails.
89625
89626 2001-01-14  Jim Meyering  <meyering@lucent.com>
89627
89628         * lib/rename.c: New file.  From Volker Borchert.
89629         Include stdlib.h, string.h or strings.h, and xalloc.h.
89630         Use strip_trailing_slashes rather than open-coding it.
89631
89632 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89633
89634         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89635
89636 2001-01-03  Jim Meyering  <meyering@lucent.com>
89637
89638         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89639         of local `inptr' to avoid warning with some system declarations of
89640         iconv.
89641
89642 2001-01-02  Volker Borchert  <bt@teknon.de>
89643
89644         * m4/rename.m4: New file.
89645         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89646
89647 2001-01-01  Jim Meyering  <meyering@lucent.com>
89648
89649         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89650         even on systems with utmpx.h.  It's necessary for the declaration of
89651         utmp's ut_user member.  Reported by Andreas Jaeger.
89652
89653         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89654         available. They are required for the declarations of getgrgid and
89655         getpwuid resp.
89656         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89657         Reported by Andreas Jaeger.
89658
89659 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89660
89661         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89662         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89663         so `make install' also works in VPATH builds.
89664
89665 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89666
89667         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89668         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89669         can be used in subdirectories.
89670
89671 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89672
89673         * lib/modechange.c: Do not assume that mode_t uses the
89674         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89675         the other-execute bit of FOO even if S_IXOTH != 1.
89676
89677         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89678         WOTH, XOTH, ALLM): New macros.
89679         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89680          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89681         Use them.
89682         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89683         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89684         (mode_compile):
89685         No need to use uintmax_t; unsigned long is long enough.
89686         Don't bother to get suffix since we don't use it.
89687
89688 2000-12-26  Jim Meyering  <meyering@lucent.com>
89689
89690         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89691         better with autoheader.
89692
89693 2000-12-24  Jim Meyering  <meyering@lucent.com>
89694
89695         * lib/hash.c (is_prime): Return explicit boolean values.
89696         (hash_get_first): Return NULL to appease Irix5.6's 89.
89697         Reported by Nelson Beebe.
89698
89699 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
89700
89701         * lib/localcharset.c (locale_charset): Add support for Win32.
89702
89703 2000-12-18  Paul Eggert  <eggert@twinsun.com>
89704
89705         * lib/physmem.h, lib/physmem.c: New files.
89706
89707         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
89708         (noinst_HEADERS): Add physmem.h.
89709
89710         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
89711         't' for compatibility with Solaris 8 sort.
89712
89713 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
89714
89715         * lib/config.charset: Add support for BeOS.
89716
89717 2000-12-17  Jim Meyering  <meyering@lucent.com>
89718
89719         * m4/dos.m4 (jm_AC_DOS): New file and macro.
89720         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
89721
89722 2000-12-16  Jim Meyering  <meyering@lucent.com>
89723
89724         This bug had a serious impact on chown: `chown N:M FILE' (for integer
89725         N and M) would have treated it like `chown N:N FILE'.
89726
89727         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
89728
89729 2000-12-16  Jim Meyering  <meyering@lucent.com>
89730
89731         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
89732         SHELLS_FILE to a file name that's useful on djgpp systems.
89733         Include stdlib.h.
89734         (ADDITIONAL_DEFAULT_SHELLS): Define.
89735         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
89736         Based mostly on a patch from Prashant TR.
89737
89738 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
89739
89740         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
89741         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
89742         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
89743
89744 2000-12-08  Andreas Schwab  <schwab@suse.de>
89745
89746         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
89747         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
89748
89749 2000-12-07  Jim Meyering  <meyering@lucent.com>
89750
89751         * lib/stripslash.c (ISSLASH): Define.
89752         (strip_trailing_slashes): Use ISSLASH rather than comparing against
89753         `/'.
89754         From Prashant TR.
89755
89756         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89757         (dir_name_r): Declare this function as static.
89758         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89759         manifest itself on a name containing a mix of slashes and
89760         backslashes.
89761         Make this function work with names starting with a DOS-style
89762         drive letter and colon prefix.
89763         (dir_name): Append `.' if necessary.
89764         Based mostly on patches from Prashant TR and Eli Zaretskii.
89765
89766         * lib/dirname.h (dir_name_r): Remove prototype.
89767
89768 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89769
89770         * m4/off_t-format.m4: Remove this file.
89771         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
89772
89773 2000-12-06  Jim Meyering  <meyering@lucent.com>
89774
89775         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
89776         replacement strtoull, we may well need the replacement strtoul, too.
89777         Check for declarations of strtoul and strtoull.
89778         Check for strtol.  Mainly as a cue to cause automake to include
89779         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89780         Check for limits.h -- strtol.c needs it.
89781
89782 2000-12-05  Jim Meyering  <meyering@lucent.com>
89783
89784         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89785
89786 2000-12-04  Jim Meyering  <meyering@lucent.com>
89787
89788         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89789         Also include memory.h, stdlib.h, unistd.h if appropriate.
89790         Reported by Andreas Jaeger (conflicting declaration of malloc).
89791
89792 2000-12-02  Jim Meyering  <meyering@lucent.com>
89793
89794         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89795         * m4/jm-macros.m4 (jm_MACROS): require it.
89796
89797 2000-12-02  Jim Meyering  <meyering@lucent.com>
89798
89799         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89800
89801 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89802
89803         * lib/memrchr.c: Include <config.h> before any system include file.
89804
89805 2000-11-30  Jim Meyering  <meyering@lucent.com>
89806
89807         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89808
89809 2000-11-30  Jim Meyering  <meyering@lucent.com>
89810
89811         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89812
89813 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89814
89815         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89816
89817 2000-11-26  Jim Meyering  <meyering@lucent.com>
89818
89819         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89820
89821 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89822
89823         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89824         size of (size_t) -1; it's not portable.
89825
89826 2000-11-17  Jim Meyering  <meyering@lucent.com>
89827
89828         * lib/strstr.c: Update from GNU libc.
89829
89830 2000-11-17  Akim Demaille  <akim@epita.fr>
89831
89832         * lib/obstack.h: Formatting changes.
89833         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89834         prevent type checking.
89835         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89836         cast the value to (void *): assigning a `foo *' to a `void *'
89837         variable is valid.
89838         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89839
89840 2000-11-16  Jim Meyering  <meyering@lucent.com>
89841
89842         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89843
89844 2000-11-11  Jim Meyering  <meyering@lucent.com>
89845
89846         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89847
89848 2000-11-10  Jim Meyering  <meyering@lucent.com>
89849
89850         * lib/obstack.h: Update from GNU libc.
89851         * lib/obstack.c: Likewise.
89852
89853 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89854
89855         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89856
89857 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89858
89859         * lib/getusershell.c (setusershell): Use rewind rather than
89860         fseek/fseeko, to avoid configuration hassles with fseeko.
89861         Don't bother opening SHELLS_FILE if shellstream is NULL;
89862         it's not necessary.
89863
89864 2000-11-05  Jim Meyering  <meyering@lucent.com>
89865
89866         * lib/makepath.h (make_dir): Declare.
89867         * lib/makepath.c (make_dir): Remove `static' attribute.
89868         Tweak a comment.
89869
89870 2000-11-04  Jim Meyering  <meyering@lucent.com>
89871
89872         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89873
89874 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89875
89876         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89877         last one in a bucket, advance to the next bucket.
89878
89879 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89880
89881         * lib/fnmatch.c: Do not comment out all the code if we are using
89882         the GNU C library, because in some cases we are replacing buggy
89883         code in the GNU C library itself.
89884
89885 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89886
89887         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89888         (regex_compile): Catch bogus \(\1\).
89889
89890 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89891
89892         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89893         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89894         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89895
89896 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89897
89898         * lib/error.h, getline.h, modechange.h:
89899         Remove "2000" from Copyright line, as the file hasn't been
89900         changed this year other than in the copyright notice.
89901
89902         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89903         was changed this year.
89904
89905 2000-10-29  Jim Meyering  <meyering@lucent.com>
89906
89907         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89908         renaming.
89909         * m4/ls-mntd-fs.m4: Likewise
89910
89911 2000-10-29  Jim Meyering  <meyering@lucent.com>
89912
89913         * lib/xstat.in: Fix grammar in comment.
89914
89915 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89916
89917         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89918         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89919         doesn't define __restrict_arr.
89920
89921 2000-10-28  Jim Meyering  <meyering@lucent.com>
89922
89923         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89924         (jm_PREREQ_MEMCHR): New function.
89925
89926 2000-10-28  Jim Meyering  <meyering@lucent.com>
89927
89928         * lib/memchr.c: Update from libc.
89929         Adjust for portability:
89930         [HAVE_STDLIB_H]: Include stdlib.h.
89931         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89932         Undef __memchr, too.
89933         [!weak_alias]: Define __memchr to memchr.
89934
89935         * lib/regex.c: Update from libc.
89936         * lib/regex.h: Likewise.
89937         * lib/getopt1.c: Likewise.
89938         * lib/memcmp.c: Likewise.
89939
89940         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89941         Avoid using fseek, when possible -- it's broken by design.
89942         Patch by Ulrich Drepper.
89943
89944 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89945
89946         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89947         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89948         Giving in to popular pressure to shut up the compiler with casts.
89949
89950 2000-10-26  Jim Meyering  <meyering@lucent.com>
89951
89952         * lib/strftime.c: Update from libc.
89953
89954 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89955
89956         * regex.c: More `unsigned char' -> `re_char' changes.
89957         Also change several `int' into `re_wchar_t'.
89958         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89959         (PUSH_FAILURE_POINTER): Don't cast any more.
89960         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89961         We want GCC to complain, since this piece of code makes
89962         re_match non-reentrant, which *should* be fixed.
89963         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89964         (EXTEND_BUFFER): Use RETALLOC.
89965         (SET_LIST_BIT): Don't cast.
89966         (re_wchar_t): New type.
89967         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89968         that those two functions will always properly return.
89969         (IMMEDIATE_QUIT_CHECK): Cast to void.
89970         (analyse_first): Use recursion rather than an explicit stack.
89971         (re_compile_fastmap): Can't fail anymore.
89972         (re_search_2): Don't check re_compile_fastmap for failure.
89973         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89974         Now also sets the new value (passed in a new argument).
89975         (re_match_2_internal): Use it.
89976         Also, use a new var `reg' of type size_t when looping through regs
89977         rather than reuse the inappropriate `mcnt'.
89978
89979 2000-10-25  Jim Meyering  <meyering@lucent.com>
89980
89981         * lib/obstack.c: Update from libc.
89982
89983 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89984
89985         * regex.c (regex_compile): Change the way of handling a range from
89986         a char less than 256 to a char not less than 256.
89987
89988 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89989
89990         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89991         NT-Emacs only.
89992         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89993         so that re_search functions only quit when callers expect them to.
89994
89995 2000-10-23  Jim Meyering  <meyering@lucent.com>
89996
89997         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89998         wrong.  That set_locale call must not have any side effects.
89999         From Paul Eggert.
90000
90001 2000-10-22  Jim Meyering  <meyering@lucent.com>
90002
90003         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90004         [CYCLIC]: Remove now-unused definition.
90005
90006         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90007         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90008         Suggestion from Ulrich Drepper.
90009
90010 2000-10-21  Jim Meyering  <meyering@lucent.com>
90011
90012         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90013         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90014         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90015
90016 2000-10-21  Jim Meyering  <meyering@lucent.com>
90017
90018         * lib/dirname.c (memrchr): Declare if necessary.
90019         (dir_name): Remove the restriction that there be no
90020         trailing slashes.  Now, this code skips past them, effectively
90021         ignoring them.
90022         [TEST_DIRNAME] (main): New unit tests.
90023
90024         * lib/memrchr.c: New file from GNU libc.
90025         Undef __memrchr, too.
90026         [!weak_alias]: Define __memrchr to memrchr.
90027         Guard weak_alias use with `#ifdef weak_alias'.
90028
90029 2000-10-21  Jim Meyering  <meyering@lucent.com>
90030
90031         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90032         (dir_name): Use dir_name_r.
90033         * lib/dirname.h (dir_name_r): Declare it.
90034
90035 2000-10-17  Jim Meyering  <meyering@lucent.com>
90036
90037         * lib/quote.h (PARAMS): Define and use.
90038         Reported by Akim Demaille.
90039
90040         * lib/getopt.c: Update from libc.
90041
90042 2000-10-16  Jim Meyering  <meyering@lucent.com>
90043
90044         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90045         setlocale.
90046         From Jan Fedak.
90047
90048 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90049
90050         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90051
90052 2000-09-25  Jim Meyering  <meyering@lucent.com>
90053
90054         * lib/md5.h (rol): Define (from GnuPG).
90055
90056         * lib/sha.c: Give credit (GnuPG) where due.
90057         (M): Use rol rather than open-coding it.
90058         Add a FIXME comment.
90059
90060 2000-09-21  Jim Meyering  <meyering@lucent.com>
90061
90062         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90063         Reported by Michael Stone.
90064
90065 2000-09-20  Jim Meyering  <meyering@lucent.com>
90066
90067         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90068         (noinst_HEADERS): Add sha.h.
90069         Based on code from Scott G. Miller and from GnuPG.
90070
90071 2000-09-18  Jim Meyering  <meyering@lucent.com>
90072
90073         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90074         LIBS. Otherwise, everyone ends up linking with -lelf for some
90075         configurations.
90076         Reported by Mike Stone.
90077
90078 2000-09-15  Jim Meyering  <meyering@lucent.com>
90079
90080         * lib/regex.c: Update from libc.
90081
90082 2000-09-10  Jim Meyering  <meyering@lucent.com>
90083
90084         * lib/getopt.c (_getopt_internal): Update from glibc.
90085
90086 2000-09-09  Jim Meyering  <meyering@lucent.com>
90087
90088         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90089         think it should be used as a general replacement for isascii.
90090         * lib/fnmatch.c: Likewise.
90091         * lib/mbswidth.c: Likewise
90092         * lib/regex.c: Likewise.
90093
90094         Don't use atoi.
90095         * lib/userspec.c: Include sys/param.h and limits.h.
90096         Include xstrtol.h.
90097         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90098         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90099         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90100         UID, GID.  Check range.
90101
90102 2000-09-06  Jim Meyering  <meyering@lucent.com>
90103
90104         * lib/getopt.c (_getopt_internal): Update from glibc.
90105
90106 2000-08-30  Jim Meyering  <meyering@lucent.com>
90107
90108         * lib/strftime.c: Merge in changes from GNU libc.
90109
90110 2000-08-26  Jim Meyering  <meyering@lucent.com>
90111
90112         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90113         * m4/fpending.m4: New file.
90114
90115 2000-08-26  Jim Meyering  <meyering@lucent.com>
90116
90117         * lib/closeout.c: Include "__fpending.h".
90118         (close_stdout_status): Return right away if there's nothing to flush.
90119
90120         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90121         * lib/__fpending.c: New file.
90122         * lib/__fpending.h: New file.
90123
90124 2000-08-20  Jim Meyering  <meyering@lucent.com>
90125
90126         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90127         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90128         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90129
90130 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90131
90132         Improve fileutils installation on systems where running
90133         programs (like install) can't be unlinked.
90134         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90135         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90136
90137 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90138
90139         Standardize on "memory exhausted" instead of "Memory exhausted"
90140         or "virtual memory exhausted".
90141         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90142         "virtual memory exhausted".
90143         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90144         our own message.
90145         * lib/userspec.c (parse_user_spec): Likewise.
90146         * lib/bumpalloc.h: comment fix
90147         * lib/same.c, userspec.c: Include xalloc.h.
90148
90149         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90150         not char *const and pointing to a constant array.
90151         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90152         (xrealloc): Comment fix.
90153
90154         * lib/userspec.c (parse_user_spec):
90155         Don't translate a message until just before returning,
90156         to avoid unnecessary translation.
90157
90158 2000-08-07  Jim Meyering  <meyering@lucent.com>
90159
90160         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90161         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90162         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90163         getgroups.c, gethostname.c, getopt.h, group-member.c,
90164         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90165         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90166         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90167         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90168         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90169         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90170         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90171         yesno.c: Back out Copyright date changes for each file with no change
90172         this year.  This eases coordination with other programs using the same
90173         source code modules.  From Paul Eggert.
90174
90175 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90176
90177         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90178         not char, for compatibility with glibc 2.1.3 strftime.c.
90179
90180 2000-08-03  Greg McGary  <greg@mcgary.org>
90181
90182         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90183         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90184         (EXTEND_BUFFER): Use them.
90185
90186 2000-08-01  Jim Meyering  <meyering@lucent.com>
90187
90188         * lib/dirname.c (ISSLASH): Define.
90189         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90190         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90191         both `\' and `/' may be use as path separators.
90192         Based on a patch from Prashant TR.
90193
90194 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90195
90196         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90197         slot vector a constant, since it might get modified.
90198
90199 2000-07-31  Jim Meyering  <meyering@lucent.com>
90200
90201         * lib/xmalloc.c: Use `virtual memory exhausted', not
90202         `Memory exhausted'.
90203         * lib/obstack.c (print_and_abort): Likewise.
90204
90205 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90206
90207         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90208         buffer, so that the caller can always quote one small
90209         component of a "memory exhausted" message in slot 0.
90210         From a suggestion by Jim Meyering.
90211
90212 2000-07-30  Jim Meyering  <meyering@lucent.com>
90213
90214         * lib/makepath.c (make_path): Quote the other instance, too.
90215
90216         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90217         (STATIC_BUF_SIZE): Define.
90218         (quotearg_n_options): Use only statically allocated storage when
90219         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90220         than STATIC_BUF_SIZE.
90221
90222 2000-07-29  Jim Meyering  <meyering@lucent.com>
90223
90224         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90225         * lib/dirname.c (dir_name): Likewise.
90226
90227         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90228         `/'.
90229
90230         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90231         (dir_name): Assert that there are no trailing slashes.
90232
90233 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90234
90235         * lib/mbswidth.h (mbswidth): Add a flags argument.
90236         (mbswidth): New declaration.
90237         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90238         * lib/mbswidth.c (mbswidth): Add a flags argument.
90239         (mbsnwidth): New function.
90240
90241 2000-07-24  Jim Meyering  <meyering@lucent.com>
90242
90243         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90244
90245 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90246
90247         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90248
90249 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90250
90251         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90252         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90253         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90254         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90255         invoke multibyte primitives.
90256
90257 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90258
90259         * lib/quotearg.c:
90260         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90261         so that mbstate_t is always defined.
90262
90263         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90264         be 1 in at least one GCC installation, and this configuration
90265         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90266         performance on hosts that have mbrtowc but have only unibyte
90267         locales, but I assume these hosts are rare.
90268
90269 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90270
90271         * lib/mbswidth.c (_XOPEN_SOURCE):
90272         Don't define; this causes problems on Solaris 7.
90273         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90274
90275 2000-07-23  Jim Meyering  <meyering@lucent.com>
90276
90277         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90278         too: getgrgid, getpwuid, getuid.
90279
90280 2000-07-23  Jim Meyering  <meyering@lucent.com>
90281
90282         * lib/basename.c (base_name): Add an assertion.
90283
90284 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90285
90286         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90287         shadow its mbsinit function.
90288
90289 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90290
90291         * lib/mbswidth.h: New file.
90292         * lib/mbswidth.c: New file.
90293         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90294         (noinst_HEADERS): Add mbswidth.h.
90295
90296 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90297
90298         * lib/config.charset: Add support for FreeBSD. Improve support for
90299         HP-UX and IRIX 6.
90300
90301 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90302
90303         * m4/mbswidth.m4: New file.
90304         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90305
90306 2000-07-15  Jim Meyering  <meyering@lucent.com>
90307
90308         * lib/makepath.c: Include quote.h.
90309         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90310         corresponding argument in a `quote (...)' call.
90311         Give better diagnostics.
90312
90313         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90314         (noinst_HEADERS): Add quote.h.
90315
90316         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90317         from tar's src/misc.c.
90318         * lib/quote.h: New file.  Prototypes for same.
90319
90320 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90321
90322         From a suggestion by Bruno Haible.
90323         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90324         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90325         to decide whether to define the BeOS workaround macro;
90326         this adjusts to the change to AC_MBSTATE_T.
90327
90328 2000-07-14  Jim Meyering  <meyering@lucent.com>
90329
90330         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90331         jm_AC_TYPE_UINTMAX_T.
90332
90333 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90334
90335         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90336
90337         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90338         quotearg_buffer_restyled): Add support for
90339         clocale_quoting_style.  Undo previous change to
90340         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90341         and "{RIGHT QUOTATION MARK}" msgids.
90342
90343 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90344
90345         From a suggestion by Bruno Haible.
90346         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90347         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90348         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90349         and mbstate_t, to a single-part test that simply defines mbstate_t.
90350         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90351         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90352
90353 2000-07-10  Jim Meyering  <meyering@lucent.com>
90354
90355         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90356
90357         * m4/gnu-source.m4: Output to confdefs.h directly.
90358         Suggestion from Akim Demaille.
90359
90360 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90361
90362         The old behavior of quoting `like this' doesn't look good with
90363         newer, ISO-style fonts.  See:
90364         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90365
90366         Instead, quote "like this" by default.  Let the translator
90367         tailor the locale-specific quoting behavior by providing
90368         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90369
90370         * lib/quotearg.c (N_): New macro.
90371         (gettext_default): New function.
90372         (quotearg_buffer_restyled): Use
90373         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90374         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90375
90376 2000-07-09  Jim Meyering  <meyering@lucent.com>
90377
90378         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90379         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90380
90381         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90382         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90383
90384 2000-07-09  Jim Meyering  <meyering@lucent.com>
90385
90386         * lib/Most files: Update copyright dates to include 2000.
90387
90388 2000-07-08  Jim Meyering  <meyering@lucent.com>
90389
90390         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90391         if not defined.
90392         (xgethostname): Remove now-unnecessary #ifdef.
90393         Move declaration of `err' into loop where it's used.
90394
90395 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90396         and Bruno Haible  <haible@clisp.cons.org>
90397
90398         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90399         only if the test for an object-type mbstate_t fails.  This
90400         prevents us from mistakenly reporting that mbstate_t is a
90401         system object type after we "#define mbstate_t int" to work
90402         around its lack.
90403
90404 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90405         and Bruno Haible  <haible@clisp.cons.org>
90406
90407         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90408
90409 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90410
90411         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90412         to strerror_r.
90413         Include <ctype.h> for use of isalpha.
90414
90415 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90416
90417         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90418         by allocating a larger buffer. Test the gethostname return value for
90419         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90420         returns an error and ENAMETOOLONG isn't defined.
90421
90422 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90423
90424         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90425         dimension.
90426
90427 2000-07-04  Jim Meyering  <meyering@lucent.com>
90428
90429         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90430         of the deprecated AC_CHECKING.
90431
90432 2000-07-04  Jim Meyering  <meyering@lucent.com>
90433
90434         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90435         Reported by Bruno Haible.
90436
90437 2000-07-04  Jim Meyering  <meyering@lucent.com>
90438
90439         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90440         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90441         lacks mbrtowc.
90442
90443 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90444
90445         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90446         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90447
90448 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90449         and Bruno Haible  <haible@clisp.cons.org>
90450
90451         * lib/quotearg.c (mbrtowc):
90452         Assign to *pwc, and return 1 only if result is nonzero.
90453         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90454
90455 2000-07-03  Jim Meyering  <meyering@lucent.com>
90456
90457         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90458
90459 2000-07-03  Jim Meyering  <meyering@lucent.com>
90460
90461         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90462         This is necessary to get a definition of e.g., UTMP_FILE on
90463         HP-UX 10.20.
90464         From Bob Proulx.
90465
90466 2000-07-02  Jim Meyering  <meyering@lucent.com>
90467
90468         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90469
90470         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90471         AC_LIBOBJ(function_name).
90472         * m4/chown.m4: Likewise.
90473         * m4/fnmatch.m4: Likewise.
90474         * m4/ftruncate.m4: Likewise.
90475         * m4/getgroups.m4: Likewise.
90476         * m4/getline.m4: Likewise.
90477         * m4/group-member.m4: Likewise.
90478         * m4/jm-macros.m4: Likewise.
90479         * m4/lstat.m4: Likewise.
90480         * m4/malloc.m4: Likewise.
90481         * m4/memcmp.m4: Likewise.
90482         * m4/nanosleep.m4: Likewise.
90483         * m4/putenv.m4: Likewise.
90484         * m4/realloc.m4: Likewise.
90485         * m4/regex.m4: Likewise.
90486         * m4/stat.m4: Likewise.
90487         * m4/strftime.m4: Likewise.
90488
90489 2000-07-02  Jim Meyering  <meyering@lucent.com>
90490
90491         * lib/quotearg.c (mbstate_t): Don't define here.
90492
90493 2000-07-02  Jim Meyering  <meyering@lucent.com>
90494
90495         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90496
90497 2000-07-01  Jim Meyering  <meyering@lucent.com>
90498
90499         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90500
90501 2000-07-01  Jim Meyering  <meyering@lucent.com>
90502
90503         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90504         problem.
90505
90506 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90507
90508         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90509         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90510
90511 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90512
90513         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90514         per change in ../m4/ls-mntd-fs.m4.
90515         (read_filesystem_list): Ignore symbolic links.
90516
90517 2000-06-29  Jim Meyering  <meyering@lucent.com>
90518
90519         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90520         for declaration of strcmp.
90521
90522         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90523
90524         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90525         Avoid warning by casting result to `char *' to remove `const'.
90526
90527 2000-06-28  Jim Meyering  <meyering@lucent.com>
90528
90529         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90530         included by quotearg.c, for which we perform this test.  From
90531         Bruno Haible.
90532
90533 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90534
90535         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90536         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90537         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90538
90539 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90540
90541         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90542
90543 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90544
90545         savedir now sets errno on failure and invokes xmalloc to get memory.
90546         Fix a couple of other minor bugs while we're at it.
90547
90548         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90549         (NAMLEN): Remove macro.
90550         (malloc, realloc): Remove decls.
90551         (stpcpy): Likewise.
90552         ("xalloc.h"): Include.
90553         (NAME_SIZE_DEFAULT): New macro.
90554         (savedir): Use xmalloc / xrealloc to allocate memory.
90555         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90556         Skip "" directory entries.
90557         Use strlen to calculate directory entry length, since the old method
90558         is rarely used these days and isn't worth supporting.
90559         Don't use a pointer after freeing it.
90560         Check for integer overflow when calculating allocation size.
90561         Use memcpy to copy entries, instead of stpcpy.
90562         Set errno properly when returning NULL.
90563         Check for readdir error.
90564
90565 2000-06-26  Jim Meyering  <meyering@lucent.com>
90566
90567         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90568
90569 2000-06-25  Jim Meyering  <meyering@lucent.com>
90570
90571         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90572         Linux header bug when _XOPEN_SOURCE is defined to 500.
90573
90574 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90575
90576         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90577         deficiency.
90578
90579 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90580
90581         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90582         Include xalloc.h.
90583         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90584
90585 2000-06-24  Jim Meyering  <meyering@lucent.com>
90586
90587         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90588         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90589         for which strerror does return char*, but which lacks a conveniently
90590         accessible declaration of the function.  If the compile-test says
90591         strerror_r doesn't work, then resort to a `run'-test that works on
90592         BeOS and segfaults on DEC Unix.
90593
90594 2000-06-24  Jim Meyering  <meyering@lucent.com>
90595
90596         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90597
90598 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90599
90600         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90601         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90602
90603 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90604
90605         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90606         (mbrtowc, mbstate_t): Define substitutes if
90607         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90608         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90609         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90610
90611 2000-06-23  Jim Meyering  <meyering@lucent.com>
90612
90613         * m4/afs.m4: Add missing AC_MSG_RESULT.
90614         Reported by Bruno Haible.
90615
90616         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90617         Suggestion from Bruno Haible.
90618
90619 2000-06-23  Jim Meyering  <meyering@lucent.com>
90620
90621         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90622
90623 2000-06-21  Jim Meyering  <meyering@lucent.com>
90624
90625         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90626
90627 2000-06-21  Jim Meyering  <meyering@lucent.com>
90628
90629         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90630         (noinst_HEADERS): Add getstr.h.
90631
90632         * lib/getline.c (getstr): Move into a separate file.
90633         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90634         the following changes: new parameter, delim2; both delim[12]
90635         parameters have type `int', not `char'.  The latter would lose
90636         with 8-bit delimiters.
90637         * lib/getstr.h: New file.
90638
90639 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90640
90641         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90642         than 1024, return a memory chunk of least possible size, instead
90643         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90644         Use free/xmalloc instead of xrealloc to avoid copying for very long
90645         paths.
90646
90647 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90648
90649         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90650         the empty string.
90651
90652 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90653
90654         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90655         address, not strdup.  Include <stdlib.h> and don't declare free().
90656
90657 2000-06-19  Jim Meyering  <meyering@lucent.com>
90658
90659         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90660
90661 2000-06-18  Jim Meyering  <meyering@lucent.com>
90662
90663         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90664
90665         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90666         `checking whether...' message to be consistent with that of the
90667         lstat test.
90668
90669 2000-06-18  Jim Meyering  <meyering@lucent.com>
90670
90671         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90672         Besides, these days every porting target provides a mkdir function.
90673
90674         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90675         needed. (this snippet comes from src/system.h).
90676
90677 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90678
90679         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90680
90681 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90682
90683         * lib/human.c (adjust_value): New function.
90684         (human_readable_inexact): Apply rounding style even when
90685         printing approximate values.
90686
90687 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90688
90689         * lib/human.c (human_readable_inexact): Allow an input block
90690         size that is not a multiple of the output block size, and vice versa.
90691         Reported by Piergiorgio Sartor.
90692
90693 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90694
90695         * lib/getdate.y (get_date): Apply relative times after time
90696         zone indicator, not before.  Reported by Todd A. Jacobs.
90697
90698 2000-06-13  Jim Meyering  <meyering@lucent.com>
90699
90700         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
90701
90702         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
90703
90704 2000-06-12  Paul Eggert  <eggert@twinsun.com>
90705
90706         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
90707
90708 2000-06-12  Jim Meyering  <meyering@lucent.com>
90709
90710         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
90711         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
90712         optional argument.
90713         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
90714         the optional argument, `lib'.
90715
90716 2000-06-08  Jim Meyering  <meyering@lucent.com>
90717
90718         * m4/largefile.m4: Remove file (now that it's part of autoconf).
90719
90720 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90721
90722         Rewrite largefile configuration so that we don't need to run
90723         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
90724         AC_CANONICAL_HOST in configure.in -- jmm]
90725
90726         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
90727         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
90728         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
90729         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
90730         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
90731         All uses changed.
90732         Instead of inspecting the output of getconf, try to compile the
90733         test program without and with the macro definition.
90734         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
90735         for getconf.  Instead, check for the needed flags by compiling
90736         test programs.
90737
90738 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90739
90740         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
90741
90742 2000-06-04  Jim Meyering  <meyering@lucent.com>
90743
90744         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
90745         SunOS 4.1.4 for which gid_t is an unsigned type.
90746
90747 2000-06-03  Jim Meyering  <meyering@lucent.com>
90748
90749         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
90750         now that autoconf requires that.
90751
90752         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
90753         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90754         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90755
90756 2000-06-03  Jim Meyering  <meyering@lucent.com>
90757
90758         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90759
90760 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90761
90762         * m4/glibc21.m4: New file.
90763         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90764
90765 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90766
90767         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90768         newer, don't install charset.alias.
90769         * lib/config.charset: Change the Linux/glibc rules so they become empty
90770         on glibc-2.1 or newer.
90771
90772 2000-06-02  Jim Meyering  <meyering@lucent.com>
90773
90774         * lib/mountlist.c: Back out last change.  Instead, do this...
90775         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
90776         me_dummy member using the same `ignore'-testing code.
90777         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90778         fs_type strings.
90779         From Mark D. Roth.
90780
90781 2000-05-29  Jim Meyering  <meyering@lucent.com>
90782
90783         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90784         mounts with the `ignore' attribute.  Based on a patch from
90785         Mark D. Roth.
90786
90787 2000-05-28  Jim Meyering  <meyering@lucent.com>
90788
90789         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90790         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90791         * m4/stat.m4: Likewise.
90792         * m4/lstat.m4: Likewise.
90793         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90794
90795         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90796         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90797
90798 2000-05-26  Jim Meyering  <meyering@lucent.com>
90799
90800         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90801
90802 2000-05-24  Jim Meyering  <meyering@lucent.com>
90803
90804         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90805         autoconf requires that.
90806         * m4/lib-check.m4: Likewise.
90807         * m4/jm-macros.m4: Likewise.
90808         * m4/strftime.m4: Likewise.
90809
90810         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90811         AC_CHECK_DECLS, now that autoconf requires that.
90812
90813 2000-05-22  Jim Meyering  <meyering@lucent.com>
90814
90815         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90816         * m4/lstat.m4: Likewise.
90817
90818 2000-05-22  Jim Meyering  <meyering@lucent.com>
90819
90820         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90821
90822 2000-05-20  Jim Meyering  <meyering@lucent.com>
90823
90824         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90825         (jm_PREREQ): Use it.
90826
90827 2000-05-18  Jim Meyering  <meyering@lucent.com>
90828
90829         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90830         back, too, since it may have been modified by allocate_entry.
90831         (hash_delete): Rewrite to use neither the assignment operator
90832         nor the comma operator in an if-expression.
90833
90834 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90835
90836         * lib/closeout.c:
90837         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90838         Remove; no longer needed.
90839         "quotearg.h": Add include.
90840         (file_name): Do not bother to explicitly initialize to NULL; it's less
90841         efficient on some hosts.
90842         (close_stdout_status): Remove test as to whether stdout was already
90843         closed; it breaks for the case "echo x | sort >&-".
90844         Quote file name colons.
90845         Do not assume that _("write error") lacks format strings.
90846
90847 2000-05-15  Jim Meyering  <meyering@lucent.com>
90848
90849         * lib/version-etc.c (version_etc_copyright): Update the copyright
90850         string used in all --version output.
90851
90852 2000-05-14  Jim Meyering  <meyering@lucent.com>
90853
90854         * lib/closeout.c (close_stdout_set_file_name): New function.
90855         (close_stdout_status): Use new file-scoped global.
90856         Return right away if fstat says the stdout file descriptor is invalid.
90857         * lib/closeout.h (close_stdout_set_file_name): Declare.
90858
90859 2000-05-10  Jim Meyering  <meyering@lucent.com>
90860
90861         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90862         (close_stdout_set_status): New function.
90863         * lib/closeout.h (close_stdout_set_status): Declare.
90864
90865 2000-05-09  Jim Meyering  <meyering@lucent.com>
90866
90867         * m4/gettext.m4: Rename this...
90868         * m4/libintl.m4: ...to this.
90869
90870 2000-05-08  Jim Meyering  <meyering@lucent.com>
90871
90872         * lib/long-options.c: Don't include closeout.h.
90873         (parse_long_options): Don't call close_stdout for --version.
90874
90875 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90876
90877         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90878         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90879         2.1.3 bug.  This avoids a clash when files like regex.c define
90880         _GNU_SOURCE.
90881
90882 2000-05-06  Jim Meyering  <meyering@lucent.com>
90883
90884         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90885         (AC_REPLACE_FUNCS): Add strnlen.
90886
90887         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90888         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90889
90890         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90891         AC_SEARCH_LIBS call for nanosleep.
90892         (LIB_NANOSLEEP): Set and AC_SUBST.
90893
90894 2000-05-06  Jim Meyering  <meyering@lucent.com>
90895
90896         * lib/strnlen.c: Undefine __strnlen and strnlen.
90897         [!weak_alias]: Define __strnlen to strnlen.
90898
90899         * lib/atexit.c: New file, from libiberty.
90900
90901 2000-05-06  Jim Meyering  <meyering@lucent.com>
90902
90903         * lib/closeout.c (close_stdout_status): Also check for errors on the
90904         stderr stream.
90905
90906 2000-05-05  Jim Meyering  <meyering@lucent.com>
90907
90908         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90909         AC_SEARCH_LIBS call for clock_gettime.
90910         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90911
90912         * m4/search-libs.m4: Update from autoconf.
90913
90914         su doesn't work on Solaris 2.6.
90915         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90916         <shadow.h>.  Reported by Dragos Harabor.
90917
90918 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90919
90920         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90921         memcpy instead of xmalloc, xrealloc, path_concat.
90922         (locale_charset): Treat empty environment variables as absent.
90923         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90924
90925 2000-05-04  Jim Meyering  <meyering@lucent.com>
90926
90927         * lib/getopt.c: Update from glibc.
90928         * lib/obstack.c: Likewise.
90929         * lib/obstack.h: Likewise.
90930         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90931         file
90932
90933         * lib/regex.h: Likewise.
90934         * lib/strndup.c: Likewise.
90935         * lib/strnlen.c: New file, from glibc.
90936
90937 2000-05-03  Jim Meyering  <meyering@lucent.com>
90938
90939         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90940
90941 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90942
90943         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90944         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90945         compile-time test, rather than inspecting host and OS, to
90946         decide whether to define _LARGEFILE_SOURCE.
90947
90948 2000-05-01  Jim Meyering  <meyering@lucent.com>
90949
90950         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90951
90952         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90953         Based on a patch from Bruno Haible.
90954
90955 2000-05-01  Jim Meyering  <meyering@lucent.com>
90956
90957         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90958
90959 2000-04-29  Jim Meyering  <meyering@lucent.com>
90960
90961         * lib/path-concat.c: Declare strdup only if it's not defined.
90962         * lib/canon-host.c: Likewise.
90963
90964 2000-04-28  Jim Meyering  <meyering@lucent.com>
90965
90966         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90967         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90968         is included first, then limits.h is included by locale.h by libintl.h.
90969         From John David Anglin.
90970
90971 2000-04-25  Jim Meyering  <meyering@lucent.com>
90972
90973         * lib/makepath.c (S_IRWXUGO): Define.
90974         (make_path): Always perform explicit chmod if MODE specifies any
90975         of the `special' permission bits.  Prompted by a bug report against
90976         install from Mate Wierdl and Joost van Baal.
90977
90978 2000-04-18  Jim Meyering  <meyering@lucent.com>
90979
90980         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90981         (jm_PREREQ): Use it.
90982
90983 2000-04-18  Jim Meyering  <meyering@lucent.com>
90984
90985         * lib/README: New file.
90986
90987         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90988         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90989
90990 2000-04-17  Jim Meyering  <meyering@lucent.com>
90991
90992         Get it right :-)
90993         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90994         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90995         Suggestion from Akim Demaille.
90996
90997 2000-04-17  Jim Meyering  <meyering@lucent.com>
90998
90999         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91000         the definition of it to rpl_strftime also defined-away the system's
91001         declaration.
91002
91003 2000-04-15  Jim Meyering  <meyering@lucent.com>
91004
91005         Use `C' to denote so-called `contiguous' files, the same way
91006         that tar does.
91007         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91008         (ftypelet): Use S_ISCTG.
91009         From Michael Deutschmann.
91010
91011 2000-04-14  Jim Meyering  <meyering@lucent.com>
91012
91013         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91014         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91015         clobbered.
91016
91017 2000-04-14  Jim Meyering  <meyering@lucent.com>
91018
91019         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91020
91021 2000-04-13  Jim Meyering  <meyering@lucent.com>
91022
91023         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91024         AH_VERBATIM to insert required #ifndef into config.h.in.
91025         Suggestion from Akim Demaille.
91026
91027 2000-04-12  Jim Meyering  <meyering@lucent.com>
91028
91029         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91030         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91031         Christian Krackowizer.
91032
91033         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91034         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91035         (AC_SYS_LARGEFILE): Require.
91036         (AM_C_PROTOTYPES): Require.
91037
91038 2000-04-08  Jim Meyering  <meyering@lucent.com>
91039
91040         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91041         names don't conflict.  Reported by Eli Zaretskii.
91042
91043 2000-04-07  Jim Meyering  <meyering@lucent.com>
91044
91045         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91046         sys/types.h, to work around system header problems on AIX 3.2.5.
91047         From Bruno Haible.
91048
91049 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91050
91051         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91052         bug.  Deal with the different error behavior of Irix iconv.
91053
91054 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91055
91056         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91057         IRIX if the installer said otherwise.
91058
91059 2000-04-05  Jim Meyering  <meyering@lucent.com>
91060
91061         Portability tweaks required for ultrix4.3.
91062         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91063         (jm_CHECK_DECLS): Add getutent to the list of functions.
91064         (_jm_DECL_HEADERS): Add utmpx.h.
91065         From John David Anglin.
91066
91067         * m4/strftime.m4: Back out the 2000-04-02 change.
91068         Instead of that change, simply undefine putenv in the test program.
91069
91070 2000-04-05  Jim Meyering  <meyering@lucent.com>
91071
91072         Portability tweaks required for ultrix4.3.
91073         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91074         getutent.
91075         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91076         * lib/canon-host.c: Declare strdup.
91077         * lib/path-concat.c: Likewise.
91078         From John David Anglin.
91079
91080 2000-04-04  Jim Meyering  <meyering@lucent.com>
91081
91082         Be more DOS 8.3-friendly.
91083         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91084         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91085         * lib/Makefile.am: Reflect renaming.
91086         Reported by Eli Zaretskii.
91087
91088         Use a temporary file name that won't clash with `charset.alias'
91089         in the DOS 8.3 name space.
91090         * lib/Makefile.am (charset_tmp): Define.
91091         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91092         (uninstall-local): Likewise.
91093         Reported by Eli Zaretskii.
91094
91095 2000-04-03  Jim Meyering  <meyering@lucent.com>
91096
91097         * m4/gettext.m4: Fix typo in comment.
91098
91099         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91100         textutils/configure.in).  Suggestion from Paul Eggert.
91101         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91102
91103 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91104
91105         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91106         variable in the shell rather than using putenv, which isn't
91107         portable.  This avoids the configure-time inter-test dependency
91108         on the potentially-renamed putenv function.
91109
91110 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91111
91112         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91113         before checking struct stat.st_blksize, so that
91114         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91115
91116 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91117
91118         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91119         since strftime.c uses HAVE_STRFTIME to decide whether to use
91120         the underlying strftime.
91121
91122 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91123
91124         * lib/time/strftime.c (my_strftime): Make sure we call the system
91125         strftime, not ourselves, when invoking the underlying strftime.
91126
91127 2000-03-24  Jim Meyering  <meyering@lucent.com>
91128
91129         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91130         (charset_alias): Define.
91131         (install-exec-local): Factor out common code.
91132         (uninstall-local): Split lines longer than 80.
91133         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91134         (SUFFIXES): Define.
91135         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91136         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91137
91138 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91139
91140         * lib/config.charset: Output a line containing "Packages using this
91141         file".
91142         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91143         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91144         ref-del.sed): New rules.
91145
91146 2000-03-17  Jim Meyering  <meyering@lucent.com>
91147
91148         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91149         Otherwise, include <strings.h>
91150
91151 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91152
91153         * lib/unicodeio.c (utf8_wctomb): New function.
91154         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91155         format instead of in UCS-4 with platform dependent endianness.
91156
91157 2000-03-10  Jim Meyering  <meyering@lucent.com>
91158
91159         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91160         From Marco Franzen.
91161
91162 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91163
91164         * lib/savedir.c (savedir): Work even if directory size is
91165         negative; this can happen with some screwy NFS configurations.
91166
91167 2000-03-06  Jim Meyering  <meyering@lucent.com>
91168
91169         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91170         if it's NULL (because we ran out of memory).  From Bruno Haible.
91171
91172 2000-03-05  Jim Meyering  <meyering@lucent.com>
91173
91174         * lib/localcharset.c ("path-concat.h"): Include.
91175         (get_charset_aliases): Use path_concat instead of ANSI string
91176         concatenation.
91177
91178         * lib/unicodeio.h (PARAMS): Define.
91179         Use it to guard prototype.
91180
91181 2000-03-04  Jim Meyering  <meyering@lucent.com>
91182
91183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91184         for lib/localcharset.c.
91185
91186 2000-03-04  Jim Meyering  <meyering@lucent.com>
91187
91188         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91189         installing into it.
91190         (uninstall-local): Uncomment this rule so `make distcheck' works
91191         once again.
91192
91193         * lib/unicodeio.c (<errno.h>): Include it.
91194         (errno): Declare if not defined.
91195
91196         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91197
91198         * lib/config.charset: New version, incorporating remarks from a linux
91199         i18n mailing list.  From Bruno Haible.
91200
91201 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91202
91203         * m4/codeset.m4: New file.
91204         * m4/iconv.m4: New file.
91205         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91206
91207 2000-03-03  Jim Meyering  <meyering@lucent.com>
91208
91209         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91210
91211 2000-03-02  Jim Meyering  <meyering@lucent.com>
91212
91213         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91214         the messages come out on separate lines.
91215
91216         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91217         rather than jm_CHECK_DECLARATIONS.
91218         * m4/decl.m4: Remove now-unused file.
91219
91220         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91221         geteuid.
91222
91223 2000-03-02  Jim Meyering  <meyering@lucent.com>
91224
91225         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91226
91227 2000-03-01  Jim Meyering  <meyering@lucent.com>
91228
91229         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91230         * lib/unicodeio.c: Likewise.
91231
91232 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91233
91234         * lib/config.charset: New file.
91235         * lib/localcharset.c: New file.
91236         * lib/unicodeio.h, lib/unicodeio.c: New files.
91237         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91238         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91239         (noinst_HEADERS): Add unicodeio.h.
91240         (all-local, install-exec-local, charset.alias): New targets.
91241
91242 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91243
91244         * lib/quotearg.c (ALERT_CHAR): New macro.
91245         (quotearg_buffer_restyled): Use it.
91246
91247 2000-02-27  Jim Meyering  <meyering@lucent.com>
91248
91249         * m4/check-decl.m4: Add getenv to the list.
91250
91251 2000-02-27  Jim Meyering  <meyering@lucent.com>
91252
91253         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91254         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91255
91256         * lib/backupfile.c: Guard inclusion of stdlib.h with
91257         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91258         Declare malloc if needed.
91259
91260         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91261         `#ifndef HAVE_DECL..'
91262         now that autoconf always defines the HAVE_DECL_ symbols.
91263         * lib/human.c: Likewise.
91264         * lib/same.c: Likewise.
91265         * lib/strtoumax.c: Likewise.
91266
91267         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91268         declaration check was not run.
91269         * lib/hash.c: Likewise.
91270         * lib/human.c: Likewise.
91271         * lib/same.c: Likewise.
91272         * lib/strtoumax.c: Likewise.
91273
91274         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91275         `.', then first look up the entire `.'-containing string as a login
91276         name.
91277
91278 2000-02-23  Jim Meyering  <meyering@lucent.com>
91279
91280         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91281         in place of my hack.
91282
91283 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91284
91285         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91286         (textint): New typedef.
91287         (parser_control): Member year changed from int to textint.
91288         All uses changed.
91289         (YYSTYPE): Removed; replaced by %union with int and textint members.
91290         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91291         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91292         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91293         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91294         (date, number, to_year): Use width of number in digits, not its value,
91295         to determine whether it's a 2-digit year, or a 2-digit time.
91296         (yylex): Store number of digits of numeric tokens.
91297         Reported by John Kendall.
91298
91299         (parser_control): Changed from struct parser_control to typedef (for
91300         consistency).  All uses changed.
91301
91302         (tID): Removed; not used.
91303         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91304
91305 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91306
91307         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91308         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91309
91310 2000-02-12  Jim Meyering  <meyering@lucent.com>
91311
91312         * lib/userspec.c (ISDIGIT): Define it.
91313         (isdigit): Remove definition.
91314         (is_number): Use ISDIGIT, not isdigit.
91315         <libintl.h>: Include.
91316         (_ and N_): Define.
91317         (parse_user_spec): Mark translatable strings.
91318
91319 2000-02-10  Jim Meyering  <meyering@lucent.com>
91320
91321         With these changes, nanosleep.[ch] are finally enough like the other
91322         lib/* replacement files to compile on a few more losing systems.
91323
91324         * lib/nanosleep.h: Don't include config.h.
91325         Remove prototype from declaration of nanosleep.
91326         (PARAMS): Remove now-unneeded definition.
91327         * lib/nanosleep.c: #undef nanosleep.
91328         (rpl_nanosleep): Rename from nanosleep.
91329
91330 2000-02-10  Jim Meyering  <meyering@lucent.com>
91331
91332         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91333         gnu_nanosleep to rpl_nanosleep.
91334
91335 2000-02-09  Jim Meyering  <meyering@lucent.com>
91336
91337         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91338         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91339
91340 2000-02-08  Akim Demaille  <akim@epita.fr>
91341
91342         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91343         `[' and `]' and remove uses of `changequote'.
91344         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91345         (AC_SYS_LARGEFILE): Likewise.
91346         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91347         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91348         of changequote.
91349         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91350         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91351         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91352         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91353
91354 2000-02-05  Jim Meyering  <meyering@lucent.com>
91355
91356         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91357         Remove explicit use of AC_HEADER_TIME.  It is required by
91358         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91359         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91360         in autoconf whereby the expansion of the latter ended up preceding
91361         the expansion of its prerequisite, AC_HEADER_TIME.
91362         Reported by Volker Borchert.
91363
91364 2000-02-03  Jim Meyering  <meyering@lucent.com>
91365
91366         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91367
91368 2000-02-03  Jim Meyering  <meyering@lucent.com>
91369
91370         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91371         rather than with `#if HAVE_UTMPNAME'.
91372
91373 2000-02-02  Jim Meyering  <meyering@lucent.com>
91374
91375         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91376         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91377         Reported by Eli Zaretskii.
91378
91379 2000-02-01  Jim Meyering  <meyering@lucent.com>
91380
91381         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91382
91383 2000-01-31  Jim Meyering  <meyering@lucent.com>
91384
91385         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91386         functions.  Add the time.h and sys/time.h headers along with the
91387         AC_REQUIRE'ment of AC_HEADER_TIME.
91388
91389 2000-01-31  Jim Meyering  <meyering@lucent.com>
91390
91391         * lib/nanosleep.h (nanosleep): Guard declaration with
91392         `#if ! HAVE_DECL_NANOSLEEP'.
91393         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91394         the declaration in that vendor's sys/timers.h.
91395         Reported by Christian Krackowizer.
91396
91397         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91398         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91399         (ISPRINT): Likewise.
91400         Reported by Tom Tromey.
91401
91402 2000-01-30  Jim Meyering  <meyering@lucent.com>
91403
91404         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91405
91406         * m4/prereq.m4 (utmp_includes): Define.
91407         Check for ut_user and ut_name members in both struct utmpx
91408         and struct utmp.
91409
91410 2000-01-30  Jim Meyering  <meyering@lucent.com>
91411
91412         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91413         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91414         header files where only utmpx.ut_user is declared.
91415
91416         * lib/readutmp.h (UT_USER): Define.
91417
91418 2000-01-29  Jim Meyering  <meyering@lucent.com>
91419
91420         * m4/lib-check.m4: New file containing library-related checks from
91421         fileutils and sh-utils (textutils had none).
91422
91423 2000-01-28  Jim Meyering  <meyering@lucent.com>
91424
91425         * m4/perl.m4: Change format of warning message to look more like that
91426         from the missing script.  Suggestion from François Pinard.
91427
91428 2000-01-25  Jim Meyering  <meyering@lucent.com>
91429
91430         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91431         well as time.h in the compile check.
91432         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91433         Fix typo in cross-compiling case: s/yes/no/.
91434
91435 2000-01-23  Jim Meyering  <meyering@lucent.com>
91436
91437         * m4/jm-macros.m4: Move df-related tests here from
91438         fileutils/configure.in
91439
91440         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91441         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91442
91443         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91444         s/space/ac_fsusage_space/.
91445         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91446
91447         * m4/ftruncate.m4: New file (derived from part of
91448         fileutils/configure.in).
91449         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91450         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91451
91452         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91453         AC_SUBST these here, rather than just in sh-util/configure.in, so
91454         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91455         all the same.
91456         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91457         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91458         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91459         (AC_SUBST(POW_LIBM)): Likewise.
91460         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91461
91462 2000-01-23  Jim Meyering  <meyering@lucent.com>
91463
91464         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91465         obstack.c.
91466
91467 2000-01-22  Jim Meyering  <meyering@lucent.com>
91468
91469         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91470
91471         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91472
91473         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91474         configure.in
91475         (AC_CHECK_HEADERS): Likewise for sh-utils.
91476         (AC_CHECK_HEADERS): Likewise for textutils.
91477         Merge the three lists of headers.
91478
91479         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91480         from fileutils' configure.in.
91481
91482         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91483         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91484         check-decl.m4.
91485
91486         * m4/check-decl.m4: Use #if rather than #ifdef.
91487         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91488         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91489         (_jm_DECL_HEADERS): Define new function.
91490         (jm_CHECK_DECLARATIONS): Require it.
91491
91492 2000-01-22  Jim Meyering  <meyering@lucent.com>
91493
91494         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91495         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91496         Required for some AIX systems.  Reported by Christian Krackowizer.
91497         [TESTING] (main): New function.
91498
91499         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91500         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91501         letters.
91502
91503         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91504         iswprint.
91505
91506         * lib/strverscmp.c (ISDIGIT): Define.
91507         (strverscmp): Use ISDIGIT, not isdigit.
91508
91509 2000-01-19  Jim Meyering  <meyering@lucent.com>
91510
91511         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91512         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91513         defines `struct timespec' in <sys/time.h>
91514
91515         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91516         Thanks to Akim for explaining.
91517
91518 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91519
91520         * lib/nanosleep.c (nanosleep):
91521         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91522         POSIX.1 doesn't require SA_INTERRUPT and some systems
91523         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91524         it's been part of POSIX.1 since day 1 (in 1988).
91525
91526 2000-01-17  Jim Meyering  <meyering@lucent.com>
91527
91528         * lib/interlock: Remove unused file.  Reported by François Pinard.
91529
91530 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91531
91532         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91533         alert, backslash, formfeed, and vertical tab unnecessarily in
91534         shell quoting style.
91535
91536 2000-01-16  Jim Meyering  <meyering@lucent.com>
91537
91538         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91539         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91540         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91541         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91542
91543 2000-01-16  Jim Meyering  <meyering@lucent.com>
91544
91545         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91546         because the latter didn't work.
91547
91548 2000-01-15  Jim Meyering  <meyering@lucent.com>
91549
91550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91551         (AC_REPLACE_FUNCS): Add memcpy and memset.
91552         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91553         Add strpbrk.
91554         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91555
91556 2000-01-12  Jim Meyering  <meyering@lucent.com>
91557
91558         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91559         (jm_PREREQ): Use it.
91560         (jm_PREREQ_READUTMP): New macro.
91561         (jm_PREREQ): Use it.
91562
91563 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91564
91565         Quote multibyte characters correctly.
91566         * m4/c-bs-a.m4: New file.
91567         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91568         (jm_PREREQ): Use it.
91569
91570 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91571
91572         * m4/uintmax_t.m4: Port to autoconf 2.13.
91573
91574 2000-01-08  Jim Meyering  <meyering@ascend.com>
91575
91576         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91577         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91578
91579 2000-01-04  Jim Meyering  <meyering@ascend.com>
91580
91581         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91582         jm_STRUCT_DIRENT_D_TYPE.
91583         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91584         jm_STRUCT_DIRENT_D_INO.
91585         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91586         jm_STRUCT_UTIMBUF.
91587         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91588         renamings.
91589         * m4/utime.m4: Likewise.
91590
91591         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91592         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91593
91594 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91595
91596         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91597         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91598
91599 2000-01-02  Jim Meyering  <meyering@ascend.com>
91600
91601         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91602         remember if this is necessary.
91603
91604 1999-12-26  Jim Meyering  <meyering@ascend.com>
91605
91606         * m4/jm-macros.m4: Use it here.
91607         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91608
91609 1999-12-23  Jim Meyering  <meyering@ascend.com>
91610
91611         * m4/jm-macros.m4: Check for clock_gettime (moved from
91612         fileutils/configure.in)
91613         Check for gettimeofday.
91614
91615 1999-12-20  Jim Meyering  <meyering@ascend.com>
91616
91617         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91618         autoconf-2.14a-1999-12-20.
91619
91620 1999-12-19  Jim Meyering  <meyering@ascend.com>
91621
91622         * m4/lstat-slash.m4: New file.
91623         * m4/jm-macros.m4: Use the new macro:
91624         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91625
91626 1999-12-07  Jim Meyering  <meyering@ascend.com>
91627
91628         * m4/perl.m4: Require that File::Compare be available, too.
91629         Too many systems seem to lack it.
91630
91631         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91632         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91633
91634 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91635
91636         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91637         problem with the QNX 4.25 shell, which doesn't propagate exit
91638         status of failed commands inside shell assignments.
91639
91640 1999-11-17  Jim Meyering  <meyering@ascend.com>
91641
91642         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91643
91644 1999-11-07  Jim Meyering  <meyering@ascend.com>
91645
91646         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91647
91648 1999-11-06  Jim Meyering  <meyering@ascend.com>
91649
91650         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91651         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91652
91653 1999-11-05  Jim Meyering  <meyering@ascend.com>
91654
91655         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91656         configure.in of textutils, fileutils, and sh-utils into this one
91657         (shared between those packages) file.
91658         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91659         AC_STRUCT_ST_BLKSIZE.
91660
91661 1999-11-03  Jim Meyering  <meyering@ascend.com>
91662
91663         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91664         of AC_CHECK_TYPE checks includes unistd.h.
91665         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91666         Suggestion from Akim Demaille.
91667
91668 1999-10-30  Jim Meyering  <meyering@ascend.com>
91669
91670         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91671         m4-quoted string.
91672         * m4/ls-mntd-fs.m4: Likewise.
91673         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91674         * m4/jm-winsz1.m4: Likewise.
91675
91676         * m4/const.m4: Remove file, since the fix made it into the experimental
91677         version of autoconf.
91678         * m4/mktime.m4: Likewise.
91679
91680         * m4/check-type.m4: Remove file, now that the latest version of
91681         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91682
91683         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91684         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91685         AC_CHECK_TYPE.
91686
91687 1999-10-04  Jim Meyering  <meyering@ascend.com>
91688
91689         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91690
91691 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91692
91693         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91694         2.95.1 bug with HP-UX 10.20.
91695
91696 1999-09-17  Jim Meyering  <meyering@ascend.com>
91697
91698         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
91699         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
91700         due to missing strdup (against sh-utils-2.0).
91701
91702 1999-08-29  Jim Meyering  <meyering@ascend.com>
91703
91704         * m4/jm-macros.m4: Require jm_BISON.
91705         * m4/bison.m4: New file.
91706
91707 1999-08-17  Paul Eggert  <eggert@twinsun.com>
91708
91709         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
91710         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
91711
91712 1999-08-05  Jim Meyering  <meyering@ascend.com>
91713
91714         * m4/getline.m4: Rename test file from conftestdata to conftest.data
91715         to avoid conflicts with `conftest' on 8+3 filesystems.
91716         Suggestion from Eli Zaretskii.
91717
91718 1999-08-04  Jim Meyering  <meyering@ascend.com>
91719
91720         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
91721         fileutils and sh-utils (textutils's getline test was inadequate).
91722         (AM_FUNC_GETLINE): Run this test.
91723         (AC_CHECK_FUNCS): Check for getdelim.
91724         Reported by Bob Proulx.
91725
91726 1999-08-02  Jim Meyering  <meyering@ascend.com>
91727
91728         * m4/jm-macros.m4: Add a comment.
91729
91730 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91731
91732         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
91733         <inttypes.h> defines strtoumax as a macro (and not as a
91734         function).
91735
91736 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91737
91738         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
91739         that we can shift, multiply and divide unsigned long long
91740         values; Ultrix cc can't do it.
91741
91742 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91743
91744         * m4/mktime.m4: New file, which is a preview of what should appear
91745         in the next public autoconf release.
91746
91747 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91748
91749         * m4/lfs.m4: Remove this file.
91750         * m4/largefile.m4: New file.  It contains the old contents of
91751         lfs.m4, except that all names with prefix AC_LFS have been
91752         changed to use the prefix AC_SYS_LARGEFILE instead, to be
91753         compatible with future autoconf versions.  Also, some minor m4
91754         quoting problems have been fixed.
91755
91756 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91757
91758         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91759         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91760         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91761         and simplify the shell code.
91762
91763 1999-08-01  Jim Meyering  <meyering@ascend.com>
91764
91765         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91766         m4.
91767
91768 1999-07-20  Jim Meyering  <meyering@ascend.com>
91769
91770         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
91771
91772 1999-07-15  Jim Meyering  <meyering@ascend.com>
91773
91774         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
91775
91776 1999-05-22  Jim Meyering  <meyering@ascend.com>
91777
91778         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91779
91780 1999-05-20  Jim Meyering  <meyering@ascend.com>
91781
91782         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91783         Add a colon after each `then' in case $4 is empty.
91784
91785 1999-05-16  Jim Meyering  <meyering@ascend.com>
91786
91787         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91788
91789 1999-05-10  Jim Meyering  <meyering@ascend.com>
91790
91791         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91792
91793         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91794         AC_FUNC_MKTIME.
91795
91796 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91797
91798         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91799
91800 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91801
91802         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91803         not CPPFLAGS, so that linking works correctly in IRIX.
91804
91805 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91806
91807         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91808
91809 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91810
91811         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91812         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91813         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91814         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91815         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91816
91817         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91818
91819 1999-04-20  Jim Meyering  <meyering@ascend.com>
91820
91821         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91822         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91823         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91824
91825 1999-04-18  Jim Meyering  <meyering@ascend.com>
91826
91827         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91828         * m4/jm-macros.m4: Use it.
91829
91830 1999-04-06  Jim Meyering  <meyering@ascend.com>
91831
91832         * m4/strftime.m4: Remove test for %f.
91833
91834 1999-03-29  Jim Meyering  <meyering@ascend.com>
91835
91836         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91837         superset of the AC_TYPE_* checks in the textutils, fileutils,
91838         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91839         AC_TYPE_PID_T.
91840
91841 1999-03-28  Jim Meyering  <meyering@ascend.com>
91842
91843         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91844         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91845         replaced e.g., in the *.sh files of the sh-utils.
91846
91847 1999-03-20  Jim Meyering  <meyering@ascend.com>
91848
91849         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91850         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91851         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91852
91853 1999-03-19  Jim Meyering  <meyering@ascend.com>
91854
91855         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91856
91857 1999-03-12  Jim Meyering  <meyering@ascend.com>
91858
91859         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91860
91861 1999-03-07  Jim Meyering  <meyering@ascend.com>
91862
91863         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91864         declared.
91865
91866 1999-02-17  Jim Meyering  <meyering@ascend.com>
91867
91868         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91869         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91870
91871 1999-02-07  Jim Meyering  <meyering@ascend.com>
91872
91873         * m4/group-member.m4: New file -- extracted from sh-utils'
91874         configure.in.
91875
91876         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91877         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91878
91879 1999-02-06  Jim Meyering  <meyering@ascend.com>
91880
91881         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91882         * m4/fnmatch.m4: Likewise.
91883         * m4/getgroups.m4: Likewise.
91884         * m4/lstat.m4: Likewise.
91885         * m4/malloc.m4: Likewise.
91886         * m4/putenv.m4: Likewise.
91887         * m4/realloc.m4: Likewise.
91888         * m4/regex.m4: Likewise.
91889         * m4/stat.m4: Likewise.
91890         * m4/strftime.m4: Likewise.
91891         Suggestion from Alain Magloire.
91892
91893         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91894         * m4/fnmatch.m4: Likewise.
91895         * m4/getgroups.m4: Likewise.
91896         * m4/getline.m4: Likewise.
91897         * m4/lstat.m4: Likewise.
91898         * m4/malloc.m4: Likewise.
91899         * m4/memcmp.m4: Likewise.
91900         * m4/putenv.m4: Likewise.
91901         * m4/realloc.m4: Likewise.
91902         * m4/regex.m4: Likewise.
91903         * m4/stat.m4: Likewise.
91904         * m4/strftime.m4: Likewise.
91905         Suggestion from Alain Magloire.
91906
91907         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91908         an argument.
91909
91910         * m4/regex.m4: Add a run-time Test for proper operation of
91911         re_compile_pattern.
91912
91913 1999-01-31  Jim Meyering  <meyering@ascend.com>
91914
91915         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91916
91917 1999-01-30  Jim Meyering  <meyering@ascend.com>
91918
91919         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91920
91921         * m4/jm-mktime.m4: Make this a wrapper around the official
91922         AM_FUNC_MKTIME rather than my private copy, now that the official one
91923         is up to date.
91924         * m4/mktime.m4: Remove file.
91925
91926         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91927         * m4/uptime.m4: Likewise.
91928         * m4/uintmax_t.m4: Likewise.
91929
91930 1999-01-28  Jim Meyering  <meyering@ascend.com>
91931
91932         * m4/jm-macros.m4: Use jm_AFS.
91933         * m4/afs.m4: New file (from fileutils' configure.in).
91934
91935         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91936         * m4/chown.m4: Likewise.
91937         * m4/d-ino.m4: Likewise.
91938         * m4/d-type.m4: Likewise.
91939         * m4/fnmatch.m4: Likewise.
91940         * m4/getgroups.m4: Likewise.
91941         * m4/gettext.m4: Likewise.
91942         * m4/jm-mktime.m4: Likewise.
91943         * m4/jm-winsz2.m4: Likewise.
91944         * m4/lcmessage.m4: Likewise.
91945         * m4/ls-mntd-fs.m4: Likewise.
91946         * m4/malloc.m4: Likewise.
91947         * m4/memcmp.m4: Likewise.
91948         * m4/putenv.m4: Likewise.
91949         * m4/realloc.m4: Likewise.
91950         * m4/st_mtim.m4: Likewise.
91951         * m4/strftime.m4: Likewise.
91952
91953 1999-01-16  Jim Meyering  <meyering@ascend.com>
91954
91955         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91956         (ARGMATCH_DIE_DECL): Define.
91957
91958 1999-01-12  Jim Meyering  <meyering@ascend.com>
91959
91960         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91961         Reported by Lars Hecking.
91962
91963 1999-01-10  Jim Meyering  <meyering@ascend.com>
91964
91965         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91966         gross kludge.
91967         * m4/inttypes_h.m4: Likewise.
91968         * m4/lstat.m4: Likewise.
91969         * m4/malloc.m4: Likewise.
91970         * m4/readdir.m4: Likewise.
91971         * m4/realloc.m4: Likewise.
91972         * m4/st_dm_mode.m4: Likewise.
91973         * m4/stat.m4: Likewise.
91974         * m4/utimbuf.m4: Likewise.
91975         * m4/utimes.m4: Likewise.
91976
91977         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91978         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91979         comments in config.h.in are meaningful.
91980
91981         * m4/jm-macros.m4: Require autoconf-2.13 here.
91982
91983         * m4/regex.m4: By default, don't use the included regex.c on systems
91984         with glibc 2.  Suggestion from Uli Drepper.
91985
91986 1999-01-02  Jim Meyering  <meyering@ascend.com>
91987
91988         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91989
91990 1998-12-18  Jim Meyering  <meyering@ascend.com>
91991
91992         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91993         Based on a suggestion from Lars Hecking.
91994
91995 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91996
91997         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91998
91999 1998-11-16  Jim Meyering  <meyering@ascend.com>
92000
92001         * m4/lfs.m4: Double-quote the `uname...` expression.
92002
92003 1998-11-14  Jim Meyering  <meyering@ascend.com>
92004
92005         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92006         * m4/stat.m4: Likewise.
92007
92008 1998-11-03  Jim Meyering  <meyering@ascend.com>
92009
92010         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92011         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92012
92013 1998-10-18  Jim Meyering  <meyering@ascend.com>
92014
92015         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92016
92017 1998-10-17  Jim Meyering  <meyering@ascend.com>
92018
92019         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92020         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92021         calls for those previously hard-coded headers.  Instead, take a new
92022         parameter.
92023         (jm_CHECK_DECLARATIONS): Reflect interface change.
92024         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92025         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92026
92027         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92028
92029 1998-10-14  Jim Meyering  <meyering@ascend.com>
92030
92031         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92032         instead of "TZ=America/Vancouver".  From Paul Eggert.
92033
92034 1998-10-11  Jim Meyering  <meyering@ascend.com>
92035
92036         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92037         This adds a test for a recently added compatibility fix for mktime.c.
92038         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92039
92040 1998-09-27  Jim Meyering  <meyering@ascend.com>
92041
92042         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92043
92044         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92045         ../configure.in, including a change from Gordon Matzigkeit to allow
92046         cross-compiling for the Hurd.
92047
92048         * m4/glibc.m4: New file/macro to test for the GNU C Library
92049         versions 1 and 2.  From Gordon Matzigkeit.
92050         Indent.
92051
92052 1998-09-21  Jim Meyering  <meyering@ascend.com>
92053
92054         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92055
92056 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92057
92058         Port nanosecond-resolution times to UnixWare 2.1.2 and
92059         pedantic Solaris 2.6.
92060
92061         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92062         AC_STRUCT_ST_MTIM.
92063         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92064         Generate name of ns member, instead of just 1 or undef.
92065         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92066
92067 1998-08-15  Jim Meyering  <meyering@ascend.com>
92068
92069         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92070         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92071         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92072         instead of jm_TYPE_SSIZE_T.
92073
92074 1998-08-12  Jim Meyering  <meyering@ascend.com>
92075
92076         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92077
92078 1998-08-02  Jim Meyering  <meyering@ascend.com>
92079
92080         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92081         in acconfig.h manually.
92082
92083 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92084
92085         * m4/st_mtim.m4: New file.
92086
92087 1998-07-28  Jim Meyering  <meyering@ascend.com>
92088
92089         * m4/utimes.m4: Undef stat.
92090
92091 1998-07-25  Jim Meyering  <meyering@ascend.com>
92092
92093         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92094         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92095
92096 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92097
92098         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92099         uid and gid actually remain unchanged.
92100
92101 1998-07-07  Jim Meyering  <meyering@ascend.com>
92102
92103         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92104
92105 1998-07-04  Jim Meyering  <meyering@ascend.com>
92106
92107         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92108         to prove that this macro can be used in packages without regex.c.
92109
92110 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92111
92112         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92113         is to be used.
92114
92115 1998-07-03  Jim Meyering  <meyering@ascend.com>
92116
92117         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92118
92119         * m4/gettext.m4: New file -- from gettext-0.10.35.
92120         * m4/lcmessage.m4: Likewise.
92121         * m4/progtest.m4: Likewise.
92122
92123         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92124         * m4/jm-macros.m4: Require the new macro.
92125
92126 1998-06-29  Jim Meyering  <meyering@ascend.com>
92127
92128         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92129         for the definition of NGROUPS (used in a system header included
92130         by sys/mount.h).
92131
92132 1998-06-28  Jim Meyering  <meyering@ascend.com>
92133
92134         * m4/ls-mntd-fs.m4: New file.
92135         * m4/fstypename.m4: New file.
92136
92137         * m4/jm-macros.m4: Require the new macro.
92138         * m4/jm-glibc-io.m4: New file.
92139
92140 1998-05-19  Jim Meyering  <meyering@ascend.com>
92141
92142         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92143         * m4/lchown.m4: New file.
92144
92145         * m4/Makefile.am.in: New file.
92146         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92147
92148 1998-05-14  Jim Meyering  <meyering@ascend.com>
92149
92150         * m4/Makefile.am (EXTRA_DIST): Add them.
92151         * m4/jm-macros.m4: New file.
92152         * m4/utimbuf.m4: New file.
92153
92154 1998-05-12  Jim Meyering  <meyering@ascend.com>
92155
92156         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92157
92158 1998-05-11  Jim Meyering  <meyering@ascend.com>
92159
92160         * m4/isc-posix.m4: New file.
92161
92162 1998-05-10  Jim Meyering  <meyering@ascend.com>
92163
92164         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92165
92166 1998-05-09  Jim Meyering  <meyering@ascend.com>
92167
92168         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92169         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92170         with automake.
92171
92172         * m4/ssize_t.m4: New file.
92173         * m4/mktime.m4: Remove file -- the new automake has this now.
92174
92175 1998-04-26  Jim Meyering  <meyering@ascend.com>
92176
92177         * m4/assert.m4: New file.
92178         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92179
92180 1998-04-05  Jim Meyering  <meyering@ascend.com>
92181
92182         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92183         (jm_PREREQ): Use it here.
92184
92185 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92186
92187         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92188         in acconfig.h.
92189
92190 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92191
92192         * m4/prereq.m4: New file.
92193         * m4/error.m4: New file.
92194         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92195
92196 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92197
92198         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92199         cache-check for the same variable -- that defeated the purpose of
92200         the test; the test program was never run.  This was a problem only
92201         on systems with losing getline functions -- HP-UX 10.20 is one.
92202         Reported by Bjorn Helgaas.
92203
92204 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92205
92206         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92207
92208 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92209
92210         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92211
92212         * m4/const.m4: New file.  Use an initializer in this declaration
92213         typedef int charset[2]; const charset x;
92214         Reported by Bob Glickstein.
92215
92216 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92217
92218         * m4/chown.m4: Fix reversed types on -1 args to chown.
92219         From Kaveh Ghazi.
92220
92221 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92222
92223         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92224         Add lseek and memchr.
92225
92226         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92227         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92228         have a 20-character limit on names.
92229
92230 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92231
92232         * m4/inttypes_h.m4: New file.
92233         * m4/uintmax_t.m4: New file.
92234         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92235
92236
92237         -----
92238
92239         Local Variables:
92240         coding: utf-8
92241         End:
92242
92243         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92244
92245         Copying and distribution of this file, with or without
92246         modification, are permitted provided the copyright notice
92247         and this notice are preserved.